Framework-agnostic HTTP adapter for Model Context Protocol servers
mcp-handler is an HTTP adapter framework that allows developers to create MCP servers via a handler pattern. The repo contains 4 tool definitions distributed across examples and CLI scaffolding. Critical issues: (1) Three of four tools are under-specified, two 'echo' tools lack proper descriptions (under 20 chars), and one echo tool has an empty input schema; (2) The roll_dice tool has a valid schema but minimal description; (3) Tool definitions are partially inferred from example code rather than visible in a central registry; (4) No evidence of output schemas documented; (5) Error handling guidance is absent from all tool descriptions. The framework itself is well-structured (HTTP transport, type-safe via TypeScript + Zod), but the example tools do not demonstrate production-grade definition quality. This is a library for building MCP servers, not a complete server itself, scoring reflects the quality of the documented example tools.
Echo a message back with authentication info
Echo a message
Echo a message
Rolls an N-sided die
Three 'echo' tools lack substantive descriptions or are under 20 characters. Descriptions must explain WHAT the tool does, WHEN to use it, and any prerequisites. LLMs cannot infer purpose from a 1-word string.
One echo tool has an empty input schema (no parameters defined). This tool is not usable without knowing what parameters it accepts.
Multiple tools with the same name 'echo' cause ambiguity. Naming rubric requires distinct names when tools operate on the same resource. Tool names alone should disambiguate intent, 'echo_with_auth', 'echo_message', 'echo_plaintext' would be clearer.
No documented output schemas for any tool. LLMs need to know what fields to expect in responses to plan downstream calls. All tools should document return type, structure, and field meanings.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | C | 63 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 46 | - | v1 |
No error handling guidance in tool descriptions. Descriptions lack guidance on retryable vs fatal errors, expected failure modes, or recovery steps.
Tool definitions are partially inferred from example/template code (examples/auth/route.ts, src/cli/index.ts) rather than visibly registered in a central server definition.