Context7
Up-to-date docs for AI agents
作者による説明(英語の原文)
Auditable memory for coding agents: evidence chains, supersession history, keyless embedded SQLite
この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
使っているAIアプリを選んで、設定をコピーしてください。
STATECORE_SCOPE, FEATURE_LLM, MODEL_API_KEY, MODEL_BASE_URL, MODEL_NAME「秘密」と表示された値は、あなたのアカウントの鍵です。絶対に人に教えたり、チャットに貼り付けたりしないでください。
必要なもの
どのアプリを使っていますか?
上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。
Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます
{
"mcpServers": {
"statecore": {
"command": "npx",
"args": [
"-y",
"statecore-mcp"
],
"env": {
"STATECORE_SCOPE": "your-value",
"FEATURE_LLM": "your-value",
"MODEL_API_KEY": "your-value",
"MODEL_BASE_URL": "your-value",
"MODEL_NAME": "your-value"
}
}
}
}ターミナルでこれを実行します
claude mcp add statecore --env STATECORE_SCOPE=your-value --env FEATURE_LLM=your-value --env MODEL_API_KEY=your-value --env MODEL_BASE_URL=your-value --env MODEL_NAME=your-value -- npx -y statecore-mcp動かす前に、空欄の値を入力してください。
プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます
{
"mcpServers": {
"statecore": {
"command": "npx",
"args": [
"-y",
"statecore-mcp"
],
"env": {
"STATECORE_SCOPE": "your-value",
"FEATURE_LLM": "your-value",
"MODEL_API_KEY": "your-value",
"MODEL_BASE_URL": "your-value",
"MODEL_NAME": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
プロジェクトの .vscode/mcp.json に貼り付けます
{
"servers": {
"statecore": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"statecore-mcp"
],
"env": {
"STATECORE_SCOPE": "your-value",
"FEATURE_LLM": "your-value",
"MODEL_API_KEY": "your-value",
"MODEL_BASE_URL": "your-value",
"MODEL_NAME": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。
選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。
STATECORE_SCOPE envFEATURE_LLM envMODEL_BASE_URL envMODEL_NAME envこの設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月7日にチェック
レジストリ名は、リポジトリを所有するGitHubアカウント yul761 で確認済みです
このリポジトリはまだGitHubから読み取っていません
このリポジトリはまだGitHubから読み取っていません
これはパソコンで動くため、インターネット上のエンドポイントはありません
パソコンで動き、代わりにローカルの設定を使います
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
入力が必要なもの:MODEL_API_KEY
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
GitHubリポジトリの最終更新は–、最新バージョン(0.1.2)がレジストリに届いたのは3 か月前です。
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。
同じカテゴリには: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、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
Auditable memory for coding agents and AI systems. Every fact StateCore holds carries its evidence, its version chain, and a recorded reason for every discard — so "why do you believe this, and what did you believe before?" always has an answer.
StateCore is a self-hosted, low-drift long-term memory runtime for local or BYO models. It turns memory from accumulated text into governed state: events are ingested, run through a deterministic digest pipeline, and merged into protected stable state. The LLM proposes; the pipeline decides.
No server, no signup, no model key — one SQLite file over MCP:
claude mcp add statecore -- npx -y statecore-mcp # Claude Code
remember a decision in one session, ask why in the next: you get the fact, the evidence behind it, and its version history — superseded and retired facts stay on the record, marked, never deleted. And sessions hand off across vendors: handoff records where one session stopped, and the next one — Claude Code, Codex, Cursor, any MCP client on the same project — receives it at the top of recall, with every earlier stop-point still on the audit chain. Configs for Cursor, dsh, and every other MCP host: apps/mcp/README.md.
Most agent-memory tools compete on capturing more — hook every event, compress the transcript, inject it back. Capture is the solved half of the problem. The unsolved half is what those tools' own issue trackers are full of: memories that silently stop being written, stale decisions injected as if still current, cross-project leakage, and no way to audit or repair what the store believes. That is not a rhetorical claim — docs/prior-art-failure-modes.md cites the verified issues, by number, across five systems.
StateCore is built for that second half:
supersededBy chain; retired facts are marked, never deleted.degraded; the budget reports what it refused; retrieval reports which embedding stages failed and derives its mode from what actually ran, not from what was configured.why returns a fact's evidence and full version history; a digest's selection report shows exactly what it kept and dropped.How this compares to other memory systems, mechanism by mechanism: docs/why-auditable.md.
retrieval.degraded instead of silently downgrading qualitystatecore-mcp, a zero-deploy Model Context Protocol front end for coding agents; keyless by default, one SQLite file, no infrastructurepnpm install
cp .env.example .env
Minimum required variables:
PORT=3002
LOCAL_USER_TOKEN=local-dev-user DATABASE_URL=postgresql://postgres:postgres@localhost:5434/statecore REDIS_URL=redis://localhost:6380
To enable LLM features (digest, answers):
FEATURE_LLM=true
MODEL_PROVIDER=openai-compatible MODEL_API_KEY= MODEL_BASE_URL=https://api.openai.com/v1 MODEL_NAME=gpt-5-mini
On OpenAI, pick a model that accepts `reasoning_effort`. The runtime turn
sends it on every request —
assistant-runtime.tsdefaults it tolowrather
than leaving it unset — so
POST /v1/memory/runtime/turnfails against a
gpt-4o*model, which rejects the parameter. Digest and answers do not send it
unless
MODEL_STRUCTURED_OUTPUT_REASONING_EFFORTis set, so agpt-4o*model
appears to work right up until the first runtime turn. Any endpoint that
accepts the parameter, or ignores unknown ones, is fine.
docker compose -f docker-compose.local.yml up -d
This starts Postgres (with pgvector) and Redis.
pnpm db:generate
pnpm db:migrate pnpm seed
pnpm dev:api # NestJS API on PORT (default 3002)
pnpm dev:worker # background digest + reminder workers
The API is available at http://localhost:3002 (or whatever PORT is set to).
All requests require an x-user-id header. For local development, set LOCAL_USER_TOKEN=local-dev-user in .env and send:
x-user-id: local-dev-user
/v1)The /v1 prefix exposes the stable, public-facing subset of the API. Full OpenAPI schema:
GET /openapi.json
Interactive Scalar UI:
http://localhost:3002/docs
Reference documentation: docs/api.md
| Method | Path | Description |
|---|---|---|
POST | /v1/memory/events | Ingest a stream event or document |
POST | /v1/memory/retrieve | Retrieve grounded evidence for a query, within an optional maxChars budget |
POST | /v1/memory/digest | Trigger a State Layer digest job |
GET | /v1/memory/facts | Grouped memory facts for a scope |
GET | /v1/memory/facts/:factId/provenance | A fact's evidence and its full version chain |
GET | /v1/memory/digests/:digestId/selection | What a digest kept, and what it discarded and why |
GET | /v1/facet-pack | The active facet ontology for a scope or account |
GET | /v1/scopes | List scopes |
GET | /memory/stable-state | Current stable-state snapshot ¹ |
GET | /memory/working-state | Current working-memory snapshot ¹ |
GET | /memory/layer-status | Aggregated layer health ¹ |
The three audit readers in the middle are the ones that make the engine's memory checkable rather than merely stored; docs/api.md lists the full frozen surface.
API stability: the
/v1contract is frozen and additive-only — see
STABILITY.md. It currently covers **22 operations across 20
paths**. The contract carries its own version in the generated OpenAPI document
(
info.version, currently1.8.0), which is what tells you how current a spec
you are holding; it is not the release tag and not any package version.
¹ Internal read-model endpoints — registered only at /memory/..., not under /v1, and not part of the frozen /v1 contract.
statecore-mcp is a separately published npm package that fronts this engine over the Model Context Protocol — no running server required. It runs the engine embedded (one process, one SQLite file), keylessly by default:
npx -y statecore-mcp --data ~/.statecore
Point any MCP client at it, or run it against a full StateCore deployment via --url for shared/multi-agent memory. Full docs, host configs, and the keyless/keyed capability matrix: apps/mcp/README.md.
| Client | Setup |
|---|---|
| Claude Code | claude mcp add statecore -- npx -y statecore-mcp (config) |
| dsh | pinned-executable overlay config included (config) |
| Cursor | .cursor/mcp.json config included (config) |
| Codex CLI, Gemini CLI, Windsurf, Zed, Cline, OpenCode, Claude Desktop, VS Code Copilot | standard MCP stdio config — npx -y statecore-mcp as the command |
| Anything else that speaks MCP | same stdio command; HTTP via --url against a deployment |
Team memory: one self-hosted deployment as the shared project brain for every agent your team runs — dsh sessions, Claude Code, CI — with one audit trail across all of them: docs/team-memory.md.
apps/api NestJS HTTP server — ingestion, retrieval, runtime turns, diagnostics
apps/worker BullMQ background workers — digest, working-memory updates, reminders apps/mcp statecore-mcp — MCP server, embedded or thin client against apps/api
packages/core Memory engine (MemoryService, DigestService, RetrieveService, AssistantSession) packages/contracts Zod schemas for all API I/O packages/db Prisma schema, migrations, and client packages/prompts LLM prompt templates (digest, answer, runtime)
StateCore sits between your client and your model endpoint. Events flow in, the digest pipeline consolidates them into protected state, and retrieval pulls grounded evidence back out for answers or runtime turns.
Three-layer memory model:
See docs/vision-and-roadmap.md for the layered model design and roadmap.
Run package tests:
pnpm --filter @statecore/core test
pnpm --filter @statecore/api test
Run the full latency + memory quality benchmark:
pnpm benchmark
Run the synthetic regression suite (no LLM required):
pnpm --filter @statecore/core eval
The synthetic suite is a regression guard, not a capability benchmark: every scenario scores 1.000 on the current engine, deliberately — its job is t
冒頭だけを表示しています。続きはリポジトリで読めます