aliatx2017/reasonix-hermes/native-mcp

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

MCP client patterns — connect to MCP servers, register their tools, and call them via stdio or HTTP transport. Covers session lifecycle, tool discovery, and error recovery.

Install

npx vskill@latest install aliatx2017/reasonix-hermes/native-mcp

SKILL.md

Native MCP Client Patterns

Patterns for connecting to MCP servers and using their tools from a Go agent. Reasonix-Hermes implements this in internal/plugin/ — the MCP host manages server subprocesses and tool registration.

When to Use

  • Adding MCP server support to a tool registry
  • Debugging MCP connection issues (server won't start, tools not appearing)
  • Understanding how Reasonix discovers and registers MCP tools
  • Building a custom MCP client

Connection Lifecycle

1. Server Startup (stdio)
go
cmd := exec.Command(serverCommand, serverArgs...)
cmd.Env = append(os.Environ(), serverEnv...)
stdin, _ := cmd.StdinPipe()
stdout, _ := cmd.StdoutPipe()
cmd.Start()
2. Initialize Handshake
json
// → Request
{"jsonrpc":"2.0","id":1,"method":"initialize","params":{...}}
// ← Response
{"jsonrpc":"2.0","id":1,"result":{"protocolVersion":"2024-11-05","capabilities":{...}}}
3. Tool Discovery
json
// → Request
{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}
// ← Response
{"jsonrpc":"2.0","id":2,"result":{"tools":[
{"name":"tool_name","description":"...","inputSchema":{...}}
]}}
4. Tool Call
json
// → Request
{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"tool_name","arguments":{...}}}
// ← Response
{"jsonrpc":"2.0","id":3,"result":{"content":[{"type":"text","text":"..."}]}}

Transport Modes

stdio
  • Subprocess launched by Reasonix
  • JSON-RPC over stdin/stdout
  • Server lifecycle tied to session context
  • Best for local tools (filesystem, git, language servers)
HTTP / SSE
  • Remote server at a URL
  • Bearer token auth via Authorization header
  • Stateless or SSE-streaming
  • Best for shared services (databases, APIs, cloud tools)

Error Recovery

  • Server crash: Restart subprocess, re-initialize, re-register tools
  • Tool timeout: Cancel via context, server stays alive
  • Protocol error: Log warning, skip tool, continue session
  • Connection lost: Retry with backoff (HTTP), restart subprocess (stdio)

Registration in Reasonix

MCP tools are registered into the tool registry alongside built-in tools:

config → [[plugins]] entries → plugin.Host → tool.Registry

The plugin.Host manages server subprocesses, handles initialization, and adapts remote tools to the tool.Tool interface. Hot-added servers (via /mcp add) register mid-session.

Key Files

ComponentPath
MCP plugin hostinternal/plugin/
Tool registryinternal/tool/registry.go
Tool interfaceinternal/tool/tool.go
MCP typespkg/mcputil/
Config entries[[plugins]] in reasonix.toml

Related

  • Project skill: go-mcp-server — building MCP servers in Go
  • Tool: install_source — install MCP servers
  • reasonix.example.toml — MCP server configuration examples
  • internal/plugin/ — MCP client implementation

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/aliatx2017/reasonix-hermes/native-mcp/badge)](https://verified-skill.com/skills/aliatx2017/reasonix-hermes/native-mcp)

Something wrong with this skill or its page? Tell us.