
TeamShared
io.github.xhad由 GitHub 帳號 xhad 發布v0.9.1更新於 Nov 2, 2026
Shared memory for coding agents. Stop re-explaining your codebase every session.
概覽
託管式共享記憶 MCP 伺服器,讓編碼助理跨工作階段記住並重用團隊對程式碼庫的知識。
- 可以做什麼
- 為程式碼儲存庫召回與儲存記憶,包含 memory_recall、memory_remember、memory_session_* 等工作階段記憶工具。
- 透過 org_list 與 org_bind 列出組織並把儲存庫綁定到某個組織。
- 藉由用戶端掛鉤把 Agent 對話、失敗的測試/檢查/指令輸出以及壓縮前摘要寫入 TeamShared。
- 在工作階段開始與出錯後注入召回內容,減少重複說明程式碼庫。
- 適用情境
- 適合在 Cursor、Claude Code 或 Codex 上協作同一批儲存庫的團隊,希望助理在工作階段之間保留共享脈絡。也適合需要把多個機器人限定在單一組織內的場景。
- 執行需求
- 遠端 MCP 端點 teamshared.com/mcp,不需本機套件。需要帳號,透過 OAuth Connect 以電子郵件加一次性驗證碼登入。選用 TEAMSHARED_TOKEN(tsk_ 金鑰)供擷取掛鉤或手動 bearer 權杖設定使用。需要安裝對應用戶端外掛或手動註冊 MCP,並視需要寫入儲存庫綁定檔。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 TeamShared,將其新增到工作區。
- 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
交給代理程式安裝
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/io.github.xhad%2Fteamshared/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。
{
"mcpServers": {
"teamshared": {
"type": "http",
"url": "https://teamshared.com/mcp"
}
}
}README
teamshared (Cursor, Claude Code, and Codex plugins)
Registers the teamshared MCP server. The Cursor plugin also ships the
recall-first memory rule and Cursor hooks that capture Agent Chat into
TeamShared (sessionStart, beforeSubmitPrompt, afterAgentResponse,
stop, sessionEnd) plus postToolUse (failed test/lint/shell),
postToolUseFailure (read-only recall), and preCompact. The Cursor
plugin still has no skills, slash commands, or extra agents.
This repo also ships a Claude Code marketplace plugin under claude/
(remote MCP via Claude Code's native /mcp OAuth, TEAMSHARED_TOKEN for the
optional capture hooks, protocol 1.31.0, SessionStart injection, and official
Claude Code capture hooks).
The native Codex package under plugins/teamshared/ uses the server's MCP
OAuth discovery flow and treats Codex as a first-class client: protocol 1.31.0,
SessionStart injection, and official Codex capture hooks. A manual Codex TOML
setup remains available under install/codex/ (TEAMSHARED_TOKEN; do not mix).
Hosted install is teamshared.com/#connect.
The public plugin / marketplace source is this repo
(teamshared-ai/teamshared-plugin).
The remote MCP endpoint is https://teamshared.com/mcp.
One Connect, one org per repo. Install the plugin once and connect once.
From chat, call org_list / org_bind(slug=...). CLI
teamshared org bind <slug> is an optional fallback that writes
.teamshared/org. Do not add a second TeamShared server. Unbound /mcp
keeps working — it stays on the org chosen at Connect time. Agent-facing
copy: AGENTS.md.
Install
From git marketplace (recommended)
- Settings → Plugins → Add marketplace → paste
https://github.com/teamshared-ai/teamshared-plugin - Run
/add-plugin teamsharedor enable teamshared under Settings → Plugins - Settings → Tools & MCP → teamshared → Connect (email + one-time code, same as the console)
Cloud and Grok Bot agents inherit that account-level Connect. Installing the
plugin registers https://teamshared.com/mcp — you only click Connect.
Do not paste a URL or token into the plugin mcp.json. Then bind the repo
(teamshared org bind <slug>); do not add a second TeamShared server.
See MARKETPLACE.md for the official Marketplace publish checklist.
Claude Code (marketplace)
In /mcp, select teamshared and choose Authenticate — Claude Code's
own native OAuth flow, same email/OTP login as the web console, token stored
in your system keychain. Confirm tools appear under /mcp as
plugin:teamshared:teamshared connected.
The chat-capture hooks are a separate subprocess with no access to that
keychain, so if you also want them capturing chat automatically, mint a
tsk_ org key and export it — never commit it:
Without it the hooks just no-op; the MCP connection and every-turn workflow
work fine either way. From chat, call org_bind(slug=...) (CLI
teamshared org bind <slug> is optional) so capture follows the org; do
not add a project .mcp.json TeamShared server.
Unbound /mcp keeps working. SessionStart injects protocol 1.31.0;
/teamshared:status checks health + version. Details:
claude/README.md.
Codex (native plugin marketplace)
The native Codex package uses TeamShared's MCP OAuth discovery flow, so it does
not require TEAMSHARED_TOKEN or store an authorization header. The first
browser open is the Codex host (system default browser). TeamShared only
serves /oauth/authorize and the redirect; the post-OTP finish page uses a
single handoff. ChatGPT’s in-app @Browser is Computer Use, not MCP
Authenticate — there is no API to force Connect there. To skip the browser,
use install/codex/ + TEAMSHARED_TOKEN instead
of this plugin. Details:
#46 and
plugins/teamshared/README.md.
Restart the Codex app, start a new task, and connect TeamShared when prompted.
Then review and trust plugin hooks with /hooks so capture writes run.
From chat, call org_bind(slug=...) (CLI teamshared org bind <slug> is
optional); do not add a second [mcp_servers.teamshared] next to the
plugin. Unbound /mcp keeps working.
SessionStart injects protocol 1.31.0; $status checks health + version.
The package lives under plugins/teamshared/ and is
cataloged by .agents/plugins/marketplace.json.
Details: plugins/teamshared/README.md.
cursor.directory listing
Submit this repo at cursor.directory/plugins/new:
Do not submit the old xhad/teamshared-cursor redirect. Root plugin.json and
.mcp.json are the Open Plugins / directory discovery files; Cursor install
still uses .cursor-plugin/ and mcp.json.
Ready-to-paste listing description:
From this repo (folder or symlink)
Add plugins from folder needs a marketplace catalog in the selected
directory. Select this repo root (it ships .cursor-plugin/marketplace.json
with "source": "./").
Then enable the plugin, reload the window, and Connect.
For local iteration without the folder picker:
Setup
- Connect with email/OTP — Settings → Tools & MCP → teamshared → Connect.
Cursor opens a browser; sign in with the same email + one-time code as the
web console (
/app). The plugin already shipped the server URL; do not add headers or atsk_*token to the pluginmcp.json. - Bind the repo —
teamshared org bind <slug>writes.teamshared/org({"v":1,"slug"}). Commit that file. Capture follows it. Do not add a second TeamShared server in.cursor/mcp.json, project.mcp.json, or Codexconfig.toml. - Cursor Cloud / Grok Bot — they inherit that account-level Cursor
Connect. After the one-time Connect, every cloud agent for that user gets
TeamShared. Bind still lives in the checkout (
.teamshared/org); Cloud does not take a second MCP URL from repo config. Unbound/mcpkeeps working (Connect-time org). - Developer: Reload Window — confirm Settings → MCP shows
teamsharedenabled.
If you previously added https://teamshared.com/mcp by hand, remove that
manual entry so you do not get two teamshared servers.
Bots that must stay in one org use a seat key — teamshared token mint
scoped to that org, or mint under /app/keys — on the MCP headers
(Authorization: Bearer tsk_…). Not in the plugin mcp.json. Unbound
/mcp keeps working for interactive Connect.
What you get
- MCP tools:
memory_recall,memory_remember,memory_session_*, etc. (registered bymcp.jsonwhen the plugin is installed). - Rule: injects the recall-first protocol on every agent turn, and points
teammates to the web console (
/app) for human actions. - Cursor hooks: Agent Chat turns are appended to TeamShared in
near-real-time without waiting for the agent to call
memory_session_ensure/context_commit.sessionStartmapsconversation_idonto a working session and, after a successful ensure withauto_recall=true, injects a capped Cursoradditional_contextblock (linked soul, a short playbook header when present, and compactauto_recallbullets — not full memory bodies or transcripts). Explicitmemory_recallremains preferred for keyword work. Fail-open on MCP/auth errors.beforeSubmitPromptandafterAgentResponseappend redacted user/assistant text;sessionEndcloses and distills.stoponly notes aborted/error loops (it fires after every turn, so it does not distill).postToolUsestill appends a short episodic fact when a Shell test/lint/command fails (command + error tail, secrets stripped). On CursorpostToolUseFailureand on that failedpostToolUse, hooks also call remotememory_recallwith a tight query (tool name + truncated error,k=3,verbose=false) and inject compact hits asadditional_context— same pattern as SessionStart auto_recall. Skip when recall is empty or MCP has no token. That recall path never writes (context_commit). Fail-open if MCP is unreachable.preCompactwrites a short session summary. All reuse the existing Connect session — notsk_inmcp.json. Cloud agents may skipsessionStart/sessionEnd; prompt/response hooks still capture turns. Agents still recall first and may commit curated facts; hooks store the transcript.
Bind a repo to an org
One TeamShared server stays on https://teamshared.com/mcp. The repo file
chooses the org; capture follows it. Do not add a second TeamShared server.
bind checks membership, then writes only .teamshared/org:
The derived URL https://teamshared.com/o/{slug}/mcp is never stored. Commit
the file so every harness in the checkout sees the same org. status and
unbind work offline. Missing or invalid file → unbound /mcp (Connect-time
org). That is supported; binding is not required.
Bots that must stay in one org: teamshared token mint <agent> (org-scoped
seat key) or /app/keys. Still one server.
The Cursor plugin still has no skills, slash commands, or extra agents.
The Claude Code package ships protocol 1.31.0 (teamshared-memory),
/teamshared:status, and official Claude Code capture hooks. The Codex
package ships the same 1.31.0 loop plus official Codex hooks (SessionStart,
UserPromptSubmit, Stop, Interrupt, SessionEnd, PostToolUse on failed
Bash, PreCompact). SessionEnd closes through one bounded commit;
Interrupt covers Cursor abort parity. Codex has no StopFailure or
PostToolUseFailure.
Other clients
See clients/ for Hermes, Claude Desktop, and protocol markdown.
Claude Code and Codex should use their marketplace plugins above unless you are
debugging a manual client configuration.
Codex (manual TOML alternative)
For manual MCP registration without the native plugin, Codex uses TOML rather
than Cursor's JSON mcp.json. Mint a tsk_ key at
teamshared.com/app/keys, export it, then
register the hosted MCP (Codex sends Authorization: Bearer tsk_…):
Or merge install/codex/mcp.toml into project-local
.codex/config.toml and run Codex from that trusted repo root. Full steps:
install/codex/README.md.
Use either the native marketplace plugin or the manual TOML entry, not both.
The manual path is the seat-key path for bots that must stay in one org
(teamshared token mint scoped to that org) and the reliable way to skip
the OAuth browser. Do not add a second TeamShared server next to the
plugin. Bind the checkout with teamshared org bind <slug> either way;
unbound /mcp keeps working.
Cursor desktop, Cursor Cloud, and Grok Bot still use Connect — do not add
this tsk_ block to the plugin mcp.json.
License
MIT — see LICENSE.
來源:README.md,提交 1513dbd
工具
0版本歷史
1- v0.9.1最新Sep 16, 2026
評分
已滿足適用檢查項的 85%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
- 已宣告認證方式必需10 分
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分