What this server is
- MCP transport adapter over stdio
- Tool-to-route mapping layer for public Evento APIs
- Central auth/header injection using your API key
- No direct database access and no persistence in the MCP layer
Key files
src/index.ts- process entrypointsrc/mcp-server.ts- MCP protocol handling (tools/list,tools/call)src/public-tools.ts- tool registry, executor, auth injection, timeout/retry, normalized responsesPUBLIC_MCP.tools.json- manifest mirror of runtime tools
Execution flow
- MCP client calls
tools/list - Server returns
PUBLIC_TOOLS - MCP client calls
tools/call - Server delegates to
executePublicTool(name, args) - Executor validates args and resolves path placeholders
- Executor sends authenticated API call with timeout/retry policy
- Executor normalizes success or error payload back to MCP response
Error and retry behavior
- Retries retryable statuses:
408,429,5xx - Retries retryable network failures (timeout, DNS, connection reset classes)
- Returns MCP
isError: truefor failed tool calls with structured payloads