Module response

Source
Expand description

Response helpers for dual-format MCP responses

This module provides utilities for creating MCP responses that support both unstructured content (JSON as text) and structured content (direct JSON access) according to the MCP 2025-06-18 specification.

Functionsยง

create_dual_response
Create a dual-format response containing both unstructured and structured content
create_error_response
Create an error response with dual format