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服务。

패키지
@dsh-cc/command-mcp
호환성
미검증
Harness peer 범위
>=0.1.5-rc.1
Cordis peer 범위
>=0.1.5-rc.1
버전
0.7.1
라이선스
Apache-2.0
최근 업데이트
2026. 9. 16.

설치

검증된 bundle이 없거나 호환성 검사에 실패했습니다. 먼저 저장소 설명을 읽어 주세요. 전체 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

InputResult
/mcpList 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/disconnect to the seam; it cannot configure OAuth or tune transport settings.
  • State is a snapshot — entries reflect the last reported lifecycle transition; transient connecting states may render mid-flight.