agentle.mcp.servers.sse_mcp_serverΒΆ

Server-Sent Events (SSE) implementation of the Model Context Protocol (MCP) server client.

This module provides a client implementation for interacting with MCP servers over Server-Sent Events (SSE). It enables connection management, tool discovery, resource querying, and tool execution through SSE for server-to-client streaming and HTTP POST for client-to-server communication.

The implementation follows the MCPServerProtocol interface and uses httpx for asynchronous HTTP communication with SSE support.

Functions

Field()

!!! abstract "Usage Documentation"

PrivateAttr()

!!! abstract "Usage Documentation"

Classes

Any(*args, **kwargs)

Special type indicating an unconstrained type.

AsyncIterator()

Callable()

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.

SSEMCPServer(*, server_name, server_url[, ...])

Server-Sent Events (SSE) implementation of the MCP (Model Context Protocol) server client.

Sequence()

All the operations on a read-only sequence.

SessionManager()

Abstract base class for MCP session management.