Repository navigation
docs: add a Pi guide for the Appwrite MCP server - #14648
Conversation
Add a Pi agent guide that connects the hosted Appwrite MCP server through pi-mcp-adapter with OAuth, tests it with a prompt, and subscribes to users.user.created with pi-mcp-events. Register Pi in both docs nav trees, the docs home and tooling cards, the MCP IDE list, the icon maps, the Console's known OAuth clients, and the agent-facing /setup.md. Add the Pi icons and regenerate the docs manifest, search index, and public icon manifest.
|
Review complete. No issues found — approved ✅. This PR registers the Pi agent in the console's MCP/agent tooling: it adds a docs page for Pi under tooling/ai/agents, extends the IDE/agent config catalog with a Pi MCP adapter entry, recognizes Pi's OAuth client identifiers, and regenerates the docs manifest, search index, navigation, home content, and icon mappings to include the new page. Docs partials for adding MCP tools are updated with the Pi instructions, and an adoption test covers the new slug. All candidate issues raised during review were adjudicated as non-defects: both icon paths exist, the OAuth matcher mirrors the established Codex pattern, and generated-file deltas are consistent with the new markdoc content. Reviewed commit: 823c4b5 |
New ConsoleProject ID: Tip Storage files get ClamAV malware scanning and encryption by default |
🟢 Tier S · Ready to mergeAdds an end-to-end Pi guide for connecting to Appwrite's hosted MCP server, signing in with OAuth, testing API access, and subscribing to project events. Registers Pi across documentation discovery, navigation, IDE and icon catalogs, OAuth client displays, and agent setup instructions, with related assets and regenerated indexes. Latest changes: The latest commit removes the fork compatibility note and Free-plan webhook quota note from the Pi guide while retaining the unsubscribe instructions.
📂 Walkthrough · 7
Reviewed the commits since |
Fix the remote-server sentence, point Windows readers to pi.dev, tell readers they don't need the pi-mcp-events adapter fork, note the Free plan webhook limit and that /reload drops subscriptions, and explain how the adapter treats servers added with pi mcp add. Register Pi in the init ticket stack like Grok Build, and correct the OAuth client comment: the adapter's DCR callback port is OS-assigned.
|
@hansi-codes review |
Add a light and a dark screenshot of Pi listing the users in a project, and a light and a dark GIF of the MCP Events flow: Pi subscribes to users.user.created, wakes up when a user is created, reports the user, and unsubscribes. Both are recorded from Pi 1.3.0 sessions against Appwrite Cloud at 1460x822 (2x).
|
@hansi-codes review |
Record the terminal output of one Pi session per visual and render it with a dark and a light palette, so both variants show the same run. Name the Step 3 prompt above its screenshot, move the events GIF below the unsubscribe step, and refer to pi-mcp-adapter as the adapter mid-sentence.
|
@hansi-codes review |

