Back to MCP directory
publicPublicdnsLocal runtime

touch-mcp-server

一个用Golang实现的基于JSON-RPC 2.0协议的MCP服务,用于通过AI解析用户输入并创建指定文件

article

README

🚀 触摸 MCP 服务器

touch-mcp-server 是一个用 Golang 实现的 MCP Server,其主要功能是创建文件,非常适合用于 MCP Server 开发的入门学习。

🚀 快速开始

安装

git clone https://github.com/poneding/touch-mcp-server.git
cd touch-mcp-server
go install

配置

VSCode 中使用 Cline 插件添加以下 MCP 服务器配置:

{
  "mcpServers": {
   "touch-mcp-server": {
      "command": "~/go/bin/touch-mcp-server",
      "env": {
        "DEFAULT_TOUCH_PATH": "/tmp"
      }
    }
  }
}

✨ 主要特性

JSON-RPC 2.0 通信

MCP 服务器使用 JSON-RPC 2.0 协议进行通信。 JSON-RPC 2.0

清晰逻辑流程

  1. 获取用户输入内容;
  2. AI 从中提取出文件名;
  3. 创建文件。

📚 详细文档

其他实现版本

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client