pty-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| start_sessionA | Start a new PTY session with any command or shell. Returns a session_id to use with other commands. |
| run_commandA | Run a command in a PTY session and wait for completion. Uses sentinel-based detection to know when command finishes. |
| send_keysA | Send raw input to a PTY session without waiting for completion. Use for interactive input, Ctrl+C (send '\x03'), etc. |
| get_bufferC | Get the scrollback buffer from a PTY session. |
| stop_sessionB | Stop and clean up a PTY session. |
| set_sentinelA | Change the sentinel command for a session. Use when switching between shells/REPLs (e.g., from bash to python). |
| list_sessionsA | List all active PTY sessions. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 7 tools
Each tool has a clear, distinct purpose: session lifecycle (start, stop, list), command execution, interactive input, output retrieval, and sentinel configuration. No overlaps.
All tool names follow a consistent verb_noun pattern in snake_case (e.g., start_session, get_buffer), making predictions easy.
7 tools is well-scoped for managing PTY sessions, covering creation, interaction, output, and cleanup without excess.
Core lifecycle and interaction are covered, but lacks tools for session details (e.g., size) or resizing, which are minor gaps.