Skip to main content
Glama
icohangar-ops

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/chp

PyPI (Python 참조 구현)

pip install consensus-hardening-protocol
  • 레지스트리: pypi.org/project/consensus-hardening-protocol

  • 프로파일 A 심의 + 규범 사양. 이 npm 패키지는 지출/위임 게이트를 위한 설치 가능한 TypeScript 인터페이스입니다 — @cubiczan/codesentinel-mcp와 동일한 채널 형태입니다.

Related MCP server: numproof

구성 요소 간의 관계

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.stringify100을 출력합니다. 이 패키지는 프로파일 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.

A
license - permissive license
Not graded
quality - not tested
C
maintenance

Related MCP Servers

  • A
    license
    A
    quality
    B
    maintenance
    MCP server for deterministic numeric verification and spreadsheet auditing. Enables AI agents to verify math/finance claims, audit rows, and evaluate covenant rules with signed, independently checkable receipts.
    4
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables MCP hosts to verify agent spending mandates and receipts, providing stateless tools for authorization, chain verification, credential verification, and DID resolution.
    Apache 2.0
  • F
    license
    Not graded
    quality
    C
    maintenance
    An MCP approval gate that ensures agents execute only human-approved, hash-verified actions, providing fail-closed consent for consequential operations.

View all related MCP servers

Related MCP Connectors

  • A paid remote MCP for Equibles, built to return verdicts, receipts, usage logs, and audit-ready JSON

  • A paid remote MCP for Statewright, built to return verdicts, receipts, usage logs, and audit-ready J

  • A paid remote MCP for ZeroID, built to return verdicts, receipts, usage logs, and audit-ready JSON.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/icohangar-ops/cubiczan-chp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server