fix: make Claude plugin MCP startup portable#42
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (17)
WalkthroughVersion 1.3.6 release bumps plugin metadata across all manifests and introduces a portable MCP entrypoint architecture with plugin-local Python runtime bootstrapping. Setup flow migrates from direct virtualenv creation to a wrapper entrypoint pattern with first-start bootstrap and release-time portability validation. Changes
Sequence DiagramsequenceDiagram
participant Claude as Claude<br/>(Invoker)
participant Setup as setup.sh<br/>(Orchestrator)
participant Bootstrap as bootstrap-runtime.sh<br/>(Runtime Setup)
participant VEnv as .venv/<br/>(Virtual Env)
participant MCPWrapper as mcp-server.sh<br/>(Entrypoint)
participant Server as grok_server.py<br/>(MCP Server)
Claude->>Setup: Execute on first start
Setup->>Bootstrap: Call scripts/bootstrap-runtime.sh
Bootstrap->>VEnv: Check/create virtualenv
Bootstrap->>VEnv: Validate requirements.txt hash
Bootstrap->>VEnv: Install dependencies if needed
Bootstrap->>Setup: Return Python interpreter path
Setup->>Claude: Setup complete
Claude->>MCPWrapper: Invoke mcp-server.sh (MCP launcher)
MCPWrapper->>Bootstrap: Call bootstrap-runtime.sh for runtime
Bootstrap->>VEnv: Return cached Python path
MCPWrapper->>Server: Exec Python with grok_server.py
Server->>Claude: MCP protocol ready
Estimated code review effort🎯 4 (Complex) | ⏱️ ~65 minutes Possibly related PRs
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
mcpServers.grok-swarmshape using${CLAUDE_PLUGIN_ROOT}.venvbefore startingsrc/mcp/grok_server.pygrok-swarmMCP entries when plugin MCP is visible1.3.6and add release checks that block machine-local MCP pathsVerification
scripts/bootstrap-runtime.shscripts/mcp-server.shstartup/EOF exitNotes
codex/claude-command-bootstrap-fix.bdtracking is unavailable in this checkout because no beads database is present.Summary by CodeRabbit
Bug Fixes
Chores