Terminal Controller is an MCP server that enables secure terminal command execution, directory navigation, and file system operations through a standardized interface. It implements several tools for executing commands, managing directories, and tracking command history, with built-in security measures to prevent dangerous operations. The server is designed to work across Windows and UNIX-based systems, making it versatile for various terminal-based tasks and integrations with AI-assisted workflows.
暂无评论. 成为第一个评论的人!
登录以参与讨论
Execute a terminal command and return its results. Parameters: command (string), timeout (optional integer, default: 30)
Get recent command execution history. Parameters: count (optional integer, default: 10)
Get the current working directory.
Change the current working directory. Parameters: path (string, directory path to switch to)
List files and subdirectories in the specified directory. Parameters: path (optional string, directory path to list contents, default: current directory)
Write content to a file with overwrite or append options. Parameters: path (string, path to the file), content (string, content to write), mode (optional string, write mode 'overwrite' or 'append', default: 'overwrite')
Read content from a file with optional row selection. Parameters: path (string, path to the file), start_row (optional integer, starting row to read from, 0-based), end_row (optional integer, ending row to read to, inclusive, 0-based)
Insert content at specific row(s) in a file. Parameters: path (string, path to the file), content (string, content to insert), row (optional integer, row number to insert at, 0-based), rows (optional array of integers, list of row numbers to insert at, 0-based)
Delete content at specific row(s) from a file. Parameters: path (string, path to the file), row (optional integer, row number to delete, 0-based), rows (optional array of integers, list of row numbers to delete, 0-based)
Update content at specific row(s) in a file. Parameters: path (string, path to the file), content (string, new content to place at the specified row(s)), row (optional integer, row number to update, 0-based), rows (optional array of integers, list of row numbers to update, 0-based)