Pi provides two commands for managing MCP servers: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.
/mcp for server management and /mcp-auth for OAuth authentication.
/mcp command
The primary command for interacting with MCP servers.Interactive panel (default)
Running/mcp without arguments opens an interactive overlay:
- View all configured servers and their status
- See tool counts (direct vs proxy)
- Toggle individual tools or entire servers between direct and proxy modes
- Reconnect servers
- Initiate OAuth flows
- Real-time connection status
Changes made in the panel are written to your config file. Restart Pi to apply direct tool changes.
Status (non-UI mode)
In headless or non-UI environments,/mcp shows text-based status:
✓Connected and active○Not connected (metadata available from cache)✗Connection failed recently
Reconnect servers
Force reconnect to one or all servers:- All servers
- Single server
- Multiple servers failed
- Config changes require reconnection
- Refresh all metadata
- Closes existing connection (if any)
- Starts new server process
- Fetches fresh tool and resource metadata
- Updates cache
- Shows notification with tool count
Reconnect does not require Pi restart. Changes to tool metadata are immediate. However, direct tool registration changes still require restart.
List all tools
Show every tool from all connected and cached servers:/mcp-auth command
Authenticate with MCP servers that require OAuth.Basic usage
OAuth flow
Follow instructions
Pi displays:
- OAuth authorization URL
- Instructions for completing the flow
- Device code flow (GitHub, Google)
- Browser redirect flow
- Manual token entry
OAuth configuration
For servers that support OAuth, configure the auth type:"oauth"- OAuth 2.0 flow (use/mcp-auth)"bearer"- Static bearer token (setbearerTokenorbearerTokenEnv)
Token storage
OAuth tokens are stored in:Bearer token alternative
If you already have a token, use bearer auth instead of OAuth:Command reference
/mcp
| Subcommand | Description | Example |
|---|---|---|
| (none) | Open interactive panel (UI) or show status (non-UI) | /mcp |
status | Show server status | /mcp status |
tools | List all tools | /mcp tools |
reconnect | Reconnect all servers | /mcp reconnect |
reconnect <server> | Reconnect specific server | /mcp reconnect github |
/mcp-auth
| Usage | Description |
|---|---|
/mcp-auth <server> | Initiate OAuth flow for server |
Common workflows
Server failed to connect
Check credentials
If reconnect fails, verify:
- Server command is correct
- Required environment variables are set
- Authentication (if needed) is valid
Update server configuration
Toggle direct tools
Refresh metadata cache
Troubleshooting
Command not found
Problem:/mcp or /mcp-auth returns “command not found”
Solution: The MCP adapter extension isn’t loaded. Verify installation:
Interactive panel doesn’t open
Problem:/mcp shows text output instead of the panel
Cause: Running in non-UI mode (headless, SSH, etc.)
Solution: Use subcommands instead:
/mcp status/mcp tools/mcp reconnect
Reconnect fails silently
Problem:/mcp reconnect <server> completes but server still shows as failed
Debugging steps:
- Check server config in
mcp.json - Verify command exists:
which <command> - Test command manually:
npx -y server-name - Check environment variables are set
- Look for errors in Pi logs
OAuth flow doesn’t complete
Problem:/mcp-auth <server> starts but doesn’t finish
Common causes:
- Browser didn’t open (copy URL manually)
- Incorrect redirect URI
- Network issues
Next steps:
- Learn about the mcp() proxy tool
- Configure direct tools
- Explore search capabilities