{"_id":"@cubiczan/chp-mcp","_rev":"3-7d1f358bb09fbdd2cc2cffd8d960bb5e","name":"@cubiczan/chp-mcp","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"@cubiczan/chp-mcp","version":"0.1.0","keywords":["mcp","chp","consensus-hardening","spend-gate","finance","governance"],"author":{"name":"Shyam Desigan","email":"sam@cubiczan.com"},"license":"MIT","_id":"@cubiczan/chp-mcp@0.1.0","maintainers":[{"name":"cubiczan","email":"icohangar@gmail.com"}],"homepage":"https://github.com/icohangar-ops/cubiczan-chp-mcp#readme","bugs":{"url":"https://github.com/icohangar-ops/cubiczan-chp-mcp/issues"},"bin":{"chp-mcp":"dist/index.js"},"dist":{"shasum":"5b59e1bceba914af42ea3832fc32cf2344d8c34f","tarball":"https://registry.npmjs.org/@cubiczan/chp-mcp/-/chp-mcp-0.1.0.tgz","fileCount":7,"integrity":"sha512-Ge2V4qZO/+ksq6tfBp1DiMPJSak91kzzcx8aodG9TjZ7hKsO3rhJBcxQ0Q3iIBM7rAAyW0StubDXN1G8UktfKw==","signatures":[{"sig":"MEUCIQDnQhYHa1206V67Y4ENYjgmUhhv4NK5mc6hIxS1wFl7IgIgH4wIBavTs1qQgOuu2aFaaeWGIC1zKnfkjmAnfAENBus=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10883},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"gitHead":"f9f989a0a26de4763b217134c8fe1b210f783f48","mcpName":"io.github.icohangar-ops/chp-mcp","scripts":{"dev":"node --import tsx src/index.ts","build":"tsc -p tsconfig.json && node -e \"const fs=require('fs');const p='dist/index.js';let t=fs.readFileSync(p,'utf8');if(!t.startsWith('#!'))fs.writeFileSync(p,'#!/usr/bin/env node\\n'+t);fs.chmodSync(p,0o755)\"","start":"node dist/index.js","prepublishOnly":"npm run build"},"_npmUser":{"name":"cubiczan","email":"icohangar@gmail.com"},"repository":{"url":"git+https://github.com/icohangar-ops/cubiczan-chp-mcp.git","type":"git"},"_npmVersion":"12.0.2","description":"MCP server for CHP Profile B — evaluate_spend_gate and approve_spend over @cubiczan/chp","directories":{},"_nodeVersion":"26.0.0","dependencies":{"zod":"^3.24.0","@cubiczan/chp":"^0.1.1","@modelcontextprotocol/sdk":"^1.12.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.0","@types/node":"^22.15.0"},"_npmOperationalInternal":{"tmp":"tmp/chp-mcp_0.1.0_1787364316927_0.3445175984912838","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@cubiczan/chp-mcp","version":"0.1.1","keywords":["mcp","chp","consensus-hardening","spend-gate","finance","governance"],"author":{"name":"Shyam Desigan","email":"sam@cubiczan.com"},"license":"MIT","_id":"@cubiczan/chp-mcp@0.1.1","maintainers":[{"name":"cubiczan","email":"icohangar@gmail.com"}],"homepage":"https://github.com/icohangar-ops/cubiczan-chp-mcp#readme","bugs":{"url":"https://github.com/icohangar-ops/cubiczan-chp-mcp/issues"},"bin":{"chp-mcp":"bin/chp-mcp.js"},"dist":{"shasum":"b08190614da7cc4ff8462a7b4cdd99fd2b9bdb18","tarball":"https://registry.npmjs.org/@cubiczan/chp-mcp/-/chp-mcp-0.1.1.tgz","fileCount":8,"integrity":"sha512-6UdgVUrsW+pQ3FkQAnSBQLs7VgMQrEkmhTUpAWeOt0tEQKugfS1VYdWlVGxUfSxlQ+S9BFXrwgeh/qEDMGHyXg==","signatures":[{"sig":"MEUCIQCAPrLPDP4NNd4dch21b1S91Sy36zt8HagV1BUUdvRQcAIgCmFqKsIZa1Ma7k6QNXK2liadmnxCZ6Q55N2MfDOVjuc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10942},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"gitHead":"31978041070e7686ef258af16ca23ec90c30bad7","mcpName":"io.github.icohangar-ops/chp-mcp","scripts":{"dev":"node --import tsx src/index.ts","build":"tsc -p tsconfig.json && node -e \"const fs=require('fs');const p='dist/index.js';let t=fs.readFileSync(p,'utf8');if(!t.startsWith('#!'))fs.writeFileSync(p,'#!/usr/bin/env node\\n'+t);fs.chmodSync(p,0o755)\"","start":"node dist/index.js","prepublishOnly":"npm run build"},"_npmUser":{"name":"cubiczan","email":"icohangar@gmail.com"},"repository":{"url":"git+https://github.com/icohangar-ops/cubiczan-chp-mcp.git","type":"git"},"_npmVersion":"12.0.2","description":"MCP server for CHP Profile B — evaluate_spend_gate and approve_spend over @cubiczan/chp","directories":{},"_nodeVersion":"26.0.0","dependencies":{"zod":"^3.24.0","@cubiczan/chp":"^0.1.1","@modelcontextprotocol/sdk":"^1.12.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.0","@types/node":"^22.15.0"},"_npmOperationalInternal":{"tmp":"tmp/chp-mcp_0.1.1_1787364429497_0.98764958190105","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@cubiczan/chp-mcp","version":"0.1.2","description":"Spend approval gate for AI agents — enforce budget limits, per-asset caps and human-in-the-loop thresholds before an agent moves money, with a signed audit hash.","mcpName":"io.github.icohangar-ops/chp-mcp","type":"module","main":"./dist/index.js","bin":{"chp-mcp":"bin/chp-mcp.js"},"scripts":{"build":"tsc -p tsconfig.json && node -e \"const fs=require('fs');const p='dist/index.js';let t=fs.readFileSync(p,'utf8');if(!t.startsWith('#!'))fs.writeFileSync(p,'#!/usr/bin/env node\\n'+t);fs.chmodSync(p,0o755)\"","start":"node dist/index.js","dev":"node --import tsx src/index.ts","prepublishOnly":"npm run build"},"keywords":["mcp","model-context-protocol","mcp-server","spend-approval","spend-limits","budget-guard","approval-gate","human-in-the-loop","hitl","agent-governance","audit-trail","chp","consensus-hardening","claude","cursor"],"author":{"name":"Shyam Desigan","email":"sam@cubiczan.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/icohangar-ops/cubiczan-chp-mcp.git"},"homepage":"https://github.com/icohangar-ops/cubiczan-chp-mcp#readme","bugs":{"url":"https://github.com/icohangar-ops/cubiczan-chp-mcp/issues"},"engines":{"node":">=18"},"dependencies":{"@cubiczan/chp":"^0.1.1","@modelcontextprotocol/sdk":"^1.12.1","zod":"^3.24.0"},"devDependencies":{"@types/node":"^22.15.0","typescript":"^5.8.0"},"publishConfig":{"access":"public"},"gitHead":"6d456021f66cb8cf84b6e7e526cac5e09f64e5e6","types":"./dist/index.d.ts","_id":"@cubiczan/chp-mcp@0.1.2","_nodeVersion":"26.0.0","_npmVersion":"12.0.2","dist":{"integrity":"sha512-VmiHWUZ3O+OBB4LCExawlST822TK2pCwsG5hvW9+amq4NKDGEPAwYRhElAMw/jYbHlGY1gcjRvBHCwDtR5O4Ww==","shasum":"18c29b3882266066ce2fb3f59def83a11811abf3","tarball":"https://registry.npmjs.org/@cubiczan/chp-mcp/-/chp-mcp-0.1.2.tgz","fileCount":8,"unpackedSize":12162,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDeogml4UxdHjArtAwH0nLJS+zxcHwz8xsafaNkTe5aPwIgI8y5uZLsgDPPrVaQbW1hONwedsybx7s7dvMh8e6AbTo="}]},"_npmUser":{"name":"cubiczan","email":"icohangar@gmail.com"},"directories":{},"maintainers":[{"name":"cubiczan","email":"icohangar@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/chp-mcp_0.1.2_1787401753088_0.6605323800229903"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-22T02:05:16.728Z","modified":"2026-08-22T12:29:13.379Z","0.1.0":"2026-08-22T02:05:17.073Z","0.1.1":"2026-08-22T02:07:09.630Z","0.1.2":"2026-08-22T12:29:13.232Z"},"bugs":{"url":"https://github.com/icohangar-ops/cubiczan-chp-mcp/issues"},"author":{"name":"Shyam Desigan","email":"sam@cubiczan.com"},"license":"MIT","homepage":"https://github.com/icohangar-ops/cubiczan-chp-mcp#readme","keywords":["mcp","model-context-protocol","mcp-server","spend-approval","spend-limits","budget-guard","approval-gate","human-in-the-loop","hitl","agent-governance","audit-trail","chp","consensus-hardening","claude","cursor"],"repository":{"type":"git","url":"git+https://github.com/icohangar-ops/cubiczan-chp-mcp.git"},"description":"Spend approval gate for AI agents — enforce budget limits, per-asset caps and human-in-the-loop thresholds before an agent moves money, with a signed audit hash.","maintainers":[{"name":"cubiczan","email":"icohangar@gmail.com"}],"readme":"# `@cubiczan/chp-mcp`\n\n[![icohangar-ops/cubiczan-chp-mcp MCP server](https://glama.ai/mcp/servers/icohangar-ops/cubiczan-chp-mcp/badges/score.svg)](https://glama.ai/mcp/servers/icohangar-ops/cubiczan-chp-mcp)\n\n\nOne-command MCP install for **CHP Profile B** spend / capital gates.\n\n[![MCP Registry](https://img.shields.io/badge/MCP_Registry-io.github.icohangar--ops%2Fchp--mcp-00C4B4)](https://registry.modelcontextprotocol.io)\n[![npm](https://img.shields.io/npm/v/@cubiczan/chp-mcp)](https://www.npmjs.com/package/@cubiczan/chp-mcp)\n[![Conformance](https://img.shields.io/badge/CHP_Profile_B-30%2F30-brightgreen)](https://github.com/icohangar-ops/cubiczan-chp)\n\nWraps [`@cubiczan/chp`](https://www.npmjs.com/package/@cubiczan/chp) so Cursor,\nClaude Code, or any MCP client can call `evaluate_spend_gate` without vendoring\nprotocol code. Engine digests match the normative golden vectors\n(**Profile B 30/30**).\n\n## How the pieces fit\n\n```text\nMCP client (Cursor / Claude / …)\n        │  tools/call\n        ▼\n┌───────────────────────────┐\n│  MCP server (transport)   │  ← you are here (@cubiczan/chp-mcp)\n│  evaluate_spend_gate      │\n│  approve_spend            │\n│  chp_content_hash         │\n└─────────────┬─────────────┘\n              │ depends on\n              ▼\n┌───────────────────────────┐\n│  Published CHP packages   │\n│  npm:  @cubiczan/chp                 (Profile B)\n│  PyPI: consensus-hardening-protocol  (Profile A)\n└───────────────────────────┘\n```\n\nFor AGENTS.md + skills + Profile A `decision_gate` / `decision_adversary`, use\n[agent-conductor](https://github.com/icohangar-ops/agent-conductor) instead.\n\n## Install\n\n```bash\nnpm install -g @cubiczan/chp-mcp\n# or one-shot\nnpx -y @cubiczan/chp-mcp\n```\n\n### Cursor / Claude Desktop\n\n```json\n{\n  \"mcpServers\": {\n    \"chp\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@cubiczan/chp-mcp\"]\n    }\n  }\n}\n```\n\n### Claude Code\n\n```bash\nclaude mcp add chp -- npx -y @cubiczan/chp-mcp\n```\n\n## Tools\n\n| Tool | Maps to | Purpose |\n|------|---------|---------|\n| `evaluate_spend_gate` | `evaluateGate` | LOCKED / HITL_REQUIRED / BLOCKED + claims + content hash |\n| `approve_spend` | `approveHuman` | Human lock when HITL_REQUIRED (cannot override hard fails) |\n| `chp_content_hash` | `contentHash` | Float-aware canonical SHA-256 |\n| `chp_version` | — | Server + protocol versions |\n\n### Example — evaluate a spend\n\n```jsonc\n// tools/call evaluate_spend_gate\n{\n  \"action\": { \"action\": \"LONG\", \"asset\": \"ETH\", \"notional\": 300, \"confidence\": 0.9 },\n  \"policy\": {\n    \"max_notional\": 500,\n    \"daily_cap\": 2500,\n    \"hitl_threshold\": 250,\n    \"min_confidence\": 0.55,\n    \"allowed_actions\": [\"LONG\", \"SHORT\"]\n  }\n}\n```\n\n## Related\n\n| Package / repo | Role |\n|----------------|------|\n| [`@cubiczan/chp`](https://www.npmjs.com/package/@cubiczan/chp) | Profile B library (this server’s dependency) |\n| [`consensus-hardening-protocol`](https://pypi.org/project/consensus-hardening-protocol/) | Profile A + normative spec |\n| [`@cubiczan/agent-conductor`](https://www.npmjs.com/package/@cubiczan/agent-conductor) | Full MCP: contracts, skills, Profile A gates |\n| [`@cubiczan/governed-mcp-gateway`](https://www.npmjs.com/package/@cubiczan/governed-mcp-gateway) | HTTP MCP control plane |\n| [`@cubiczan/codesentinel-mcp`](https://www.npmjs.com/package/@cubiczan/codesentinel-mcp) | Codebase health MCP |\n| [`cubiczan-resilience`](https://pypi.org/project/cubiczan-resilience/) / [`@cubiczan/resilience`](https://www.npmjs.com/package/@cubiczan/resilience) | Shared retry / timeout / audit primitives |\n\n## Licence\n\nMIT.\n","readmeFilename":"README.md"}