PTY MCP Server
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": true
} |
| completions | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| pty_spawnA | Spawns a new PTY (pseudo-terminal) session that runs in the background. Unlike synchronous bash commands, PTY sessions persist and allow you to:
Returns the session ID, which you can use with other pty_* tools. |
| pty_readA | Reads output from a PTY session's buffer. The PTY maintains a rolling buffer of output lines. Use offset and limit to paginate through the output. Two modes:
The buffer stores up to PTY_MAX_BUFFER_LINES (default: 50000) lines. Older lines are discarded when the limit is reached. |
| pty_writeA | Sends input data to an active PTY session. Use this tool to:
Common escape sequences:
|
| pty_listA | Lists all PTY sessions (active and exited). Use this tool to:
Sessions remain in the list after exit until explicitly cleaned up with pty_kill, allowing you to read their output logs. |
| pty_killA | Terminates a PTY session and optionally cleans up its buffer. Behavior:
Use cleanup=false if you might want to read the output later. Use cleanup=true when you're done with the session entirely. To send Ctrl+C instead of killing, use pty_write with data="\x03" |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/almahdi/mcp-terminal'
If you have feedback or need assistance with the MCP directory API, please join our Discord server