fix(mcp): align recipe, docs, and transport log with current API#831
Merged
Conversation
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
Aligns the MCP recipe, MCP server docs, and the HTTP transport startup log with the current public API and versions. Documentation and one log-string change only; no protocol surface, wire format, schema, or runtime behavior changes.
Scope
docs/SOLUTIONS/mcp-tool-call-receipts.mddocs/specs/INTEROP.mdpackages/mcp-server/README.mdpackages/mcp-server/src/http-transport.ts(startup log string only)Explicitly not changed: tool schemas, the
_metacarrier format, transport behavior, any package exports.Changes
attachReceiptToMeta,extractReceiptFromMetaAsync, andcomputeReceiptRef, with the current single-options-objectissue()signature. The attach example preserves the full MCP result (content,structuredContent,isError). The short snippet stays minimal and points production tool-call facts to registered extension/profile usage throughextensions; the runnable example is referenced as the source of truth. The recipe's dependency list and install command match the snippet imports, and the stated outcome matches what the minimal record binds.docs/specs/INTEROP.mdstates the correct MCP tool count (5) and enumerates the tools.packages/mcp-server/README.mdsample context uses the current0.15.0server version and2025-11-25protocol version, and clarifies that the schema-declared structured-output_metaaudit block is separate from the top-level MCP_metareceipt carrier.MCP_PROTOCOL_VERSIONconstant instead of a hardcoded string.Validation
tsc --noEmitfor@peac/mcp-serverpasses.