SuperAPI AI 工具集

mcp-desktop-commander

智能体与模型

查看项目

更新于 10-15 23:42

技能介绍

用途:Desktop Commander 是一个 MCP 服务器,在可用时用于文件系统与终端操作,覆盖文件读写、目录管理、进程管理、搜索和工作区探索。

主要能力:文件操作支持 list_directory(path, depth=2)、read_file(path, offset=0, length=100)、write_file(path, content, mode="rewrite" | "append")、create_directory(path)。进程操作支持 start_process(command, timeout_ms=120000, shell="powershell")、read_process_output(pid, offset=0, length=100)、interact_with_process(pid, input="command", timeout_ms=8000)、force_terminate(pid)。搜索操作支持 start_search(path, pattern, search_type="files" | "content")、get_more_search_results(session_id, offset=0, length=100)、stop_search(session_id)。

使用方式:当 MCP 服务器 desktop-commander 可用时,优先用它处理文件系统与终端操作,而非手动 shell 命令;批量读取多个文件可用 read_multiple_files;搜索时按需选择 search_type。

适用场景:创建、编辑、读取目录与文件;启动、停止和管理终端进程;高效搜索文件与内容;导航和理解工作区结构;执行 shell 命令与脚本。

限制与注意事项:需妥善处理文件权限与路径错误;进程使用完毕后应始终终止;资料未提供安装方式、收费、平台支持等细节。