Repository navigation
Conversation
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: 07f5c0ce-9c14-46e1-8437-a30d09547993) |
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.


MCP 2026-07-28 wire - class
header-add(header-add runbook)Plan:
MCP_2026_WIRE_MIGRATION_PLAN_2026-10-07.md(section 3 = header-add runbook, section 4 = the shim as bridge)Deprecation deadline: the old wire dies 2027-07-28.
Branch:
mcp-2026-wire-header-add-> basemain(no push to the default branch).Census row: era
unknown/ classheader-add(census 2026-10-07); the local before-row below is the audit of the reconstructed default branch.Runbook steps applied
"mcp>=1.0.0"->"mcp>=2.0.0"inpyproject.toml(a real mcp dependency line existed - none invented), packaging include list extended withmcp2026_shim.pyso the vendored shim ships in the wheel.mcp2026_shim.pyvendored (stdlib, 665 lines) - the transport middleware that reads/validatesMcp-Method+Mcp-Name, injectsparams._meta.protocolVersion = \"2026-07-28\"and never emitsMcp-Session-Id.from mcp.server.fastmcp import FastMCP->from mcp.server.mcpserver import MCPServer as FastMCP- required by mcp 2.x (FastMCP was renamed MCPServer;mcp.server.fastmcpraisesModuleNotFoundErrorby design), otherwise the pin would not import.headers N/A at runtime;server.pycarries the migration note block plus anhttp_app()enable path (ShimASGI(mcp.streamable_http_app(json_response=True))) for when the server is exposed over HTTP.MIGRATION_NOTE.md: class, transport reality, steps, verify command, before/after/control rows, follow-ups.Verify (run locally before merging this PR)
PYTHONPATH= /opt/homebrew/bin/python3.11 ~/clawd/mcp_wire_audit.py audit --local explainability-report-mcpAfter-rows are note-text-driven until post-merge re-audit. The scanner excludes its own shim (
SELF_FILES) and does not scan.md, soprotocol-2026-07-28/mcp-method-header/mcp-name-header/server-discoverin the after record are read from the migration-note text, andsession-idthere is prose (the shim strips that header) - the control run, which removes only that note block, shows nosession-id. Runtime evidence for the wire is themcp>=2.0.0SDK pin (2.3.0 speaks 2026-07-28) + the vendored shim at the ingress;mcp>=2.0.0alone is not a wire signal for this scanner.Files:
MIGRATION_NOTE.md,mcp2026_shim.py,pyproject.toml,server.pyMeasurement, not certification - re-audit after merge with the command above, and run the live
probe of plan section 6.5 before anyone quotes
migration: none.Note
Medium Risk
Protocol and dependency major-version changes affect all MCP clients; HTTP shim behavior is new and stdio path does not apply header rules until HTTP is used.
Overview
Migrates the explainability MCP server toward the 2026-07-28 wire (class
header-add): bumpsmcpto>=2.0.0, switches the server import toMCPServer(2.x rename fromFastMCP), and vendorsmcp2026_shim.pyso the wheel can enforceMcp-Method/Mcp-Name, injectparams._meta.protocolVersion, strip session headers, and bridge legacy handshake traffic.server.pykeeps stdio viamcp.run()unchanged for headers; it addshttp_app()wrappingstreamable_http_app(json_response=True)inShimASGIfor HTTP deployments.MIGRATION_NOTE.mddocuments verify steps, audit caveats, and follow-ups (static manifests not updated in this PR).Reviewed by Cursor Bugbot for commit 3f9673e. Bugbot is set up for automated code reviews on this repo. Configure here.