diff --git a/agent-gateway/getting-started.md b/agent-gateway/getting-started.md new file mode 100644 index 0000000..6ed5267 --- /dev/null +++ b/agent-gateway/getting-started.md @@ -0,0 +1,42 @@ +--- +title: Getting started +description: First boot of @leverframe/mcp-bridge — zero-config health-only mode, then point servers.json at a real stdio MCP server +sidebar_position: 1 +--- + + + +# Getting started + +## Zero-config boot + +```bash +npx @leverframe/mcp-bridge +``` + +No `servers.json` in your working directory? The bridge starts anyway in +health-only mode (it logs `(servers: none)` and serves `/health`). + +Proof it is alive: + +```bash +curl http://localhost:5555/health +# {"status":"ok","servers":[]} +``` + +## Add a server + +Create a `servers.json` in your working directory and point it at any stdio +MCP server (see `servers.example.json` in the repo). A `SERVERS_JSON` env var +containing the same JSON takes precedence over the file. + +## Configuration + +| Env | Meaning | Default | +| -------------- | ---------------------------------------------------- | --------- | +| `BRIDGE_PORT` | listen port | `5555` | +| `BRIDGE_HOST` | bind host | `0.0.0.0` | +| `SERVERS_JSON` | inline server config JSON (wins over `servers.json`) | — | + +⚠️ The default bind is `0.0.0.0` on an unauthenticated API — keep the port +private (loopback, tailnet, or firewall) unless you know what you are doing. diff --git a/agent-gateway/intro.md b/agent-gateway/intro.md new file mode 100644 index 0000000..cd56991 --- /dev/null +++ b/agent-gateway/intro.md @@ -0,0 +1,30 @@ +--- +slug: / +title: agent-gateway +description: MCP over plain REST — stdio bridge, fleet gateway, and heartbeat monitor in one Node service +sidebar_position: 5 +--- + + + +# agent-gateway + +agent-gateway is a Node service that makes stdio MCP servers callable over plain +HTTP/REST, with a fleet gateway (Discord + platform plugins), a message journal, +and a heartbeat monitor built in. + +The runnable npm package is +[@leverframe/mcp-bridge](https://www.npmjs.com/package/@leverframe/mcp-bridge) +(v1.0.2): + +```bash +npx @leverframe/mcp-bridge +``` + +Start here: + +- [Getting started](./getting-started) — first boot, health check, first server +- [npm package ↗](https://www.npmjs.com/package/@leverframe/mcp-bridge) +- [GitHub repo ↗](https://github.com/leverframe/agent-gateway) + +License: BUSL-1.1 (see the repo `LICENSE`). diff --git a/docusaurus.config.mjs b/docusaurus.config.mjs index a2afe3c..4e38852 100644 --- a/docusaurus.config.mjs +++ b/docusaurus.config.mjs @@ -2,6 +2,7 @@ import { themes as prismThemes } from 'prism-react-renderer'; const productInstances = [ { id: 'fleet-bridge', path: 'fleet-bridge', routeBasePath: 'fleet-bridge' }, + { id: 'agent-gateway', path: 'agent-gateway', routeBasePath: 'agent-gateway' }, { id: 'wranglebot', path: 'wranglebot', routeBasePath: 'wranglebot' }, { id: 'tractum', path: 'tractum', routeBasePath: 'tractum' }, { id: 'cabinet-lite', path: 'cabinet-lite', routeBasePath: 'cabinet-lite' }, diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 86f7df9..0c5274a 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -13,6 +13,14 @@ const products = [ license: 'MIT', meta: ['6 tools', '2 runtimes', '60s default invoke'], }, + { + name: 'agent-gateway', + tag: 'MCP · GATEWAY', + desc: 'Consume stdio MCP servers over plain REST — fleet gateway + heartbeat included. npx @leverframe/mcp-bridge and it is serving.', + to: '/agent-gateway', + license: 'BUSL-1.1', // current npm fact — flip to MIT if the F5 license ruling fires + meta: ['npx zero-config', 'stdio → REST', 'heartbeat monitor'], + }, { name: 'wranglebot', tag: 'GUARD · CLI', @@ -43,8 +51,9 @@ const tickerItems = [ 'DOCS BUILT FROM SOURCE', 'EVERY PAGE CITES ITS FILES', 'fleet-bridge v0.1.1 — MIT', - 'wranglebot v0.1.1 — BUSL-1.1', - 'tractum v0.5.0 — BUSL-1.1', + 'wranglebot v0.1.3 — MIT', + 'tractum v0.6.1 — BUSL-1.1', + 'NPX @LEVERFRAME/MCP-BRIDGE — MCP OVER PLAIN REST', 'cabinet-lite — the signal box, read-only v1', 'PULL = INVOKE AN AGENT', 'INTERLOCK CLEAR', @@ -52,7 +61,7 @@ const tickerItems = [ const stats = [ { label: 'PAGES', value: '41' }, - { label: 'PRODUCTS', value: '4' }, + { label: 'PRODUCTS', value: '5' }, { label: 'MCP TOOLS', value: '6' }, { label: 'GUARDRAILS', value: '5' }, { label: 'RECEIPTS', value: 'K-OF-N' }, @@ -210,6 +219,12 @@ export default function Home() { MCP client wiring Troubleshooting +
+

agent-gateway

+ Getting started + npm package ↗ + GitHub repo ↗ +

wranglebot

Getting started