Skip to content

Add MCP auto-discovery based on repo tech stack#3

Merged
ligon merged 1 commit intomainfrom
claude/repo-specific-mcp-tools-KFVPY
Apr 5, 2026
Merged

Add MCP auto-discovery based on repo tech stack#3
ligon merged 1 commit intomainfrom
claude/repo-specific-mcp-tools-KFVPY

Conversation

@ligon
Copy link
Copy Markdown
Owner

@ligon ligon commented Apr 5, 2026

Scan mirror directories for indicator files (e.g., .github/ → GitHub MCP server, package.json → fetch server) and offer to enable relevant MCP servers before launching the agent. Follows the existing _maybe_run_poetry_auto_install pattern: prompt once, remember in workspace prefs, inject accepted servers into ctx.settings.mcp_servers.

  • New module sucoder/mcp_discovery.py with data-driven McpSuggestion mapping and detect_suggestions() pure function
  • Extend WorkspacePrefs with mcp_discovery()/set_mcp_discovery()
  • Add _maybe_suggest_mcp_servers() to MirrorManager.launch_agent() flow
  • Add sucoder mcp-suggest CLI command for manual discovery
  • Add comprehensive tests for detection, dedup, prefs, and integration

https://claude.ai/code/session_01A6XWH93fYXRoUycoR5EvpU

Scan mirror directories for indicator files (e.g., .github/ → GitHub
MCP server, package.json → fetch server) and offer to enable relevant
MCP servers before launching the agent. Follows the existing
_maybe_run_poetry_auto_install pattern: prompt once, remember in
workspace prefs, inject accepted servers into ctx.settings.mcp_servers.

- New module sucoder/mcp_discovery.py with data-driven McpSuggestion
  mapping and detect_suggestions() pure function
- Extend WorkspacePrefs with mcp_discovery()/set_mcp_discovery()
- Add _maybe_suggest_mcp_servers() to MirrorManager.launch_agent() flow
- Add `sucoder mcp-suggest` CLI command for manual discovery
- Add comprehensive tests for detection, dedup, prefs, and integration

https://claude.ai/code/session_01A6XWH93fYXRoUycoR5EvpU
@ligon ligon merged commit f27b216 into main Apr 5, 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.

1 participant