observerw/pty-mcp
MCP server for managing local PTY sessions and SSH-backed remote workflows that you really want.
75bf28e9ce11pty-mcp0.3.0 in Cargo.tomlPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.
- In 2 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
Top risks in plain words
- HIGH4 production dependencies have known vulnerabilities (worst: high).
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Give it a narrowly scoped token
Its code reads credentials or environment variables. Use a key limited to what this server needs, not your main one.
- Update its vulnerable packages
Use
anyhow1.0.103 or later,rmcp3.9.0 or later,tokio1.51.6 or later. - Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 20 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
ssh_connect, ssh_list_dir, ssh_mkdir, ssh_read_file, ssh_run, ssh_tunnel_open and 1 morepty_kill, pty_spawn, ssh_connect, ssh_exec, ssh_list_dir, ssh_mkdir and 6 moressh_connect, ssh_list_dir, ssh_mkdir, ssh_read_file, ssh_run, ssh_write_filessh_connect, ssh_exec, ssh_list_dir, ssh_mkdir, ssh_read_file, ssh_run and 3 moreNo tool was seen to: read passwords, tokens or keys; touch sensitive locations.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
Text it brings in from outside
Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.
- files12 tools · pty_kill, pty_spawn, ssh_connect +9
Not all three are present in the tools the scanner traced.
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (20: 20 tools)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
pty_killtool Stop a PTY session and optionally clean up its metadata and buffered output.Filesoutside text
Stop a PTY session and optionally clean up its metadata and buffered output.
pty_listtool List known PTY sessions without returning large log payloads.
List known PTY sessions without returning large log payloads.
pty_readtool Read PTY output with pagination, optional filtering, and view selection.
Read PTY output with pagination, optional filtering, and view selection.
pty_spawntool Create a new PTY session without waiting for the process to finish.Filesoutside text
Create a new PTY session without waiting for the process to finish.
pty_waittool Wait for a PTY session to exit without requiring host task support.
Wait for a PTY session to exit without requiring host task support.
pty_writetool Send input into a running PTY session.
Send input into a running PTY session.
ssh_connecttool Create or reuse an SSH connection handle.ProcessesFilesNetworkEnv varsoutside text
Create or reuse an SSH connection handle.
ssh_disconnecttool Disconnect an SSH connection and optionally clean up related sessions and mounts.
Disconnect an SSH connection and optionally clean up related sessions and mounts.
ssh_exectool Run a shell script on an existing SSH connection and keep the result attached to a PTY-backed session.FilesEnv varsoutside text
Run a shell script on an existing SSH connection and keep the result attached to a PTY-backed session.
ssh_listtool List SSH connection and mount summaries.
List SSH connection and mount summaries.
ssh_list_dirtool List one remote directory level over an existing SSH connection.ProcessesFilesNetworkEnv varsoutside text
List one remote directory level over an existing SSH connection.
ssh_mkdirtool Create a remote directory over an existing SSH connection.ProcessesFilesNetworkEnv varsoutside text
Create a remote directory over an existing SSH connection.
ssh_mounttool Mount a remote SSH path into a local directory via sshfs.
Mount a remote SSH path into a local directory via sshfs.
ssh_read_filetool Read a UTF-8 text file over an existing SSH connection.ProcessesFilesNetworkEnv varsoutside text
Read a UTF-8 text file over an existing SSH connection.
ssh_runtool Run a one-shot shell script on an existing SSH connection and return stdout, stderr, and exit status directly.ProcessesFilesNetworkEnv varsoutside text
Run a one-shot shell script on an existing SSH connection and return stdout, stderr, and exit status directly.
ssh_session_spawntool Spawn a remote SSH-backed PTY session that reuses an existing SSH connection.FilesEnv varsoutside text
Spawn a remote SSH-backed PTY session that reuses an existing SSH connection.
ssh_tunnel_closetool Close a persistent SSH tunnel.Filesoutside text
Close a persistent SSH tunnel.
ssh_tunnel_opentool Open or reuse a persistent local SSH tunnel over an existing SSH connection.ProcessesFilesEnv varsoutside text
Open or reuse a persistent local SSH tunnel over an existing SSH connection.
ssh_unmounttool Unmount an sshfs-backed SSH mount.
Unmount an sshfs-backed SSH mount.
ssh_write_filetool Write a UTF-8 text file over an existing SSH connection.ProcessesFilesNetworkEnv varsoutside text
Write a UTF-8 text file over an existing SSH connection.
Text the model reads (20)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
pty_spawn tool
Create a new PTY session without waiting for the process to finish.
pty_write tool
Send input into a running PTY session.
pty_read tool
Read PTY output with pagination, optional filtering, and view selection.
pty_list tool
List known PTY sessions without returning large log payloads.
ssh_connect tool
Create or reuse an SSH connection handle.
ssh_list tool
List SSH connection and mount summaries.
ssh_tunnel_open tool
Open or reuse a persistent local SSH tunnel over an existing SSH connection.
ssh_session_spawn tool
Spawn a remote SSH-backed PTY session that reuses an existing SSH connection.
ssh_exec tool
Run a shell script on an existing SSH connection and keep the result attached to a PTY-backed session.
ssh_run tool
Run a one-shot shell script on an existing SSH connection and return stdout, stderr, and exit status directly.
ssh_mount tool
Mount a remote SSH path into a local directory via sshfs.
ssh_unmount tool
Unmount an sshfs-backed SSH mount.
ssh_tunnel_close tool
Close a persistent SSH tunnel.
ssh_disconnect tool
Disconnect an SSH connection and optionally clean up related sessions and mounts.
ssh_read_file tool
Read a UTF-8 text file over an existing SSH connection.
ssh_write_file tool
Write a UTF-8 text file over an existing SSH connection.
ssh_list_dir tool
List one remote directory level over an existing SSH connection.
ssh_mkdir tool
Create a remote directory over an existing SSH connection.
pty_kill tool
Stop a PTY session and optionally clean up its metadata and buffered output.
pty_wait tool
Wait for a PTY session to exit without requiring host task support.
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 20 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 20 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 20 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Requests any addressNo tool sends a request to an address the caller supplies — 20 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 20 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processes7 of 20 capabilities start processes; 13 more call code the scanner could not follow, where it may happen
- Tools that touch files12 of 20 capabilities touch files; 8 more call code the scanner could not follow, where it may happen
- Tools that call the network6 of 20 capabilities call the network; 14 more call code the scanner could not follow, where it may happen
Where the code is: 20 handlers in 1 file at commit 75bf28e9ce11
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests1 manifest: Cargo.toml
- Lockfiles checked against OSV1 file resolved and checked against the OSV database
- Known vulnerabilities in production dependencies HIGH4 production packages with known advisories
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK versionrmcp 1.2.0
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentialsNot seen in the traced code of 20 capabilities; 20 more call code the scanner could not follow, where it may happen
- Environment variables9 capabilities read environment variables (often API keys)
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (4 in production)
rmcpcrates.io 1.3.0 HIGH 7 advisories 1.4.02.0.02.1.0+1 more
- HIGHGHSA-89vp-x53w-74fx CVE-2026-42559 GHSA-fvh2-gm75-j4j7 RUSTSEC-2026-0140 RUSTSEC-2026-0189rmcp Streamable HTTP server transport has a DNS rebinding vulnerability
- HIGHGHSA-33f5-2c5q-wgwj CVE-2026-63127RMCP: Missing Resource Field Validation in OAuth Protected Resource Metadata Discovery
- HIGHGHSA-9pj6-vhgr-3mwh CVE-2026-63128RMCP: Unauthenticated permanent session-table leak in rmcp Streamable HTTP server transport leads to remote denial-of-service
- MEDIUMRUSTSEC-2026-0189 CVE-2026-42559 GHSA-89vp-x53w-74fx GHSA-fvh2-gm75-j4j7 RUSTSEC-2026-0140DNS rebinding vulnerability in rmcp Streamable HTTP server transport
- MEDIUMRUSTSEC-2026-0462 GHSA-c9f9-cp8h-jcj5Unbounded response body buffering in Streamable HTTP clients
- MEDIUMGHSA-9g45-5xwm-f3wc CVE-2026-64684RMCP: Custom HTTP headers leak to cross-origin redirect targets
- MEDIUMGHSA-c9xm-49cp-xcr9rmcp OAuth client fetches server-controlled resource_metadata URLs
anyhowcrates.io 1.0.102 MEDIUM 1 advisory 1.0.103
- MEDIUMRUSTSEC-2026-0190Unsoundness in `Error::downcast_mut()`
chronocrates.io 0.4.44 MEDIUM 1 advisory no fix yet
- MEDIUMRUSTSEC-2026-0543chrono is unmaintained
tokiocrates.io 1.50.0 MEDIUM 1 advisory 1.51.61.53.3
- MEDIUMRUSTSEC-2026-0386`AsyncFd::new` and related constructors violate I/O safety
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | not stated in the code the scanner read; most local servers talk over stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | rmcp 1.2.0 |
The project's own security
| Security policy | none no SECURITY.md in the repository: report issues privately through GitHub if it is enabled |
|---|---|
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-04-10 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 1 catalog (github_search) |
|---|---|
| License | not stated |
| Created | 2026-03-26 |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.