A demonstration MCP client that connects to the official @modelcontextprotocol/server-filesystem server via stdio transport and calls filesystem tools
This is a demo client, not an MCP server. The code shows a StdioClientTransport connecting to @modelcontextprotocol/server-filesystem (an external server), not defining tools itself. Tool definitions (list_directory, read_file) are inferred from the external server being invoked, not visible in this repo's source. Additionally, descriptions are minimal (10-20 chars), parameter descriptions are present but generic, and no output schemas are documented in this codebase. The repo provides no tool definitions, error handling, or validation logic, it is purely a client demo.
List contents of a directory
Read the contents of a file
This is a client demo, not an MCP server. Tool definitions are delegated to an external server (@modelcontextprotocol/server-filesystem) and not defined in this repo.
Tool descriptions are under 20 characters ('List contents of a directory', 'Read the contents of a file'). Descriptions lack WHEN to use, prerequisites, or return value guidance.
No output schemas documented. LLMs cannot infer what fields list_directory or read_file return, forcing guesswork on downstream tool chaining.
No error handling or recovery guidance. If a path does not exist or is not readable, the client provides no actionable error message or next steps for the LLM.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 33 | 2026-07-28+ | v2 |
Parameter descriptions are generic ('The directory path to list', 'The file path to read'). No format constraints, examples of valid paths, or guidance on absolute vs relative paths.