Back to MCP directory
publicPublicdnsLocal runtime

humanmcp

humanmcp是一个手动操作的MCP服务器项目,用户需要手动读取请求并写入响应。

article

README

🚀 项目介绍

这是一个关于MCP服务器的玩笑项目,为大家带来别样的体验。

🚀 快速开始

✨ 主要特性

此MCP服务器是 100% 手动操作,充满了趣味性和独特性。

📦 安装指南

    1. Releases 下载服务器二进制文件。
    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":"Get weather forecast","inputSchema":{"type":"object","properties":{"location":{"type":"string","description":"location name"}},"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":"sunny"}]},"jsonrpc":"2.0","id":3}' > out.txt

架构图

humanmcp架构图

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

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