A collection of MCP (Model Context Protocol) server examples demonstrating various features including logging, sampling, roots/filesystem access, HTTP transport, and video conversion capabilities.
This MCP Lab server exhibits severe quality issues across naming, descriptions, schemas, and composition. The codebase contains 7 tool definitions, but only 3 are truly distinct (add, convert_video, list_roots, read_dir, summarize). The add tool is duplicated 3 times across different modules. Tool descriptions are minimal (13-56 characters) and lack actionable guidance. Parameter descriptions are present but generic. Schemas are partially visible but incomplete. No output schemas are documented. Critical security issues exist: file path access is user-controlled without clear validation. The server mixes deprecated patterns (Sampling, Roots) with current ones, and exposes functionality that violates single-responsibility principle.
Adds two integer numbers together.
Adds two integer numbers together.
Adds two integer numbers together.
Convert an MP4 video file to another format using ffmpeg
List all directories that are accessible to this server. These are the root directories where files can be read from or written to.
Read directory contents. Path must be within one of the client's roots.
Summarize provided text using LLM sampling
Tool duplication: 'add' tool registered 3 times across different modules (adv_topics/logging/client.py appears twice, plus logging/server.py). This violates single-responsibility principle and creates confusion about which implementation to call. LLMs will not know which version is active.
Descriptions are too short (13-56 characters) and lack context. 'Adds two integer numbers together' (46 chars) does not explain WHEN to use this tool or what it returns. Minimum effective description is 50-100 chars for LLM selection; these fail that baseline.
No output schemas documented for any tool. LLMs cannot plan downstream tool calls or extract necessary data without knowing what fields to expect. The 'add' tool presumably returns an integer, but this is inferred, not declared.
Inferred effective spec: 2026-07-28+.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 42 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 33 | - | v1 |
Deprecated Roots pattern in use. The convert_video tool explicitly calls ctx.session.list_roots() and manually implements is_path_allowed(). This pattern was deprecated in the MCP spec. Current approach: pass files/directories via tool parameters, resource URIs, or server configuration instead.
Deprecated Sampling pattern in use. The 'summarize' tool description mentions 'LLM sampling' and adv_topics/sampling/server.py uses client.integrate_sampling() or similar. This pattern was removed from the MCP spec. Migration: integrate directly with the LLM provider API (Anthropic, OpenAI, etc.) instead of delegating sampling to the client.
Logging via deprecated patterns. adv_topics/logging/server.py uses ctx.info(), ctx.report_progress(), ctx.warning(), ctx.debug(), ctx.error(), these are part of the deprecated Logging system (removed from spec). Current approach: log to stderr or integrate OpenTelemetry. The FastMCP framework still exposes these methods, but they are not in the current MCP spec.
Parameter descriptions are generic and fail to guide LLM input. 'format' param in convert_video: 'Output format (e.g. 'mov')' provides only one example. Should be: enum=['mov', 'avi', 'mkv', 'webm'] with description 'Video output format. Must be one of: mov, avi, mkv, webm'.
File path security: convert_video accepts 'input_path' and 'read_dir' accepts 'path' as bare strings. While is_path_allowed() validates them, the implementation is incomplete. The code snippet cuts off mid-validation. No error message guides recovery if path is denied. Allowed roots: /data, /uploads' instead of generic error.
Missing error recovery guidance. If convert_video fails (e.g. ffmpeg not installed, format unsupported), no guidance is provided about retryability or next steps. Current error handling is empty.
Tool naming confusion: 'list_roots' is a utility tool for debugging Roots, not an agent-facing action. 'list_roots' is implementation detail, should be internal or documented as internal utility.
No pagination for read_dir. If a directory contains 1000+ files, the response will be huge and blow the context window.
summarize tool return type is unknown. Description says 'Summarize provided text using LLM sampling' but no output schema is provided. Does it return a string? JSON object?