cmd-line-mcp

v0.6.1
cmd-line-mcp Checked 2 days ago Published 1 month ago

Command-line MCP server for safe command execution

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

execute_command

Execute a Unix/macOS terminal command. Args: command: The command to execute session_id: Optional session ID for permission management Returns: A dictionary with command output and status

ParameterTypeDescription
command *string
session_id

execute_read_command

Execute a read-only Unix/macOS terminal command (ls, cat, grep, etc.). Args: command: The read-only command to execute session_id: Optional session ID for permission management Returns: A dictionary with command output and status

ParameterTypeDescription
command *string
session_id

list_available_commands

List all available commands by category. Returns: A dictionary with commands grouped by category

get_command_help

Get detailed help about command capabilities and usage. This tool provides comprehensive information about: - Supported commands in each category (read, write, system) - Blocked commands for security reasons - Command chaining capabilities (|, ;, && and ||) - Usage restrictions and examples Returns: A dictionary with detailed information about command capabilities and usage

approve_command_type

Approve a command type for the current session. Args: command_type: The command type to approve (read, write, system) session_id: The session ID remember: Whether to remember this approval for the session Returns: A dictionary with approval status

ParameterTypeDescription
command_type *string
session_id *string
rememberboolean

approve_directory

Approve access to a directory for the current session. Args: directory: The directory to approve access to session_id: The session ID remember: Whether to remember this approval for the session Returns: A dictionary with approval status

ParameterTypeDescription
directory *string
session_id *string
rememberboolean

list_directories

List all whitelisted and approved directories. Args: session_id: Optional session ID to get session-specific approvals Returns: A dictionary with globally whitelisted and session-approved directories

ParameterTypeDescription
session_id

get_configuration

Get the current configuration settings. Returns: The current configuration settings