@iflow-mcp/arismoko-buddy-mcp-proxy
v0.1.2
Published
MCP proxy server for buddy.nvim — connect AI agents to Neovim sessions
Downloads
11
Readme
buddy-mcp-proxy
MCP proxy server for buddy.nvim sessions. This proxy allows OpenCode (or any MCP client) to connect to multiple buddy.nvim instances and switch between them dynamically.
How it works
- Sessions Registry: Reads buddy.nvim session info from
~/.local/state/nvim/buddy/sessions.json(or$XDG_STATE_HOME/nvim/buddy/sessions.json) - Meta-tools: Exposes tools to list, select, and manage sessions
- Tool Proxying: Once a session is selected, proxies all its tools to the MCP client
Meta-tools
buddy_sessions_list- List all available buddy.nvim sessionsbuddy_session_select- Select a session by ID to connect tobuddy_session_info- Get info about the currently selected sessionbuddy_refresh- Refresh sessions list and reconnect if needed
Installation
npm install -g buddy-mcp-proxyOr use it directly with npx — no install needed (see Usage below).
Usage
With OpenCode
Add to ~/.config/opencode/opencode.jsonc:
{
"mcp": {
"vim": {
"type": "local",
"command": ["npx", "buddy-mcp-proxy"]
}
}
}With Claude Desktop
Add to your Claude Desktop MCP config:
{
"mcpServers": {
"vim": {
"command": "npx",
"args": ["buddy-mcp-proxy"]
}
}
}From Source
cd mcp/buddy-mcp-proxy
npm install
npm run build
node dist/index.jsDevelopment
# Run directly with bun (no build needed)
bun run dev
# Build for production
npm run build
# Type check
npm run typecheckSessions Registry Format
The proxy understands buddy.nvim's format (recommended) and a legacy array format.
Recommended (buddy.nvim):
{
"version": 1,
"sessions": {
"<session_id>": {
"host": "127.0.0.1",
"port": 52341,
"cwd": "/home/user/project-a",
"label": "project-a",
"pid": 12345,
"auth_token": "<random-bearer-token>",
"started_at": 1730000000,
"last_seen": 1730000030
}
}
}Logs
All logs are written to stderr only (as required by MCP stdio transport).
