Skip to content

feat: add MCP tools management commands#297

Merged
xizhibei merged 10 commits intomainfrom
feat/disable-tools
May 8, 2026
Merged

feat: add MCP tools management commands#297
xizhibei merged 10 commits intomainfrom
feat/disable-tools

Conversation

@xizhibei
Copy link
Copy Markdown
Contributor

@xizhibei xizhibei commented Apr 28, 2026

Summary

  • add MCP tool enable/disable commands
  • add interactive selection tests

Validation

  • pnpm typecheck
  • pnpm test:unit -- src/commands/mcp/tools.test.ts

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 28, 2026

Warning

Rate limit exceeded

@xizhibei has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 44 minutes and 35 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 35b32c2d-104e-4d51-a4d6-9ef4e0de3326

📥 Commits

Reviewing files that changed from the base of the PR and between b97a2ca and 13e510e.

📒 Files selected for processing (47)
  • src/auth/sdkOAuthClientProvider.test.ts
  • src/auth/sdkOAuthClientProvider.ts
  • src/commands/inspect/inspect.ts
  • src/commands/mcp/add.ts
  • src/commands/mcp/enable.test.ts
  • src/commands/mcp/enable.ts
  • src/commands/mcp/index.ts
  • src/commands/mcp/install.test.ts
  • src/commands/mcp/install.ts
  • src/commands/mcp/remove.ts
  • src/commands/mcp/tokens.ts
  • src/commands/mcp/tools.test.ts
  • src/commands/mcp/tools.ts
  • src/commands/mcp/uninstall.test.ts
  • src/commands/mcp/uninstall.ts
  • src/commands/mcp/update.ts
  • src/commands/mcp/utils/connectionHelper.ts
  • src/commands/shared/baseConfigUtils.test.ts
  • src/commands/shared/baseConfigUtils.ts
  • src/commands/shared/connectionHelper.test.ts
  • src/commands/shared/connectionHelper.ts
  • src/config/configLoader.test.ts
  • src/config/configManager.ts
  • src/config/configWatcher.ts
  • src/config/mcpConfigManager.ts
  • src/core/capabilities/capabilityAggregator.test.ts
  • src/core/capabilities/capabilityAggregator.ts
  • src/core/capabilities/lazyLoadingOrchestrator.ts
  • src/core/capabilities/metaToolProvider.test.ts
  • src/core/capabilities/metaToolProvider.ts
  • src/core/protocol/requestHandlers-disabledTools.test.ts
  • src/core/protocol/requestHandlers.ts
  • src/core/server/disabledTools.test.ts
  • src/core/server/disabledTools.ts
  • src/core/tools/handlers/serverManagementHandler.test.ts
  • src/core/tools/handlers/serverManagementHandler.ts
  • src/core/tools/internal/adapters/management/managementAdapter.ts
  • src/core/tools/internal/adapters/managementAdapter.test.ts
  • src/core/types/transport.ts
  • src/transport/http/routes/apiRoutes.test.ts
  • src/transport/http/routes/inspectRoutes.ts
  • src/transport/http/routes/toolRoutes.ts
  • src/types/smol-toml.d.ts
  • test/e2e/commands/inspect.test.ts
  • test/e2e/commands/mcp/mcp-enable-disable.test.ts
  • test/e2e/commands/run.test.ts
  • test/e2e/fixtures/tty-cli-wrapper.js
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/disable-tools

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Comment thread src/commands/mcp/tools.ts Fixed
@yanickxia
Copy link
Copy Markdown

It looks great. Is there a planned merge time?

Comment thread src/commands/mcp/tools.ts Fixed
@xizhibei
Copy link
Copy Markdown
Contributor Author

xizhibei commented May 7, 2026

It looks great. Is there a planned merge time?

Later this week.

@xizhibei xizhibei force-pushed the feat/disable-tools branch from 99875c1 to 0dc3f0a Compare May 7, 2026 16:12
xizhibei added 9 commits May 8, 2026 21:54
… handling

- Added polling mechanism in ConfigWatcher to fallback when file watching fails.
- Refactored config change detection logic into a separate method for clarity.
- Enhanced error handling in McpConfigManager to stop watching on errors.
- Updated MetaToolProvider to use new error handling for disabled tools.
- Improved tests for disabled tools to ensure proper error messages and behavior.
- Added integration tests for enabling and disabling tools, ensuring hot reload functionality.
…template-first precedence and updating related commands
@xizhibei xizhibei force-pushed the feat/disable-tools branch from 0dc3f0a to 7167230 Compare May 8, 2026 13:54
@xizhibei xizhibei merged commit 8da484a into main May 8, 2026
14 of 15 checks passed
@xizhibei xizhibei deleted the feat/disable-tools branch May 8, 2026 14:17
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.

2 participants