agentle.mcp.servers.sse_mcp_serverΒΆ
Server-Sent Events (SSE) implementation of the Model Context Protocol (MCP) server client.
FIXED VERSION for aiohttp with proper SSE protocol implementation: - Correct endpoint discovery mechanism - Proper sessionId handling in POST requests (FIXED: No duplicate sessionId parameters) - Fixed SSE parsing for aiohttp - Connection state management fixes - Proper protocol implementation matching the Node.js server
Functions
|
!!! abstract "Usage Documentation" |
|
!!! abstract "Usage Documentation" |
|
Parse a query given as a string argument. |
|
Join a base URL and a possibly relative URL to form an absolute interpretation of the latter. |
|
Parse a URL into 6 components: <scheme>://<netloc>/<path>;<params>?<query>#<fragment> |
Classes
|
Special type indicating an unconstrained type. |
|
|
|
|
|
Thread-safe in-memory implementation of the SessionManager interface. |
|
Abstract base class defining the protocol for MCP servers. |
|
A MutableMapping is a generic container for associating key/value pairs. |
|
Server-Sent Events (SSE) implementation of the MCP (Model Context Protocol) server client. |
|
All the operations on a read-only sequence. |
|
Abstract base class for MCP session management. |