Skip to main content
ClaudeWave
icohangar-ops avatar
icohangar-ops

governed-mcp-gateway

View on GitHub

Governed MCP Gateway — principal on every tool call and SSE frame, vaulted credential rotation, tool allowlists.

MCP ServersOfficial Registry0 stars0 forksTypeScriptMITUpdated today
ClaudeWave Trust Score
95/100
Verified
Passed
  • Open-source license (MIT)
  • Actively maintained (<30d)
  • Clear description
  • Topics declared
  • Documented (README)
Last scanned: 8/23/2026
Install in Claude Code / Claude Desktop
Method: NPX · npx
Claude Code CLI
claude mcp add governed-mcp-gateway -- npx -y npx
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "governed-mcp-gateway": {
      "command": "npx",
      "args": ["-y", "npx"]
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
Use cases

MCP Servers overview

# @cubiczan/governed-mcp-gateway

[![npm](https://img.shields.io/npm/v/@cubiczan/governed-mcp-gateway)](https://www.npmjs.com/package/@cubiczan/governed-mcp-gateway)
[![MCP Registry](https://img.shields.io/badge/MCP_Registry-io.github.icohangar--ops%2Fgoverned--mcp--gateway-00C4B4)](https://registry.modelcontextprotocol.io)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)

HTTP MCP **control plane** (default port **7474**). Principal on every `tools/call` and every SSE frame — not a tool catalog.

Production MCP auth often dies when work hops threads or workers. This gateway resolves a Bearer credential to a **Principal**, injects it into `params._meta.cubiczan.principal`, repeats it on SSE, enforces allowlists, rotates vaulted secrets in place, and runs a lightweight CHP spend gate before priced tools.

## Install / run

```bash
npm i -g @cubiczan/governed-mcp-gateway   # or use npx
npx -y @cubiczan/governed-mcp-gateway
# → http://127.0.0.1:7474
```

From source:

```bash
npm install
npm run build
npm start
npm test
```

## Cursor / Claude config

Start the gateway in a terminal (or a process manager), then point the client at the HTTP MCP endpoints:

```json
{
  "mcpServers": {
    "governed-gateway": {
      "url": "http://127.0.0.1:7474/mcp",
      "headers": {
        "Authorization": "Bearer mcp_agt_payops_demo"
      }
    },
    "chp": {
      "command": "npx",
      "args": ["-y", "@cubiczan/chp-mcp"]
    },
    "conductor": {
      "command": "npx",
      "args": ["-y", "@cubiczan/agent-conductor"]
    }
  }
}
```

Demo keys: `mcp_agt_payops_demo`, `mcp_agt_research_demo`, `mcp_human_controller_demo`.

## Stack

```text
┌─────────────────┐     ┌──────────────────────────┐     ┌────────────────────┐
│ Cursor / Claude │────▶│ governed-mcp-gateway     │────▶│ spend-mandate-plane│
│ (MCP client)    │ SSE │ :7474  principal+vault   │ opt │ :7475              │
└────────┬────────┘     └────────────┬─────────────┘     └────────────────────┘
         │                           │
         │ stdio                     │ CHP gate (embedded)
         ▼                           ▼
┌─────────────────┐     ┌──────────────────────────┐
│ @cubiczan/      │     │ @cubiczan/chp-mcp        │
│ agent-conductor │     │ Profile B spend / HITL   │
└─────────────────┘     └──────────────────────────┘
```

Sister packages: [@cubiczan/chp-mcp](https://github.com/icohangar-ops/cubiczan-chp-mcp), [@cubiczan/agent-conductor](https://github.com/icohangar-ops/agent-conductor), [consensus-hardening-protocol](https://github.com/icohangar-ops/consensus-hardening-protocol).

## API

| Method | Path | Auth | What |
|--------|------|------|------|
| `GET` | `/health` | — | `{ ok, service }` |
| `POST` | `/mcp` | Bearer | JSON-RPC `initialize`, `tools/list`, `tools/call` |
| `GET` | `/mcp/sse` | Bearer | SSE with principal on `_meta` |
| `POST` | `/v1/credentials` | Human | Put a named secret |
| `POST` | `/v1/credentials/:name/rotate` | Human | New hash, same name |
| `POST` | `/v1/credentials/verify` | — | `{ ok }` |
| `POST` | `/v1/locks` | Human | CHP approve / reject |

```bash
curl -sS -H "Authorization: Bearer mcp_agt_payops_demo" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"echo.ping","arguments":{"hello":"world"}}}' \
  http://127.0.0.1:7474/mcp
```

## Notes

- This is an **HTTP** MCP gateway (JSON-RPC + SSE), not a stdio MCP process. The `governed-mcp-gateway` bin starts the HTTP server.
- Shared CHP / HTTP / ledger helpers are **vendored** under `src/shared/` (no `@cubiczan/shared` workspace dep).
- Optional: set `SPEND_PLANE_URL` to hook the spend-mandate plane before priced tools.

## License

MIT
chpclaudecursorgovernancemcpmodel-context-protocol

What people ask about governed-mcp-gateway

What is icohangar-ops/governed-mcp-gateway?

+

icohangar-ops/governed-mcp-gateway is mcp servers for the Claude AI ecosystem. Governed MCP Gateway — principal on every tool call and SSE frame, vaulted credential rotation, tool allowlists. It has 0 GitHub stars and its last recorded update is dated 2026-08-22.

How do I install governed-mcp-gateway?

+

You can install governed-mcp-gateway by cloning the repository (https://github.com/icohangar-ops/governed-mcp-gateway) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.

Is icohangar-ops/governed-mcp-gateway safe to use?

+

Our security agent has analyzed icohangar-ops/governed-mcp-gateway and assigned a Trust Score of 95/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.

Who maintains icohangar-ops/governed-mcp-gateway?

+

icohangar-ops/governed-mcp-gateway is maintained by icohangar-ops. The last recorded GitHub activity is dated 2026-08-22, with 0 open issues.

Are there alternatives to governed-mcp-gateway?

+

Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.

Deploy governed-mcp-gateway to your cloud

Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.

Maintain this repo? Add a badge to your README

Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.

Featured on ClaudeWave: icohangar-ops/governed-mcp-gateway
[![Featured on ClaudeWave](https://claudewave.com/api/badge/icohangar-ops-governed-mcp-gateway)](https://claudewave.com/repo/icohangar-ops-governed-mcp-gateway)
<a href="https://claudewave.com/repo/icohangar-ops-governed-mcp-gateway"><img src="https://claudewave.com/api/badge/icohangar-ops-governed-mcp-gateway" alt="Featured on ClaudeWave: icohangar-ops/governed-mcp-gateway" width="320" height="64" /></a>

More MCP Servers

governed-mcp-gateway alternatives