beckon-mcp

v0.3.2
@fevernova90/beckon-mcp Checked 2 days ago Published 4 months ago

MCP 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.

ParameterTypeDescription
instancestringOverride the namespace; omit to derive it from the repo's git branch
repoPathstringABSOLUTE 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…

ParameterTypeDescription
repoPath *stringABSOLUTE 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.
dryRunbooleanPreview 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…

ParameterTypeDescription
repoPath *stringABSOLUTE 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.
instancestringOverride the namespace; omit to derive it from the repo's git branch
portsobjectOverride 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.

ParameterTypeDescription
repoPath *stringABSOLUTE 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.
instancestringOverride 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.

ParameterTypeDescription
repoPath *stringABSOLUTE 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.
confirmStablebooleanRequired (must be true) to tear down the STABLE session (no branch-derived instance). Not needed for a namespaced (feature-branch) session.
instancestringOverride 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.