Context7
Up-to-date docs for AI agents
作者による説明(英語の原文)
Knowledge-lifecycle MCP: turn agent work into memory, recall it across projects, promote to org.
この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
使っているAIアプリを選んで、設定をコピーしてください。
CAMBIUM_REPO, CAMBIUM_AGENT_ID, CAMBIUM_ORG_REPO必要なもの
どのアプリを使っていますか?
上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。
Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます
{
"mcpServers": {
"cambium": {
"command": "uvx",
"args": [
"cambium-mcp"
],
"env": {
"CAMBIUM_REPO": "your-value",
"CAMBIUM_AGENT_ID": "your-value",
"CAMBIUM_ORG_REPO": "your-value"
}
}
}
}ターミナルでこれを実行します
claude mcp add cambium --env CAMBIUM_REPO=your-value --env CAMBIUM_AGENT_ID=your-value --env CAMBIUM_ORG_REPO=your-value -- uvx cambium-mcp動かす前に、空欄の値を入力してください。
プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます
{
"mcpServers": {
"cambium": {
"command": "uvx",
"args": [
"cambium-mcp"
],
"env": {
"CAMBIUM_REPO": "your-value",
"CAMBIUM_AGENT_ID": "your-value",
"CAMBIUM_ORG_REPO": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
プロジェクトの .vscode/mcp.json に貼り付けます
{
"servers": {
"cambium": {
"type": "stdio",
"command": "uvx",
"args": [
"cambium-mcp"
],
"env": {
"CAMBIUM_REPO": "your-value",
"CAMBIUM_AGENT_ID": "your-value",
"CAMBIUM_ORG_REPO": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。
選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。
CAMBIUM_REPO envCAMBIUM_AGENT_ID envCAMBIUM_ORG_REPO envこの設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月8日にチェック
レジストリ名は、リポジトリを所有するGitHubアカウント jarmstrong158 で確認済みです
このリポジトリはまだGitHubから読み取っていません
このリポジトリはまだGitHubから読み取っていません
これはパソコンで動くため、インターネット上のエンドポイントはありません
パソコンで動き、代わりにローカルの設定を使います
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
GitHubリポジトリの最終更新は–、最新バージョン(0.2.0)がレジストリに届いたのは3 か月前です。
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにPython (uv)も必要です。
同じカテゴリには:Context7, Codebase Memory, Exa
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
_Part of the xylem stack._
The knowledge-lifecycle MCP that turns work your agents already did into compound, org-wide knowledge. cambium bridges two substrates that already exist — agentsync (what happened: claims, finishes, notes, changed files) and context-keeper (why: decisions, constraints) — and adds the three things neither has:
Named for the cambium layer of a tree: the thin living tissue where all growth happens.
Knowledge layers fail because they're a *side system* nobody calls. cambium's bet: capture and recall must be native tools in the agent's loop, and state must live in the substrate the work already lives in — git — not a separate service. Storage is an implementation detail behind recall():
| Scope | Lives in | Trust gate |
|---|---|---|
local | /.cambium/knowledge.json | none — it's yours |
team | knowledge.json on a dedicated cambium branch of the shared repo | recalls ≥ N or an endorsement |
org | knowledge.json in a dedicated org knowledge repo | an endorsement required; optionally lands as a pull request — review is the gate, git revert is the undo |
Team writes use the agentsync pattern: a private worktree under .git/ and git push as compare-and-swap, so concurrent agents never clobber each other.
pip install -r requirements.txt # just `mcp`
gh (GitHub CLI) is only needed for pull-request-mode org promotion.
Point an MCP client at the server — no env required to start:
{
"mcpServers": { "cambium": { "command": "python3", "args": ["/abs/path/to/cambium_server.py"] } } }
First contact is helpful, not cold. MCP servers can't start a conversation, so cambium teaches you through its own responses. Call `status()` (or any tool) before it's configured and instead of a bare env error you get structured guidance — what's set, what's missing, what each gap costs in plain terms, and the exact setup() call that fixes it:
{
"configured": false, "gaps": [ {"setting": "CAMBIUM_REPO", "cost": "no project repo → cambium has no substrate; every tool is unavailable", "fix": "setup(project_repo=\"/abs/path/to/your/clone\", agent_id=\"your-id\")"}, {"setting": "CAMBIUM_ORG_REPO", "cost": "org scope off → promotions stop at team; org-wide recall unavailable", "fix": "setup(project_repo=…, agent_id=…, org_repo=\"owner/knowledge or /abs/path/to/clone\")"} ], "next_step": "setup(project_repo=\"/abs/path/to/your/clone\", agent_id=\"your-id\")" }
`setup(project_repo, agent_id, org_repo?, org_pr?, team_branch?)` finishes the job: it validates the paths, scaffolds .cambium/ (and adds it to the repo's .gitignore), and writes a fallback config at ~/.cambium/config.json that the server reads when env vars are absent. It takes effect immediately — no restart. No secrets are written: the file holds only paths, ids, and flags, and lives outside any repo. If org_repo is a GitHub owner/name you haven't cloned locally, setup offers the exact `gh`/`git` commands to stand it up and leaves org scope off — it never creates or pushes a repo for you.
Env still wins. Any of the variables below, set in the MCP client config, overrides the config file per-key — the table is the full reference layer:
| env var | required | default | meaning |
|---|---|---|---|
CAMBIUM_REPO | yes | — | your project clone (local scope, agentsync + context-keeper substrates) |
CAMBIUM_AGENT_ID | yes | — | your unique agent id |
CAMBIUM_REMOTE | no | origin | git remote |
CAMBIUM_GIT_TIMEOUT | no | 25 | per-invocation git/gh timeout (seconds) so a stuck call fails fast instead of hanging the server |
CAMBIUM_TEAM_BRANCH | no | cambium | team-scope branch |
CAMBIUM_AGENTSYNC_BRANCH | no | agentsync | coordination branch name distill reads |
AGENTSYNC_BOARD_REPO | no\* | — | which repo holds the board — the same setting agentsync reads, so the two servers cannot disagree (see below) |
CAMBIUM_ORG_REPO | no | — | path to the org knowledge repo clone (org scope off without it) |
CAMBIUM_ORG_PR | no | direct push | 1 = org promotion opens a pull request |
CAMBIUM_PROMOTE_RECALLS | no | 3 | recalls needed for local→team |
CAMBIUM_RELEASE_CAPTURE | no | off | 1 = also capture agentsync claims at their done/released transition (see below) |
CAMBIUM_CONFIG_FILE | no | ~/.cambium/config.json | override the fallback config path (mainly for tests) |
\* distill() reads finished agentsync claims off a coordination board. That board is a shared, long-lived team artifact — not a property of whichever project this session happens to be in — so cambium resolves its address independently of the session, using exactly the order agentsync itself uses:
~/.cambium/config.json). One setting configures both servers.ls-remote).Why. Before this, cambium looked for the coordination branch in CAMBIUM_REPO while agentsync (unpinned) followed ~/.xylem/active_project.json. The two could point at different repos, and whenever the current project had never been provisioned neither found anything. distill() reported that as the bland string "no coordination branch found", callers treated it as normal, and the result was that distill imported zero agentsync claims across its entire lifetime — a three-legged design silently running on two legs.
distill()'s return now makes a miss impossible to read as a success:
status becomes "distilled_with_warnings" (not "distilled");warnings carries a plain-language line per skipped substrate;sources.agentsync is an object — {status, board_repo, board_source, branch, claims_seen, done_claims, imported, reason, fix} — so "there is no board", "the board is here and nobody has finished anything", and "imported 3" are three visibly different results rather than one empty number.status() reports the same under substrates.agentsync_board.
Org setup: create one (private) repo, e.g. github.com/you/knowledge, with an empty {"items": []} in knowledge.json; everyone who should read org knowledge clones it and points CAMBIUM_ORG_REPO (or setup(org_repo=…)) at their clone. cambium manages that clone (it hard-syncs it) — dedicate it, don't work in it.
`capture(content, type, kind, why, tags, valid_while)` — save a knowledge item to local scope (types: memory | need | skill). Manual path. valid_while optionally names the premise the item depends on, so a dead assumption is spottable later (see *Machine-maintained documentation entropy*).
`record_need(content, why, tags)` — first-class needs ("we're missing X"), promotable like anything else so recurring wants surface at team/org level.
`distill()` — the automatic path. Reads agentsync's coordination branch (every *currently done* claim: task + note + changed files → an outcome memory) and context-keeper's .context/ (active decisions & constraints, rationale and dec-NNN provenance preserved). Idempotent — wire it to a session-end or post-commit hook and capture becomes passive.
Release-time capture (opt-in, `CAMBIUM_RELEASE_CAPTURE=1`). agentsync keys claims by agent id and deletes a claim from live state the instant it is released or re-claimed — it exposes no hook or event, only the rewritten claims.json on the branch. So a claim that completes and then churns before a full distill runs against it is silently lost. With the flag on, each distill also remembers the last-seen claim per agent and captures any that has *churned away* since the previous run — reconstructing it from that snapshot, through the same dedupe watermark, so a claim captured at release time and again in a later full distill never double-imports. Fire distill() on completion events (a post-commit / session-end hook) and completed work is captured at its transition instead of only when a distill happens to catch it live.
What this is not: it is passive capture *at the moments distill runs*, not exhaustive reconstruction. The guarantee is precise — *if a distill sweep observes a claim while it is done (or carries a note), that knowledge is captured even if the claim later churns.* The residual gap: a done state that is created and churned away entirely between two sweeps (e.g. cambium wasn't running) is never observed, and only agentsync's git log still holds it. Walking that log to reconstruct such claims exhaustively is a possible follow-up (the history survives — agentsync's history() reads it), deliberately left out of this change.
`import_memory(source, path)` — ingest an external memory export into cambium as local-scope, provenance-tagged knowledge items (see Import below). Read-only against the source; imported items are not auto-promoted.
`recall(query, scope, limit)` — federated search across local+team+org. Every hit increments the item's recall counter (the trust signal promotion feeds on) and records cross-project use. Abstains honestly: below the relevance floor it returns no_confident_match: true instead of confident-looking noise. Each result carries endorsed_as — the item's endorsement notes surfaced as first-class context, since for a promoted item that is where its cross-project meaning was written.
`endorse(item_id, note)` — vouch for an item. Fast-tracks local→team; required for team→org.
`promote(item_id, to_scope, force, org_content)` — no args: scan-and-promote all eligible local items to team. With to_scope="org": push to the org repo, or open a PR when CAMBIUM_ORG_PR=1 (the team copy stays, annotated, until the PR merges). Promotion stamps last_verified — promotion *is* a verification. Generalization gate: org scope is read by every project, so a body that reads project-specific (names a file, a test_* id, a dec-/con-NNN ref, or its own origin project) is refused at the org boundary — restate it as the cross-project rule via org_content= (the concrete body is kept as example) or force=True to override. The refusal hands back the endorsement note as a ready draft. Mirrors the endorsement gate; the safe path is the easy path.
`generalize(item_id, org_content, note)` — the remediation counterpart of the gate: restate an already-promoted item's body as the cross-project rule *in place*, keeping the concrete version as example. For items that reached org before the gate (or were forced past it) — the ones review_promotions() lists under org_needs_generalization. Omit org_content to fall back to the item's latest endorsement note. Writes through the org CAS path (direct, or a single shared cambium/generalize PR branch when CAMBIUM_ORG_PR=1, so repeated calls batch into one reviewable PR); idempotent.
`verify_entry(item_id, note)` — confirm an entr
冒頭だけを表示しています。続きはリポジトリで読めます