Share a local port
share_portShares a local port over your tailnet via Tailscale Serve, defaulting to tailnet-only access; set public=true only to expose it to the open internet via Funnel when explicitly intended.
Instructions
Share a local port over the tailnet via Tailscale Serve (tailnet-only by default). WARNING: setting public=true switches to Funnel and exposes the port to the OPEN INTERNET — anyone with the URL can reach it. Only set public=true when internet exposure is explicitly intended. Funnel is DISABLED on this server: public=true returns FUNNEL_DISABLED unless the user sets TAILSCALE_MCP_ALLOW_FUNNEL=1. Returns the resulting URL(s).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"port": "<port>"
},
"name": "share_port"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | HTTPS mount path on the serve endpoint, e.g. "/api" (default: "/") | |
| port | Yes | Local port to share | |
| public | No | Expose to the open internet via Funnel (default: false = tailnet-only Serve). DANGEROUS: public=true makes the port reachable by anyone on the internet. Disabled unless TAILSCALE_MCP_ALLOW_FUNNEL=1. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | ||
| urls | Yes | ||
| scope | Yes | ||
| public | Yes |