rust-sdk/crates/rmcp/tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Anish Athalye 98eef440c6
fix: allow empty content in CallToolResult (#681)
Per the MCP spec [1] and the TypeScript schema [2],
`CallToolResult.content` is typed as `ContentBlock[]`, so it is a
required array with no minimum length constraint.

MCP server libraries use such a representation in practice: for example,
FastMCP returns responses with no `structuredContent` and an empty
`content` array when tools return `None`.

[1]: https://modelcontextprotocol.io/specification/2025-11-25/server/tools
[2]: https://github.com/modelcontextprotocol/specification/blob/main/schema/2025-11-25/schema.ts
2026-02-24 11:09:57 +08:00
..
common Implement SEP-1577: Sampling With Tools (#628) 2026-02-06 12:51:26 +01:00
test_deserialization fix(tasks): expose execution.taskSupport on tools (#635) 2026-02-03 19:17:36 -05:00
test_message_schema fix: align task response types with MCP spec (#658) 2026-02-13 17:56:44 -05:00
test_with_js refactor: provide http server as tower service (#228) 2025-05-28 19:21:40 +08:00
test_with_python feat: Add prompt support (#351) 2025-08-21 11:22:19 +08:00
test_client_initialization.rs fix: use the json rpc error from the initialize response and bubble it up to the client (#569) 2026-01-14 11:28:54 -05:00
test_close_connection.rs chore: clean up optional dependencies (#546) 2026-01-13 21:29:35 -05:00
test_completion.rs Implement SEP-1319: Decouple Request Payload from RPC Methods (#617) 2026-01-16 12:16:52 -05:00
test_complex_schema.rs fix(schema): remove AddNullable from draft2020_12 settings (#664) 2026-02-19 11:19:45 -05:00
test_custom_headers.rs feat: add support for custom HTTP headers in StreamableHttpClient (#655) 2026-02-13 12:28:55 -05:00
test_custom_request.rs feat: add support for custom requests (#590) 2025-12-18 12:41:06 -05:00
test_deserialization.rs fix(test): fix tool deserialization error (#68) 2025-03-31 13:05:35 +08:00
test_elicitation.rs Add optional description field to Implementation struct (#649) 2026-02-10 08:36:47 -05:00
test_embedded_resource_meta.rs Spec conformance: meta support and spec updates (#415) 2025-09-04 14:23:36 -04:00
test_handler_wrappers.rs feat: provide blanket implementations for ClientHandler and ServerHandler traits (#609) 2026-01-14 10:53:05 -05:00
test_json_schema_detection.rs refactor: merge cached_schema_for_type into schema_for_type (#581) 2025-12-09 20:04:52 -05:00
test_logging.rs Implement SEP-1319: Decouple Request Payload from RPC Methods (#617) 2026-01-16 12:16:52 -05:00
test_message_protocol.rs Implement SEP-1577: Sampling With Tools (#628) 2026-02-06 12:51:26 +01:00
test_message_schema.rs chore(deps): update schemars requirement from 0.8 to 1.0 (#258) 2025-07-11 11:15:45 +08:00
test_notification.rs Implement SEP-1319: Decouple Request Payload from RPC Methods (#617) 2026-01-16 12:16:52 -05:00
test_progress_subscriber.rs Implement SEP-1319: Decouple Request Payload from RPC Methods (#617) 2026-01-16 12:16:52 -05:00
test_prompt_handler.rs Implement SEP-1319: Decouple Request Payload from RPC Methods (#617) 2026-01-16 12:16:52 -05:00
test_prompt_macro_annotations.rs feat: Add prompt support (#351) 2025-08-21 11:22:19 +08:00
test_prompt_macros.rs Implement SEP-1319: Decouple Request Payload from RPC Methods (#617) 2026-01-16 12:16:52 -05:00
test_prompt_routers.rs fix: sort list_all() output in ToolRouter and PromptRouter for deterministic ordering (#665) 2026-02-17 09:37:17 -05:00
test_resource_link.rs feat: add resource_link support to tools and prompts (#381) 2025-08-29 18:13:38 +08:00
test_resource_link_integration.rs feat: add resource_link support to tools and prompts (#381) 2025-08-29 18:13:38 +08:00
test_sampling.rs feat: enforce SEP-1577 MUST requirements for sampling with tools (#646) 2026-02-07 20:57:00 -05:00
test_streamable_http_priming.rs Implement SEP-1699: Support SSE Polling via Server-Side Disconnect (#604) 2026-01-09 13:22:57 -05:00
test_structured_output.rs fix: allow empty content in CallToolResult (#681) 2026-02-24 11:09:57 +08:00
test_task.rs fix(tasks): avoid dropping completed task results during collection (#639) 2026-02-05 09:00:09 +01:00
test_task_support_validation.rs fix(tasks): expose execution.taskSupport on tools (#635) 2026-02-03 19:17:36 -05:00
test_tool_builder_methods.rs feat: Add support for Tool.outputSchema and CallToolResult.structuredContent (#316) 2025-07-31 16:32:24 +08:00
test_tool_handler.rs Move whole rmcp crate to offcial rust sdk (#44) 2025-03-27 17:33:41 -04:00
test_tool_macro_annotations.rs refactor: refactor tool macros and router implementation (#261) 2025-06-24 04:01:22 +08:00
test_tool_macros.rs fix(schema): remove AddNullable from draft2020_12 settings (#664) 2026-02-19 11:19:45 -05:00
test_tool_result_meta.rs feat(rmcp): add optional _meta to CallToolResult, EmbeddedResource, and ResourceContents (#386) 2025-09-02 13:47:09 -04:00
test_tool_routers.rs fix: sort list_all() output in ToolRouter and PromptRouter for deterministic ordering (#665) 2026-02-17 09:37:17 -05:00
test_with_js.rs Implement SEP-1699: Support SSE Polling via Server-Side Disconnect (#604) 2026-01-09 13:22:57 -05:00
test_with_python.rs feat!: remove SSE transport support (#562) 2025-12-01 20:40:13 -05:00