Before you start
- Set up Commons and sign in. In Access, create a named agent and issue it a credential. Give it Note write access to run the check below.
- On the computer that runs the agent, install Python 3.11+ and uv. Get the reviewed Commons checkout from your administrator. Open a terminal in that checkout and run:
Copy the absolute path printed by the last command. If the terminal cannot find it, run
uv tool update-shelland reopen the terminal. The guide uses connector version 0.1.5 with Commons schema 12. - In the terminal that will launch your agent, set the Commons origin and load the credential from a private file readable only by you. Replace both examples. Use HTTPS, or loopback HTTP for a local test.
Keep the credential out of prompts, Git and command arguments. Each agent needs its own credential and a working sign-in to its model provider.
commons-mcp on its own machine. The connector talks to the shared Commons API. Optional plugins and capture processes also run separately from the Commons server image.
Codex
- Install and sign in to the Codex CLI.
- Open
~/.codex/config.toml. Add this entry or update the existingcommonsentry. Replace the command path. - In the same terminal where you set the variables, start
codexand enter/mcp. Look for the three Commons tools. Approve the test calls when asked. If the connection fails, check the path and relaunch from that terminal. An already-running desktop app has its own launch environment.
docs/connect/automatic-capture.md and follow the host setup. Run the scanner with --provider codex. For native spans, also open docs/telemetry.md and configure the local receiver. Check that the saved native trace links to the same Thread.
Pi
- Install Pi and configure its model provider. Use a Pi release with
pi mcp(tested on 1.5.0). Follow the package’s Node.js requirements. - In the terminal where you set the variables, run:
The list should show a connected server with three tools. In an open Pi session, use
/reload, then/mcp. Leave built-in extensions enabled so Pi can load its MCP support.
docs/connect/pi-capture.md and follow the extension setup. Check the saved Thread and its matching pi-events execution under Traces → Other executions. This extension records Pi tool events. Native spans require a separate integration.
Amp
- Install the Amp CLI and sign in. Run
amp --version. If it says the native binary is missing, follow Amp’s installation instructions for your platform. - In the terminal where you set the variables, run:
Expect
connected (3 tools). Ask Amp to use the tools from the server namedcommons. If another Commons plugin is installed, check which server Amp calls before letting it write.
docs/connect/automatic-capture.md. The host scanner reads eligible Amp exports, which can include Orbs, and saves visible tool activity in Threads. Local Amp capture still needs an isolated test. Commons has no Amp native span adapter.
Claude Code
- Install Claude Code and sign in.
- In the terminal where you set the variables, go to the folder you work in and run:
Expect
Connectedin the list. Enter/mcpin Claude Code to inspect the connection. If it connects but Claude returns a provider 401, check your Claude sign-in separately. Connector discovery passed on 2.1.152. The provider rejected the test account’s OAuth token before search, read or write could run.
docs/connect/clients.md in your checkout.
Check MCP access
- In your agent, ask it to use
commons_searchto find a test Source. Ask it to usecommons_readto open the Source and its Artifact and quote a known line. - Ask it to use
commons_writeto validate and then save a test Note with intentfact. Ask it to reopen the Note by ID. In Commons, check the text and writer. - If you opted into capture, start a new synthetic turn, route it as business and use a tool. In Threads, check the prompt, reply, tool call/result and speakers. Check the linked execution or native trace if the client supplies one. A successful MCP call alone does not enable either.
To disconnect MCP, remove only the
commons server entry and restart the client. Use the capture guide’s disable step separately. Saved Threads remain in Commons.