Documentation Index
Fetch the complete documentation index at: https://mintlify.com/nicobailon/pi-mcp-adapter/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The/mcp command provides interactive and CLI access to MCP server management. It offers multiple subcommands for viewing status, listing tools, and reconnecting servers.
Command Signature
Subcommands
/mcp (No Arguments)
Opens an interactive panel showing server status, tools, and configuration options.
UI Mode (when terminal UI is available):
Launches a full-screen TUI overlay with:
- Server connection status (connected, idle, failed, needs-auth)
- Tool lists with direct/proxy toggle switches
- Token cost estimates for direct tools
- Inline reconnect buttons
- OAuth authentication status and initiation
- Real-time config changes (written to
mcp.jsonon save)
/mcp status).
/mcp status
Displays the connection status of all configured servers.
Output:
✓- Connected and active○- Not connected (metadata cached, available via lazy connect)✗- Connection failed (includes time since failure)
/mcp tools
Lists all available MCP tools from all servers.
Output:
This command shows tool names only, without descriptions or parameters. Use
mcp({ search: "..." }) for searchable results with details, or mcp({ describe: "tool_name" }) for specific tool information./mcp reconnect
Reconnects all configured MCP servers.
Behavior:
- Closes existing connections
- Establishes fresh connections to all servers
- Fetches updated tool and resource metadata
- Updates the metadata cache
- Displays connection results
- Recover from connection failures
- Refresh metadata after server updates
- Clear connection state after configuration changes
- Force re-authentication for OAuth servers
/mcp reconnect <server>
Reconnects a single server by name.
Arguments:
The name of the server to reconnect (must match a key in
mcpServers config).- Reconnect a specific failed server without affecting others
- Force connection to a lazy server for testing
- Refresh metadata for one server after updates
Interactive Panel
The interactive panel (triggered by/mcp in UI mode) provides a rich TUI interface for managing MCP servers.
Features
Server Status:- Real-time connection state (connected, idle, failed, needs-auth)
- Last activity timestamps
- Failure diagnostics
- View all tools for each server
- Toggle tools between direct and proxy modes
- See token cost estimates for direct tool registration
- Filter and search tools
- Reconnect individual servers inline
- Initiate OAuth flow for servers requiring authentication
- Save configuration changes directly to
mcp.json
- Run
/mcp - Navigate with arrow keys
- Toggle direct tools with space/enter
- Press
rto reconnect a server - Press
sto save changes - Press
qorEscto quit
Return Behavior
All/mcp commands are non-blocking:
- They execute synchronously
- Display results via UI notifications
- Do not return content to the conversation
- Do not consume LLM context
Comparison: /mcp vs mcp({})
| Feature | /mcp command | mcp() tool |
|---|---|---|
| Purpose | Manual management | Programmatic access for LLM |
| Output | UI notifications | Returns text/data to conversation |
| Interactive | Yes (panel UI) | No |
| Context usage | None | Minimal (~200 tokens) |
| Typical use | Developer/user | AI agent |
/mcp:
- Checking server status during development
- Reconnecting after configuration changes
- Toggling direct tools interactively
- Initiating OAuth authentication
mcp():
- Letting the AI agent discover and call tools
- Automated workflows in Pi scripts
- Programmatic server management
Related
- /mcp-auth Command - OAuth authentication for MCP servers
- mcp() Tool - Programmatic MCP tool access
- Server Options - Configure MCP servers
- Settings - Global MCP settings