← All projects
AI agents · MCP gateway

uBixGate

Beta · v0.1.0-beta.1 Go · BSD-3-Clause · MCP gateway

One MCP endpoint for every coding agent on your team. Claude Code, Cursor, OpenCode or your own agent connect to one URL; behind it, uBixGate fronts any number of MCP servers and, for every tool call, decides who is calling, what they may use, where the upstream's credential comes from, and writes down what they did.

The first beta, v0.1.0-beta.1, is out: binaries for Linux, macOS and Windows, a signed container image and a Helm chart. It has had no independent security review yet. This page says what the beta does and what it does not.

Language
Go · under 4,000 lines
License
BSD-3-Clause
Status
Beta · no security review yet
MCP revision
2026-07-28, also 2025-11-25
Identity
OIDC access tokens (RS256, ES256)
Credentials
uBixVault (HashiCorp Vault later)
Upstreams
Streamable HTTP · stdio
Audit
One JSON line per call
Synopsis
ubixgate.yaml
public_url: https://mcp.example.com/mcp   # the token audience
identity:
  mode: jwt
  issuer: https://idp.example.com
  jwks_url: https://idp.example.com/jwks
vault:
  address: http://ubixvault:8200
  auth: { method: kubernetes, role: ubixgate }
upstreams:
  - name: tickets
    transport: http
    url: http://tickets:9000/mcp
    credential: { path: secret/data/mcp/tickets, field: token,
                  format: "Bearer {value}" }
  - name: shepherd
    transport: stdio
    command: [shepherd, mcp]
policy:
  rules:
    - name: contractors-no-writes
      effect: deny
      when: { groups: [contractors] }
      server: "*"
      tools: ["*_create", "*_delete"]
    - name: devs-tickets-own-project
      effect: allow
      when: { groups: [developers] }
      server: tickets
      tools: ["*"]
      args: { project: "myorg/*" }
      audit_args: [project]
Description

Once a team gives agents MCP servers, three problems show up together. Every agent config carries its own copy of each server's API token. Everyone gets every tool, because MCP servers rarely know who is calling. And nobody can say afterwards which person's agent did what.

uBixGate moves all three to one place: tokens stay in Vault, access is a reviewed YAML file, and the audit log names the person, not just "the agent". The caller's own token is never sent upstream, and every exit from a tool call, including errors, writes exactly one audit record.

Examples
a denial names the rule
# bob (contractors) deletes a ticket
ERROR: denied by rule contractors-no-writes

# alice (developers) deletes one outside myorg/
ERROR: denied by rule default-deny
audit.jsonl
{"user":"alice","tool":"tickets__ticket_create","decision":"allow",
 "rule":"devs-tickets-own-project","status":"ok",
 "args":{"project":"myorg/web","title":"[redacted]"}}
{"user":"bob","tool":"tickets__ticket_delete","decision":"deny",
 "rule":"contractors-no-writes","status":"denied"}
connect Claude Code
$ claude mcp add --transport http ubixgate https://mcp.example.com/mcp \
    --header "Authorization: Bearer $TOKEN"
Capabilities
One endpoint
Streamable HTTP, stateless. Tools from every upstream appear as server__tool.
OIDC identity
JWTs checked against your IdP's JWKS: RS256 or ES256 only, issuer, expiry, and an audience equal to the gateway's own URL.
Deny by default
Named YAML rules on user, group, client, server, tool and argument globs. Each caller sees only the tools they may call.
Credentials at call time
Read from uBixVault and injected as a header or an environment variable. The agent never holds them. HashiCorp Vault speaks the same API; testing it comes in a later release.
One audit line per call
Who, which tool, the decision and the rule that made it. Argument values redacted unless a rule keeps them.
Ready to operate
/healthz, /readyz, Prometheus metrics, JSON logs, ubixgate check, a distroless image and a Helm chart.
Installation

Install the beta.

One binary for Linux, macOS and Windows, a signed multi-arch image, and a Helm chart in the repository. ubixgate check validates a config before you serve it.

Kubernetes, container or binary
Kubernetes
# the chart runs ghcr.io/ubixsys/ubixgate:0.1.0-beta.1 by default
$ git clone --branch v0.1.0-beta.1 https://github.com/ubixsys/ubixgate
$ helm install ubixgate ubixgate/deploy/charts/ubixgate \
    -n mcp --create-namespace -f my-values.yaml
container or binary
$ docker pull ghcr.io/ubixsys/ubixgate:0.1.0-beta.1
# or a release archive for Linux, macOS or Windows, then:
$ ubixgate check ubixgate.yaml
$ ubixgate serve -config ubixgate.yaml

Downloads and the image are signed with keyless cosign; the repository's docs/RELEASING.md shows how to verify them.

Architecture

Every call, five steps, one place.

Only the gateway talks to the identity provider, Vault and the upstream servers.

The request
Agent · bearer token
Claude Code · Cursor · OpenCode · your own
↓
Authenticate · route · authorize
JWT against JWKS · server__tool · policy, deny by default
↓
Inject and forward
credential from Vault · header or env · never the caller's token
↓
Audit
exactly one JSON line, whatever the outcome
How it behaves

A failed token is a 401 that points the client at the gateway's protected resource metadata (RFC 9728), so clients can discover the issuer. A tools/list runs authentication and the policy too: each caller gets only the tools some rule would let them call, marked cacheScope: private.

Credentials are cached briefly, shared across concurrent calls and capped by the secret's lease. HTTP upstreams get theirs as a header on every request, with one retry after a 401. A stdio upstream gets its credential as an environment variable when it starts, and is restarted when it expires.

Clients may speak MCP 2026-07-28 or 2025-11-25; upstreams are spoken to in whatever revision they support. The policy sits behind one interface, so another engine could be added later; only the YAML evaluator is built. The whole gateway is kept under 4,000 lines of Go, readable in an afternoon.

Security model

What it does not protect against.

uBixGate is a policy and attribution point for honest but fallible agents acting for authenticated people. It is not a sandbox, and it has had no independent security review.

Not coveredWhy
Prompt injectionTool results pass back unmodified. A tool can return text that steers the agent.
Misuse in scopeIf a rule allows project: myorg/*, the caller may delete every ticket in myorg.
Argument tricksGlobs match the raw string. If an upstream normalises myorg/.. or decodes %2F, a constraint can be bypassed.
Compromised hostsAn upstream holds its injected credential; the gateway host holds a Vault token and every cached credential.
Client identityThe client name is attribution, not a boundary, unless your IdP issues per-client tokens.
Audit tamperingThe log is append-only by open mode, not tamper-evident. Ship it off the host if that matters.
Not in the first beta
AreaState
Per-user credentialsOne service credential per upstream; the audit log is the per-user record. On the roadmap.
Server-to-client requestsSampling, elicitation and roots are not passed through.
IdentityOIDC JWTs only. No SAML or SCIM.
Also not includedAdmin UI, multi-tenancy, response filtering, plugins, rate limiting beyond a per-user call limit.