router-session-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
router-session-mcp
Use an MCP client to run commands on a router CLI over SSH, Telnet, or a simulator console on a Linux host. Each session keeps its own terminal and configuration view. An agent can disconnect, reconnect, and pick up where it left off.
Quick start
Install Git, Python 3.12 or later, and uv. To start the server from source, run:
git clone https://github.com/yichase/router-session-mcp.git
cd router-session-mcp
uv run --frozen router-session-mcpSelect Streamable HTTP in your MCP client and enter http://127.0.0.1:8765/mcp. Use --port to change the port. The server listens on the loopback interface. Local clients that connect to it share the same device sessions.
Related MCP server: ptywright
Connect to a device
Mode | Arguments for |
| Router |
| Router |
| SSH login details in |
The CLI driver recognizes prompts such as <Router3> and [Router3]. Direct connections work without a configuration file. For SSH, the server verifies device and host keys against ~/.ssh/known_hosts by default.
For simulator access, copy the example configuration, set attach_command to the console command on your Linux host, and start the server with that file:
cp config.example.toml config.toml
uv run --frozen router-session-mcp --config config.tomlFor example, attach_command = "connect" and router_number = 3 run connect 3 on the host.
Session tools
Tool | Purpose |
| Log in and return a |
| Run one query or configuration command in the existing terminal and return its output and prompt. |
| Use the current |
| Find sessions after reconnecting and inspect their targets, states, and pending questions. |
| Close a single device session. |
Device sessions stay open when an agent disconnects. Press Ctrl+C to stop the server and release all connections. If a command returns outcome="unknown", check the device state before deciding whether to retry.
Design and tool examples (Chinese) · Contributing
License
This project is distributed under the MIT License.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Remote MCP access to user-authorized Linux, Windows and Intel Mac devices for AI assistants.
Termalin's hosted MCP server. Claude, ChatGPT or any MCP client runs commands, moves files over SFTP, queries databases and reads server metrics and monitoring alerts on your servers, keylessly through Termalin Connectors: no SSH key is handed over and no inbound port is opened. Per-host command policy and an audit log. Needs a termal.in Pro or Team account (new accounts start with a 14-day Pro trial).
Remote MCP access to a real Windows, macOS, Linux or Android machine. Outbound only.
Start and manage Reason cloud coding agents, projects and sessions from any MCP client.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables SSH interactive session management through MCP, supporting commands, menus, and session lifecycle operations.1-
- AlicenseNot gradedqualityDmaintenanceEnables MCP clients to launch and interact with terminal/TUI programs, providing tools to inspect and control live CLI/TUI sessions.42 npm1Apache 2.0
- AlicenseBqualityBmaintenanceEnables AI agents to open persistent interactive terminal sessions with network devices over SSH, Telnet, TCP console, or serial, write raw commands including nested ssh/telnet transitions, and read full output without requiring a particular prompt format. It supports multiple concurrent sessions and keeps credentials/secrets out of MCP arguments or audit logs.7MIT
- AlicenseNot gradedqualityCmaintenanceEnables clients to execute commands, maintain interactive shell sessions, incrementally read output, and manage or close those sessions through an authenticated MCP endpoint.MIT