
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
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.
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)
cloudflaredonPATHformode: "public"(Cloudflare quick tunnels)- A Tailscale auth key (
TS_AUTHKEYorFLASHPORT_TS_KEY) formode: "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
PATHor viaFLASHPORT_MCP_BIN. Install the binary first (Go or prebuilt) or setFLASHPORT_MCP_BINto 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
| Tool | Purpose | Key arguments |
|---|---|---|
expose_local_port | Open 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_traffic | List captured HTTP requests for a tunnel | tunnel_id (required); optional limit, status_filter (all | errors_only), path_contains, method, search |
replay_request | Replay a captured request | tunnel_id, request_id (required); optional override_body |
list_tunnels | List active tunnels | — |
kill_tunnel | Stop a tunnel | tunnel_id or "all" |
save_tunnel_profile | Save a named reusable tunnel profile | name, port (required); optional mode, ttl_minutes, max_requests, auth_token |
list_tunnel_profiles | List saved tunnel profiles | — |
get_tunnel_profile | Get a saved profile by name | name |
delete_tunnel_profile | Delete a saved profile | name |
expose_from_profile | Open a tunnel from a saved profile (optional overrides) | name (required); optional ttl_minutes, max_requests, auth_token |
Production / security notes
mode: "public"usescloudflaredquick 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. RequiresTS_AUTHKEYorFLASHPORT_TS_KEY. The returned URL ishttp://<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.1on the specified port. - Limits & expiry:
ttl_minutesclamped to 1–60 (default 15). Optionalmax_requestsstops the tunnel after that many inspected requests. Use short TTLs andmax_requestsfor public exposure. - Tunnel access control: optional
auth_tokencan be set onexpose_local_port; the returned tunnel URL gets?token=<value>appended and the inspector rejects (401) requests without it. Strongly recommended formode: "public". - External dependencies:
publicrequirescloudflaredonPATH.p2prequires a valid Tailscale auth key in the environment. - Debug logging: Set
FLASHPORT_MCP_DEBUG=1to 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_tokenwas set, it stays open. Prefer settingauth_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)
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_amd64.mcpbhttps://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_linux_arm64.mcpbhttps://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_amd64.mcpbhttps://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_darwin_arm64.mcpbhttps://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_amd64.mcpbhttps://github.com/bigwalkdoe/flashport-mcp/releases/download/v0.1.5/flashport-mcp_0.1.5_windows_arm64.mcpb# mcpb: https://github.com/bigwalkdoe/flashport-mcp/releases/download/v0.1.5/flashport-mcp_0.1.5_windows_arm64.mcpbRelated Servers
io.github.bigwalkdoe/ctxpane
Local-first context daemon for MCP coding agents on Linux, macOS, and Windows.
io.github.bigwalkdoe/logcut
Local-first stacktrace, log, and compiler error slicer for AI agents and terminals.
io.github.bigwalkdoe/mcpspy
Zero-config MCP traffic inspector, latency profiler & token auditor in Rust.