Skip to content

fix(cli): only check enabled servers in mcp list#1976

Closed
sherman-yang wants to merge 2 commits intoQwenLM:mainfrom
sherman-yang:mcp-list-disabled-only
Closed

fix(cli): only check enabled servers in mcp list#1976
sherman-yang wants to merge 2 commits intoQwenLM:mainfrom
sherman-yang:mcp-list-disabled-only

Conversation

@sherman-yang
Copy link
Copy Markdown

Fixes #1971

Summary

  • apply mcp.allowed / mcp.excluded filters before probing server connectivity
  • run connectivity checks only for enabled servers
  • show disabled servers with status text disabled
  • add tests for excluded and non-allowed server behavior in mcp list
  • document the disabled status behavior in MCP docs

Testing

  • npm run test --workspace=packages/cli -- src/commands/mcp/list.test.ts

sherman-yang and others added 2 commits February 26, 2026 23:34
- apply mcp.allowed and mcp.excluded filters before connectivity checks
- skip connection tests for disabled servers
- show disabled servers with status text "disabled"
- add tests for excluded and non-allowed server behavior

Refs #1971

Co-authored-by: Codex <noreply@openai.com>
- document that disabled MCP servers are shown as "disabled"
- document that disabled servers are not connectivity-checked
- add a disabled server line to the list output example

Refs #1971

Co-authored-by: Codex <noreply@openai.com>
@LaZzyMan
Copy link
Copy Markdown
Collaborator

LaZzyMan commented Mar 6, 2026

@sherman-yang Thank you for your contribution! This feature is already supported in the new version of the MCP management TUI, and I will close this draft. #1831

@LaZzyMan LaZzyMan closed this Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

when list MCP server, still test the disabled MCP server

2 participants