Skip to main content
Glama

cmd-mcp-server

execute_command

Run shell commands and retrieve output within a persistent or new session using the cmd-mcp-server. Ideal for executing and managing commands via a command-line interface.

Instructions

Execute a command and return its output. Commands run in a persistent shell session by default. Use newSession: true to run in a new shell instance.

Input Schema

NameRequiredDescriptionDefault
commandYes
newSessionNo

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "command": { "type": "string" }, "newSession": { "type": "boolean" } }, "required": [ "command" ], "type": "object" }

You must be authenticated.

Other Tools from cmd-mcp-server

Related Tools

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/PhialsBasement/CMD-MCP-Server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server