Skip to main content
Glama
devasur

eve-mcp-handshake-repro

by devasur

eve MCP 接続: ツール呼び出しごとに6件のHTTPリクエスト

vercel/eve の最小再現です。1つのMCPツール呼び出しを行う1ターンで、MCPサーバーに 11件のHTTPリクエスト が送信され、そのうち1件がツール呼び出しです。

mcp-server.mjs はサーバーであり計測器でもあります — echo ツールを1つ持つステートレスな Streamable-HTTP MCP サーバーを実装し、受信したリクエストごとに1行出力します。

実行方法

npm install
echo 'AI_GATEWAY_API_KEY=<your key>' > .env.local   # or VERCEL_OIDC_TOKEN=…

node mcp-server.mjs                                 # terminal 1
npx eve invoke "Echo the word marigold."            # terminal 2

Related MCP server: Copilot Studio MCP Server

端末1の出力

  1  GET /mcp  → 405            ← transport probe
  2  POST /mcp  initialize      ┐ connection_search's client
  3  POST /mcp  notifications/initialized
  4  GET /mcp  → 405            │
  5  POST /mcp  tools/list      ┘
  6  GET /mcp  → 405            ┐ the tool call's client — a new one
  7  POST /mcp  initialize      │
  8  POST /mcp  notifications/initialized
  9  GET /mcp  → 405            │
 10  POST /mcp  tools/list      │
 11  POST /mcp  tools/call      ┘

期待される動作

1つのツール呼び出しには、tools/call を1回と、セッション全体にわたって償却されるハンドシェイクだけがかかるべきです。ワークフローの各ステップごとに新しい initialize + notifications/initialized + tools/list を実行したり、サーバーがすでに POST に応答しているのに毎回 GET プローブを送信したりするのは避けるべきです。

eve 0.44.3、Node 24、Linux で記録しました。同じ11リクエストの形状は、本番の MCP サーバーに対して0.34.0で最初に確認されました。そこでは各リクエストがループバックではなくサーバーレスのラウンドトリップでした。

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Mock HTTP server implementing MCP (Model Context Protocol) with streamable HTTP transport, health endpoint, and example tools like echo and time.
    284 npm
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    This MCP server provides a Streamable HTTP endpoint with bearer token authentication, exposing echo and add tools, and an info resource for remote client integration.
    -