up_tunnel
Open or reuse a tunnel to a configured database connection without connecting to the database. Returns the local host/port and tunnel_id for later tunnel management.
Instructions
Open (or reuse) the tunnel configured for a connection WITHOUT connecting to the database. Returns the local host/port to connect through and a tunnel_id for down_tunnel. The tunnel is closed by down_tunnel, on idle timeout or when this MCP instance exits. Pass local_port to bind an exact local port; this fails if the tunnel is already open on a different port or the port is taken.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection | Yes | Connection key from connection_list (must have a tunnel configured) | |
| local_port | No | Exact local port to open the tunnel on (default: port from the config or a random free one) |