aliatx2017/reasonix-hermes/native-mcp
- community
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-mcpSKILL.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)
2. Initialize Handshake
3. Tool Discovery
4. Tool Call
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
Authorizationheader - 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:
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
| Component | Path | |
|---|---|---|
| MCP plugin host | internal/plugin/ | |
| Tool registry | internal/tool/registry.go | |
| Tool interface | internal/tool/tool.go | |
| MCP types | pkg/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 examplesinternal/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
- SKILL.md in the repositoryChecking.reasonix/skills/native-mcp/SKILL.md
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
[](https://verified-skill.com/skills/aliatx2017/reasonix-hermes/native-mcp)