Skip to content

fix(mcp): bootstrap rune-mcp on first MCP spawn (no manual reconnect)#149

Merged
esifea merged 4 commits into
CryptoLabInc:feat/go-migrationfrom
couragehong:fix/mcp-spawn-bootstrap
Jun 2, 2026
Merged

fix(mcp): bootstrap rune-mcp on first MCP spawn (no manual reconnect)#149
esifea merged 4 commits into
CryptoLabInc:feat/go-migrationfrom
couragehong:fix/mcp-spawn-bootstrap

Conversation

@couragehong
Copy link
Copy Markdown
Contributor

Summary

On a fresh plugin install rune, the MCP server shows failed in /mcp and the user must manually reconnect.

mcpServers.rune.command pointed directly at ~/.rune/bin/rune-mcp, which only exists after /rune:configure. Claude Code spawns the stdio MCP server once at session startup, so the binary is missing -> ENOENT -> failed.

The agent can't reconnect it programmatically, so a manual /mcp reconnect is forced.

Fix

Route the manifest command through the always-present bin/rune bootstrap via the CLI's documented mcp-server entry point, and accept mcp-server in the bootstrap path: on first spawn it installs the CLI + rune-mcp if missing, then forwards stdio to rune-mcp (which boots dormant until /rune:configure). No manual reconnect needed.

  • plugin.json: command → ${CLAUDE_PLUGIN_ROOT}/bin/rune, args ["mcp-server"]
  • bin/rune: accept mcp-server; install rune-mcp before forwarding

@couragehong couragehong changed the base branch from main to feat/go-migration June 2, 2026 04:26
Comment thread bin/rune Outdated
@esifea
Copy link
Copy Markdown
Contributor

esifea commented Jun 2, 2026

@jh-lee-cryptolab
I'll add extra commits which I'm working on now
Please review again after then

@esifea esifea requested a review from jh-lee-cryptolab June 2, 2026 05:23
Copy link
Copy Markdown
Contributor

@jh-lee-cryptolab jh-lee-cryptolab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@esifea esifea merged commit 470b47b into CryptoLabInc:feat/go-migration Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants