Skip to content

API Reference parrot.mcp.local_cli

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

parrot.mcp.local_cli

View source

parrot mcp-local — serve an AbstractToolkit as a local stdio MCP server.

FEAT-485. Top-level lazy Click command registered in parrot.cli._lazy_commands["mcp-local"]. The parrot mcp group is owned by ai-parrot-server's parrot.mcp.cli module (merged PEP 420 namespace) — core cannot attach a subcommand to it, hence a sibling top-level command instead (precedent: mcp-serve for agentd).

stdout is reserved for the JSON-RPC channel once the serve loop starts, so all logging is redirected to stderr before the toolkit is resolved, and the heavy imports (toolkit_server -> toolkit classes) happen inside the command function rather than at module import time.

Alias StdioMCPServer

Re-exported from parrot.mcp.local_server.StdioMCPServer.

Attribute logger

Function mcp_local

Serve NAME as a local stdio MCP server.

The project root is $PARROT_PROJECT when set, else the current working directory or its nearest ancestor (up to the nearest project marker) that holds the config — the MCP host (Claude Code, Codex, ...) starts this process in the directory it was launched from, which may be a subdirectory of the project, and .parrot/mcp-toolkits.yaml is resolved relative to the root. The process then changes into the root, as a baked entry's cwd would.

Examples: parrot mcp-local memory parrot mcp-local scraping --include scrape_url --include list_plans parrot mcp-local --list

mcp_local(name: str | None, config_path: Path | None, include: tuple[str, ...], exclude: tuple[str, ...], list_toolkits: bool, login_file: Path | None) -> None

Parameter Type Default Description
name str | None
config_path Path | None
include tuple[str, ...]
exclude tuple[str, ...]
list_toolkits bool
login_file Path | 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