Skip to main content
Glama
devasur

eve-mcp-handshake-repro

by devasur

eve MCP-Verbindung: sechs HTTP-Anfragen pro Tool-Aufruf

Eine minimale Reproduktion für vercel/eve: Ein Durchlauf, der einen MCP-Tool-Aufruf ausführt, sendet elf HTTP-Anfragen an den MCP-Server, genau eine davon ist der Tool-Aufruf.

mcp-server.mjs ist Server und Messinstrument zugleich – es implementiert einen zustandslosen Streamable-HTTP-MCP-Server mit einem echo-Tool und gibt für jede empfangene Anfrage eine Zeile aus.

Ausführen

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

Was Terminal 1 ausgibt

  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      ┘

Was erwartet wird

Ein Tool-Aufruf sollte aus genau einem tools/call bestehen, plus einen über die Sitzung amortisierten Handshake – nicht aus einem frischen initialize + notifications/initialized + tools/list pro Workflow-Schritt und auch nicht aus einer GET-Vorabfrage vor jedem dieser Schritte, wenn der Server bereits auf POST geantwortet hat.

Aufgezeichnet mit eve 0.44.3, Node 24, Linux. Dasselbe Muster aus elf Anfragen wurde erstmals mit Version 0.34.0 gegen einen Produktions-MCP-Server beobachtet, bei dem jede Anfrage einen Serverless-Roundtrip statt eines Loopback-Roundtrips verursacht.

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.
    -