Commit 43e5e64
authored
MCP parity: request metadata and 165 interaction tests (#11)
* Add 165 server interaction tests for Python parity
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.
* Add request meta fields to Context with coverage
* Add optional request metadata to Context and tests
* Fix UTF-16 encoding in context_meta.cpp
* Fix typed struct access in InitializeResult tests
The InitializeResult type is a typed struct, not JSON - use proper
struct field access instead of JSON-style accessor methods.1 parent 5b3522a commit 43e5e64
2 files changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4168 | 4168 | | |
4169 | 4169 | | |
4170 | 4170 | | |
| 4171 | + | |
4171 | 4172 | | |
4172 | 4173 | | |
4173 | 4174 | | |
| |||
0 commit comments