MCP CLI Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_processesA | Get a list of all processes. Returns: A dictionary of ProcessDetails objects with PID as key. ProcessDetails contains pid, command and is_alive. |
| start_programB | Start a CLI program in a PTY. Args: command: The command to run (e.g., "cat", "python -i", "ls -la"). Returns: The process ID (pid) of the started program. |
| is_aliveA | Check if a program is running. Args: pid: The process ID returned by start_program(). Returns: True if the program is running, False otherwise. |
| stop_programB | Stop a running program. Args: pid: The process ID returned by start_program. Returns: A confirmation message. |
| stop_all_programsB | Stop all running programs. Returns: A confirmation message. |
| write_inputA | "). |
| read_outputA | Read available output from a running program. Args: pid: The process ID returned by start_program(). max_bytes: Maximum number of bytes to read. timeout: Maximum time to wait for output. Returns: The output text read from the process. Returns empty string if no output. |
| wait_for_outputA | Wait until a specific text pattern appears in the output. Args: pid: The process ID returned by start_program(). pattern: The text to wait for. timeout: Maximum time to wait in seconds. Returns: The output captured so far, or an error/timeout message. |
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
- 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/clalarco/mcp-server-for-cli'
If you have feedback or need assistance with the MCP directory API, please join our Discord server