https://github.com/poneding/touch-mcp-server
https://github.com/poneding/touch-mcp-server
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/poneding/touch-mcp-server
- Owner: poneding
- Created: 2025-04-11T08:09:10.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-04-11T08:11:41.000Z (about 1 year ago)
- Last Synced: 2025-04-11T10:33:50.428Z (about 1 year ago)
- Language: Rust
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# touch-mcp-server
`touch-mcp-server` 是一个使用 `Golang` 实现的创建文件的 `MCP Server`,用于入门 `MCP Server` 开发。
## JSON-RPC 2.0
MCP Server 使用 `JSON-RPC 2.0` 协议进行通信。
[JSON-RPC 2.0](./docs/json-rpc-2.0.md)
## 安装
```bash
git clone https://github.com/poneding/touch-mcp-server.git
cd touch-mcp-server
go install
```
## 配置
在 `VSCode` 中使用 `Cline` 插件添加以下 MCP Server 配置:
```json
{
"mcpServers": {
"touch-mcp-server": {
"command": "~/go/bin/touch-mcp-server",
"env": {
"DEFAULT_TOUCH_PATH": "/tmp"
}
}
}
}
```
## 逻辑
1. 获取用户输入内容;
2. AI 从中提取出文件名;
3. 创建文件。
## 其他
- [Rust 实现](./docs/touch-mcp-server-in-rust.md)
- [Python 实现](./docs/touch-mcp-server-in-python.md)