Skip to content

Add MCP parity features: request metadata, tool schema, middleware#7

Closed
0xeb wants to merge 2 commits intomainfrom
pr/mcp-parity-20251126
Closed

Add MCP parity features: request metadata, tool schema, middleware#7
0xeb wants to merge 2 commits intomainfrom
pr/mcp-parity-20251126

Conversation

@0xeb
Copy link
Copy Markdown
Owner

@0xeb 0xeb commented Nov 27, 2025

Summary

  • Add optional request metadata to Context (request_id, session_id, meta dict)
  • Add tool schema exclude/prune support for parameter hiding
  • Refine middleware tool injection to return structured JSON
  • Add MCP-shaped middleware tests for prompt/resource injection
  • Fix test port conflicts for parallel execution

Test plan

  • All 38 fastmcpp tests passing locally
  • CI passes on this PR

Comprehensive test coverage matching Python's test_server_interactions.py:
- TestTools, TestToolParameters, TestOutputSchema, TestContentTypes
- TestResource, TestResourceTemplates, TestResourceAnnotations
- TestPrompts, TestPromptVariations, TestMeta
- TestCapabilities, TestProgressAndNotifications, TestRootsNotification
- TestCancelledNotification, TestLogging, TestImageContent
- TestEmbeddedResource, TestToolInputValidation, TestResourceSubscribe
- TestCompletionEdgeCases, TestBatchOperations, TestTransportEdgeCases
- Unicode, pagination, large data, error handling, and edge cases

Also fixes iterator dereference bug in client.hpp when accessing
structuredContent without registered outputSchema.
@0xeb 0xeb force-pushed the pr/mcp-parity-20251126 branch 4 times, most recently from a1615a6 to 03bab93 Compare November 27, 2025 04:25
Squashed commits from feature/mcp-parity-20251126:

- Add optional request metadata to Context (request_id, session_id, meta)
- Add tool schema exclude/prune support for parameter hiding
- Refine middleware tool injection to return structured JSON
- Add MCP-shaped middleware tests for prompt/resource injection
- Fix test port conflicts for parallel execution

Test coverage: 38/38 passing
@0xeb 0xeb force-pushed the pr/mcp-parity-20251126 branch from 03bab93 to 6a978b1 Compare November 27, 2025 07:27
@0xeb
Copy link
Copy Markdown
Owner Author

0xeb commented Nov 27, 2025

Closing as superseded - these changes were included in the formatting PR (#8) which was created from this branch and merged to main.

@0xeb 0xeb closed this Nov 27, 2025
@0xeb 0xeb deleted the pr/mcp-parity-20251126 branch November 28, 2025 17:07
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