Gpp

io.github.mahabubul470由 GitHub 帳號 mahabubul470 發布v0.2.2更新於 Oct 24, 2026

Project knowledge graph with history-checked belief staleness, changeset proposals, cost reporting

已驗證STDIO僅桌面知識與記憶開發者工具

概覽

AI 產生的概覽

gpp 的 MCP 伺服器讓助理查詢儲存庫的版本控制知識圖譜、提出有證據錨定的信念與變更集提案,並回報成本。

可以做什麼
  • 查詢專案知識圖譜,包含每條信念的新鮮度資訊:錨點、之後的提交數,以及使其失效的變更集。
  • 提出以證據為錨點的新信念,經人工核准後再由歷史紀錄檢驗。
  • 提出變更集提案,並回報每個變更集的 token 與成本紀錄。
  • 與 Git 並存:歷史可透過 Git 橋接匯入匯出,原有工作流程不受影響。
適用情境
適合助理在多次工作階段中長期參與同一個程式碼庫,需要確認已保存的程式碼筆記是否仍然成立,或把新結論綁定到特定程式碼行時使用。也適合希望代理寫入的知識經過人工審核、並由提交歷史判定是否過時的團隊。
執行需求
以 stdio 本機程序方式執行,透過 cargo 套件 gpp-cli 安裝(需 Rust 工具鏈,或使用預先建置的發行版二進位檔)。儲存庫需先以 gpp 初始化,用戶端設定指向 gpp 二進位檔並帶 mcp-server --stdio 參數。未宣告驗證、環境變數或標頭。
安裝前請注意
此伺服器會寫入儲存庫:信念與變更集提案會改動已儲存的專案知識,不過信念據稱需人工核准後才生效。知識圖譜以加密形式存放在儲存庫內,因此儲存庫存取權限等同於該知識的存取權限。雖未宣告憑證,但同一套工具還包含 P2P 同步、遠端 PR 建立與 webhook,這些不屬於本 MCP 伺服器。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Gpp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

gpp (git++)

[CI] [License: MIT] [Rust 2024]

AI agents change code continuously, then lose the work that happened between commits — and the notes they keep about your codebase (CLAUDE.md, memory banks, knowledge files) go stale silently when the code moves on. gpp is a version control system built for that reality: it captures every change as it happens, promotes curated changesets with intent and provenance, and hosts project knowledge on the repo's own history — so when a commit invalidates something you believed about the code, gpp can name that commit.

[gpp demo]

(Recording is generated by scripts/demo.sh — deterministic, reproducible, no mockups.)

30-second try

bash
cargo install gpp-cli
gpp init --graphexecho "fn main() {}" > main.rsgpp timeline                     # captured already — no staging, no commitgpp promote -m "first cut" --intent featuregpp diff HEAD                    # semantic diff: renames/moves are one op

And the part no other VCS does — record what you believe about the code, and let history police it:

bash
gpp belief add --claim "token expiry is 24h" --evidence src/auth.rs:7-7# ...weeks of commits later...gpp belief bisect "token expiry is 24h"# INVALIDATED  cs:fhcpef7c  "raise token expiry to 7 days"#  -     7 | pub const EXPIRY_HOURS: u64 = 24;#  +     7 | pub const EXPIRY_HOURS: u64 = 168;

