Skip to content

Add MCP 2025-11-25 tool contracts - #1

Merged
CountableNewt merged 1 commit into
mainfrom
feature/mcp-2025-11-25-contract
Aug 31, 2026
Merged

Add MCP 2025-11-25 tool contracts#1
CountableNewt merged 1 commit into
mainfrom
feature/mcp-2025-11-25-contract

Conversation

@CountableNewt

@CountableNewt CountableNewt commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

What changed

  • Add recursive JSON arguments and JSON Schema models.
  • Add structured tool results with text fallbacks and resource links.
  • Add tool metadata, output schemas, annotations, icons, pagination, and JSON-RPC error data.
  • Retain compatibility initializers and scalar argument access for existing consumers.

Why

MCP-5 needs native structured context, expressive schemas, and agent-readable results without duplicating protocol primitives in MyContextProtocol.

Testing

  • env DEVELOPER_DIR=/Applications/Xcode-beta.app/Contents/Developer swift test
  • 11 tests passed.
  • git diff --check

Consumer migration

Handlers that require scalar strings should read MCPRequestParams.stringArguments; arguments now preserves recursive JSON values.

Adds recursive JSON arguments and schemas, structured results, resource links, tool metadata, pagination, and compatibility adapters for existing Swift consumers.
@CountableNewt
CountableNewt merged commit 7a68a4f into main Aug 31, 2026
1 check passed
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.

1 participant