tunnel_destroy
Destroy a tunneled secret immediately by providing its tunnel ID to remove temporary access and prevent unauthorized use.
Instructions
Immediately destroy a tunneled secret.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Tunnel ID |
Implementation Reference
- src/core/tunnel.ts:99-101 (handler)The actual implementation of the secret destruction logic which deletes the entry from the in-memory map.
export function tunnelDestroy(id: string): boolean { return tunnelStore.delete(id); } - src/mcp/server.ts:413-426 (registration)Tool registration and MCP handler for the "tunnel_destroy" tool.
server.tool( "tunnel_destroy", "Immediately destroy a tunneled secret.", { id: z.string().describe("Tunnel ID"), }, async (params) => { const destroyed = tunnelDestroy(params.id); return text( destroyed ? `Destroyed ${params.id}` : `Tunnel "${params.id}" not found`, !destroyed, ); }, );