modelcontextprotocol / modelcontextprotocol/inspector
CLI has no write path for the server catalog (add/remove/edit servers)
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 10.9k
- Forks
- 1.5k
- Avg merge
- 6h 17m
- Merged PRs (30d)
- 151
Description
Which client?
CLI
The problem
The web client's server-management UI can add, edit, and remove server entries and persist them to the shared config file, but the CLI only reads the existing catalog (clients/cli/src/handlers/servers-list.ts) -- there's no mcp-inspector --cli servers add/remove/edit equivalent. Setting up a new environment (CI, a fresh machine, a container image) currently means hand-editing the config JSON, or opening the web UI once just to register servers.
Solution you have in mind (optional)
Add servers add|remove|edit subcommands to the CLI that read/write the same config file the web and TUI clients use, matching the existing server-file format.
Alternatives or workarounds you have tried
No response
Already built it locally?
No response
Before you submit
- I searched existing issues and this is not a duplicate.
- This is a request for the Inspector itself, not for the MCP specification or an SDK.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with clients/cli/src/handlers/servers-list.ts to understand how the CLI reads the catalog, then trace the shared config file usage in the web and TUI clients. Add servers add, remove, and edit commands that preserve the existing server-file format; done means all three operations persist changes that the other clients can read.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100