modelcontextprotocol / modelcontextprotocol/inspector

CLI has no write path for the server catalog (add/remove/edit servers)

Open
#2,433 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement v2
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.