KG-SSOT
概要
作者による説明(英語の原文)
Company-brain knowledge graphs: confirmed claims cite sources, and decisions get revisited
PopNx MCPの3つの柱
この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。
- 利用者の声iレビューはまだありませんレビューは今後のステップで、アカウント機能と一緒に始まります
- 私たちの基本チェックi1項目中1項目に合格公開情報からチェック。コードはまだスキャンしていません
- 利用状況i初期↓ 926/週 · ★ –
できること
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
- 接続方法: パソコンで動く
- トランスポート: stdio
- カテゴリ: 検索・AIの記憶
インストール
使っているAIアプリを選んで、設定をコピーしてください。
インストールの前に
- 基本チェック:1項目中1項目に合格
- あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
- レジストリには、入力が必要なキーは載っていません。
必要なもの
- PyPIPythonのuvのインストール(uvxコマンドに必要)
どのアプリを使っていますか?
上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。
リンク先は作者自身のファイルです。私たちが置いたり再パッケージしたりしたものではありません。ファイルを開くと、Claude Desktopがインストールします。
ターミナルでこれを実行します
claude mcp add kg-ssot -- uvx kg-ssotまたは、設定を自分でコピーする
プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます
{
"mcpServers": {
"kg-ssot": {
"command": "uvx",
"args": [
"kg-ssot"
]
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
または、設定を自分でコピーする
プロジェクトの .vscode/mcp.json に貼り付けます
{
"servers": {
"kg-ssot": {
"type": "stdio",
"command": "uvx",
"args": [
"kg-ssot"
]
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。
選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。
この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
できること
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
基本チェックi
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月8日にチェック
- ✓ 合格
作者とリポジトリが一致
レジストリ名は、リポジトリを所有するGitHubアカウント marciocar で確認済みです
- … 未チェック
今もメンテナンスされている
このリポジトリはまだGitHubから読み取っていません
- … 未チェック
ライセンスがある
このリポジトリはまだGitHubから読み取っていません
- – 対象外
エンドポイントが応答する
これはパソコンで動くため、インターネット上のエンドポイントはありません
- – 対象外
OAuthでサインイン
パソコンで動き、代わりにローカルの設定を使います
- … 未チェック
ツールの説明に隠れた指示がない
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
検索・AIの記憶のほかのサーバーとの比較i
- このカテゴリのほかの5717件のうち0%よりスターが多い
- このカテゴリのほかの5717件のうち96%より最近レジストリに公開
- 基本チェックの結果が、このカテゴリのほかの5717件のうち100%と同じかそれ以上
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
よくある質問
KG-SSOTは安全ですか?
当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
どんなキーやコードが必要ですか?
レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。
パソコンで動きますか、それともクラウドですか?
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
今もメンテナンスされていますか?
GitHubリポジトリの最終更新は–、最新バージョン(4.45.0)がレジストリに届いたのは昨日です。
どのアプリで使えますか?
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにPython (uv), MCPBも必要です。
代わりに使えるものは?
同じカテゴリには:Context7, Codebase Memory, Exa
代わりの候補
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
Codebase Memory
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Exa
Connect AI agents to Exa for web search, content fetching, and multi-step research.
作者のREADME
READMEを開く
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
KG-SSOT
The trust layer for a company brain: knowledge graphs in plain text where a confirmed claim must cite its source, a decision records what it replaced and what it rests on, and a decision comes back for review when a source it pinned changes.
English | Português (Brasil)
Documentation · Adopt it · The contract · Conformance suite · Changelog · For AI agents
The contract in 40 seconds: a claim without a source is refused, then fixed, queried and gated.
Why
A company brain is usually built by piling documents into RAG or GraphRAG. That keeps the data, but not the decisions: who decided what, on which source, and whether that source still holds. Teams, of people or of agents, pile up conclusions such as "the retry is idempotent" or "we decided on three attempts", and on the way they lose three things: the source, the date it was last verified and what depends on it. When the person who decided leaves, the reasoning leaves too.
KG-SSOT treats this as a format problem, not a discipline problem. Knowledge lives in a .kg.yaml graph, versioned next to the code, and a formal contract decides in CI what fails:
- a
confirmedor production node without provenance fails (a claim with no recoverable source is declaredunverifiableinstead); - a source that is only a placeholder (
unknown,n/a,tbd) fails; - an edge that points nowhere fails, and so does a node with no edges;
- a verification stamp with nothing to check against, a decision with no origin and a production claim backed only by testimony raise warnings.
What it does for a company brain
| You need to know... | KG-SSOT gives you |
|---|---|
| Where a claim came from | A provenance on every confirmed claim: the file, the line or the node, and, if you pin it, a hash that kg_trace.py check verifies |
| Why a decision was made, and what it replaced | kg_query --decision ID: the whole SUPERSEDES line, what supports it and the status of each support |
| Which decisions to look at again | kg_query --revisit: the ones past their review cadence, contested, or whose approved document or pinned source changed |
| What is on each owner's plate | kg_query --open --where owner=X --sort attention |
| How many open decisions each graph holds, or any count by field | kg_query --type decision --open --group-by file |
| Which nodes are most supported, and by how many distinct sources | kg_query --edges --where edge_type=SUPPORTS --group-by to.file --group-by to.id --count-distinct from.id |
Which decisions have no internal SUPPORTS edge in their own graph | kg_query --type decision --where degree.in.SUPPORTS=0; a SUPPORTS from another graph is not counted, so complete it with kg_query --edges --where edge_type=SUPPORTS --where scope=external |
| What is past its re-verification date, on any kind of node | kg_query --due, the most overdue first |
| Who cites this node in other repositories, before you delete it | kg_refs cited-by repo:ID --repo name=folder ..., with what was and was not read |
| What an e-mail, chat or wiki event said, and who sent it | An evidence node with the CloudEvents 1.0.2 names in x_event, pinned to the accepted inbox document (recipe) |
Business, technical, compliance and design knowledge can live in the same format, in your repository. It plugs in as a Python package or an MCP server, with a JavaScript validator on npm, and the CI gate is one of its uses, not the point. The pins are checked when kg_query or kg_trace.py runs with --root.
Get started in 60 seconds
pip install kg-ssot
the conformance suite against the reference reader, from the installed package
kg-conformance | tail -2
one valid graph and one that fails
kg-validate valid.kg.yaml broken.kg.yaml
Or straight from the repository, with hash-checked dependencies:
git clone https://github.com/marciocar/kg-ssot && cd kg-ssot
python3 -m venv .venv && .venv/bin/pip install --require-hashes -r tools/requirements.txt .venv/bin/python3 -I tools/kg_validate.py \ spec/conformance/fixtures/latest/form/minimal/valid-minimal.kg.yaml \ spec/conformance/fixtures/latest/form/minimal/bad-node-missing-label.kg.yaml
PASS spec/conformance/fixtures/latest/form/minimal/valid-minimal.kg.yaml
FAIL spec/conformance/fixtures/latest/form/minimal/bad-node-missing-label.kg.yaml MUST form.required.node.label ×1 · 2 files; 1 pass the MUST; 0 with a SHOULD warning (kg-contract-v4.schema.json + kg-contract-v4.should.schema.json)
The tools print in English by default and in Brazilian Portuguese when your locale is pt_BR (or KG_SSOT_LANG=pt-BR). Codes, exit codes and JSON keys never change with the language; only the human text does.
Install
| Channel | Command | What you get |
|---|---|---|
| PyPI | pip install kg-ssot | The commands kg-validate, kg-conformance, kg-gate, kg-store, kg-query, kg-diff, kg-vocab, kg-criterion, kg-audit, kg-trace, kg-refs, kg-vector, kg-mcp and kg-prov-export, with the contract and the suite inside; pip install "kg-ssot[vector]" adds the search by similarity |
| npm | npm install kg-ssot | The JavaScript reader with a precompiled validator, which also runs in React Native and Expo |
| Claude Desktop | the .mcpb file from the latest release | The MCP server as a one-click extension |
| MCP Registry | io.github.marciocar/kg-ssot | The same server for any MCP client |
| Container | docker pull ghcr.io/marciocar/kg-ssot | The MCP server as a service next to a client without Python, such as LibreChat |
| Your repository | kg_vendor.py update --tag kg-ssot-v4.45.0 | The release vendored by tag, with a sha256 stamp, and the gate in your CI (manual, chapter 6) |
A node, inside
- id: C_RETRY_SAFE
node_type: claim plane: PROD status: confirmed impact: 4 confidence: 0.8 label: The payment retry is idempotent. verified_at: "2026-10-01" verified_against: tests/payment_retry_test.py provenance: source: tests/payment_retry_test.py locator: test_retry_is_idempotent method: "measurement: integration test in CI"
The label is the claim, short. The provenance says where it came from and how: one of five method classes, measurement, reading, judges, derived or testimony. The stamp says when it was verified and against what. Since contract v4.16 these English names are the canonical form; the Portuguese medição, leitura, juízes, derivado and testemunho are still accepted as aliases, with no warning.
Use it from an AI agent
The reference MCP server gives a model the contract and a store: it validates a graph, writes only what passes, reads, lists, queries with every edge resolved to the label on the other end, and shows history. Read-only tools are annotated as such, so a client can skip confirmation for them.
kg-mcp --root ./graphs # stdio, for Claude Desktop, Claude Code and other MCP clients
kg_schema_help returns the current contract, a minimal passing example and the fixes for the most common codes, so a model can write a passing graph on the first try. llms.txt indexes the documentation for agents, and llms-full.txt has all of it in one file.
The agent skill. skills/kg-ssot/ is an Agent Skills skill that teaches a coding agent to write, fix, validate and query graphs with these tools, in .kg.yaml and .kg.json. In a pre-registered test, an agent with the skill reached the same result with 45% of the output tokens and 54% of the tool calls.
npx skills add marciocar/kg-ssot -s kg-ssot # Claude Code, Codex and other clients that read Agent Skills
In Claude Code, it also comes as a plugin: /plugin marketplace add marciocar/kg-ssot, then /plugin install kg-ssot@kg-ssot.
How it works
flowchart LR
subgraph product["Product (one tag kg-ssot-vX.Y.Z)"] C["Contract JSON Schema MUST + SHOULD
- integrity rules"] S["Conformance suite
512 cases as plain data"] R["Reference reader kg_validate.py"] S -- "every reader passes" --> R C --> R end subgraph adopter["Adopter repository"] V["vendor/kg-ssot
- sha256 stamp"] G["kg_gate.py in CI
per-graph ratchet"] K["the team's .kg.yaml"] V --> G K --> G end product -- "kg_vendor.py update --tag" --> V G -- "nothing gets worse: a new graph passes, debt only shrinks" --> PR["PR approved"]
- The contract is JSON Schema 2020-12 at two levels: MUST fails, SHOULD warns. The rules a schema cannot express (unique ids, existing edge ends, orphan nodes) are part of it.
- The suite is the compatibility proof: each case is a real YAML file with the expected verdict and codes, and a reader passes only if it emits exactly the same codes.
- The kit brings the contract to a repository by tag, with a stamp that fails local edits, and runs the per-graph ratchet in CI: what already failed becomes named debt, a new graph has to pass, and the debt only shrinks.
Features
| Two-level contract | MUST fails, SHOULD warns, with a ramp: what warns in one version can fail in the next, and the adopter sees it coming |
| Structured provenance | source, locator and method, with five evidence classes and the source locality (repo, web, host, pessoa, privado) |
| Verification stamp | verified_at and verified_against, with a warning for a stamp with no target and for a verification dated before the fact |
| Edges between graphs | external_edges, with the far end checked against the corpus |
| Stable codes | Every violation has a code such as form.required.node.provenance, and --where names the node |
| Structured verdict | kg_validate.py --format json returns the verdict with code, document path, line, message and fix hint, in a versioned format (spec/verdict.schema.json) for tools and MCP servers |
| Two formats, one model | .kg.yaml to write and review in a diff, and .kg.json for runtime use (an app, a server), read by a JSON parser u
冒頭だけを表示しています。続きはリポジトリで読めます