Pi Agent Platform
v1.2.17 docs · EN Commands

MCP in Pi Agent Platform

The platform installs pi-mcp-adapter for token-efficient MCP access and manages servers across four configuration layers.

Where to start

Enter /piagent-mcp to open a menu. You do not need to memorize subcommands:

MCP
  Servers — 2/3 ready
  Doctor — 1 need attention          (recommended)
  Inspect a server
  Approve a repository server — 1 waiting
  Turn a server off
  Add a server
  All subcommands

The menu reflects the current project. It does not offer "turn back on" when no server is disabled or "approve" when nothing is waiting. When an action requires a server, it asks which one unless only one choice exists.

Every menu item also has a direct command:

/piagent-mcp doctor     show what is blocked and what it needs
/piagent-mcp status     show the full table
/mcp                    show live connection state from the adapter
/mcp-auth <name>        authenticate one OAuth server

In a terminal, use the same command family without the slash: piagent-mcp list or piagent-mcp doctor. Adding and removing server definitions is terminal-only. See Server management.

Three similar names that are not connected

No code maps a capability name to an MCP server ID. Declaring "github" in mcpCapabilities does not enable the MCP server named github, and the reverse is also false.

ItemLocationMeaning
mcpCapabilities: ["github"].pi/piagent-profile.jsonA capability label for the tool registry
toolCapabilitiesbase-policy.jsonMaps a tool named github to a capability
github server~/.config/mcp/mcp.jsonThe actual MCP server, running through Docker

Four configuration layers

All four files are read. The --scope option of piagent-mcp uses these names.

ScopeFileUse
global~/.config/mcp/mcp.jsonDefault shared configuration for multiple agents and projects
pi-global~/.pi/agent/mcp.jsonPi-specific global overrides
project.mcp.jsonRepository-specific, committable server definitions
pi-project.pi/mcp.jsonPi-specific overrides for one repository
The final two layers travel with the repository

Cloning a repository also brings its .mcp.json. Servers from these scopes must pass the approval gate before use.

Pinned presets

piagent-setup and piagent-install install pi-mcp-adapter and seed the core preset by default. Skip this with --no-mcp.

PresetServersPurpose
minimalSafe settings only
docsContext7Current framework and library docs
browserChrome DevTools, PlaywrightUI/runtime inspection and browser automation
githubGitHub MCPIssue, PR, repository, and release workflows
designFigma remoteDesign-to-code through Figma OAuth
design-localFigma desktopLocal Dev Mode MCP
webContext7, Chrome DevTools, PlaywrightFrontend and web workflows
coreContext7, Chrome DevTools, GitHubDefault team baseline
popularcore + Playwright + FigmaA broader development baseline
allpopular + Figma desktopComplete preset

Every server is pinned by version or digest. An MCP server is code running on the operator's machine with the operator's credentials, so floating tags would turn each session into an unattended supply-chain decision.

Writing configuration does not prove readiness

Servers connect lazily and are not checked until first use. Authentication and readiness explains which servers can actually run.

Token efficiency

pi-mcp-adapter exposes all servers through one proxy tool named mcp instead of loading every tool schema into startup context. Defaults include directTools: false, outputGuard, and idleTimeout.

Warning when enabling toolRegistry: enforce

The proxy tool mcp is not in alwaysAllowedTools or toolCapabilities, so enforce mode blocks all MCP access. Adding mcpCapabilities cannot bypass that earlier block. The only exception is trusted-full-access.