agentle.mcp.servers.streamable_http_mcp_server

Production-ready fixes for StreamableHTTPMCPServer using aiohttp

This version fixes the JSON-RPC 2.0 compliance issues and protocol version problems.

Key fixes: 1. Updated protocol version to “2025-06-18” 2. Fixed notification method name to “notifications/initialized” 3. Ensured proper endpoint handling to avoid redirects 4. Improved parameter handling for requests 5. Better error handling and logging

Functions

Field()

!!! abstract "Usage Documentation"

PrivateAttr()

!!! abstract "Usage Documentation"

Classes

Any(*args, **kwargs)

Special type indicating an unconstrained type.

AsyncIterator()

Callable()

ClientTimeout([total, connect, sock_read, ...])

InMemorySessionManager()

Thread-safe in-memory implementation of the SessionManager interface.

MCPServerProtocol()

Abstract base class defining the protocol for MCP servers.

MutableMapping()

A MutableMapping is a generic container for associating key/value pairs.

Sequence()

All the operations on a read-only sequence.

SessionManager()

Abstract base class for MCP session management.

StreamableHTTPMCPServer(*, server_name, ...)

Production-ready Streamable HTTP implementation of MCP server client using aiohttp.

TCPConnector(*[, verify_ssl, fingerprint, ...])

TCP connector.