Skip to main content
Glama
use-pi-mcp

use-pi-mcp

by PeronGH

use-pi-mcp

Serves an OAuth MCP server from pi's configuration as a stdio MCP server, signed in as pi. For harnesses that handle OAuth MCP servers poorly: sign in once with pi and point the harness at use-pi-mcp.

It looks up the server in ~/.pi/agent/mcp.json, sends the access token pi stored in ~/.pi/agent/mcp-auth.json, and refreshes it under pi's locks, so pi and any number of proxies keep sharing one sign-in. Messages pass through unchanged in both directions.

Usage

Add the server to pi and sign in:

pi mcp add notion --url https://mcp.notion.com/mcp
pi mcp login notion

Then configure the harness with a stdio server:

{
  "mcpServers": {
    "notion": { "command": "npx", "args": ["-y", "use-pi-mcp", "notion"] }
  }
}

When the sign-in is missing or can no longer be refreshed, requests fail with a message to run pi mcp login <server>; the proxy never opens a browser.

Only HTTP servers that pi signs in to with OAuth are supported, from the global mcp.json (PI_CODING_AGENT_DIR is honoured). The file formats are pi's own, so this version matches pi 1.6.0.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Bridges stdio-based LLM harnesses to OAuth-protected remote MCP servers via Streamable HTTP, handling PKCE browser login and token refresh automatically.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Bridge that lets stdio-only MCP clients connect to remote MCP servers with OAuth and other auth support, enabling local clients to use remote, authorized MCP servers.
      54
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables local MCP clients to access tools from a remote FastMCP server over stdio, handling OAuth authentication and Streamable HTTP communication.
      -
    • A
      license
      B
      quality
      B
      maintenance
      Enables local MCP clients to access the hosted Asyntai MCP server by bridging stdio to HTTPS and handling OAuth sign-in, giving assistants the same 52 tools as the Asyntai dashboard.
      54
      80 npm
      1
      MIT