GraphForge.AI

echo

回显输入的消息(Sprint 3a 前置 spike,验证 MCP SDK 链路)。

正式功能请使用 query_knowledge / compute_metric 等 tools。

输入 Schema

字段类型必填说明
messagestring

用途

Sprint 3a 前置 spike,纯用于验证 MCP SDK 链路是否通。生产环境不使用。

调用示例

Claude Desktop 中说:"用 graphforge 的 echo 回显 hello world"。

JSON-RPC payload:

{
  "method": "tools/call",
  "params": {
    "name": "echo",
    "arguments": { "message": "hello world" }
  }
}

返回示例

{
  "echoed": "hello world",
  "server": "graphforge-mcp-v2"
}

何时用

  • 首次接入 MCP Server 时验证 stdio / SSE 传输是否打通
  • Debug 现有 client 看是否能成功调一个 tool