What does this PR do?
Adds a Pi guide to the AI agents docs at
/docs/tooling/ai/agents/pi. It has the same sections in the same order as the other agent guides, plus one step for MCP Events. This page pairs with #14466, which adds the Events section to the MCP server page and the announcement post. The Events step here links to/docs/tooling/ai/mcp-servers#events, an anchor that exists only once #14466 is merged.The guide covers:
pi-mcp-adapter, add the hosted server to~/.pi/agent/mcp-adapter.json, and sign in with OAuth through/mcp-auth appwrite. No API key is involved.@realmikekelly/pi-mcp-events, subscribe tousers.user.created, see Pi wake up when a user is created, then unsubscribe. The event catalog and protocol details stay on the MCP server page, and the guide links there.I ran every command on the page against production Cloud with Pi 1.3.0, pi-mcp-adapter 5.3.2, and pi-mcp-events 0.2.0.
Notes for #14466
Three things I found while checking the commands, in case you want #14466 to match:
/mcp-auth appwrite. Step 3 of docs: announce MCP Events and document them on the MCP server page #14466 says "Start Pi withpiand sign in to Appwrite when your browser opens." The adapter'sautoAuthsetting defaults tofalse, so on a fresh start the browser doesn't open by itself. Running/mcp-auth appwriteopens it.npm:pi-mcp-adapter@^5.1.0andnpm:@realmikekelly/pi-mcp-events@^0.2.0. This page installs both without a range. Pi saves the range in its settings, so^0.2.0would keeppi updatefrom moving pi-mcp-events to 0.3.0. Upstream pi-mcp-adapter has had theregisterMcpProtocolhook since 5.1.0, so any current release works.Files
apps/console/src/content/docs/tooling/ai/agents/pi/index.markdoc: the new guide.apps/console/public/icons/pi.svgandapps/console/public/icons/apps/pi.svg: the Pi mark. The first is a 20x20 monochrome icon, likeopencode.svg. The second is the 72x72 tile for the OAuth consent screen, in Pi's brand colors.navigation/sections.ts,navigation/local-sections.ts)home-content.ts)/docs/toolingand in themcp-add-ides-toolspartial, in both the light and dark blocksconfig/ide.ts, which feeds the MCP IDE listmarkdoc-icons.ts,frameworks/icons.ts,cover-generator/built-in-icons.ts)init/ticket-stack.ts)apps/console/src/lib/oauth-known-clients.ts: recognizes Pi on the Console's OAuth consent and authorized-apps screens. pi-mcp-adapter registers through DCR asPi Coding Agent, with a loopback redirect on an OS-assigned port (http://127.0.0.1:<port>/callback) andhttps://github.com/nicobailon/pi-mcp-adapterasclient_uri. I read these values from the adapter source (mcp-oauth-provider.ts).apps/console/src/lib/seo/agent-setup.ts: a Pi section in the agent-facing/setup.md, with a matching test case inmcp-adoption.test.ts.skills add ... -a piis a supported target in the skills CLI. I ran the install in a throwawayHOME, and it wrote the Appwrite skills to~/.pi/agent/skills.docs/generated/manifest.ts,docs/generated/search-index.ts, andpublic-icons/manifest.ts. The manifest also picks up two reading-time updates on other pages (avatars/favicons, self-hosting environment variables). Earlier merges never regenerated those.Not registered:
/for-agentsIDE grid, and the Console project MCP section. Grok Build isn't registered in these lists either.HOME_MCP_STACK_VISIBLE_IDSinide.ts. It shows a fixed set of four tools on the home page.Screenshots
Recorded from Pi 1.3.0 sessions against production Cloud in a test project (
pi-guide), at 1460x822 (2x). Pi ran DeepSeek V4.1 Flash through Together.The dark and light variants show the same session. Pi ran with a theme that uses 256-color palette slots. I recorded the terminal output of each run once and rendered it twice, once with the colors of Pi's built-in dark theme and once with its light theme.
Step 3: Pi answers
List the users in my Appwrite project pi-guideStep 4: Pi subscribes to
users.user.created, wakes up when a user is created, reports the user, and unsubscribesThe GIFs are 36 seconds long and about 3.8 MB each.
only_darkandonly_lightrender one per reader. I chose a GIF over the docs{% video %}tag because a GIF plays without a click. The trade-off is that a GIF loops and has no pause control.Test Plan
curl -fsSL https://pi.dev/install.sh | shpi install npm:pi-mcp-adapterandpi install npm:@realmikekelly/pi-mcp-events(exit 0, andpi listshows both)mcp-adapter.jsonconfig/mcp-auth appwrite: the browser opens, OAuth completes, and Pi connects with 4 tools and 1 resource/mcp, which lists appwrite and its toolsList the users in my Appwrite project pi-guidereturned the two test users.pi install npm:@realmikekelly/pi-mcp-eventsinstalled the extension, and Pi was restarted to load it.MCP events push | users.user.created | ...in the project.Unsubscribe from users.user.createdstopped the stream, and the project's webhook list was empty again.bun run lint:content,lint:removed-blog-links,lint:native-dialogs,lint:sdk-pins, andlint:types --against HEADpass, with no new type errors.bun test src/lib/mcp-adoption.test.tspasses, 8 of 8./setup.mdon the local dev server.Related PRs and Issues
#eventsanchor resolves)