beckon-mcp
v0.3.2MCP server for beckon — drive local tunnels from an AI coding agent
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
beckon_status
List all live beckon tunnels (already pruned of dead ones). Call this FIRST before opening anything. Pass repoPath (absolute) to split the result into `mine` (this repo's own app+instance) vs `others` — otherwise every session on the machine comes back in one flat list with no way to tell whose is whose.
| Parameter | Type | Description |
|---|---|---|
instance | string | Override the namespace; omit to derive it from the repo's git branch |
repoPath | string | ABSOLUTE path to the directory containing (or that should contain) tunnel.yaml — usually the repo/worktree root, but the specific package directory in a monorepo. A relative path is rejected. |
beckon_init
Auto-author a tunnel.yaml for a repo from detection heuristics (.claude/launch.json ports, package.json dev scripts, or .env.example). Call this when beckon_up or beckon_plan reports no tunnel.yaml — then call beckon_up. repoPath must be absolute (the directory that should contain tunnel.yaml). Writes the file and returns { path, app, services, evidence, confidence }; if detection finds nothing it errors with a template to hand-author instead. To CHANGE an existing tunnel.yaml, edit the file yourself — there is no --force here (beckon_init refuses to overwrite an existing one), and you hav…
| Parameter | Type | Description |
|---|---|---|
repoPath * | string | ABSOLUTE path to the directory containing (or that should contain) tunnel.yaml — usually the repo/worktree root, but the specific package directory in a monorepo. A relative path is rejected. |
dryRun | boolean | Preview the detection and proposed YAML without writing (default false). The happy path is init → up in two calls, so leave this off unless you want to inspect first. |
beckon_up
Open this repo's tunnels in the background and return their live public URLs. Check beckon_status first — if already listed, no need to call this again. repoPath must be absolute and must be the directory containing tunnel.yaml (create one there yourself if missing — the error tells you the format). The URLs are deterministic per repo+branch; write them into config once. Registration trails this call by a second or two, so retry briefly if a fresh URL isn't reachable yet. The tunnel persists across tool calls — use beckon_down to stop it. The response's `ports` field is a BECKON_PORT_<SE…
| Parameter | Type | Description |
|---|---|---|
repoPath * | string | ABSOLUTE path to the directory containing (or that should contain) tunnel.yaml — usually the repo/worktree root, but the specific package directory in a monorepo. A relative path is rejected. |
instance | string | Override the namespace; omit to derive it from the repo's git branch |
ports | object | Override a service's local port instead of the tunnel.yaml default, keyed by service name (e.g. { web: 3005 }). Refuses instead of substituting a different port if that exact one is unavailable. |
beckon_plan
Predict this repo's tunnel URLs WITHOUT opening them (a dry run). Use to learn the URL before starting so you can write it into .env / Clerk / Stripe first.
| Parameter | Type | Description |
|---|---|---|
repoPath * | string | ABSOLUTE path to the directory containing (or that should contain) tunnel.yaml — usually the repo/worktree root, but the specific package directory in a monorepo. A relative path is rejected. |
instance | string | Override the namespace; omit to derive it from the repo's git branch |
beckon_down
Tear down this repo/worktree's tunnel session. Uses the branch-derived namespace unless an instance is given. On main/master (no derived instance) this targets the STABLE url, which may be a long-running tunnel the human started themselves — the CLI kills it unconditionally with no ownership check, so this call REFUSES to touch the stable session unless confirmStable is explicitly true. Check beckon_status first if you're not sure you're the one who opened it.
| Parameter | Type | Description |
|---|---|---|
repoPath * | string | ABSOLUTE path to the directory containing (or that should contain) tunnel.yaml — usually the repo/worktree root, but the specific package directory in a monorepo. A relative path is rejected. |
confirmStable | boolean | Required (must be true) to tear down the STABLE session (no branch-derived instance). Not needed for a namespaced (feature-branch) session. |
instance | string | Override the namespace; omit to derive it from the repo's git branch |
beckon_doctor
Health/diagnostics probe: this MCP's version, the installed `beckon` CLI's version, whether you're logged in, and how many tunnel sessions are live — plus a best-effort check against the latest published versions to flag staleness. Call this when unsure whether beckon is installed, current, or authenticated (e.g. before beckon_up fails mysteriously, or at the start of a session). Degrades gracefully and never errors out entirely: a missing CLI, being logged out, or an unreachable control plane are all reported as data/warnings, not failures.