feat(cli): add read-only /mcp status command#876
Open
fortissolucoescontato-bit wants to merge 3 commits into
Open
feat(cli): add read-only /mcp status command#876fortissolucoescontato-bit wants to merge 3 commits into
fortissolucoescontato-bit wants to merge 3 commits into
Conversation
added 3 commits
July 17, 2026 13:57
…th sanitization, and expanded credential redaction - Switch /mcp from defineCommand to defineCommandWithArgs for subcommand parsing - Add /mcp unknown subcommand handling that shows inline help with usage - Add /mcp list to help banner (Tips section) - Implement proper cross-platform sanitizePath replacing home dir with ~ - Add URL credentials, Basic auth, github_pat_, access_token, refresh_token, client_secret, passwd, and Authorization header sanitization patterns - Remove unused hashMcpConfig and getConnectedMCPClientKeys exports - Add parser integration tests, path sanitization tests, lifecycle tests, and expanded sanitization pattern tests - Improve JSDoc for McpClientConnectionInfo and getMCPClientConnectionInfo
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 a read-only
/mcpcommand for inspecting configured MCP servers and the current runtime connection state.The implementation reuses the existing MCP configuration loader and runtime state. It does not introduce a second MCP client, modify MCP configuration files, or initiate connections when rendering the status.
Commands
/mcp/mcp listUnknown subcommands display inline usage information.
Output
The command displays:
When no servers are configured, it provides a short example using the existing
.agents/mcp.jsonformat.Security
.agents/mcp.json;~;Implementation
common;/mcpcommand handler and formatter incli;/mcpin the command registry and slash-command autocomplete;/mcpin the public README.Verification
bun run ci): PASS;git diff --check: PASS.Scope
This PR intentionally does not implement:
/mcp add;/mcp remove;/mcp reload;/mcp inspect.Those can be considered separately after the read-only status command is reviewed.