Add MCP auto-discovery based on repo tech stack#3
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
sucoder mcp-suggestCLI command for manual discoveryhttps://claude.ai/code/session_01A6XWH93fYXRoUycoR5EvpU