tunnel_destroy
Destroy a tunneled secret immediately by providing its tunnel ID. This action terminates the secure connection and removes the secret from memory.
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 core function that deletes a tunnel entry from the in-memory store.
export function tunnelDestroy(id: string): boolean { return tunnelStore.delete(id); } - src/mcp/server.ts:681-694 (registration)The MCP tool registration for 'tunnel_destroy', including schema validation and handler invocation.
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, ); }, );