Skip to content

API Reference parrot.mcp.simple_server

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.mcp.simple_server

View source

Alias AbstractTool

Re-exported from parrot.tools.abstract.AbstractTool.

Alias AbstractToolkit

Re-exported from parrot.tools.toolkit.AbstractToolkit.

Alias AuthMethod

Re-exported from parrot.mcp.config.AuthMethod.

Alias HttpMCPServer

Re-exported from parrot.mcp.server.HttpMCPServer.

Alias MCPResource

Re-exported from parrot.mcp.resources.MCPResource.

Alias MCPServerConfig

Re-exported from parrot.mcp.server.MCPServerConfig.

Class SimpleMCPServer

A simplified MCP Server implementation for exposing a single tool or function.

This class handles the boilerplate of setting up an MCP server with a specific transport (HTTP or SSE) and authentication method, serving a single capability.

Parameter Type Default Description
tool Union[AbstractTool, AbstractToolkit, str, Any, List[Union[AbstractTool, Any, str]]]
name str 'SimpleMCPServer'
host str 'localhost'
port int 9090
transport str 'http'
auth_method str 'none'
api_key Optional[str] None
ssl_cert Optional[str] None
ssl_key Optional[str] None
socket_path Optional[str] None
**kwargs {}

Method SimpleMCPServer.register_resource

Register a resource to be served.

register_resource(resource: MCPResource, handler: Callable[[str], Awaitable[str | bytes]])

Parameter Type Default Description
resource MCPResource
handler Callable[[str], Awaitable[str | bytes]]

Method SimpleMCPServer.setup

Initialize the MCP server components.

setup()

Method SimpleMCPServer.run

Run the server (blocking).

run()

Method SimpleMCPServer.start

Start the server asynchronously (for embedding).

start()

Alias SseMCPServer

Re-exported from parrot.mcp.server.SseMCPServer.

Alias StdioMCPServer

Re-exported from parrot.mcp.transports.stdio.StdioMCPServer.

Alias UnixMCPServer

Re-exported from parrot.mcp.transports.unix.UnixMCPServer.

Alias load_quic

Re-exported from parrot.mcp._quic.load_quic.

Alias quic_attr

Re-exported from parrot.mcp._quic.quic_attr.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally