Repository avatar
AI Tools
v0.1.5
active

flashport-mcp

io.github.bigwalkdoe/flashport-mcp

Ephemeral localhost tunneling and HTTP inspection MCP server for AI agents.

Documentation

flashport-mcp

Ephemeral localhost tunneling + live HTTP inspection for AI coding agents

Go License: MIT CI MCP Compatible

Expose a local dev server to the internet or a private tailnet, inspect and replay HTTP traffic, then auto-expire the tunnel — all from your IDE via MCP.

Quickstart • MCP Setup • Tools • Production Notes

MCP Registry: mcp-name: io.github.bigwalkdoe/flashport-mcp


Why FlashPort MCP?

When testing webhooks or sharing a WIP preview, you shouldn't have to leave your editor to juggle ngrok tabs or paste payloads by hand. FlashPort MCP keeps the loop inside your AI coding agent:

  • Ephemeral by default: tunnels auto-expire (TTL) and can be capped by request count.
  • Hybrid connectivity: quick public tunnels (cloudflared) or private peer-to-peer via Tailscale (tsnet).
  • Live inspection: capture requests/responses with sensitive headers redacted; bodies are size-limited and buffered in memory.
  • Replay: resend a captured request (optionally overriding the body) to debug webhook handlers fast.
  • Agent-native: runs as a stdio MCP server (flashport-mcp) with five focused tools.

Quickstart

Prerequisites

  • Go 1.27+ (to build/install from source)
  • cloudflared on PATH for mode: "public" (Cloudflare quick tunnels)
  • A Tailscale auth key (TS_AUTHKEY or FLASHPORT_TS_KEY) for mode: "p2p"

Install

npx (recommended — published to npm as flashport-mcp):

npx -y flashport-mcp

The wrapper does not bundle the Go binary; it locates one on PATH or via FLASHPORT_MCP_BIN. Install the binary first (Go or prebuilt) or set FLASHPORT_MCP_BIN to its path.

Go:

go install github.com/bigwalkdoe/flashport-mcp/cmd/flashport-mcp@latest

Prebuilt binaries: download the archive for your OS/arch from GitHub Releases, extract it, and put flashport-mcp on your PATH.

Build from source

git clone https://github.com/bigwalkdoe/flashport-mcp.git
cd flashport-mcp
go build ./cmd/flashport-mcp

MCP Server Setup

FlashPort MCP communicates over stdio (JSON-RPC). It speaks the MCP protocol revisions 2024-11-05 through 2026-07-28: classic initialize-based negotiation for older revisions, and the stateless per-request _meta + server/discover flow for 2026-07-28.

Example: Cursor (.cursor/mcp.json) or Claude Desktop

{
  "mcpServers": {
    "flashport": {
      "command": "npx",
      "args": ["-y", "flashport-mcp"],
      "env": {
        "TS_AUTHKEY": "YOUR_TAILSCALE_AUTH_KEY"
      }
    }
  }
}

To use a locally built binary instead, point command at its absolute path (and omit npx), or set FLASHPORT_MCP_BIN for the npm wrapper.

Tools

ToolPurposeKey arguments
expose_local_portOpen a tunnel to 127.0.0.1:<port>port (required); optional mode (public | p2p, default public), ttl_minutes (1–60, default 15), max_requests (≥1 when set), auth_token (optional shared secret required via ?token=)
inspect_trafficList captured HTTP requests for a tunneltunnel_id (required); optional limit, status_filter (all | errors_only), path_contains, method, search
replay_requestReplay a captured requesttunnel_id, request_id (required); optional override_body
list_tunnelsList active tunnels—
kill_tunnelStop a tunneltunnel_id or "all"
save_tunnel_profileSave a named reusable tunnel profilename, port (required); optional mode, ttl_minutes, max_requests, auth_token
list_tunnel_profilesList saved tunnel profiles—
get_tunnel_profileGet a saved profile by namename
delete_tunnel_profileDelete a saved profilename
expose_from_profileOpen a tunnel from a saved profile (optional overrides)name (required); optional ttl_minutes, max_requests, auth_token

