Command-line interface for SealGate, the agentic data firewall
Key Features • Architecture • Quick Start • Agent Skills • Credits
sealg is a thin MCP client to the SealGate gateway: list and call forward
tools/list / tools/call to the per-user gateway endpoint, where all policy
and enforcement live.
| Feature | Tech Stack |
|---|---|
| Core | engine crate - env-resolved gateway config + hand-rolled MCP client (no transport deps) |
| CLI | sealg binary - list / call / doctor |
| Transport | MCP Streamable HTTP to the gateway's /mcp/{api_key}/ endpoint |
| Logging | tracing + redaction layer |
| Packaging | cargo-dist (binaries + installers) |
| Package Manager | Bun |
| Formatting | Biome + cargo fmt |
┌──────────────────────────────────────────────────────────┐
│ TRANSPORT (crates/cli - one binary `sealg`) │
│ │
│ sealg list tools/list │
│ sealg call <tool> --args '{...}' tools/call │
│ sealg doctor local env facts │
└───────────────────────────┬──────────────────────────────┘
│ engine::gateway (MCP over HTTP)
┌───────────────────────────▼──────────────────────────────┐
│ crates/engine - the service core (no transport deps) │
│ GatewayConfig - coordinates resolved from the env │
│ GatewayClient - initialize / tools/list / tools/call │
│ doctor / types - env facts + stable result contract │
└───────────────────────────┬──────────────────────────────┘
│ HTTPS
┌───────────────────────────▼──────────────────────────────┐
│ SealGate gateway - per-user MCP endpoint; owns ALL │
│ policy, trifecta, and PII enforcement │
└──────────────────────────────────────────────────────────┘
crates/engine/- the gateway client + config,doctorenv facts, and the shared result contract. No transport dependency.crates/cli/- thesealgbinary. Theclisurface (doctor) is a cargo feature.
# 1. Build + test the workspace
cargo build --workspace
cargo test --workspace
# 2. Point at a gateway and drive it (coordinates come from the environment)
export SEALGATE_URL=http://localhost:3000
cargo run -p sealg -- list
cargo run -p sealg -- call some_tool --args '{"query": "hello"}'
# ...or override the gateway per-invocation
cargo run -p sealg -- list --gateway-url https://dashboard.sealgate.aiClaude Code skills live in .claude/skills/. Invoke them with /skill-name
(run /onboarding, /update-backend, /code-quality, /cleanup, and more).
This software uses the following tools:
Made with contrib.rocks.
