diff --git a/pi/files/agent/AGENTS.md b/pi/files/agent/AGENTS.md index 3a48e5f..8c76220 100644 --- a/pi/files/agent/AGENTS.md +++ b/pi/files/agent/AGENTS.md @@ -27,3 +27,40 @@ When making changes: - GraphQL mutations like `addPullRequestReviewThreadReply`, `addPullRequestReviewComment`, etc. The agent must only read PR information and make code changes. The user will post their own comments. + +--- + +# MCP Usage (mcporter) + +Use [mcporter](https://github.com/steipete/mcporter) to call MCP servers. It auto-discovers servers from editor configs (Cursor, Claude, Windsurf, etc.) and supports ad-hoc connections. + +```bash +# List available servers and tools +npx mcporter list +npx mcporter list --schema + +# Call tools (two syntax styles) +npx mcporter call . arg1:value1 arg2:value2 +npx mcporter call '.(arg1: "value1", arg2: "value2")' + +# Ad-hoc HTTP server (no config needed) +npx mcporter call https://mcp.example.com/mcp. arg:value + +# Ad-hoc stdio server +npx mcporter call --stdio "bun run ./server.ts" arg:value + +# Generate TypeScript types +npx mcporter emit-ts --mode types +``` + +Config location: `~/.mcporter/mcporter.json` (or `config/mcporter.json` in project) + +## Commonly Used MCP Servers + +Only use these servers and read about them when applicable. + +### Svelte + +Use frequently within Svelte 5 projects. + +- URL: `https://mcp.svelte.dev/mcp` diff --git a/pi/files/agent/mcp.json b/pi/files/agent/mcp.json deleted file mode 100644 index 892c476..0000000 --- a/pi/files/agent/mcp.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "settings": { - "idleTimeout": 10 - }, - "mcpServers": { - "svelte": { - "type": "http", - "url": "https://mcp.svelte.dev/mcp", - "tools": ["*"] - } - } -}