eve-mcp-handshake-repro

eve-mcp-handshake-repro

Serves a stateless Streamable-HTTP endpoint with an echo tool, letting users observe exactly how many HTTP requests are involved in a single MCP tool call.

Category
Visit Server

README

eve MCP connection: six HTTP requests per tool call

A minimal reproduction for vercel/eve: one turn that makes one MCP tool call sends eleven HTTP requests to the MCP server, of which one is the tool call.

mcp-server.mjs is both the server and the instrument — it implements a stateless Streamable-HTTP MCP server with one echo tool, and prints one line per request it receives.

Run it

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

What terminal 1 prints

  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      ┘

What is expected

One tool call should cost one tools/call, plus a handshake amortised over the session — not a fresh initialize + notifications/initialized + tools/list per workflow step, and not a GET probe before every one of them when the server has already answered POST.

Recorded on eve 0.44.3, Node 24, Linux. The same eleven-request shape was first seen on 0.34.0 against a production MCP server, where each request costs a serverless round trip rather than a loopback one.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured