Capability Host Protocol MCP server
Commit 11 Okt 2026Menyediakan lapisan bukti terkelola untuk mendeklarasikan, mengatur, dan membuktikan tindakan agentic melalui catatan eksekusi yang ditandatangani dan tahan terhadap manipulasi.
Juga dikenal sebagai capabilityhostprotocol/chp-core, chp-core
- Stars
- 1
- Tools
- —
- Unduhan, 30 hari
- —
- Versi terbaru
- 0.8.0
- Commit terakhir
- 11 Okt 2026
- Lisensi
- Apache-2.0
Apa itu Capability Host Protocol MCP?
Capability Host Protocol adalah MCP server. Menyediakan lapisan bukti terkelola untuk mendeklarasikan, mengatur, dan membuktikan tindakan agentic melalui catatan eksekusi yang ditandatangani dan tahan terhadap manipulasi.
Ringkasan dibuat dari README proyek
Tentang Capability Host Protocol MCP server
Capability Host Protocol menyediakan lapisan bukti terkelola yang dirancang untuk mendeklarasikan, mengatur, dan membuktikan tindakan agentic. Protokol ini menciptakan satu bidang bertanda tangan di mana persetujuan manusia, tindakan agent, dan system calls disatukan menjadi event yang dapat di-replay dan tahan terhadap manipulasi. Protokol ini ditujukan bagi developer yang menggunakan coding agents seperti Claude Code, Codex, atau Gemini CLI yang perlu memverifikasi secara tepat apa yang dilakukan oleh tools dan sistem mereka selama sebuah sesi.
Pengguna dapat mengimplementasikannya secara lokal dengan menginstal package chp-core via pip dan menggunakan command seperti chp hooks install untuk terhubung ke harness yang sudah ada. Sistem ini menyimpan event bukti hash-chained dalam database SQLite lokal yang terletak di ~/.chp/evidence.sqlite. Protokol ini berbeda dari tools observabilitas standar karena menyatukan sinyal eksekusi dengan data tata kelola, seperti keputusan kebijakan dan alasan penolakan, ke dalam satu catatan yang berkorelasi. Developer juga dapat menjalankan protokol ini secara langsung menggunakan command chp serve-demo untuk memulai host yang terkelola.
Apa yang bisa Anda lakukan dengannya
- 1Audit eksekusi tool agentDeveloper dapat meninjau riwayat lengkap tentang apa yang dilakukan agent dan tata kelola yang mengontrolnya.
- 2Verifikasi integritas catatanPengguna dapat memastikan bahwa log eksekusi tidak diubah oleh pihak lain selain runner agent.
- 3Simulasi penegakan kebijakanAnda dapat menguji bagaimana kebijakan keamanan tertentu akan bereaksi terhadap sesi eksekusi di masa lalu.
- 4Replay sesi spesifikDeveloper dapat merekonstruksi urutan event menggunakan correlation ID untuk melihat urutan tepat dari tool calls.
Ditulis berdasarkan README proyek. Setiap use case diperiksa terhadap kutipan dari README tersebut.
Cara menginstal Capability Host Protocol MCP
Format diverifikasi 10 Nov 2026Instal Capability Host Protocol MCP di Claude Code
$ claude mcp add --transport http chp-core https://capabilityhostprotocol.com/api/mcpInstal Capability Host Protocol MCP di Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"chp-core": {
"url": "https://capabilityhostprotocol.com/api/mcp"
}
}
}Instal Capability Host Protocol MCP di VS Code
.vscode/mcp.json
{
"servers": {
"chp-core": {
"type": "http",
"url": "https://capabilityhostprotocol.com/api/mcp"
}
}
}Instal Capability Host Protocol MCP di Codex
~/.codex/config.toml
[mcp_servers.chp-core] url = "https://capabilityhostprotocol.com/api/mcp"
Instal Capability Host Protocol MCP di Gemini CLI
~/.gemini/settings.json
{
"mcpServers": {
"chp-core": {
"httpUrl": "https://capabilityhostprotocol.com/api/mcp"
}
}
}README
Lihat di GitHubCapability Host Protocol
CHP is the open protocol for declaring, governing, and proving what agents, tools, and systems do — the single signed plane where a human approval, an agent's action, and a system call become the same governed, tamper-evident, replayable event.
The hook is simple:
See what your agents and tools actually did — and what governed it.
Try it in two minutes
Your coding agent reads files, runs commands, calls tools. This puts a governed boundary at the point of action — no application code changes:
pip install chp-core
chp hooks install # hooks Claude Code
chp hooks install --all-harnesses # ...or Claude Code + Codex + Gemini CLI
Use your agent normally, then look at what it did:
chp session list
chp session tree <session_id>
Every tool call is a typed evidence event, hash-chained and stored locally in ~/.chp/evidence.sqlite. A denial is a first-class event with a reason code — not a swallowed exception — and the chain is tamper-evident, so someone who did not run the agent can still tell whether the record is intact.
Prefer to drive the protocol directly? chp serve-demo starts a governed host and prints a copy-pasteable first invocation.
Full guide: docs/quickstart.md · why it exists: docs/why-chp.md · docs site: docs.capabilityhostprotocol.com
What you get back
Replay is by correlation ID, and the record answers more than "what happened" — from examples/agent-operations-demo/:
[
{"sequence": 1, "event_type": "execution_started", "capability_id": "trace_execution", "outcome": null},
{"sequence": 3, "event_type": "execution_completed", "capability_id": "trace_execution", "outcome": "success"},
{"sequence": 7, "event_type": "execution_started", "capability_id": "tool.add", "outcome": null},
{"sequence": 12, "event_type": "execution_started", "capability_id": "tool.multiply", "outcome": null},
{"sequence": 13, "event_type": "execution_completed", "capability_id": "tool.multiply", "outcome": "success"}
]
You can also ask what a policy would have done to a run that already happened:
{
"invariant": {"id": "deny_multiply_tool", "kind": "capability_id_matches"},
"would_have_denied": true,
"violating_events": [{"capability_id": "tool.multiply", "event_type": "execution_started"}]
}
Why a protocol, not a library
CHP is not another agent framework, tool protocol, or workflow engine. It is the governed evidence plane at the capability boundary: what ran and what governed it (policy, risk tier, safety checks, human approval, autonomy budgets, denial) emit onto one signed, correlated record. Observability tools split execution across separate, optional, unsigned signals and carry no governance; CHP unifies both and proves them.
Status: CHP is a pre-1.0 release candidate (v0.9.3) — a frozen, additive wire surface backed by two independent implementations (Python + TypeScript) that pass conformance. chp-core ships on PyPI.
What CHP Defines
- Capability descriptors
- Host descriptors
- Invocation envelopes
- Correlation context
- Structured execution evidence
- Outcome, error, and denial semantics
- Replay queries and results
- Replay by correlation ID
- Minimal conformance requirements
Install
pip install chp-core # zero runtime dependencies
pip install 'chp-core[schema]' # enforce declared input_schema
pip install 'chp-core[signing]' # ed25519 — signed hosts, bundles, mandates
npm install @capabilityhostprotocol/sdk # TypeScript client + verifier (alpha)
chp host verify smoke-tests the install in under a second and reports whether input-schema validation is enforced.
From this checkout: python -m pip install -e packages/python.
Minimal Capability
from chp_core import LocalCapabilityHost, capability
host = LocalCapabilityHost("example-host")
@capability(
id="math.add",
version="1.0.0",
description="Add two numbers.",
)
def add(a: int, b: int):
return {"sum": a + b}
host.register(add)
result = host.invoke(
"math.add",
{"a": 2, "b": 3},
correlation_id="demo-correlation",
)
print(result.outcome) # "success"
print(result.data) # {"sum": 5}
for event in host.replay("demo-correlation"):
print(event.event_type) # execution_started, execution_completed
The host emits execution_started and execution_completed evidence for the invocation. If execution fails, it emits execution_failed. If the host denies invocation, it emits execution_denied.
Repository Map
spec/README.md: the specification index — core (v0.1), governance vocabulary, invocation pipeline, HTTP binding, evidence integrity + anchors (v0.2), reserved names, test vectors, changelog, proposal processschemas/: JSON Schemas for protocol objectspackages/python/chp_core/: reference host (Python)packages/chp-sdk/+packages/chp-host-ts/: the second implementation (TypeScript)examples/capability-host-endpoint-demo/: HTTP-served host demoexamples/agent-operations-demo/: agent/tool observability demoexamples/codex-self-observation-demo/: Codex dogfooding demoexamples/mcp-bridge-demo/: experimental MCP-style bridge prototypeconformance/: conformance runnerdocs/quickstart.md: install, first run, serving, meshdocs/why-chp.md: the problem and the thesisdocs/adapter-authoring.md: writing your own capability adapterdocs/production-runbook.md: operations, backup/restore, key compromisedocs/comparisons/chp-vs-mcp.md: precise MCP comparisondocs/comparisons/chp-and-opentelemetry.md: OpenTelemetry alignment notedocs/comparisons/landscape.md: adjacent framework comparisondocs/security/threat-model-v0.1.md: v0.1 threat model
Production Posture
The reference implementation is hardened for production operation: WAL
multi-writer safety with hot backup (chp store backup --verify), SIGTERM
drain (in-flight work completes before exit), a fail-loud auth flag
(CHP_HOST_REQUIRE_AUTH=1), scheduled retention, and operator metrics (store
size, witness-loop liveness, revocation counts, internal errors). Operations,
backup/restore, rolling upgrades, and the key-compromise runbook:
docs/production-runbook.md. Vulnerability
reporting: SECURITY.md.
CHP vs MCP
MCP exposes tools and context to AI applications. CHP governs and evidences execution of capabilities.
They fit together. MCP can be a source of capability invocation, and CHP adds correlation, replay, evidence, denial semantics, and governance at the execution boundary.
Read more: docs/comparisons/chp-vs-mcp.md.
Contributing
Read CONTRIBUTING.md first. One thing to know before you open a pull request: this repository is a generated mirror of a private development repository. CI rejects pull requests that touch packages/, docs/, spec/, schemas/, or examples/ from a branch that is not sync/*, so a code PR against those paths will fail by construction no matter how good it is.
That is not a brush-off — it is the publishing model, and we would rather say so up front than let you find out from a red check. Issues, spec proposals, comparisons, and discussion are the highest-bandwidth way in today; open an issue and we will route the change through the internal flow with attribution.
Open Source Boundary
Open source should include local visibility:
- spec and schemas
- local host
- SDK primitives
- conformance
- local replay
- agent observability wrapper
- experimental MCP bridge prototype
Commercial value can remain around production trust:
- hosted capability graph
- multi-host trace stitching
- retention
- team workspaces
- advanced explanation
- invariant libraries
- assurance derivation
- compliance exports
- enterprise identity and RBAC
Guiding rule:
Local visibility should be free. Production trust should be paid.
License
CHP is dual-licensed by asset:
- Code (
packages/,conformance/,examples/,scripts/): Apache License 2.0 — seeLICENSE. - Specification, schemas & docs (
spec/,schemas/,docs/): Creative Commons Attribution 4.0 (CC BY 4.0) — seeLICENSE-DOCS. Implementing the specification is additionally covered by a royalty-free patent grant — seePATENTS. - Trademarks: "CHP" and "CHP-Certified" — see
TRADEMARK.md.
Contributions are accepted under the Contributor License Agreement; see CONTRIBUTING.md.
Copyright © 2026 Project Auxo, Inc. See NOTICE.
Pertanyaan tentang Capability Host Protocol MCP
Bagaimana cara menambahkan Capability Host Protocol MCP ke Claude Code?
Jalankan claude mcp add --transport http chp-core https://capabilityhostprotocol.com/api/mcp di terminal Anda. Tambahkan --scope user agar tersedia di semua proyek.
Bagaimana cara menambahkan Capability Host Protocol MCP ke Cursor?
Buka ~/.cursor/mcp.json dan tambahkan server di bawah mcpServers, menggunakan config Cursor yang ditunjukkan di bagian instalasi di atas.
Apa perbedaan antara CHP dan MCP?
MCP mengekspos tools dan konteks ke aplikasi AI, sedangkan CHP mengatur dan memberikan bukti atas eksekusi kapabilitas, serta menambahkan korelasi, replay, dan tata kelola.
Di mana bukti eksekusi disimpan?
Setiap tool call disimpan secara lokal dalam database SQLite yang terletak di ~/.chp/evidence.sqlite.
Apakah protokol ini tahan terhadap manipulasi?
Ya, chain ini bersifat tamper-evident, memungkinkan pengguna untuk memverifikasi apakah catatan tetap utuh meskipun mereka tidak menjalankan agent tersebut.