Skip to content

API Reference parrot.mcp.config

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

parrot.mcp.config

View source

Class AgentMCPMountConfig

Configuration for mounting AI-Parrot agents as per-agent MCP servers.

FEAT-477 §2 Data Models / §3 Module 2. One AgentMCPMount is built from one of these per BotManager; each configured agent gets its own Streamable HTTP endpoint at {base_path}/{agent_name}.

Fields:

Field Type Default Description
agents list[str] Agent names to mount, resolved via BotManager.get_bots().
base_path str '/mcp/agents' Route prefix under which each agent's endpoint is registered ({base_path}/{agent_name}).
aggregate_enabled bool False Whether to also publish an optional aggregate /mcp endpoint exposing every agent's tools as {agent}__{tool}. The aggregate is naming sugar only — both name forms resolve to the same PBAC resource.
default_tenant_id str | None None Single-tenant fallback. This is the only live tenant-resolution path until navigator-auth (FEAT-095) emits a tenant claim (spec §8).
resource_server_url str RFC 8707 audience URL for this mount. Must be an absolute URI.
max_result_tokens int 25000 Per-mount default result-size cap, under the ~30,000-token connector ceiling.
call_deadline_seconds float 240.0 Per-call deadline, below the 300s client ceiling.

Class AuthMethod

Authentication method for MCP server.

Class MCPServerConfig

Configuration for MCP server.

Parameter Type Default Description
name str 'ai-parrot-mcp-server'
version str '1.0.0'
description str 'AI-Parrot Tools via MCP Protocol'
transport str 'stdio'
host str 'localhost'
port int 8080
socket_path Optional[str] None
allowed_tools Optional[List[str]] None
blocked_tools Optional[List[str]] None
log_level str 'INFO'
auth_method AuthMethod AuthMethod.NONE
api_key_header str 'X-API-Key'
api_key_store Optional[Any] None
oauth2_issuer_url Optional[str] None
oauth2_introspection_endpoint Optional[str] None
oauth2_client_id Optional[str] None
oauth2_client_secret Optional[str] None
oauth2_resource_server_url Optional[str] None
enable_oauth bool False
oauth_scope Optional[List[str]] None
oauth_token_ttl int 3600
oauth_code_ttl int 600
oauth_allow_dynamic_registration bool True
oauth_static_clients Optional[List[Dict[str, Any]]] None
base_path str '/mcp'
events_path Optional[str] None
allowed_origins Optional[List[str]] None
allow_any_origin bool False
session_ttl int 3600
event_buffer_size int 1000
max_sessions int 1000
max_streams_per_session int 64
quic_cert_path Optional[str] None
quic_key_path Optional[str] None
quic_serialization str 'msgpack'
quic_enable_0rtt bool True
quic_max_datagram_size int 65536
quic_idle_timeout float 60.0
quic_webtransport_path str '/mcp'
ssl_cert_path Optional[str] None
ssl_key_path Optional[str] None
http_use_tls bool False
agent_mount Optional[AgentMCPMountConfig] None

Fields:

Field Type Default Description
name str 'ai-parrot-mcp-server'
version str '1.0.0'
description str 'AI-Parrot Tools via MCP Protocol'
transport str 'stdio'
host str 'localhost'
port int 8080
socket_path Optional[str] None
allowed_tools Optional[List[str]] None
blocked_tools Optional[List[str]] None
log_level str 'INFO'
auth_method AuthMethod AuthMethod.NONE
api_key_header str 'X-API-Key'
api_key_store Optional[Any] None
oauth2_issuer_url Optional[str] None
oauth2_introspection_endpoint Optional[str] None
oauth2_client_id Optional[str] None
oauth2_client_secret Optional[str] None
oauth2_resource_server_url Optional[str] None
enable_oauth bool False
oauth_scope Optional[List[str]] None
oauth_token_ttl int 3600
oauth_code_ttl int 600
oauth_allow_dynamic_registration bool True
oauth_static_clients Optional[List[Dict[str, Any]]] None
base_path str '/mcp'
events_path Optional[str] None
allowed_origins Optional[List[str]] None
allow_any_origin bool False
session_ttl int 3600
event_buffer_size int 1000
max_sessions int 1000
max_streams_per_session int 64
quic_cert_path Optional[str] None
quic_key_path Optional[str] None
quic_serialization str 'msgpack'
quic_enable_0rtt bool True
quic_max_datagram_size int 65536
quic_idle_timeout float 60.0
quic_webtransport_path str '/mcp'
ssl_cert_path Optional[str] None
ssl_key_path Optional[str] None
http_use_tls bool False
agent_mount Optional[AgentMCPMountConfig] None

Class TransportConfig

Configuration for a single MCP transport (used by ParrotMCPServer).

Parameter Type Default Description
transport str
enabled bool True
host Optional[str] None
port Optional[int] None
url Optional[str] None
name_suffix Optional[str] None
socket_path Optional[str] None
base_path Optional[str] None

Fields:

Field Type Default Description
transport str
enabled bool True
host Optional[str] None
port Optional[int] None
url Optional[str] None
name_suffix Optional[str] None
socket_path Optional[str] None
base_path Optional[str] None

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