Skip to main content
For developers adding StackOne to Earendil’s Pi coding agent.
Not yet verified end-to-end. Pi supports MCP through community adapter extensions such as pi-mcp-adapter, and StackOne has not yet tested this flow end-to-end. If OAuth sign-in fails in your setup, use the token app header fallback under If something goes wrong.

Before you start

  • A StackOne project you are a member of.
  • A connector profile in the project for each provider the client should reach, with the actions you want exposed enabled.
  • (Optional) A linked account for each provider. Accounts can also be linked during the consent flow.

Recommended Set up with your agent

Paste this into Pi. It walks you through each step and can run the commands for you.

Help me connect StackOne to Pi. Read the setup guide at https://docs.stackone.com/ai-platforms/setup-guide.md and guide me one step at a time.

Or follow the steps yourself

Connect

1

Install the MCP extension

Pi’s core keeps MCP handling out of the base binary to save context tokens. Install pi-mcp-adapter (or pi-mcp-extension if you prefer) and restart Pi:
2

Add StackOne to mcp.json

Open ~/.pi/agent/mcp.json (or ~/.config/mcp/mcp.json) for all projects, or .mcp.json at a project’s root for one repository. Add stackone under mcpServers and save:
3

Sign in and authorize

Start pi in your terminal and trigger OAuth sign-in for StackOne:
Pi opens StackOne in your browser.
  1. Sign in to StackOne. In a desktop app or code editor, this opens in your browser.
  2. Check the project at the top left. Pi only reaches Linked Accounts in that project. To use another one, click it and pick yours.
  3. Pick the work systems Pi can use (your Linked Accounts).
  4. If you see Load tools when needed, leave it on.
  5. Click Authorize.
StackOne's consent screen for Claude, with three Linked Accounts selected, Load tools when needed on, and the Authorize button
4

Check it works

Run /mcp (or /mcp-adapter) in Pi to confirm stackone is connected, then send:
/mcp-auth command isn’t recognized. Make sure you installed pi-mcp-adapter with pi install npm:pi-mcp-adapter and restarted your Pi session.Sign-in doesn’t open or you’re running over SSH. If browser OAuth can’t complete in a remote or headless session, create a token app and pass it in headers inside mcp.json (keeping any token file out of git):
A system you need is missing. Ask your StackOne admin, or see Linking Accounts.It stopped working. Re-run /mcp-auth stackone inside Pi to refresh your OAuth session. Access lasts 90 days from when you clicked Authorize.It can’t do something. It can do only what your own StackOne access allows. Ask your StackOne admin.
Pi reaches only the Linked Accounts you approved when you connected. To add one you link later, or one someone shares with you afterwards:
1

Open Connected Apps

In the StackOne dashboard, go to Connected Apps.
2

Edit the connection

  1. Open the ⋮ menu on the row for Pi and select Edit tool access.
  2. Select the Linked Account.
  3. Click Save changes.
To review or revoke the connection, use the same ⋮ menu in Connected Apps.