# Set up TeamShared
These instructions are written for your agent to read.
This is the one page an agent follows to connect to TeamShared. A browser shows the same words as HTML. This page includes no API key and no other secret.
## One prompt
Read https://teamshared.com/setup.md and follow it. Add the TeamShared MCP server at https://teamshared.com/mcp for this harness with OAuth sign-in. Do not paste a JSON config and do not use an API key. Tell me when to finish the emailed one-time code in the browser, then confirm by calling the health tool. After that, ask once for approval to import memories and skills I already have. Do not import until I say yes, and do not write those rows as org memory: they go through review. Install the memory protocol on that page as your standing instructions. Once a day, re-fetch https://teamshared.com/setup.md and compare setup_version. If it changed, or the version tool says the protocol is stale, refresh those instructions before continuing.
setup_version: 1
protocol_version: 1.31.0
mcp_url: https://teamshared.com/mcp
html_url: https://teamshared.com/setup
text_url: https://teamshared.com/setup.txt
## Connect over MCP
The MCP server is https://teamshared.com/mcp. Add that URL with OAuth. Do not paste a JSON snippet and do not send an API key. The human still approves the OAuth grant.
When the human belongs to several orgs, use https://teamshared.com/o//mcp (Copy connector URL in the console org menu) so the session starts in that org. The bare URL uses the org picked at sign-in, or the one marked Make MCP default.
After the server is added, ask the human to finish sign-in, then call the health tool. It should report status ok.
Per-harness commands are below. Manual config that can carry a key stays on https://teamshared.com/docs and is not copied onto this page.
## Sign in
Sign-in is OAuth with the same emailed one-time code as the console (https://teamshared.com/login). The human types that code in the browser. You do not see the code and you do not invent one. The first sign-in creates a private org.
## Import host memories and skills
After connect, ask once for approval to import memories and skills the human already has. Wait for a yes. Do not upload the file yourself and do not call the import API yourself.
The human uploads it at https://teamshared.com/app/settings/organization. Preview writes nothing. Import accepts an Agent Memory Repo zip (agent-memory-repo) or a Cursor rules export (cursor-mdc: one .mdc file or a zip of them).
Under the default review policy each memory is staged as a review item with reason import. It is not org memory. A person accepts or declines it at https://teamshared.com/app/reviews. Declining stores nothing, and the same text is not asked again. Rows already stored or already pending are skipped.
Each imported row keeps provenance (the format, file, line, and origin) and is tagged import:agent-memory-repo or import:cursor-mdc. The writer class is unattended_agent. An uploaded file does not become human or system truth.
Playbooks in an Agent Memory Repo are counted and left out while the org reviews memory writes, because playbooks have no review queue. Say so. Do not add them as already-approved procedures.
Do not turn the org's memory-write review off so the import can skip the queue. Do not store the imported text with memory_remember.
## Memory protocol
protocol_version: 1.31.0. Install the steps below as standing instructions for this harness. On Cursor, do not write a local .cursor/rules/teamshared.mdc file. Cursor loads the rule from the teamshared plugin. Other harnesses may keep this block in their instructions file.
Never store secrets, tokens, or credentials.
On the first turn of a chat, call version with installed_rule_version set to 1.31.0. If update_available is true, or if setup_version on this page is not 1, re-read https://teamshared.com/setup.md and replace these instructions. Do not invent a version.
1. memory_session_ensure with repo, topic, fresh true only on the first turn of a chat, and user set to the request.
2. memory_recall with a short keyword, repo, and github, before non-trivial work. Default scope is durable memory, not the open chat.
3. Do the work. Shared work tools are part of the same memory.
4. context_commit at the end of the turn, with summary, facts, repo, and github. close true when the task is done.
## Daily sync and version check
Offer this once the agent is connected. Do not start it on your own before the human has connected.
Once a day, fetch https://teamshared.com/setup.md and compare setup_version (1 on this copy) with the version in your standing instructions. Also call version with the protocol_version you installed (1.31.0).
If either version changed, tell the human and refresh the standing instructions before more work. On Cursor, that means updating the teamshared plugin, not writing a rules file.
A daily import check is a separate yes. Only offer it after they have approved an import once. A new upload still goes through review. Do not import on a timer by yourself.
## Clients
Use the block for this harness. The human still approves the OAuth grant and any import.
- [Claude.ai & Desktop](#setup-claude-desktop)
- [Claude Code](#setup-claude)
- [Cursor](#setup-cursor)
- [Codex](#setup-codex)
- [ChatGPT](#setup-chatgpt)
- [VS Code / Copilot](#setup-vscode)
- [Windsurf / Devin Desktop](#setup-devin)
- [Gemini CLI](#setup-gemini)
- [Gemini](#setup-gemini-web)
- [Devin](#setup-devin-web)
- [Grok Bot](#setup-grok-bot)
- [OpenClaw](#setup-openclaw)
- [Hermes](#setup-hermes)
### Claude.ai & Desktop
Custom connector in Claude.ai (shared with Claude Desktop). Claude cannot add its own connector, so these are UI steps.
Add it from the app. This harness cannot add its own connector.
1. Open Settings → Connectors → Add custom connector.
2. Name it TeamShared and paste https://teamshared.com/mcp as the URL.
3. Click Connect and finish the emailed one-time code in the browser.
4. In a chat, ask Claude to call the health tool.
In several orgs? Add one connector per org with that org's own URL, https://teamshared.com/o//mcp (use Copy connector URL in the console org menu). The bare URL uses the org picked at Connect time, or the one set with Make MCP default on All organizations.
Verify: Ask the agent to call the `health` tool and tell me the result; it should report status ok.
Manual config, if OAuth is blocked, is on https://teamshared.com/docs/claude-desktop.
This page does not include that config, because it can carry a key.
### Claude Code
Claude Code adds the server and opens OAuth from /mcp.
Paste this into the agent:
Add the TeamShared MCP server at https://teamshared.com/mcp to Claude Code (run `claude mcp add --transport http teamshared https://teamshared.com/mcp`, user scope). Use OAuth sign-in (no API key). Then run the sign-in flow, tell me when to finish the emailed one-time code in the browser, and confirm by calling the `health` tool.
If the sign-in did not start, run /mcp, select teamshared, then Authenticate. In several orgs, use https://teamshared.com/o//mcp as the URL.
Verify: Run /mcp: teamshared should show as connected. Then ask Claude to call the health tool.
Manual config, if OAuth is blocked, is on https://teamshared.com/docs/claude.
This page does not include that config, because it can carry a key.
### Cursor
Cursor reads ~/.cursor/mcp.json; Connect finishes OAuth.
Paste this into the agent:
Add the TeamShared MCP server at https://teamshared.com/mcp to Cursor by adding a `teamshared` entry with the `url` field to ~/.cursor/mcp.json (no headers). Use OAuth sign-in (no API key). Then run the sign-in flow, tell me when to finish the emailed one-time code in the browser, and confirm by calling the `health` tool.
Install: [Add to Cursor](https://cursor.com/link/mcp/install?name=teamshared&config=eyJ1cmwiOiJodHRwczovL3RlYW1zaGFyZWQuY29tL21jcCJ9). Button or prompt, one step is left: click Connect next to teamshared in Settings → Tools & MCP, finish the emailed code, then ask the agent to call health.
Verify: Open Settings → Tools & MCP: teamshared should be enabled with tools listed. Then ask the agent to call health.
Manual config, if OAuth is blocked, is on https://teamshared.com/docs/cursor.
This page does not include that config, because it can carry a key.
### Codex
Codex registers the server and logs in through the system browser.
Paste this into the agent:
Add the TeamShared MCP server at https://teamshared.com/mcp to Codex (run `codex mcp add teamshared --url https://teamshared.com/mcp`), then run `codex mcp login teamshared`. If my browser is on a different device than this machine (for example I am on a phone), the sign-in ends on a 127.0.0.1 page that cannot load. In that case do not retry: tell me to copy the full 127.0.0.1 callback URL from that page and paste it here, then run `curl -sS ''` on this machine to finish the login. If that still fails, ask me for a TeamShared API key and use the key setup instead (export `TEAMSHARED_TOKEN`, and register with `--bearer-token-env-var TEAMSHARED_TOKEN`). Use OAuth sign-in (no API key). Then run the sign-in flow, tell me when to finish the emailed one-time code in the browser, and confirm by calling the `health` tool.
Codex opens the system browser for OAuth; finish the emailed code there. Signing in from a phone, or Codex runs on a remote machine? The browser ends on a 127.0.0.1 page that cannot load. Copy the command TeamShared shows (or that full URL) and run curl -sS '' on the machine running Codex.
Verify: Run codex mcp list (teamshared should be listed), then ask Codex to call the health tool.
Manual config, if OAuth is blocked, is on https://teamshared.com/docs/codex.
This page does not include that config, because it can carry a key.
### ChatGPT
Custom connector in ChatGPT web. ChatGPT cannot add its own connector, so these are UI steps.
Add it from the app. This harness cannot add its own connector.
1. Open Settings → Connectors → Advanced and turn on Developer mode (menu names shift; look for custom connectors).
2. Choose Create, name it TeamShared, paste https://teamshared.com/mcp, and set authentication to OAuth.
3. Click Connect and finish the emailed one-time code in the browser.
4. In a chat, enable the connector and ask ChatGPT to call the health tool.
Custom connectors need a plan that allows them (Plus/Pro, or workspace admin approval for Business and Enterprise).
Verify: Ask the agent to call the `health` tool and tell me the result; it should report status ok.
Manual config, if OAuth is blocked, is on https://teamshared.com/docs/chatgpt.
This page does not include that config, because it can carry a key.
### VS Code / Copilot
Copilot Chat in agent mode reads .vscode/mcp.json and runs OAuth on start.
Paste this into the agent:
Add the TeamShared MCP server at https://teamshared.com/mcp to VS Code by adding a `teamshared` entry (`type: http`, `url` only, no headers) to .vscode/mcp.json, or run the `MCP: Add Server` command. Use OAuth sign-in (no API key). Then run the sign-in flow, tell me when to finish the emailed one-time code in the browser, and confirm by calling the `health` tool.
Install: [Add to VS Code](https://insiders.vscode.dev/redirect/mcp/install?name=teamshared&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fteamshared.com%2Fmcp%22%7D). Button or prompt, one step is left: select Start on the server (VS Code opens the browser to sign in), then ask Copilot to call health.
Verify: Run MCP: List Servers: teamshared should be running. In Copilot Chat (agent mode) ask it to call the health tool.
Manual config, if OAuth is blocked, is on https://teamshared.com/docs/vscode.
This page does not include that config, because it can carry a key.
### Windsurf / Devin Desktop
Windsurf (now Devin Desktop) reads ~/.codeium/windsurf/mcp_config.json.
Paste this into the agent:
Add the TeamShared MCP server at https://teamshared.com/mcp to Windsurf (Devin Desktop) by merging a `teamshared` entry into ~/.codeium/windsurf/mcp_config.json. The remote field must be `serverUrl`, not `url`. Use OAuth sign-in (no API key). Then run the sign-in flow, tell me when to finish the emailed one-time code in the browser, and confirm by calling the `health` tool.
Devin on the web is a different app: app.devin.ai registers with OAuth. If Desktop does not offer sign-in, mint an org key under API Keys and add it as the fallback below.
Verify: Refresh MCP servers in Cascade: teamshared should list tools. Then ask Cascade to call the health tool.
Manual config, if OAuth is blocked, is on https://teamshared.com/docs/devin.
This page does not include that config, because it can carry a key.
### Gemini CLI
Gemini CLI adds the server and authenticates from /mcp auth.
Paste this into the agent:
Add the TeamShared MCP server at https://teamshared.com/mcp to Gemini CLI (run `gemini mcp add --transport http teamshared https://teamshared.com/mcp`), then start `/mcp auth teamshared`. Use OAuth sign-in (no API key). Then run the sign-in flow, tell me when to finish the emailed one-time code in the browser, and confirm by calling the `health` tool.
Verify: Run /mcp in Gemini CLI: teamshared should be CONNECTED. Then ask it to call the health tool.
Manual config, if OAuth is blocked, is on https://teamshared.com/docs/gemini.
This page does not include that config, because it can carry a key.
### Gemini
Custom MCP app on gemini.google.com. Gemini cannot add its own connector, so these are UI steps.
Add it from the app. This harness cannot add its own connector.
1. On gemini.google.com, add a custom MCP app.
2. Name it TeamShared and paste https://teamshared.com/mcp as the server URL.
3. Start connect. Gemini registers itself. Finish the emailed one-time code.
4. Approve the screen. It names the app and gemini.google.com.
5. Ask Gemini to call the health tool.
If Gemini asks you to type a client id and secret, registration did not finish. Add the app again so it can register. You do not mint that secret under API Keys.
Verify: Ask the agent to call the `health` tool and tell me the result; it should report status ok.
Manual config, if OAuth is blocked, is on https://teamshared.com/docs/gemini-web.
This page does not include that config, because it can carry a key.
### Devin
Devin on the web (app.devin.ai) registers with OAuth. Devin cannot add its own connector, so these are UI steps.
Add it from the app. This harness cannot add its own connector.
1. On app.devin.ai, open Customize → MCPs → Connect.
2. Add TeamShared with server URL https://teamshared.com/mcp.
3. Devin registers itself. Finish the emailed one-time code in the browser.
4. Approve the screen. It names the app and app.devin.ai.
5. Ask Devin to call the health tool.
Devin Desktop (formerly Windsurf) is a separate install: Windsurf / Devin Desktop.
Verify: Ask the agent to call the `health` tool and tell me the result; it should report status ok.
Manual config, if OAuth is blocked, is on https://teamshared.com/docs/devin-web.
This page does not include that config, because it can carry a key.
### Grok Bot
Grok Bot adds MCP servers from its connectors screen, so these are UI steps.
Add it from the app. This harness cannot add its own connector.
1. In Grok Bot, open the connectors (MCP servers) screen and choose to add a custom server.
2. Paste https://teamshared.com/mcp as the URL and choose Connect.
3. Finish the emailed one-time code in the browser; it hands you back to Grok Bot.
4. Ask Grok Bot to call the health tool.
If Connect does not finish on iOS, connect Cursor on desktop with the same account first: Grok Bot may pick up that account-level Connect.
Verify: Ask the agent to call the `health` tool and tell me the result; it should report status ok.
Manual config, if OAuth is blocked, is on https://teamshared.com/docs/grok-bot.
This page does not include that config, because it can carry a key.
### OpenClaw
OpenClaw takes an org key on the Authorization header.
Paste this into the agent:
Add the TeamShared MCP server at https://teamshared.com/mcp to OpenClaw (`mcp_servers.teamshared`). Use OAuth sign-in if OpenClaw supports it; otherwise ask me for my TeamShared API key (from https://teamshared.com/app/keys) and send it as `Authorization: Bearer `. Set timeout 120 and connect_timeout 30, restart OpenClaw, and confirm by calling the `health` tool.
Verify: Run openclaw mcp list, then ask the agent to call the health tool.
Manual config, if OAuth is blocked, is on https://teamshared.com/docs/openclaw.
This page does not include that config, because it can carry a key.
### Hermes
Hermes takes an org key on the Authorization header.
Paste this into the agent:
Add the TeamShared MCP server at https://teamshared.com/mcp to Hermes (`mcp_servers.teamshared` in ~/.hermes/config.yaml, or `hermes mcp add teamshared --url ... --auth header`). Use OAuth sign-in if Hermes supports it; otherwise ask me for my TeamShared API key (from https://teamshared.com/app/keys) and send it as `Authorization: Bearer `. Set timeout 120 and connect_timeout 30, disable Hermes's built-in memory toolset (`hermes tools disable memory`), reload MCP, and confirm by calling the `health` tool.
Verify: Run hermes mcp test teamshared, then ask the agent to call the health tool.
Manual config, if OAuth is blocked, is on https://teamshared.com/docs/hermes.
This page does not include that config, because it can carry a key.