Skip to main content
Glama
votsie

ssh-mcp

by votsie

ssh_tunnel_open

Opens an SSH tunnel to a remote server, forwarding local ports to the server's network or exposing local services. Supports local, remote, and SOCKS5 dynamic tunnels for secure access.

Instructions

Поднять туннель до сервера.

Панель, слушающую на 127.0.0.1:2053, открывают как kind='local' с dest_host='127.0.0.1', dest_port=2053 — и она становится доступна по возвращённому адресу. Туннель живёт до конца сессии Claude Code.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bindNo127.0.0.1
kindNolocal — порт здесь ведёт в сеть сервера; remote — порт на сервере ведёт сюда; dynamic — SOCKS5-прокси в сеть сервераlocal
serverYes
dest_hostNo
dest_portNo
listen_portNo0 — порт выберет система, и это правильный выбор по умолчанию

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.1/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the burden of behavioral disclosure. It adds useful behavior: the tunnel lives until the end of the Claude Code session and is reachable at a returned address. It does not mention authentication, preconditions, or cleanup detail beyond the implied session lifetime.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is short and front-loaded with the purpose, followed by a concrete example and a key behavioral note. It is relatively efficient, though the example is slightly specific and could be tighter.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with six parameters, no annotations, no output schema, and a range of tunnel kinds plus many sibling tools, the description is not complete. It explains only a local-tunnel scenario and does not fully cover the tool's modes, argument expectations, or returned-address format.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 33%, so the description should compensate. It explains one meaningful example for kind='local', but does not clarify server, bind, listen_port, dest_host, or dest_port semantics across local/remote/dynamic modes. This leaves too much parameter behavior to be inferred.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific action ('open a tunnel to a server') and gives a concrete use case, which distinguishes this from sibling connection and shell tools. It could more explicitly call out SSH tunneling, but the object and behavior are clear.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives an example of when the tool is appropriate — exposing a locally-listening service through a tunnel — and notes the tunnel lifetime. It does not explicitly discuss when not to use it or contrast it with ssh_connect, ssh_shell_open, or ssh_run, so some guidance is present but not full.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.