Skip to content

feat(cli): add mcp enable and disable commands#1975

Closed
sherman-yang wants to merge 3 commits intoQwenLM:mainfrom
sherman-yang:mcp-enable-disable
Closed

feat(cli): add mcp enable and disable commands#1975
sherman-yang wants to merge 3 commits intoQwenLM:mainfrom
sherman-yang:mcp-enable-disable

Conversation

@sherman-yang
Copy link

Fixes #1965

Summary

  • add qwen mcp enable to remove a server from mcp.excluded
  • add qwen mcp disable to add a server to mcp.excluded
  • support --scope user|project in both commands
  • register both commands under qwen mcp
  • add unit tests for command behavior
  • document both commands in MCP docs

Testing

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

sherman-yang and others added 2 commits February 26, 2026 23:32
- add qwen mcp enable <name> to remove servers from mcp.excluded
- add qwen mcp disable <name> to add servers to mcp.excluded
- register new subcommands and add unit tests

Refs QwenLM#1965

Co-authored-by: Codex <noreply@openai.com>
- add usage and examples for qwen mcp enable
- add usage and examples for qwen mcp disable
- explain that both commands manage mcp.excluded by scope

Refs QwenLM#1965

Co-authored-by: Codex <noreply@openai.com>
- replace namespace-style vi/yargs types with explicit Mock/Argv type imports
- keep behavior unchanged while making package typecheck pass

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

LaZzyMan commented Mar 6, 2026

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.

@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.

Enable/disable MCP server

2 participants