feat: Add project-specific MCP server detection#2
Open
gvago wants to merge 2 commits into
Open
Conversation
added 2 commits
September 10, 2025 09:01
- Add readProjectMcpConfig() to read .mcp.json files - Display project servers in UI with folder icon and read-only label - Filter project servers from toggle operations (read-only) - Sort project servers at bottom of list - Update error messages to include .mcp.json - Add disabled property to ServerToggleItem type Resolves: Shows complete MCP server state across global and project configs while keeping project servers managed by Claude Code.
- Remove disabled state from project servers in UI - Allow navigation to project servers with arrow keys - Enable toggling project servers with spacebar - When selected: copy project server to global ~/.claude.json - When unselected: remove from global config (stays in .mcp.json) - Show visual indicator when project server is active globally - Project .mcp.json files are never modified (read-only source) This provides complete MCP server management capabilities: - Global servers: full toggle between active/disabled states - Project servers: toggle between inactive/active-globally states - Unified interface for all MCP server types
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.
Summary
Adds support for detecting and displaying project-specific MCP servers from
.mcp.jsonfiles alongside global servers, providing users with a complete view of their MCP server configuration.Changes Made
Core Functionality
readProjectMcpConfig(): Reads.mcp.jsonfrom current working directorygetAllMcpServers(): Now returns{active, disabled, project}instead of just{active, disabled}UI Improvements
.mcp.jsonalongside other config filesImplementation Details
disabledproperty toServerToggleIteminterfaceTesting
Tested in a real project with
.mcp.jsoncontaining:{ "mcpServers": { "supabase": { "command": "npx", "args": ["-y", "@supabase/mcp-server-supabase@latest", "--project-ref=..."] } } }Result: Successfully displays all servers with clear visual distinction:
Benefits
Use Case
This addresses the common scenario where developers have:
Now users get a unified view while respecting the appropriate management boundaries.
Resolves #1