Deterministic — diff intersection and blob hashes, zero LLM or network calls. (For scale: asked to judge whether a stored memory has been invalidated, the best frontier model manages 55.2% accuracy on the STALE benchmark — here it's a history query, not a judgment.) Validated on real history across five repos in four languages — axum 0.6→0.7, flask 1.1→2.0, clap 3→4, zod 3→4, go-redis 8→9 — where every invalidated belief bisects to a pinned, documented culprit commit and the control beliefs survive: see demos/belief-bisect/ for the full matrix.

What makes it different

  • Continuous capture. A high-frequency timeline records every file change (SQLite WAL, debounced watcher); curated changesets are promoted from it with an explicit intent, author kind (human/agent), and cost record. Nothing is lost between commits.
  • Graphex: versioned, encrypted project knowledge. Architecture, conventions, decisions, and beliefs live in an encrypted knowledge graph inside the repo, tier-gated per agent trust level, audited on every read — and staleness-checked against the history it rides on.
  • Agent governance. First-class agent identity with reputation scoring, compliance-as-code policies enforced at capture/promote/sync, anomaly detection, and per-changeset token/cost attribution.

Everything else — P2P sync over Noise, replay, review/RBAC, a relay node, a TUI — is the platform underneath: see docs/ARCHITECTURE.md.

Git is the substrate, not the competition. The bridge (gpp git-import / git-export / git-bridge) round-trips real Git commits, so GitHub and existing workflows keep working — gpp's knowledge, provenance, and governance layers ride alongside. The axum demo above runs entirely on history imported through this bridge.

Connect Claude Code (or any MCP client)

gpp ships an MCP server; agents query the knowledge graph (every belief with a freshness envelope — anchor, commits since, and the changeset that staled it), write their own evidence-anchored beliefs with propose_belief (human-approved, then policed by history), propose changesets, and report costs. Drop this in .mcp.json at your repo root:

json
{  "mcpServers": {    "gpp": { "command": "gpp", "args": ["mcp-server", "--stdio"] }  }}

Full client setup (Claude Desktop, generic stdio) and the exposed tool list: docs/MCP.md.

Status

All 9 roadmap phases (0–8) implemented. See docs/ROADMAP.md for per-phase deliverables and documented deviations, docs/TODO.md for the prioritized backlog, and docs/WORKLOG.md for the running engineering log.

Verified 2026-08-23: 184 workspace tests pass, cargo clippy and cargo fmt clean, full workspace builds. No stub crates remain — every crate has a working implementation. Coverage is measured in CI (cargo llvm-cov; 65.7% line at baseline, being raised).

Test depth is still uneven: foundational layers are well covered (gpp-core, gpp-graphex, gpp-diff, gpp-tui ≥ 80% line; the CLI has end-to-end suites for policy enforcement, cost reporting, reviewer assignment and belief bisect), while several integration crates remain at smoke-level (gpp-sdk, gpp-notify, gpp-rbac, gpp-replay). "Implemented" here means built and tested against its milestone, not exhaustively hardened everywhere. Closing that gap is the top item in docs/TODO.md.

The full layer table

LayerCrateWhat's implemented
Storagegpp-coreContent-addressed store (BLAKE3 + zstd), Blob/Tree, raw verified frame transfer
Timelinegpp-timelineSQLite (WAL) capture, .gppignore, debounced watcher, pruning
Historygpp-historyChangeset/Intent/Author, branch refs, promote, DAG walk
Diffgpp-diffLine + tree-sitter semantic diff (Rust/Python/TS/Go), rename/move detection
Git bridgegpp-git-bridgegit-import/git-export/git-bridge, SQLite hash map
Graphexgpp-graphexEncrypted (age + AES-GCM) knowledge graph, tier-gated projection, query, lifecycle, audit, beliefs + staleness engine
SDK / MCPgpp-sdkAgentSession; gpp mcp-server --stdio (JSON-RPC MCP)
Trustgpp-trustReputation scoring, status transitions, overrides, events
Policygpp-policy.policy TOML rules, enforcement at promote (block) + timeline (warn) + sync (block), built-in templates
Costgpp-costPer-changeset token/$ records, budgets, efficiency, agent self-reporting
Anomalygpp-anomalyScope/burst/size detection, resolution workflow
Syncgpp-syncNoise_XX P2P; objects/refs/policies/graphex; fork-preserve
Replaygpp-replayReproducible environment snapshots + drift diff
Review/RBAC/Notifygpp-review gpp-rbac gpp-notifyReview lifecycle, roles + branch protection, events/inbox/HMAC webhooks
Remotegpp-remoteGitHub/GitLab/Bitbucket PR creation, enriched bodies, CI/review import
Relaygpp-relayAlways-on sync hub binary + health endpoint + Dockerfile
Clientsgpp-cli gpp-tui gpp-depsFull CLI, ratatui TUI (gpp ui), dependency intel (gpp deps + OSV)

Also: extensions/{gh-gpp,vscode-gpp,neovim-gpp}, GitHub Actions + GitLab CI templates, deploy/ Docker images, packaging/ Homebrew.

Documented follow-ups (recorded in the ROADMAP/TODO, not silently skipped): registry/license APIs for deps, native PyO3/napi bindings, outbound platform-review sync, apt/dpkg packages.

Install / build

bash
cargo install gpp-cli                    # the `gpp` binary (crates.io)cargo install gpp-relay                  # relay node (optional)
# or from a clonecargo build --releasecargo test --workspacecargo bench -p gpp-core -p gpp-diff      # criterion perf suite

Prebuilt binaries for Linux, macOS (ARM + Intel), and Windows are attached to each release; cargo install --git https://github.com/mahabubul470/gpp gpp-cli tracks unreleased development.

More to try

bash
# Governancegpp policy template secrets-scangpp trust showgpp audit --include-cost --include-graphex
# Decentralized: sync two repos over Noisegpp sync serve 127.0.0.1:9473             # on peer Agpp sync add a 127.0.0.1:9473 && gpp sync # on peer B
# GitHub-compatiblegpp remote setup --platform github --repository acme/webappgpp remote pr-create --base main

See CLAUDE.md for project context, docs/ for the full specification (architecture, data model, CLI, protocols, roadmap), and docs/book/ for the user guide + tutorials.

License

MIT

來源:README.md,提交 5b4e08b

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.2.2最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分