返回市场
人类MCP服务器

人类MCP服务器

作者:Syuparn2 星标更新:2025-04-16

项目介绍

humanmcp

您就是MCP服务器!

humanmcp架构

(当然,这是一个玩笑项目 :sweat_smile:)

安装

    1. 发布页面下载服务器二进制文件
    1. 将服务器添加到MCP主机的设置中
// 示例:VSCode设置
"mcp": {
  "inputs": [],
  "servers": {
    "human-mcp": {
      "command": "path/to/humanmcp/executable",
      "args": [
      ],
      "env": {}
    }
  }
}

使用方法

这个MCP服务器是100%手动操作的。祝您好运。

  • 您需要从in.txt读取请求
  • 您需要将响应写入out.txt
# 监控客户端的请求
$ tail -f in.txt
{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{"roots":{"listChanged":true}},"clientInfo":{"name":"Visual Studio Code","version":"1.99.2"}}}
{"method":"notifications/initialized","jsonrpc":"2.0"}
{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}
{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"get-japan-forecast","arguments":{"location":"Tokyo"}}}
# 向客户端发送响应
$ echo '{"result":{"protocolVersion":"2024-11-05","capabilities":{"tools":{}},"serverInfo":{"name":"humanmcp","version":"1.0.0","capabilities":{"resources":{},"tools":{}}}},"jsonrpc":"2.0","id":1}' > out.txt
$ echo '{"result":{"tools":[{"name":"get-japan-forecast","description":"获取天气预报","inputSchema":{"type":"object","properties":{"location":{"type":"string","description":"地点名称"}},"required":["location"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}}]},"jsonrpc":"2.0","id":2}' > out.txt
$ echo '{"result":{"content":[{"type":"text","text":"晴朗"}]},"jsonrpc":"2.0","id":3}' > out.txt