Reduce noisy MCP missing-capability reports - #174
Open
masnwilliams wants to merge 1 commit into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
why
The previous description explicitly encouraged reports even when an existing tool could complete the task. That inflated missing-capability analytics with fallback, capacity, and client-policy issues.
testing
bun testbun test src/lib/mcp/analytics.test.tsbunx prettier --check src/lib/mcp/analytics.ts src/lib/mcp/analytics.test.tsbun run format:checkstill reports the pre-existingAGENTS.mdformatting warning.Note
Low Risk
Copy-only change to an MCP tool description plus test assertions; no runtime logic or analytics pipeline changes.
Overview
Tightens agent guidance for the
get_more_toolsmissing-capability MCP tool so$mcp_missing_capabilityanalytics reflect real server gaps instead of fallback use, transient errors, capacity limits, or client permission blocks.The tool description in
registerMissingCapabilityToolno longer nudges agents to report when existing tools might work. It now requires checking listed tools first and directs agents to use those tools orsubmit_feedbackfor the excluded cases.The MCP analytics integration test is renamed and extended to assert the published
get_more_toolsdescription includes the new contract language.Reviewed by Cursor Bugbot for commit 63efe4c. Bugbot is set up for automated code reviews on this repo. Configure here.