Documentation for Jetty

MCP server (AI agents)

Jetty runs a hosted Model Context Protocol server, so AI coding agents such as Claude Code, Cursor and Claude Desktop can see your tunnels, inspect the requests hitting them, and replay captured webhooks. You don't need to copy and paste logs.

Endpoint: https://usejetty.online/mcp (Streamable HTTP) Auth: sign in with your Jetty account (OAuth). Clients that support it open a browser window, you approve, and you're connected. You can also paste a Jetty API token as Authorization: Bearer <token>.

When you sign in, the agent acts as you in your current crew, with your role and the crew's plan, and can use every tool including the write tools. For a read-only agent, connect with an API token that only has jetty:tunnels:read and jetty:org:read (create it under Dashboard → API tokens).

Connect

Claude Code

claude mcp add --transport http jetty https://usejetty.online/mcp

Then run /mcp in Claude Code and choose Authenticate; a browser opens to approve. To use a token instead, add --header "Authorization: Bearer $JETTY_TOKEN".

Cursor

Add to .cursor/mcp.json (or Settings → MCP), then click Connect to sign in:

{
  "mcpServers": {
    "jetty": { "url": "https://usejetty.online/mcp" }
  }
}

To use a token instead, add "headers": { "Authorization": "Bearer YOUR_JETTY_TOKEN" }.

Claude.ai and Claude Desktop

Settings → Connectors → Add custom connector, URL https://usejetty.online/mcp, then Connect and approve.

Other clients

Any MCP client with OAuth support discovers sign-in automatically from the URL. For clients that only run local (stdio) servers, use a bridge such as npx mcp-remote https://usejetty.online/mcp (it handles the sign-in), or pass --header "Authorization: Bearer YOUR_JETTY_TOKEN".

Sign-ins last 30 days of inactivity (access tokens refresh hourly). Suspending an account revokes them.

Tools

Tool What it does Scope
list_tunnels Your crew's tunnels: status, public URL, local port jetty:tunnels:read
get_tunnel_traffic_history Hourly requests, bytes and errors for a tunnel jetty:tunnels:read
list_request_samples Recent captured requests for a tunnel, filterable by path (Captain/Fleet) jetty:tunnels:read
get_request_sample Full headers, body and response for one request (redacted per crew policy) jetty:tunnels:read
list_webhook_endpoints Webhook capture endpoints and their URLs jetty:tunnels:read
list_webhook_captures Deliveries an endpoint received jetty:tunnels:read
replay_webhook_capture Re-send a captured delivery to a URL (developer role) jetty:tunnels:write
list_reserved_subdomains Reserved labels for your crew jetty:tunnels:read
list_crew_members Crew members and roles jetty:org:read
list_audit_logs Recent audit events (Fleet) jetty:org:read
get_plan_usage Plan, limits and current usage (tunnels, domains, monthly bandwidth) jetty:org:read
update_tunnel Change a tunnel's note or IP allow/block lists (developer role) jetty:tunnels:write
reserve_subdomain Reserve a tunnel label for your crew, within the plan limit (manager role) jetty:tunnels:write
delete_tunnel Delete a tunnel; its URL stops working (developer role for your own, manager for others') jetty:tunnels:write

Write tools (replay_webhook_capture, update_tunnel, delete_tunnel, reserve_subdomain) only work with a token that has write scope, and every successful write is recorded in your crew's audit log as mcp.tool_call. To keep an agent read-only, connect it with a jetty:tunnels:read + jetty:org:read token.

Example prompts

  • "Which of my Jetty tunnels are offline?"
  • "Show me the last failed request to /api/webhooks on my staging tunnel and explain the 500."
  • "How much of this month's bandwidth has my crew used?"
  • "Replay the most recent Stripe webhook capture to https://my-app.usejetty.online/stripe/webhook."

Limits

MCP calls count against the same per-token API rate limit as the REST API: 120 per minute on Dinghy, 600 on Captain and 1,800 on Fleet. Plan-gated features return a clear error that tells the agent which plan is needed.

Send feedback

Found an issue or have a suggestion? Let us know.