agentle.mcp.serversΒΆ

MCP Servers Package

This package provides server implementations for the Model Context Protocol. It includes protocol definitions and concrete implementations for different server types (e.g., HTTP, WebSocket, SSE) that allow communication with external tools and resources.

Classes

MCPServerProtocol()

Abstract base class defining the protocol for MCP servers.

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

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

StreamableHTTPMCPServer(*, server_name, ...)

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

Modules

mcp_server_protocol

MCP Server Protocol Module

sse_mcp_server

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

stdio_mcp_server

Production-ready Stdio implementation of the Model Context Protocol (MCP) server client.

streamable_http_mcp_server

Production-ready fixes for StreamableHTTPMCPServer using aiohttp