dsh-cc/dsh-cc--packages-interaction-command-mcp ↗★ 1
@dsh-cc/command-mcp
Human-facing slash command to list and drive MCP connections 适合管理MCP服务器连接的用户;依赖可选的mcpConnections服务。
Install
This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗
README
Read the full README ↗@dsh-cc/command-mcp
English | 中文
Human-facing /mcp command: list the registered MCP servers and their connection state, or reconnect/disconnect one by name. It reads and drives the optional mcpConnections service that an mcp-client instance mounts. The plugin registers one global command through ctx.commands.
Command contract
| Input | Result |
|---|---|
/mcp | List each registered server's name, connection state, tool count (when known), and OAuth-auth requirement. |
/mcp reconnect | Tear down and establish a fresh connection for the named server. |
/mcp disconnect | Stop the connection and unregister its tools for the named server. |
/mcp | Print usage text. |
All forms read/drive the optional mcpConnections seam. A composition without an mcp-client reports the seam gracefully. No form consumes model tokens.
Composition
The producer injects commands. A custom app mounts mcp-client (which provides the seam) plus this plugin:
- id: mcp-client
name: '@dsh-cc/mcp-client'
- id: command-mcp
name: '@dsh-cc/command-mcp'
The mcpConnections seam is discovered via ctx at run time; it is not injected, so the command loads even when mcp-client is absent (and then reports the missing seam).
Model Experience
The slash input and the direct outputs are absent from model requests and consume no model tokens. Outputs are reads/drives over the connection registry; presentation text is never logged.
Known Limitations and Deferred Work
- Send/disconnect semantics are mcp-client-owned — the command forwards
reconnect/disconnectto the seam; it cannot configure OAuth or tune transport settings. - State is a snapshot — entries reflect the last reported lifecycle transition; transient
connectingstates may render mid-flight.