Production / security notes

  • mode: "public" uses cloudflared quick tunnels: traffic is routed through Cloudflare's tunnel infrastructure to reach your local app. Use only for traffic you're comfortable exposing this way; avoid highly sensitive data unless you understand the risks.
  • mode: "p2p" uses Tailscale (tsnet) with an ephemeral node. Requires TS_AUTHKEY or FLASHPORT_TS_KEY. The returned URL is http://<node>.<tailnet>.ts.net (or the node's tailnet IP when MagicDNS is unavailable); traffic is encrypted by WireGuard and never exposed publicly. Prefer this for private sharing.
  • Inspection & privacy: Captured requests/responses are held in memory (bounded ring buffer). Bodies are capped/truncated when large. Sensitive headers (e.g. Authorization, Cookie, Set-Cookie, API-key headers) are redacted in inspection output. Replay reuses original captured headers/body for the replay call—use carefully.
  • Forwarding scope: Tunnels forward only to 127.0.0.1 on the specified port.
  • Limits & expiry: ttl_minutes clamped to 1–60 (default 15). Optional max_requests stops the tunnel after that many inspected requests. Use short TTLs and max_requests for public exposure.
  • Tunnel access control: optional auth_token can be set on expose_local_port; the returned tunnel URL gets ?token=<value> appended and the inspector rejects (401) requests without it. Strongly recommended for mode: "public".
  • External dependencies: public requires cloudflared on PATH. p2p requires a valid Tailscale auth key in the environment.
  • Debug logging: Set FLASHPORT_MCP_DEBUG=1 to emit debug logs to stderr (stdout reserved for MCP JSON-RPC).
  • Public URLs: anyone with the URL can reach your local service until the tunnel expires or is killed; if no auth_token was set, it stays open. Prefer setting auth_token (or app-level auth) and short TTLs.

Development

Running tests

go test ./...
go test -race ./...

Building

go build ./cmd/flashport-mcp

Releasing

Releases are automated via GitHub Actions (.github/workflows/release.yml) when you push a version tag like v0.1.0:

git tag v0.1.0
git push origin v0.1.0

GoReleaser builds cross-platform binaries and publishes a GitHub Release (see .goreleaser.yaml). For a local dry run (no publish):

goreleaser release --snapshot --clean

Contributing

Issues and pull requests are welcome. Please keep changes consistent with the existing Go layout under cmd/ and internal/. See CONTRIBUTING.md.


License

MIT (see LICENSE)

MCPB
https://github.com/bigwalkdoe/flashport-mcp/releases/download/v0.1.5/flashport-mcp_0.1.5_linux_amd64.mcpb
Install Command
# mcpb: https://github.com/bigwalkdoe/flashport-mcp/releases/download/v0.1.5/flashport-mcp_0.1.5_linux_amd64.mcpb
MCPB
https://github.com/bigwalkdoe/flashport-mcp/releases/download/v0.1.5/flashport-mcp_0.1.5_linux_arm64.mcpb
Install Command
# mcpb: https://github.com/bigwalkdoe/flashport-mcp/releases/download/v0.1.5/flashport-mcp_0.1.5_linux_arm64.mcpb
MCPB
https://github.com/bigwalkdoe/flashport-mcp/releases/download/v0.1.5/flashport-mcp_0.1.5_darwin_amd64.mcpb
Install Command
# mcpb: https://github.com/bigwalkdoe/flashport-mcp/releases/download/v0.1.5/flashport-mcp_0.1.5_darwin_amd64.mcpb
MCPB
https://github.com/bigwalkdoe/flashport-mcp/releases/download/v0.1.5/flashport-mcp_0.1.5_darwin_arm64.mcpb
Install Command
# mcpb: https://github.com/bigwalkdoe/flashport-mcp/releases/download/v0.1.5/flashport-mcp_0.1.5_darwin_arm64.mcpb
MCPB
https://github.com/bigwalkdoe/flashport-mcp/releases/download/v0.1.5/flashport-mcp_0.1.5_windows_amd64.mcpb
Install Command
# mcpb: https://github.com/bigwalkdoe/flashport-mcp/releases/download/v0.1.5/flashport-mcp_0.1.5_windows_amd64.mcpb
MCPB
https://github.com/bigwalkdoe/flashport-mcp/releases/download/v0.1.5/flashport-mcp_0.1.5_windows_arm64.mcpb
Install Command
# mcpb: https://github.com/bigwalkdoe/flashport-mcp/releases/download/v0.1.5/flashport-mcp_0.1.5_windows_arm64.mcpb