IP

irahardianto/pi-mcp-extension

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

10 stars 16 forks 품질 75 트렌드 28MIT

Full-featured, lightweight MCP extension for the Pi coding agent: stdio, SSE & Streamable HTTP transports, OAuth 2.1 (PKCE + DCR), lazy/eager lifecycles — minimal dependencies, zero bloat.

개요

Supabase, DeepSource, Playwright, Context7, filesystem, databases — if it speaks MCP, Pi can use it. pi-mcp-extension is a production-ready Model Context Protocol client extension for the Pi coding agent. It manages server connections, discovers tools, and bridges them into Pi so the LLM can call them directly. - — stdio subprocesses, streamable-http (including "http" and URL-only shorthand), and legacy sse out of the box - — Paginated tools/list with cursor following (MCP 2025-03-26 spec) - — notifications/tools/list_changed triggers re-discovery without restart - — AbortSignal propagation via notifications/cancelled - — Fixed delay retry schedule (1s → 3s → 5s → 10s → 30s), configurable max retries, and automatic recovery when a server transport closes unexpectedly - — Opt-in periodic pings to detect stale connections - — Child PID tracking (StdioClientTransport.

README

원문 README의 일부입니다. 원문 보기.

pi-mcp-extension

Connect Pi to any MCP server. Supabase, DeepSource, Playwright, Context7, filesystem, databases — if it speaks MCP, Pi can use it.

pi-mcp-extension is a production-ready Model Context Protocol client extension for the Pi coding agent. It manages server connections, discovers tools, and bridges them into Pi so the LLM can call them directly.

Quick Start · Configuration · OAuth 2.1 · Commands & Agent Tools · Debug Log · How It Works · MCP Spec Compliance

Features

  • Multi-transport — stdio subprocesses, streamable-http (including "http" and URL-only shorthand), and legacy sse out of the box
  • Auto-discovery — Paginated tools/list with cursor following (MCP 2025-03-26 spec)
  • Live tool refresh — notifications/tools/list_changed triggers re-discovery without restart
  • Clean cancellation — AbortSignal propagation via notifications/cancelled
  • Smart reconnection — Fixed delay retry schedule (1s → 3s → 5s → 10s → 30s), configurable max retries, automatic recovery when a server transport closes or errors unexpectedly, and mid-session HTTP 401 / 403 insufficient_scope detection that invalidates stale tokens and prompts for re-authorization
  • Health checks — Opt-in periodic pings to detect stale connections
GitHub에서 전체 README 보기

설치

npx -y @context7/mcp
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { // Remote HTTP server with OAuth 2.1 (prompts "Authorize now" on startup) "supabase": { "transport": "streamable-http", "url": "https://mcp.supabase.com/mcp", "auth": { "type": "oauth" }, "lifecycle": "eager" }, // Local stdio subprocess server (connects on demand via /mcp:start or mcp_connect) "context7": { "command": "npx", "args": ["-y", "@context7/mcp"], "lifecycle": "lazy" } } }