io.github.icohangar-ops/chp-mcp
Official@cubiczan/chp
TypeScript용 Consensus Hardening Protocol — 프로파일 B 자본 게이트, 표준 JSON, 서명된 감사 원장.
표준 프로토콜 저장소: icohangar-ops/consensus-hardening-protocol (사양, 골든 벡터, Python 참조 구현)
설치
npm (이 패키지)
npm install @cubiczan/chpPyPI (Python 참조 구현)
pip install consensus-hardening-protocol프로파일 A 심의 + 규범 사양. 이 npm 패키지는 지출/위임 게이트를 위한 설치 가능한 TypeScript 인터페이스입니다 —
@cubiczan/codesentinel-mcp와 동일한 채널 형태입니다.
Related MCP server: @cubiczan/chp-mcp
구성 요소 간의 관계
CHP는 엔진입니다. MCP 서버는 전송 계층입니다.
MCP client (Cursor / Claude / …)
│ tools/call
▼
┌───────────────────────────┐
│ MCP server (transport) │ ← agent-conductor, codesentinel-mcp, …
│ decision_gate │
│ decision_adversary │
│ evaluate_spend_gate │
└─────────────┬─────────────┘
│ depends on
▼
┌───────────────────────────┐
│ Published CHP packages │
│ PyPI: consensus-hardening-protocol (Profile A)
│ npm: @cubiczan/chp (Profile B) ← you are here
└───────────────────────────┘이 패키지는 프로파일 B(evaluateGate / approveHuman)입니다. MCP 서버에 evaluate_spend_gate 같은 형태로 연결하세요. 프로파일 A 심의 도구(decision_gate, decision_adversary)는 agent-conductor에 있으며, stdio 브리지 뒤에서 PyPI 패키지에 의존합니다.
MCP 원라이너
글루 코드를 작성하지 않고 Cursor / Claude에서 사용:
npx -y @cubiczan/chp-mcp레지스트리 이름: io.github.icohangar-ops/chp-mcp. 소스: cubiczan-chp-mcp.
적합성: 프로파일 B 30/30 · 프로파일 A (Python) 70/70.
빠른 시작
import { evaluateGate, approveHuman } from "@cubiczan/chp";
const policy = {
max_notional: 500,
daily_cap: 2500,
hitl_threshold: 250,
min_confidence: 0.55,
allowed_actions: ["LONG", "SHORT"],
};
const decision = evaluateGate(
{ action: "LONG", asset: "ETH", notional: 300, confidence: 0.9 },
policy,
);
// → { state: "HITL_REQUIRED", requires_human: true, ... }
const locked = approveHuman(
{ action: "LONG", asset: "ETH", notional: 300, confidence: 0.9 },
policy,
"cfo@example.com",
);
// → { state: "LOCKED", allowed: true, ... }하드 규칙 위반(max_notional, daily_cap, min_confidence, …)은 HITL 임계값 테스트 이전에 수집됩니다. 사람이 임계값을 넘을 수는 있지만, 정책 위반을 승인할 수는 없습니다(사양 §6.3 / §6.5).
언어 간 해시
CHP 콘텐츠 해시는 표준 JSON에 대한 SHA-256입니다(사양 §3.1). Python은 정수 부동소수점을 100.0으로 출력하고, JavaScript의 JSON.stringify는 100을 출력합니다. 이 패키지는 프로파일 B 해시 필드 집합을 Python 방식으로 포맷하여 감사 다이제스트가 골든 벡터 및 Python 참조 구현과 일치하도록 합니다.
적합성 어댑터
npm run build
python3 path/to/spec/conformance/run_conformance.py \
--adapter-cmd "node dist/adapter.js" \
--profile B프로파일 A 작업은 FAIL이 아닌 unsupported(SKIP)로 보고됩니다.
라이선스
MIT.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Governed MCP: agent audit, provenance, deterministic checks, and receipt-backed FragGate execution.
Governance runtime for compliance: verified, human-approved writes to a tamper-evident record.
Authority, mandate, and policy checks for AI finance with replayable evidence. Not live execution.
Append-only decisions with provenance, supersession, retrieval, and audited MCP actions.
Related MCP Servers
AlicenseNot gradedqualityDmaintenanceEnables MCP hosts to verify agent spending mandates and receipts, providing stateless tools for authorization, chain verification, credential verification, and DID resolution.Apache 2.0- AlicenseAqualityAmaintenanceEnables MCP clients to evaluate spend gates and manage human-in-the-loop approvals for CHP Profile B.428 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables users to trace regulatory rule changes to affected parties and required actions through deterministic safety gates, returning dated action plans and hash-linked evidence records. Supports 12 MCP tools over stdio or streamable HTTP for source comparison, obligation decomposition, scope assessment, planning, and evidence validation across multiple domain packs.MIT
- AlicenseBqualityBmaintenanceEnables MCP clients to enforce CHP Profile B spend gates, issue and verify signed tool-approval receipts, and audit denied or authorized finance actions.1228 npmMIT