agentle.mcp.servers.stdio_mcp_serverΒΆ

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

This module provides a client implementation for interacting with MCP servers over standard input/output streams. It enables connection management, tool discovery, resource querying, and tool execution through stdin/stdout communication.

The implementation follows the MCPServerProtocol interface and uses asyncio streams for communication.

Functions

Field()

!!! abstract "Usage Documentation"

PrivateAttr()

!!! abstract "Usage Documentation"

TypedDict(typename[, fields, total])

A simple typed namespace.

override(method, /)

Indicate that a method is intended to override a method in a base class.

Classes

Any(*args, **kwargs)

Special type indicating an unconstrained type.

Callable()

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.

StdioMCPServer(*, server_name, command[, ...])

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