mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-04-02 03:00:15 -04:00
- Migrated all 13 tools from CallToolRequestSchema handler to individual registerTool() calls - Removed CallToolRequestSchema handler block entirely - Removed unused imports: CallToolRequestSchema, ListToolsRequestSchema, Tool, ToolSchema, zodToJsonSchema - Tools now use Zod schemas directly without zodToJsonSchema conversion - Conditional tools (ELICITATION, LIST_ROOTS) are registered but initially disabled - Tools are enabled in oninitialized based on client capabilities (elicitation, roots) - Fixed progressToken access: changed from extra.progressToken to extra._meta?.progressToken - Added 10-minute timeout to elicitation requests - Removed unused ToolInputSchema and ToolOutputSchema types - All tools maintain their original functionality and logic Migrated tools: 1. ECHO - simple echo tool 2. ADD - adds two numbers 3. LONG_RUNNING_OPERATION - with progress notifications 4. PRINT_ENV - environment variables 5. SAMPLE_LLM - LLM sampling via sendRequest 6. GET_TINY_IMAGE - returns MCP logo image 7. ANNOTATED_MESSAGE - content with annotations 8. GET_RESOURCE_REFERENCE - resource reference content 9. GET_RESOURCE_LINKS - multiple resource links 10. STRUCTURED_CONTENT - with outputSchema 11. ZIP_RESOURCES - creates zip from URLs 12. ELICITATION - user elicitation (conditional) 13. LIST_ROOTS - lists MCP roots (conditional) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
9 lines
332 B
Bash
Executable File
9 lines
332 B
Bash
Executable File
#!/bin/bash
|
|
# npx -y @modelcontextprotocol/inspector /Users/ochafik/code/modelcontextprotocol-servers/src/everything/run-stdio.sh
|
|
# files: {"README": "https://raw.githubusercontent.com/modelcontextprotocol/servers/refs/heads/main/README.md"}
|
|
set -euo pipefail
|
|
|
|
cd "$(dirname "$0")"
|
|
npm i >&2
|
|
npm run build >&2
|
|
npm run --silent start |