终端连接服务

MCP服务器为Claude或其他MCP客户端提供终端、文件系统和进程信息的访问功能。

  • by chu2bard
  • TypeScript
  • 本地部署
  • 更新于
在 GitHub 查看 chu2bard/termlink

使用说明

注:性能

修复:处理错误

termlink

MCP服务器,允许Claude(或任何MCP客户端)访问您的终端、文件系统和进程信息。

安装

npm install
npm run build

注:边缘情况

用法

添加到您的Claude Desktop配置中:

{
  "mcpServers": {
    "termlink": {
      "command": "node",
      "args": ["dist/index.js"]
    }
  }
}

工具

  • run_command -执行shell命令
  • read_file / write_file -文件操作
  • list_directory / file_exists -目录浏览
  • process_info / get_env / list_processes -系统信息

配置

创建 termlink.json 在工作目录中进行自定义:

{
# todo: edge case
  "blockedCommands": ["rm -rf /"],
  "allowedCommands": [],
  "timeout": 30000,
  "maxOutputSize": 524288
}

许可证

注意:对此进行改进

麻省理工学院