article
README
🚀 终端链接MCP服务器
这是一个MCP服务器,它能让Claude(或任何MCP客户端)访问你的终端、文件系统和进程信息。
🚀 快速开始
安装指南
npm install
npm run build
使用示例
基础用法
将以下内容添加到你的Claude桌面配置中:
{
"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 文件进行自定义配置:
{
"blockedCommands": ["rm -rf /"],
"allowedCommands": [],
"timeout": 30000,
"maxOutputSize": 524288
}
📄 许可证
本项目采用MIT许可证。
Scan to join WeChat group