csharp-sdk/tests/ModelContextProtocol.Tests/Server
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Copilot 4b241e7ddc
Align error handling documentation with SEP-1303 (#967)
* Initial plan

* Update documentation to clarify error handling per SEP-1303

- Updated McpErrorCode.InvalidParams documentation to clarify it's for protocol-level errors (malformed requests, unknown primitives)
- Updated CallToolResult documentation to distinguish between tool execution errors and protocol errors
- Updated McpProtocolException documentation to emphasize it's only for protocol-level errors
- Added test to verify input validation errors are returned as tool execution errors (IsError=true)
- Implementation already correctly handles input validation as tool execution errors per SEP-1303

Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
2025-11-17 10:01:30 -05:00
..
EmptyCollectionTests.cs Fix: Synthesize handlers for empty tool/prompt/resource collections (#865) 2025-10-16 09:57:50 -04:00
McpMetaAttributeTests.cs Add McpMetaAttribute for attaching metadata to tools, prompts, and resources (#857) 2025-10-17 09:02:54 -04:00
McpServerDelegatesTests.cs Enable netfx testing. (#588) 2025-07-08 18:50:37 +03:00
McpServerExtensionsTests.cs Audit protocol types (#892) 2025-11-04 15:41:10 -08:00
McpServerLoggingLevelTests.cs Decouple Handlers and Collections from protocol types (#765) 2025-09-24 09:42:03 -05:00
McpServerPromptTests.cs Add net10.0 assets and run some fixers (#875) 2025-10-15 15:27:43 -04:00
McpServerResourceTests.cs Audit protocol types (#892) 2025-11-04 15:41:10 -08:00
McpServerTests.cs Align error handling documentation with SEP-1303 (#967) 2025-11-17 10:01:30 -05:00
McpServerToolNameValidationTests.cs Implement SEP-986: Specify Format for Tool Names (#945) 2025-11-06 08:45:02 -05:00
McpServerToolTests.cs Add net10.0 assets and run some fixers (#875) 2025-10-15 15:27:43 -04:00