Module adapter

Module adapter 

Source
Expand description

HTTP type conversion utilities for Lambda MCP requests

This module provides comprehensive conversion between lambda_http and hyper types, enabling seamless integration between Lambda’s HTTP model and the SessionMcpHandler.

Functions§

extract_mcp_headers
Extract MCP-specific headers from Lambda request context
hyper_to_lambda_response
Convert hyper::Response to lambda_http::Response
hyper_to_lambda_streaming
Convert hyper::Response to lambda_http streaming response
inject_mcp_headers
Add MCP-specific headers to Lambda response
lambda_to_hyper_request
Convert lambda_http::Request to hyper::Request