Skip to main content
Glama
clalarco

MCP CLI Server

by clalarco

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
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
Send text input to a running program.

Args:
    pid: The process ID returned by start_program().
    text: The text to send. Newlines are usually needed (e.g., "

").

Returns:
    A confirmation message.
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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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