Add hosted MCP tool selectors - #318
Draft
hmishra2250 wants to merge 4 commits into
Draft
Conversation
hmishra2250
force-pushed
the
feature/mcp-tool-selector-context-optimization
branch
from
July 17, 2026 06:32
455b844 to
8937469
Compare
hmishra2250
force-pushed
the
feature/mcp-tool-selector-context-optimization
branch
from
July 17, 2026 07:35
8937469 to
8041d1f
Compare
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
?tools=.@core-v1:firecrawl_search,firecrawl_scrape,firecrawl_parse@full-v1: the immutable 26-tool v1 set (it cannot drift with the live registry)/v2/mcpand/v2/mcp-oauthdefaults unchanged./v2/mcp-search.-32602-32003Instruction-copy isolation
Shipping instructions remain byte-identical by default, including
/v2/mcp-oauthwhile the OpenAI metadata surface is frozen. The capability-honest candidate is experiment-only:MCP_OPTIMIZED_INSTRUCTIONS_ENABLED=true/v2/mcponlyThe auth hook runs before FastMCP parses the JSON-RPC body, so selector transport errors are contract-tested at the HTTP/JSON-RPC boundary.
Current evidence for this PR head
Head:
8041d1f785f77f5d7981b1a36db7c157edc139adValidation evidence:
1.2.0ae509af4600be3a69f8fa8556ccc14dd508ea6a9c0b7a80870751efb2430165083/83passednpm run typechecknpm run lintnpm run buildnpm run check:hosted-mcp-contract37/37passedSelector behavior covered by tests:
/v2/mcp?tools=@core-v1lists only the core preset for anonymous keyless sessions.?tools=selection replaces defaults and gates direct calls./v2/mcp-oauth?tools=@full-v1preserves the immutable 26-tool v1 set./v2/mcp-searchrejects selector query parameters.Mandatory retained-branch release rule
This Train 3 MCP-server draft intentionally targets the unmerged Train 2 parent branch
feature/anthropic-mcp-search-profilefrom PR #317. After #317 merges, retarget this PR tomain, rebase/update the branch, rerun required CI, and verify the PR diff contains only this child Train 3 delta. Do not merge this child PR while its base is the retained feature branch; doing so would update the feature branch rather thanmainand bypass the intended release boundary.Draft only. Do not merge, deploy, or close from this PR directly. Himadri reviews before merge.