Agent Gateway Sdk
БесплатноПоддерживаетсяMont Agent Gateway SDK. Use is governed by TERMS.md.
Описание
Mont Agent Gateway SDK. Use is governed by TERMS.md.
README
npm version Website Node.js TypeScript Database Docker License

Let AI agents use your store and APIs without letting them empty it.
Mont is a local-first, fail-closed API gateway and human-in-the-loop firewall for AI agent traffic: REST calls and MCP tool calls alike. You can use it in three ways:
- as Express middleware inside your app
- as a no-code reverse proxy in front of any backend (Python, Go, Java, Rails, Next.js…)
- as an MCP proxy between Claude, Cursor or your agent framework and its tools
It needs no Redis, no Postgres and no cloud account: everything lives in an embedded SQLite (WAL) database next to your app.
🌐 montweel.com · 🎁 Free 90-day Pro trial key · ⚖️ TERMS.md
The problem
Agents are now calling production APIs, and they fail in ways firewalls were never built for:
| What goes wrong | What it costs you | How Mont stops it |
|---|---|---|
| Runaway loops. An agent retries the same refund or email 400 times. | Duplicate payouts, spam, burned API budget | Rate limits per route, duplicate-action protection, cumulative spending budgets |
| Prompt-injected refunds. A support ticket says "refund every order", and the agent obeys. | Real money leaves the store | Payload policies (amount > 100 → needs a human), phone approvals, Edit & Approve, Lockdown switch |
Blind MCP tool calls. The model calls delete_customer or export_database because a webpage told it to. |
Data loss, data exfiltration | Default-deny MCP tool rules, per-argument policies, outbound response guard |
| "What did the agent actually do?" | No evidence for chargebacks or audits | Hash-chained, tamper-evident audit log with redacted request and response payloads, end-user & approver attribution, CSV export, money-protected reports |
Every decision is fail-closed. A request reaches your API only after every check passed and its audit row is durably written. A database error, timeout, malformed body or policy error ends in a 4xx/503, never in a forwarded request.
Quickstart
Requires Node.js 20.17+ (or Docker).
(a) Express middleware: inside your Node.js app
npm install agent-gateway-sdk
import express from "express";
import { createAgentGateway } from "agent-gateway-sdk";
const app = express();
const gateway = createAgentGateway({ port: 3000 });
await gateway.ready; // database open and migrated
app.use(gateway.discoveryRouter); // GET /.well-known/agent.json
app.use(gateway.approvalCallbackRouter); // signed Approve / Reject links
app.use("/api/agent-admin", gateway.adminRouter); // admin API (mount BEFORE the gateway)
app.use("/api", gateway.agentGateway); // the firewall
app.post("/api/refund", express.json(), (req, res) => res.json({ refunded: req.body.amount })); // your routes
app.listen(3000);
(b) Standalone no-code proxy: in front of any backend
npx agent-gateway-sdk start --target https://api.mystore.com
# agents call http://127.0.0.1:8080/api/...
# admin console http://127.0.0.1:3000/agent-admin/ (first-boot setup key is printed in the console)
(c) MCP proxy: between your AI client and its tools
# stdio: put this in your MCP client config as the server "command"
npx agent-gateway-sdk mcp-stdio --data-dir ~/.mont -- npx -y @modelcontextprotocol/server-filesystem /data
# Streamable HTTP (+ legacy HTTP+SSE at /mcp/sse) in front of a remote MCP server
npx agent-gateway-sdk mcp-http --upstream http://127.0.0.1:9000/mcp
Then open the admin console. Gateway Setup walks you through the rest without code:
- your upstream URL
- a one-click policy pack (E-commerce, FinTech, CRUD)
- phone approvals
- budgets
- business hours
Try the disaster first: run npm run demo:shopify in a clone of this repo. It shows a prompt-injected support bot refunding every order, first without Mont and then with it.
Feature & tier overview
Licenses are offline Ed25519 keys and nothing phones home. Every new install gets an instant 7-day Pro trial, and a free 90-day Pro trial key needs no credit card.
| Community (free forever) | Pro | Agency | |
|---|---|---|---|
| Fail-closed firewall, reverse proxy, MCP proxy (stdio, Streamable HTTP, legacy SSE) | ✅ | ✅ | ✅ |
| Route rules, wildcard rules, payload policies, rate limits | ✅ | ✅ | ✅ |
| Spending Budgets & duplicate-action protection | ✅ | ✅ | ✅ |
| Approval queue + dashboard approvals, signed approval links | ✅ | ✅ | ✅ |
| Lockdown / Approval-only switch, business hours, alerts & daily digest | ✅ | ✅ | ✅ |
| PII & secret scrubber, outbound response guard, CSV export | ✅ | ✅ | ✅ |
| Shadow (dry-run) rules & Policy Time-Machine replay | ✅ | ✅ | ✅ |
| Hash-Chained Audit Ledger: every row chained | ✅ | ✅ | ✅ |
| Compliance audit trail: response capture, custom redaction keys, end-user & approver attribution | ✅ | ✅ | ✅ |
| Industry compliance templates (Fintech, Retail, Travel, Custom) | ✅ | ✅ | ✅ |
| Auditor Evidence Pack (attestation report + checksummed JSON bundle) | — | ✅ | ✅ |
| Hash-Chained Audit Ledger: one-click integrity verification | — | ✅ | ✅ |
| Zero-Tunnel Telegram / Slack buttons & Telegram bot commands | — (alerts arrive; approve in the dashboard) | ✅ | ✅ |
| Edit & Approve (change a payload before it runs) | — | ✅ | ✅ |
| Compensating rollback webhook on Revoke | — | ✅ | ✅ |
Agent discovery manifest (/.well-known/agent.json), unknown-endpoint report, approval idempotency |
✅ | ✅ | ✅ |
| Credential masking in the admin API & dashboard (Show / Copy for admins) | ✅ | ✅ | ✅ |
| Multi-Workspace (one install, many client stores) | 1 workspace | 3 workspaces | 25 workspaces (or as licensed) |
| All-Clients Overview dashboard | — | — | ✅ |
| Per-client Telegram chat / Slack channel approval routing | — | — (all workspaces use the main chat) | ✅ |
| Agent API keys | 2 | 500 | 500 |
| Team accounts (Admin / Read-only auditor), SSO header trust, Prometheus metrics, 7-day analytics | — | ✅ | ✅ |
| Price | $0 | $30/mo or $250/yr | montweel.com |
Activate a key in Gateway Setup → License & Plan and it takes effect immediately. You can also set MONT_LICENSE_KEY, or pass licenseKey to createAgentGateway(). If a license lapses, paid features switch off cleanly. Workspaces beyond the plan are refused (402), and their traffic is never forwarded unguarded.
A paid admin endpoint called without the right plan answers 402 Payment Required with proRequired: true (plus agencyRequired: true for Agency-only features), the feature name and an upgradeUrl, so clients can show an upgrade prompt. An invalid or forged key never unlocks anything. Free 90-day trial keys are limited to one per machine and must be activated within 100 days of first install.
How it protects you
1. Rules: default deny, decided per route and per payload
Rule keys are "/api/x" (any method), "POST /api/x" (one method), or wildcards such as "POST /api/*refund*". MCP tools use the pseudo-method MCP ("MCP /api/mcp/tools/refund_order"). A request that matches no rule is blocked.
| Mode | Effect |
|---|---|
ALLOW |
Forward to your API |
REQUIRE_APPROVAL |
Hold until a human approves (expires after 24 h) |
BLOCK |
Refuse with 403 |
SHADOW_BLOCK / SHADOW_APPROVAL |
Dry run: forward, but log what the rule would have done |
Payload policies inspect body.*, query.* and headers.* with > < >= <= === !== contains in regex exists. The first matching tier wins. Numbers are never coerced ("250" is not 250), and routes whose policies read the body only accept JSON.
"POST /api/refund": {
"mode": "REQUIRE_APPROVAL",
"rateLimit": 30,
"policies": [
{ "name": "small", "when": [{ "field": "body.amount", "op": "<=", "value": 100 }], "mode": "ALLOW" },
{ "name": "huge", "when": [{ "field": "body.amount", "op": ">", "value": 1000 }], "mode": "BLOCK" }
],
"budget": { "field": "body.amount", "max": 300, "windowMinutes": 60, "per": "global", "onExceed": "REQUIRE_APPROVAL" },
"dedupe": { "fields": ["body.orderId"], "windowMinutes": 1440, "onDuplicate": "BLOCK" }
}
- Spending budgets cap the total an agent can move on its own. Twenty $90 refunds all pass an "≤ $100" tier; a $300/hour budget stops the fourth. Budgets can be global or per agent, are stored in SQLite, and are race-free under bursts. A missing or text amount counts as over budget.
- Duplicate protection refuses (or holds) a second action with the same field values while the first is allowed, waiting or done. A rejected attempt doesn't block a legitimate retry.
- Starter policy packs (E-commerce & Shopify, Stripe & FinTech, Internal CRUD) install in one click.
2. Humans in the loop, from anywhere
- Approval queue with a payload inspector. You see the redacted body and query, high-risk fields flagged (
amount,email,destination…), the caller's key, IP and User-Agent, and the Agent's Justification: taken from thex-mont-justificationheader (or the olderx-agent-reason), the MCPparams._meta["mont/justification"], or ajustification/reason/summaryfield in the payload. Telegram and Slack show it directly above the Approve / Reject buttons. - Zero-LLM daily digest.
GET /api/agent-admin/audit/digest(or View Daily Digest in the dashboard) gives one plain-English sentence for the last 24 hours: actions processed, risky calls blocked, the estimated dollars prevented (fromamount/price), and how many approvals are waiting. It is computed by a local SQLite query; nothing is sent anywhere. - Phone approvals:
- Zero-tunnel (Pro): Telegram inline buttons via outbound long-polling, or Slack buttons via Socket Mode. No public URL, ngrok or open port.
- Signed links: Slack, Telegram or a custom webhook with HMAC-signed Approve / Reject links. Links open a confirmation page, so chat link previews can't approve anything.
- Edit & Approve (Pro). Lower a hallucinated
"amount": 250to50, fix an address, change a query parameter, or edit MCP tool arguments, then approve.- Fields you didn't touch keep their real values, even the ones shown masked.
- The rule is re-checked against your edit.
- The edited body goes out with a fresh
Content-Length. - The original and modified payloads are both audited (redacted).
- Exactly-once decisions. Every approval is decided once. A second decision (or a simultaneous approve + reject from two phones) gets "Action already taken" and changes nothing. Past the 24 h window an action becomes
EXPIREDand can no longer be approved. - Revoke & Block Caller. On any approved action, this blocks the agent key and/or IP, auto-rejects its queued requests, and (Pro) calls your compensating rollback webhook (HMAC-signed, idempotency key included).
- Emergency switch.
- Lockdown refuses every agent request (nothing waiting can be approved).
- Approval-only holds every write and lets reads through.
- Flip it from the dashboard, the API or Telegram (
/lockdown,/approvalonly,/resume,/status,/pending). Every gateway process sharing the database follows within about 2 seconds.
- Business hours. Outside your opening hours (time-zone and DST aware), writes wait for a human.
- Alerts & daily digest. You're told about attack bursts, budgets reached and mode changes, and get a morning summary of money protected vs executed. Each alert is sent once, even across processes.
3. MCP tool-call firewall
Every JSON-RPC tools/call gets the same rules, payload policies (on params.arguments as body.*), budgets, approvals and audit trail.
"MCP /api/mcp/tools/search_orders": { "mode": "ALLOW" },
"MCP /api/mcp/tools/refund_order": { "mode": "REQUIRE_APPROVAL",
"policies": [{ "when": [{ "field": "body.amount", "op": "<=", "value": 100 }], "mode": "ALLOW" }] },
"MCP /api/mcp/tools/*delete*": { "mode": "BLOCK" }
- Unlisted tools are blocked. HTTP rules such as
/api/*never apply to MCP tools. - Refusals come back as tool results with
isError: true, so the model can read why. - A call that needs approval is held open until a human decides. If the wait times out or the agent disconnects, the call expires and can never run later.
- Transports:
- stdio:
mcp-stdio - Streamable HTTP:
mcp-http - legacy HTTP+SSE for older clients:
GET /mcp/sse+POST /mcp/messages?sessionId=…
- stdio:
- Programmatic use:
createMcpHttpProxy(gateway, { upstreamUrl }),startMcpStdioProxy(gateway, { command, args }), orgateway.mcp.check(...).
4. Data protection in both directions
- Deep PII & secret scrubber. Nothing is stored in SQLite or sent to Slack, Telegram or webhooks without passing through it. It walks every level of nested JSON.
- Always removed: auth headers, cookies, passwords, tokens, API keys (Stripe, GitHub, Slack, AWS, OpenAI/Anthropic, JWT…) and Luhn-valid card numbers.
- Masked by default: emails and phone numbers.
- Your own keys: add field names to
audit.redactKeys(or Settings → Audit & PII Redaction). They match the whole key, ignoring case,_,-and., socredit_cardalso catchescreditCard, butkeydoes not catchmonkey. - Rules still evaluate the real values, and approved requests replay from an AES-256-GCM encrypted original.
- Outbound response guard (opt-in). Mont inspects what your API or MCP tool sends back before the agent sees it.
- Bulk dumps: a JSON array longer than your limit (e.g. 1,000 customer rows) is withheld with
502 Response Policy Violation, or truncated. - Secrets: they are scrubbed in-flight, or the response is withheld.
- It works in proxy mode, middleware mode and on every MCP transport.
- Bulk dumps: a JSON array longer than your limit (e.g. 1,000 customer rows) is withheld with
5. Proof: a tamper-evident audit ledger
Cryptographic hash chain. Every audit row is chained with SHA-256:
row_hash = SHA-256(prev_hash + id, timestamp, caller, route, decision, redacted request, …, end user, approver, redacted response).- Verify Audit Ledger (Pro; Audit Logs page, or
GET /audit/verify) re-hashes the chain and pinpoints any edited, deleted, inserted or truncated row. - Retention pruning keeps the chain verifiable.
- Several gateway processes can share one database safely.
- The daily digest carries the chain head, giving you an off-box copy.
- Ledgers sealed by older versions still verify after upgrading.
- Verify Audit Ledger (Pro; Audit Logs page, or
Request and response capture. Each audit row keeps the redacted request (body, query, headers). With
audit.capturePayloadson (the default), it also keeps the redacted upstream response: status, content type and body, up to 64 KB. That includes the response to an approved, replayed request.- The response is sealed into the same hash chain. A row waits (up to 45 s) for its response before it is sealed.
- Bodies are redacted before they are truncated, so a large payload cannot leak a secret by being cut mid-object.
- Redaction runs after the response has gone out, so it adds no latency.
- Event streams, and binary or compressed bodies, are noted but not stored. So are responses over 1 MB.
End-user attribution (
end_user). Agents name the human they act for in the SSO user header (x-forwarded-userby default).- Verified when the request also carries the SSO shared secret (
x-gateway-sso-secret, with Trust identity proxy headers on). This means your identity proxy vouched for the user. - Unverified (agent-claimed) otherwise. The dashboard badges the two differently, the CSV marks them
verifiedoragent-claimed, and the flag is part of the hash. - It is recorded only; it never grants access.
- Verified when the request also carries the SSO shared secret (
Approver attribution (
approved_by). The admin who released a held action is recorded on itsAPPROVEDrow: the signed-in account, or the SSO identity once the shared secret has checked out. The end user follows the action from its queued row to that decision row.Row details. Expand any row in Audit Logs to see the redacted request and response, the end user and approver, and the row's ledger hash (
GET /logs/:id).Filters. Audit logs filter by status, method, path (contains or exact), request / approval id (
#736from Telegram), user agent, date range, shadow hits (shadow=1) and unknown endpoints (unknown=1: calls that matched no rule and were refused by default deny, with their payload, so you can see what agents are trying to reach). The CSV export uses the same filters.Industry compliance templates. Pick a preset in Settings → Audit & PII Redaction, or call
POST /compliance/apply-template.Template Frameworks Adds redaction for Suggested approval rules Fintech & Banking PCI-DSS, SOC2 cvv,pan,iban,swift,routing_number,account_number,ifsc,tax_id,ssn…transfers, payouts, refunds, deletes Retail & E-Commerce GDPR, CCPA card_number,billing_address,shipping_address,phone_number,gift_card_code,dob…refunds, price changes, discounts, customer deletes Travel & Hospitality GDPR, PCI-DSS passport_number,pnr,ticket_number,visa_number,national_id,frequent_flyer_id…cancellations, booking changes, ticket issuance Custom your tags (SOC2, HIPAA, ISO 27001…) your keys none - Templates only ever add. Their keys are merged into
audit.redactKeys, and nothing is removed. - With
includeRules: true, theirREQUIRE_APPROVALrules are added to the selected workspace, but never over a rule you already have. A route you explicitly block stays blocked.
- Templates only ever add. Their keys are merged into
Auditor Evidence Pack (Pro; Export Auditor Pack on the Audit Logs page, or
GET /audit/export-pack?format=report|json&from&to&agentName&endUser). It is one download for your auditor:- Attestation report (
.md): audit scope, a live ledger-integrity certificate (pass/fail, rows verified, genesis and latest hash), the policy and redaction snapshot (secrets omitted), summary metrics per agent and per verified vs agent-claimed end user, and the scoped transaction table. - JSON evidence bundle (
.json): the same data with every row and full hashes, plusbundleSha256. That is the SHA-256 ofJSON.stringify({ metadata, ledgerVerification, policySnapshot, summary, logs }), so anyone can confirm the file was not changed after download. It is a checksum, not a signature. For proof against the gateway itself, compare the ledger head hash with the one in the daily digest.
- Attestation report (
Money protected shows how much agents tried to move and were stopped, next to what was executed.
CSV export for accounting and chargeback disputes (formula-injection safe).
Shadow rules & Policy Time-Machine. Try a policy as
SHADOW_*on live traffic, or click Test Rules Against History. The last N real requests are replayed through your rules, including rate limits, budgets and duplicate protection, and you see exactly which ones would now be blocked, held or rate-limited.
6. Agencies: many client stores, one install (Agency)
Each workspace has its own rules, budgets, upstream URL, emergency switch, business hours, approval chat or Slack channel, and mws_… API key. That key is required by default, so one client's agent can never act on another client's store.
| Agents select a workspace with | Example |
|---|---|
| Path prefix | POST /api/w/acme/refund (forwarded upstream as /api/refund) |
| Header | x-mont-workspace: acme |
| Bearer key | Authorization: Bearer mws_… |
- Dashboard: a Workspace Switcher in the top bar (Pro and Agency) and, on Agency, an All Clients Overview (
GET /workspaces/overview) with mode, money protected, refusals, waiting approvals and shadow hits per client. - Approvals per client (Agency): each client's approvals go to its own Telegram chat or Slack channel, a button tapped in the wrong chat is refused, and a client's chat can run bot commands for that client only. On Pro, every workspace's approvals go to the main chat / channel.
- Key rotation:
POST /workspaces/:slug/rotate-keyissues a newmws_…key and retires the old one. - MCP:
mcp-http --workspace <slug>,/w/<slug>/mcp, ormcp-stdio --workspace <slug>.
7. Access control & identity
- Agent API keys. Create
agk_…keys in Settings → Agent Keys (2 on Community, 500 on Pro). Agents send them asx-agent-keyorAuthorization: Bearer agk_…. The raw key is shown once; only its SHA-256 is stored. Every audit row, budget (per: "agent") and blocklist entry is tied to the key. - Caller blocklist. Agent keys and IPs blocked from Revoke & Block Caller are listed under
GET /blocked-callersand can be unblocked there. - Team accounts (Pro). The owner account is created on first boot with the setup key. Add Admin and Read-only auditor users, reset passwords and change roles in the Team tab. Auditors can read everything but change nothing.
- Static tokens.
ADMIN_TOKEN/VIEWER_TOKENfor CI/CD and read-only automation. - SSO (Pro). Trust
x-forwarded-user/x-forwarded-rolefrom an identity proxy that also sends the sharedx-gateway-sso-secret(see Behind an SSO / OAuth2 proxy). - Credential masking. Bot tokens, webhook URLs, signing secrets and the SSO shared secret are always masked in
GET /setupandGET /config, even for admins. Read-only users don't see webhook URLs at all. Saving a form that still holds the masked values keeps the stored secrets. Admins can reveal or copy one credential at a time withGET /secrets/:field(allow-listed fields only, never cached). The Auditor Evidence Pack never contains a credential. - Agent discovery.
GET /.well-known/agent.jsonpublishes the endpoints agents may call (ALLOWandREQUIRE_APPROVALrules), their descriptions and rate limits. Blocked routes are not listed.
8. Observability
- Analytics (
GET /logs/analytics?window=24h|1w): decisions over time, pending approvals and top agents. The 7-day window is Pro; Community falls back to 24 h. - Prometheus metrics (Pro):
GET /metricson the admin API. Scrapers can authenticate withAuthorization: Bearer <VIEWER_TOKEN>. - Test notifications:
POST /setup/test-notificationchecks your Telegram / Slack / webhook settings.
Deploy with Docker
docker compose up -d
docker-compose.yml runs the standalone proxy with these defaults:
- the agent-facing proxy on :8080
- the admin console on 127.0.0.1:3000 (local only by default)
- data in a named volume mounted at /data (SQLite WAL, rules, config)
- a non-root user, a read-only root filesystem and no Linux capabilities
- a health check
To run it next to existing containers:
- Join their network (see the commented
networks:block). - Point Mont at
http://your-api:4000in Gateway Setup.
On first boot, docker compose logs mont shows the setup key, or you can set SETUP_TOKEN.
docker build -t montweel/agent-gateway:2.0.0 .
docker run -d -p 8080:8080 -p 127.0.0.1:3000:3000 -v mont-data:/data montweel/agent-gateway:2.0.0
The image is multi-stage on Node 20 Alpine. Slack Socket Mode's WebSocket client is enabled with --experimental-websocket (it is built in from Node 22).
Other hosts: Mont runs anywhere Node does: AWS ECS/EC2, Render, Fly.io, Railway, Kubernetes or a VPS. Mount a persistent volume for the data folder.
Behind an SSO / OAuth2 proxy (Pro):
- Enable Trust identity proxy headers in Settings.
- Have the proxy send
x-forwarded-user,x-forwarded-roleand the generatedx-gateway-sso-secret. - Keep the admin listener on a private interface.
Configuration
| Variable | Purpose | Default |
|---|---|---|
PORT / HOST |
Agent-facing listen port / bind address (0.0.0.0 in containers) |
8080 (CLI) / 127.0.0.1 |
ADMIN_PORT / ADMIN_HOST |
Admin API + dashboard listener | 3000 / 127.0.0.1 |
TRUST_PROXY |
true behind exactly one reverse proxy (client IPs from X-Forwarded-For) |
off |
CORS_ORIGINS |
Browser origins allowed to call the admin API | dev: http://localhost:5173 |
SETUP_TOKEN |
First-boot setup key (create the owner from another machine) | random, printed at startup |
ADMIN_TOKEN / VIEWER_TOKEN |
Static tokens for CI/CD and read-only automation | unset |
MONT_LICENSE_KEY |
MONT-V2.… Pro / Agency key (or a v1 MONT-… Pro key) |
unset |
MONT_AGENT_KEY |
(mcp-stdio) the local client's agk_… agent key or mws_… workspace key |
unset |
Audit settings (config.json, or Settings → Audit & PII Redaction):
"audit": {
"capturePayloads": true,
"redactKeys": ["password", "token", "authorization", "credit_card", "ssn", "secret", "key"],
"activeTemplate": "fintech",
"complianceFrameworks": ["PCI-DSS", "SOC2"]
}
SDK options (createAgentGateway({...})):
portrulesPath,configPath,dbPathadminPort,adminHostadminToken,viewerToken,setupTokendbOperationTimeoutMslicenseKey,licenseAnchorFiletelegramApiBase,slackApiBase
Admin API (all under /api/agent-admin, scoped with x-mont-workspace):
| Area | Endpoints |
|---|---|
| Auth & team | auth/status, auth/setup, auth/login, auth/logout, auth/change-password, users, users/:id, users/:id/reset-password |
| Rules & approvals | rules, approvals, approvals/counts, approvals/:id/decide, approvals/:id/revoke, blocked-callers, blocked-callers/:id |
| Agent keys | agent-keys, agent-keys/:id |
| Logs & ledger | logs, logs/:id, logs/analytics, logs/export.csv, audit/verify, audit/head, audit/digest, audit/export-pack, simulate/history |
| Compliance | compliance/templates, compliance/apply-template |
| Protection & alerts | protection/summary, emergency, guards/usage, alerts/digest |
| Settings & setup | config, setup, setup/presets, setup/presets/:id/apply, setup/test-notification, secrets/:field |
| Workspaces | workspaces, workspaces/overview, workspaces/:slug, workspaces/:slug/rotate-key |
| License & metrics | license, metrics |
CLI (npx agent-gateway-sdk <command>, also installed as mont-gateway):
| Command | Key options |
|---|---|
start |
--target <url>, --port, --host, --admin-port, --admin-host, --data-dir |
mcp-http |
--upstream <url> (required), --port (8090), --host, --path (/mcp), --wait-seconds (300), --workspace <slug>, --admin-port, --admin-host, --data-dir |
mcp-stdio |
--wait-seconds, --admin-port (skipped if busy), --no-admin, --data-dir (share it between sessions to share rules and approvals), --workspace <slug>, then -- <server command> |
--version, help |
Signing license keys (needs your Ed25519 private key; never leaves your machine):
npm run keygen -- sign --tier=AGENCY --org="Acme Automation" --max-workspaces=20 --days=365
npm run keygen -- verify MONT-V2.eyJ2Ijoy...
Development
npm install && npm --prefix dashboard install
npm run typecheck # gateway + tools
npm test # 9 suites, 93 tests: fail-closed chaos, v1.2, v1.3 shop kit, v2.0 enterprise, owner UX,
# audit trail, compliance, secret masking, license gating
npm run build:all # dist/ + dashboard/dist/
npm run dev # gateway with reload; dashboard: npm --prefix dashboard run dev
Tests run real gateways on temporary folders with a throwaway license key pair, and never touch your ~/.montweel install anchor.
Search keywords
ai-agents · agent-gateway · api-firewall · mcp · mcp-proxy · human-in-the-loop · prompt-injection · ai-safety · rate-limiter · spending-limits · audit-log · tamper-evident · reverse-proxy · sqlite · local-first · zero-infrastructure · multi-tenant · shopify · stripe · nodejs · typescript · express-middleware
Legal & Terms of Use
The Mont Agent Gateway SDK is provided strictly "AS IS" without warranty of any kind or SLA. By downloading, installing, deploying, or using this software, you agree to the complete terms, disclaimers, and liability limitations in TERMS.md.
Website: https://montweel.com · Support: [email protected]
Установить Agent Gateway Sdk в Claude Desktop, Claude Code, Cursor
unyly install agent-gateway-sdkСтавит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.
Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh
Или настроить вручную
Выполни в терминале:
claude mcp add agent-gateway-sdk -- npx -y agent-gateway-sdkПошаговые гайды: как установить Agent Gateway Sdk
FAQ
Agent Gateway Sdk MCP бесплатный?
Да, Agent Gateway Sdk MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Agent Gateway Sdk?
Нет, Agent Gateway Sdk работает без API-ключей и переменных окружения.
Agent Gateway Sdk — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Agent Gateway Sdk в Claude Desktop, Claude Code или Cursor?
Открой Agent Gateway Sdk на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Изменения
Версии и запрашиваемые доступы со временем.
- Новая версия опубликована
Похожие MCP
Opencode Omniroute Plugin
OpenCode plugin for the OmniRoute AI Gateway. Drives dynamic model discovery, /connect auth flow, and multi-instance OmniRoute providers via the official @openc
автор: GitHub ActionsRoblox Studio
Enables AI coding tools to control Roblox Studio for workspace exploration, instance manipulation, and script management. It provides tools for playtesting, sce
автор: paralovAntigravity Drawio
MCP server that enables AI assistants to create, parse, render, and validate Draw.io diagrams programmatically.
автор: S-SUJAN-SFetch
Web content fetching and conversion for efficient LLM usage.
Mcp
ModelContextProtocol server for enhancing JSON Resumes
автор: mcpflow.ioVault
Bitwarden/Vaultwarden MCP server — BYOK vault access with 6 tools, Send-based reveal, TOTP, and safe agent-write
автор: agbergsmannAWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzMCP-Agent
A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)
автор: lastmile-aiCompare Agent Gateway Sdk with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
