Skip to main content

Module http

Module http 

Source
Expand description

HTTP transport implementation for MCP

Module provides HTTP-based transport for MCP communication, including Server-Sent Events (SSE) for real-time communication.

§Feature Requirements

  • Basic HTTP transport: Requires “http” feature
  • Server-Sent Events: Requires both “http” and “sse” features
# Cargo.toml
[dependencies]
prism-mcp-rs = { version = "3", features = ["http", "sse"] }

Structs§

HttpClientTransport
HTTP transport for MCP clients
HttpServerTransport
HTTP transport for MCP servers
MtlsClientConfig
PEM-encoded client identity and trust root for mutual TLS.
MtlsServerConfig
PEM-encoded server identity and client CA used to require client certificates.