poneding/touch-mcp-server
If you are the rightful owner of touch-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
touch-mcp-server is an MCP Server implemented in Golang for creating files, designed for beginners in MCP Server development.
touch-mcp-server
touch-mcp-server 是一个使用 Golang 实现的创建文件的 MCP Server,用于入门 MCP Server 开发。
JSON-RPC 2.0
MCP Server 使用 JSON-RPC 2.0 协议进行通信。
安装
git clone https://github.com/poneding/touch-mcp-server.git
cd touch-mcp-server
go install
配置
在 VSCode 中使用 Cline 插件添加以下 MCP Server 配置:
{
"mcpServers": {
"touch-mcp-server": {
"command": "~/go/bin/touch-mcp-server",
"env": {
"DEFAULT_TOUCH_PATH": "/tmp"
}
}
}
}
逻辑
- 获取用户输入内容;
- AI 从中提取出文件名;
- 创建文件。