[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6BX93T5MZ63DNX70PT5M48B":3,"skill-same:01M6BX93T5MZ63DNX70PT5M48B":115},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":51,"commitSha":52,"skillDirectory":53,"forksCount":54,"repositoryHtmlUrl":55,"repositoryHomepageUrl":56,"ownerHtmlUrl":57,"ownerBlogUrl":56,"ownerDescription":58,"updatedAt":59,"install":60,"resources":73},"01M6BX93T5MZ63DNX70PT5M48B","mcp-builder","MCP 服务器开发指南","Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node\u002FTypeScript (MCP SDK).","用于创建高质量 MCP（Model Context Protocol，模型上下文协议）服务器的指南，使 LLM 能够通过设计良好的工具与外部服务交互。当构建 MCP 服务器以集成外部 API 或服务时使用，无论是使用 Python（FastMCP）还是 Node\u002FTypeScript（MCP SDK）。","ddttom\u002Fallaboutv2","ddttom","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1929848?v=4","01M6BX6X3SP9HFP5NVP5148SG2","Tom Cranstoun","01M6BX6X8H7Y9RE377QF088DYG",2,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmcp-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmcp-builder\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSAA4FBTWZP6X98STEHG99","智能体开发","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43],"MCP","mcp builder","typescript","python","llms","sdk","model context protocol","fastmcp","protocol","mcp servers","license","services","Tools","2026-11-10 10:12:30",false,"---\n\nname: mcp-builder\ndescription: Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node\u002FTypeScript (MCP SDK).\nmx:\n  license: Complete terms in LICENSE.txt\n  ---\n  canonicalUri: https:\u002F\u002Fraw.githubusercontent.com\u002Fddttom\u002Fallaboutv2\u002Fmain\u002F.claude\u002Fskills\u002Fmcp-builder\u002FSKILL.md\n\n\n# MCP Server Development Guide\n\n## Overview\n\nTo create high-quality MCP (Model Context Protocol) servers that enable LLMs to effectively interact with external services, use this skill. An MCP server provides tools that allow LLMs to access external services and APIs. The quality of an MCP server is measured by how well it enables LLMs to accomplish real-world tasks using the tools provided.\n\n---\n\n# Process\n\n## ? High-Level Workflow\n\nCreating a high-quality MCP server involves four main phases:\n\n### Phase 1: Deep Research and Planning\n\n#### 1.1 Understand Agent-Centric Design Principles\n\nBefore diving into implementation, understand how to design tools for AI agents by reviewing these principles:\n\n**Build for Workflows, Not Just API Endpoints:**\n\n- Don't simply wrap existing API endpoints - build thoughtful, high-impact workflow tools\n- Consolidate related operations (e.g., `schedule_event` that both checks availability and creates event)\n- Focus on tools that enable complete tasks, not just individual API calls\n- Consider what workflows agents actually need to accomplish\n\n**Optimize for Limited Context:**\n\n- Agents have constrained context windows - make every token count\n- Return high-signal information, not exhaustive data dumps\n- Provide \"concise\" vs \"detailed\" response format options\n- Default to human-readable identifiers over technical codes (names over IDs)\n- Consider the agent's context budget as a scarce resource\n\n**Design Actionable Error Messages:**\n\n- Error messages should guide agents toward correct usage patterns\n- Suggest specific next steps: \"Try using filter='active_only' to reduce results\"\n- Make errors educational, not just diagnostic\n- Help agents learn proper tool usage through clear feedback\n\n**Follow Natural Task Subdivisions:**\n\n- Tool names should reflect how humans think about tasks\n- Group related tools with consistent prefixes for discoverability\n- Design tools around natural workflows, not just API structure\n\n**Use Evaluation-Driven Development:**\n\n- Create realistic evaluation scenarios early\n- Let agent feedback drive tool improvements\n- Prototype quickly and iterate based on actual agent performance\n\n#### 1.3 Study MCP Protocol Documentation\n\n**Fetch the latest MCP protocol documentation:**\n\nUse WebFetch to load: `https:\u002F\u002Fmodelcontextprotocol.io\u002Fllms-full.txt`\n\nThis comprehensive document contains the complete MCP specification and guidelines.\n\n#### 1.4 Study Framework Documentation\n\n**Load and read the following reference files:**\n\n- **MCP Best Practices**: [? View Best Practices](.\u002Freference\u002Fmcp_best_practices.md) - Core guidelines for all MCP servers\n\n**For Python implementations, also load:**\n\n- **Python SDK Documentation**: Use WebFetch to load `https:\u002F\u002Fraw.githubusercontent.com\u002Fmodelcontextprotocol\u002Fpython-sdk\u002Fmain\u002FREADME.md`\n- [? Python Implementation Guide](.\u002Freference\u002Fpython_mcp_server.md) - Python-specific best practices and examples\n\n**For Node\u002FTypeScript implementations, also load:**\n\n- **TypeScript SDK Documentation**: Use WebFetch to load `https:\u002F\u002Fraw.githubusercontent.com\u002Fmodelcontextprotocol\u002Ftypescript-sdk\u002Fmain\u002FREADME.md`\n- [⚡ TypeScript Implementation Guide](.\u002Freference\u002Fnode_mcp_server.md) - Node\u002FTypeScript-specific best practices and examples\n\n#### 1.5 Exhaustively Study API Documentation\n\nTo integrate a service, read through **ALL** available API documentation:\n\n- Official API reference documentation\n- Authentication and authorization requirements\n- Rate limiting and pagination patterns\n- Error responses and status codes\n- Available endpoints and their parameters\n- Data models and schemas\n\n**To gather comprehensive information, use web search and the WebFetch tool as needed.**\n\n#### 1.6 Create a Comprehensive Implementation Plan\n\nBased on your research, create a detailed plan that includes:\n\n**Tool Selection:**\n\n- List the most valuable endpoints\u002Foperations to implement\n- Prioritize tools that enable the most common and important use cases\n- Consider which tools work together to enable complex workflows\n\n**Shared Utilities and Helpers:**\n\n- Identify common API request patterns\n- Plan pagination helpers\n- Design filtering and formatting utilities\n- Plan error handling strategies\n\n**Input\u002FOutput Design:**\n\n- Define input validation models (Pydantic for Python, Zod for TypeScript)\n- Design consistent response formats (e.g., JSON or Markdown), and configurable levels of detail (e.g., Detailed or Concise)\n- Plan for large-scale usage (thousands of users\u002Fresources)\n- Implement character limits and truncation strategies (e.g., 25,000 tokens)\n\n**Error Handling Strategy:**\n\n- Plan graceful failure modes\n- Design clear, actionable, LLM-friendly, natural language error messages which prompt further action\n- Consider rate limiting and timeout scenarios\n- Handle authentication and authorization errors\n\n---\n\n### Phase 2: Implementation\n\nNow that you have a comprehensive plan, begin implementation following language-specific best practices.\n\n#### 2.1 Set Up Project Structure\n\n**For Python:**\n\n- Create a single `.py` file or organize into modules if complex (see [? Python Guide](.\u002Freference\u002Fpython_mcp_server.md))\n- Use the MCP Python SDK for tool registration\n- Define Pydantic models for input validation\n\n**For Node\u002FTypeScript:**\n\n- Create proper project structure (see [⚡ TypeScript Guide](.\u002Freference\u002Fnode_mcp_server.md))\n- Set up `package.json` and `tsconfig.json`\n- Use MCP TypeScript SDK\n- Define Zod schemas for input validation\n\n#### 2.2 Implement Core Infrastructure First\n\n**To begin implementation, create shared utilities before implementing tools:**\n\n- API request helper functions\n- Error handling utilities\n- Response formatting functions (JSON and Markdown)\n- Pagination helpers\n- Authentication\u002Ftoken management\n\n#### 2.3 Implement Tools Systematically\n\nFor each tool in the plan:\n\n**Define Input Schema:**\n\n- Use Pydantic (Python) or Zod (TypeScript) for validation\n- Include proper constraints (min\u002Fmax length, regex patterns, min\u002Fmax values, ranges)\n- Provide clear, descriptive field descriptions\n- Include diverse examples in field descriptions\n\n**Write Comprehensive Docstrings\u002FDescriptions:**\n\n- One-line summary of what the tool does\n- Detailed explanation of purpose and functionality\n- Explicit parameter types with examples\n- Complete return type schema\n- Usage examples (when to use, when not to use)\n- Error handling documentation, which outlines how to proceed given specific errors\n\n**Implement Tool Logic:**\n\n- Use shared utilities to avoid code duplication\n- Follow async\u002Fawait patterns for all I\u002FO\n- Implement proper error handling\n- Support multiple response formats (JSON and Markdown)\n- Respect pagination parameters\n- Check character limits and truncate appropriately\n\n**Add Tool Annotations:**\n\n- `readOnlyHint`: true (for read-only operations)\n- `destructiveHint`: false (for non-destructive operations)\n- `idempotentHint`: true (if repeated calls have same effect)\n- `openWorldHint`: true (if interacting with external systems)\n\n#### 2.4 Follow Language-Specific Best Practices\n\n**At this point, load the appropriate language guide:**\n\n**For Python: Load [? Python Implementation Guide](.\u002Freference\u002Fpython_mcp_server.md) and ensure the following:**\n\n- Using MCP Python SDK with proper tool registration\n- Pydantic v2 models with `model_config`\n- Type hints throughout\n- Async\u002Fawait for all I\u002FO operations\n- Proper imports organization\n- Module-level constants (CHARACTER_LIMIT, API_BASE_URL)\n\n**For Node\u002FTypeScript: Load [⚡ TypeScript Implementation Guide](.\u002Freference\u002Fnode_mcp_server.md) and ensure the following:**\n\n- Using `server.registerTool` properly\n- Zod schemas with `.strict()`\n- TypeScript strict mode enabled\n- No `any` types - use proper types\n- Explicit Promise\u003CT> return types\n- Build process configured (`npm run build`)\n\n---\n\n### Phase 3: Review and Refine\n\nAfter initial implementation:\n\n#### 3.1 Code Quality Review\n\nTo ensure quality, review the code for:\n\n- **DRY Principle**: No duplicated code between tools\n- **Composability**: Shared logic extracted into functions\n- **Consistency**: Similar operations return similar formats\n- **Error Handling**: All external calls have error handling\n- **Type Safety**: Full type coverage (Python type hints, TypeScript types)\n- **Documentation**: Every tool has comprehensive docstrings\u002Fdescriptions\n\n#### 3.2 Test and Build\n\n**Important:** MCP servers are long-running processes that wait for requests over stdio\u002Fstdin or sse\u002Fhttp. Running them directly in your main process (e.g., `python server.py` or `node dist\u002Findex.js`) will cause your process to hang indefinitely.\n\n**Safe ways to test the server:**\n\n- Use the evaluation harness (see Phase 4) - recommended approach\n- Run the server in tmux to keep it outside your main process\n- Use a timeout when testing: `timeout 5s python server.py`\n\n**For Python:**\n\n- Verify Python syntax: `python -m py_compile your_server.py`\n- Check imports work correctly by reviewing the file\n- To manually test: Run server in tmux, then test with evaluation harness in main process\n- Or use the evaluation harness directly (it manages the server for stdio transport)\n\n**For Node\u002FTypeScript:**\n\n- Run `npm run build` and ensure it completes without errors\n- Verify dist\u002Findex.js is created\n- To manually test: Run server in tmux, then test with evaluation harness in main process\n- Or use the evaluation harness directly (it manages the server for stdio transport)\n\n#### 3.3 Use Quality Checklist\n\nTo verify implementation quality, load the appropriate checklist from the language-specific guide:\n\n- Python: see \"Quality Checklist\" in [? Python Guide](.\u002Freference\u002Fpython_mcp_server.md)\n- Node\u002FTypeScript: see \"Quality Checklist\" in [⚡ TypeScript Guide](.\u002Freference\u002Fnode_mcp_server.md)\n\n---\n\n### Phase 4: Create Evaluations\n\nAfter implementing your MCP server, create comprehensive evaluations to test its effectiveness.\n\n**Load [✅ Evaluation Guide](.\u002Freference\u002Fevaluation.md) for complete evaluation guidelines.**\n\n#### 4.1 Understand Evaluation Purpose\n\nEvaluations test whether LLMs can effectively use your MCP server to answer realistic, complex questions.\n\n#### 4.2 Create 10 Evaluation Questions\n\nTo create effective evaluations, follow the process outlined in the evaluation guide:\n\n1. **Tool Inspection**: List available tools and understand their capabilities\n2. **Content Exploration**: Use READ-ONLY operations to explore available data\n3. **Question Generation**: Create 10 complex, realistic questions\n4. **Answer Verification**: Solve each question yourself to verify answers\n\n#### 4.3 Evaluation Requirements\n\nEach question must be:\n\n- **Independent**: Not dependent on other questions\n- **Read-only**: Only non-destructive operations required\n- **Complex**: Requiring multiple tool calls and deep exploration\n- **Realistic**: Based on real use cases humans would care about\n- **Verifiable**: Single, clear answer that can be verified by string comparison\n- **Stable**: Answer won't change over time\n\n#### 4.4 Output Format\n\nCreate an XML file with this structure:\n\n```xml\n\u003Cevaluation>\n  \u003Cqa_pair>\n    \u003Cquestion>Find discussions about AI model launches with animal codenames. One model needed a specific safety designation that uses the format ASL-X. What number X was being determined for the model named after a spotted wild cat?\u003C\u002Fquestion>\n    \u003Canswer>3\u003C\u002Fanswer>\n  \u003C\u002Fqa_pair>\n\u003C!-- More qa_pairs... -->\n\u003C\u002Fevaluation>\n```\n\n---\n\n# Reference Files\n\n## ? Documentation Library\n\nLoad these resources as needed during development:\n\n### Core MCP Documentation (Load First)\n\n- **MCP Protocol**: Fetch from `https:\u002F\u002Fmodelcontextprotocol.io\u002Fllms-full.txt` - Complete MCP specification\n- [? MCP Best Practices](.\u002Freference\u002Fmcp_best_practices.md) - Universal MCP guidelines including:\n  - Server and tool naming conventions\n  - Response format guidelines (JSON vs Markdown)\n  - Pagination best practices\n  - Character limits and truncation strategies\n  - Tool development guidelines\n  - Security and error handling standards\n\n### SDK Documentation (Load During Phase 1\u002F2)\n\n- **Python SDK**: Fetch from `https:\u002F\u002Fraw.githubusercontent.com\u002Fmodelcontextprotocol\u002Fpython-sdk\u002Fmain\u002FREADME.md`\n- **TypeScript SDK**: Fetch from `https:\u002F\u002Fraw.githubusercontent.com\u002Fmodelcontextprotocol\u002Ftypescript-sdk\u002Fmain\u002FREADME.md`\n\n### Language-Specific Implementation Guides (Load During Phase 2)\n\n- [? Python Implementation Guide](.\u002Freference\u002Fpython_mcp_server.md) - Complete Python\u002FFastMCP guide with:\n  - Server initialization patterns\n  - Pydantic model examples\n  - Tool registration with `@mcp.tool`\n  - Complete working examples\n  - Quality checklist\n\n- [⚡ TypeScript Implementation Guide](.\u002Freference\u002Fnode_mcp_server.md) - Complete TypeScript guide with:\n  - Project structure\n  - Zod schema patterns\n  - Tool registration with `server.registerTool`\n  - Complete working examples\n  - Quality checklist\n\n### Evaluation Guide (Load During Phase 4)\n\n- [✅ Evaluation Guide](.\u002Freference\u002Fevaluation.md) - Complete evaluation creation guide with:\n  - Question creation guidelines\n  - Answer verification strategies\n  - XML format specifications\n  - Example questions and answers\n  - Running an evaluation with the provided scripts\n","# Process\n\n## ? High-Level Workflow\n\nCreating a high-quality MCP server involves four main phases:\n\n### Phase 1: Deep Research and Planning\n\n#### 1.1 Understand Agent-Centric Design Principles\n\nBefore diving into implementation, understand how to design tools for AI agents by reviewing these principles:\n\n**Build for Workflows, Not Just API Endpoints:**\n\n- Don't simply wrap existing API endpoints - build thoughtful, high-impact workflow tools\n- Consolidate related operations (e.g., `schedule_event` that both checks availability and creates event)\n- Focus on tools that enable complete tasks, not just individual API calls\n- Consider what workflows agents actually need to accomplish\n\n**Optimize for Limited Context:**\n\n- Agents have constrained context windows - make every token count\n- Return high-signal information, not exhaustive data dumps\n- Provide \"concise\" vs \"detailed\" response format options\n- Default to human-readable identifiers over technical codes (names over IDs)\n- Consider the agent's context budget as a scarce resource\n\n**Design Actionable Error Messages:**\n\n- Error messages should guide agents toward correct usage patterns\n- Suggest specific next steps: \"Try using filter='active_only' to reduce results\"\n- Make errors educational, not just diagnostic\n- Help agents learn proper tool usage through clear feedback\n\n**Follow Natural Task Subdivisions:**\n\n- Tool names should reflect how humans think about tasks\n- Group related tools with consistent prefixes for discoverability\n- Design tools around natural workflows, not just API structure\n\n**Use Evaluation-Driven Development:**\n\n- Create realistic evaluation scenarios early\n- Let agent feedback drive tool improvements\n- Prototype quickly and iterate based on actual agent performance\n\n#### 1.3 Study MCP Protocol Documentation\n\n**Fetch the latest MCP protocol documentation:**\n\nUse WebFetch to load: `https:\u002F\u002Fmodelcontextprotocol.io\u002Fllms-full.txt`\n\nThis comprehensive document contains the complete MCP specification and guidelines.\n\n#### 1.4 Study Framework Documentation\n\n**Load and read the following reference files:**\n\n- **MCP Best Practices**: [? View Best Practices](.\u002Freference\u002Fmcp_best_practices.md) - Core guidelines for all MCP servers\n\n**For Python implementations, also load:**\n\n- **Python SDK Documentation**: Use WebFetch to load `https:\u002F\u002Fraw.githubusercontent.com\u002Fmodelcontextprotocol\u002Fpython-sdk\u002Fmain\u002FREADME.md`\n- [? Python Implementation Guide](.\u002Freference\u002Fpython_mcp_server.md) - Python-specific best practices and examples\n\n**For Node\u002FTypeScript implementations, also load:**\n\n- **TypeScript SDK Documentation**: Use WebFetch to load `https:\u002F\u002Fraw.githubusercontent.com\u002Fmodelcontextprotocol\u002Ftypescript-sdk\u002Fmain\u002FREADME.md`\n- [⚡ TypeScript Implementation Guide](.\u002Freference\u002Fnode_mcp_server.md) - Node\u002FTypeScript-specific best practices and examples\n\n#### 1.5 Exhaustively Study API Documentation\n\nTo integrate a service, read through **ALL** available API documentation:\n\n- Official API reference documentation\n- Authentication and authorization requirements\n- Rate limiting and pagination patterns\n- Error responses and status codes\n- Available endpoints and their parameters\n- Data models and schemas\n\n**To gather comprehensive information, use web search and the WebFetch tool as needed.**\n\n#### 1.6 Create a Comprehensive Implementation Plan\n\nBased on your research, create a detailed plan that includes:\n\n**Tool Selection:**\n\n- List the most valuable endpoints\u002Foperations to implement\n- Prioritize tools that enable the most common and important use cases\n- Consider which tools work together to enable complex workflows\n\n**Shared Utilities and Helpers:**\n\n- Identify common API request patterns\n- Plan pagination helpers\n- Design filtering and formatting utilities\n- Plan error handling strategies\n\n**Input\u002FOutput Design:**\n\n- Define input validation models (Pydantic for Python, Zod for TypeScript)\n- Design consistent response formats (e.g., JSON or Markdown), and configurable levels of detail (e.g., Detailed or Concise)\n- Plan for large-scale usage (thousands of users\u002Fresources)\n- Implement character limits and truncation strategies (e.g., 25,000 tokens)\n\n**Error Handling Strategy:**\n\n- Plan graceful failure modes\n- Design clear, actionable, LLM-friendly, natural language error messages which prompt further action\n- Consider rate limiting and timeout scenarios\n- Handle authentication and authorization errors\n\n---\n\n### Phase 2: Implementation\n\nNow that you have a comprehensive plan, begin implementation following language-specific best practices.\n\n#### 2.1 Set Up Project Structure\n\n**For Python:**\n\n- Create a single `.py` file or organize into modules if complex (see [? Python Guide](.\u002Freference\u002Fpython_mcp_server.md))\n- Use the MCP Python SDK for tool registration\n- Define Pydantic models for input validation\n\n**For Node\u002FTypeScript:**\n\n- Create proper project structure (see [⚡ TypeScript Guide](.\u002Freference\u002Fnode_mcp_server.md))\n- Set up `package.json` and `tsconfig.json`\n- Use MCP TypeScript SDK\n- Define Zod schemas for input validation\n\n#### 2.2 Implement Core Infrastructure First\n\n**To begin implementation, create shared utilities before implementing tools:**\n\n- API request helper functions\n- Error handling utilities\n- Response formatting functions (JSON and Markdown)\n- Pagination helpers\n- Authentication\u002Ftoken management\n\n#### 2.3 Implement Tools Systematically\n\nFor each tool in the plan:\n\n**Define Input Schema:**\n\n- Use Pydantic (Python) or Zod (TypeScript) for validation\n- Include proper constraints (min\u002Fmax length, regex patterns, min\u002Fmax values, ranges)\n- Provide clear, descriptive field descriptions\n- Include diverse examples in field descriptions\n\n**Write Comprehensive Docstrings\u002FDescriptions:**\n\n- One-line summary of what the tool does\n- Detailed explanation of purpose and functionality\n- Explicit parameter types with examples\n- Complete return type schema\n- Usage examples (when to use, when not to use)\n- Error handling documentation, which outlines how to proceed given specific errors\n\n**Implement Tool Logic:**\n\n- Use shared utilities to avoid code duplication\n- Follow async\u002Fawait patterns for all I\u002FO\n- Implement proper error handling\n- Support multiple response formats (JSON and Markdown)\n- Respect pagination parameters\n- Check character limits and truncate appropriately\n\n**Add Tool Annotations:**\n\n- `readOnlyHint`: true (for read-only operations)\n- `destructiveHint`: false (for non-destructive operations)\n- `idempotentHint`: true (if repeated calls have same effect)\n- `openWorldHint`: true (if interacting with external systems)\n\n#### 2.4 Follow Language-Specific Best Practices\n\n**At this point, load the appropriate language guide:**\n\n**For Python: Load [? Python Implementation Guide](.\u002Freference\u002Fpython_mcp_server.md) and ensure the following:**\n\n- Using MCP Python SDK with proper tool registration\n- Pydantic v2 models with `model_config`\n- Type hints throughout\n- Async\u002Fawait for all I\u002FO operations\n- Proper imports organization\n- Module-level constants (CHARACTER_LIMIT, API_BASE_URL)\n\n**For Node\u002FTypeScript: Load [⚡ TypeScript Implementation Guide](.\u002Freference\u002Fnode_mcp_server.md) and ensure the following:**\n\n- Using `server.registerTool` properly\n- Zod schemas with `.strict()`\n- TypeScript strict mode enabled\n- No `any` types - use proper types\n- Explicit Promise\u003CT> return types\n- Build process configured (`npm run build`)\n\n---\n\n### Phase 3: Review and Refine\n\nAfter initial implementation:\n\n#### 3.1 Code Quality Review\n\nTo ensure quality, review the code for:\n\n- **DRY Principle**: No duplicated code between tools\n- **Composability**: Shared logic extracted into functions\n- **Consistency**: Similar operations return similar formats\n- **Error Handling**: All external calls have error handling\n- **Type Safety**: Full type coverage (Python type hints, TypeScript types)\n- **Documentation**: Every tool has comprehensive docstrings\u002Fdescriptions\n\n#### 3.2 Test and Build\n\n**Important:** MCP servers are long-running processes that wait for requests over stdio\u002Fstdin or sse\u002Fhttp. Running them directly in your main process (e.g., `python server.py` or `node dist\u002Findex.js`) will cause your process to hang indefinitely.\n\n**Safe ways to test the server:**\n\n- Use the evaluation harness (see Phase 4) - recommended approach\n- Run the server in tmux to keep it outside your main process\n- Use a timeout when testing: `timeout 5s python server.py`\n\n**For Python:**\n\n- Verify Python syntax: `python -m py_compile your_server.py`\n- Check imports work correctly by reviewing the file\n- To manually test: Run server in tmux, then test with evaluation harness in main process\n- Or use the evaluation harness directly (it manages the server for stdio transport)\n\n**For Node\u002FTypeScript:**\n\n- Run `npm run build` and ensure it completes without errors\n- Verify dist\u002Findex.js is created\n- To manually test: Run server in tmux, then test with evaluation harness in main process\n- Or use the evaluation harness directly (it manages the server for stdio transport)\n\n#### 3.3 Use Quality Checklist\n\nTo verify implementation quality, load the appropriate checklist from the language-specific guide:\n\n- Python: see \"Quality Checklist\" in [? Python Guide](.\u002Freference\u002Fpython_mcp_server.md)\n- Node\u002FTypeScript: see \"Quality Checklist\" in [⚡ TypeScript Guide](.\u002Freference\u002Fnode_mcp_server.md)\n\n---\n\n### Phase 4: Create Evaluations\n\nAfter implementing your MCP server, create comprehensive evaluations to test its effectiveness.\n\n**Load [✅ Evaluation Guide](.\u002Freference\u002Fevaluation.md) for complete evaluation guidelines.**\n\n#### 4.1 Understand Evaluation Purpose\n\nEvaluations test whether LLMs can effectively use your MCP server to answer realistic, complex questions.\n\n#### 4.2 Create 10 Evaluation Questions\n\nTo create effective evaluations, follow the process outlined in the evaluation guide:\n\n1. **Tool Inspection**: List available tools and understand their capabilities\n2. **Content Exploration**: Use READ-ONLY operations to explore available data\n3. **Question Generation**: Create 10 complex, realistic questions\n4. **Answer Verification**: Solve each question yourself to verify answers\n\n#### 4.3 Evaluation Requirements\n\nEach question must be:\n\n- **Independent**: Not dependent on other questions\n- **Read-only**: Only non-destructive operations required\n- **Complex**: Requiring multiple tool calls and deep exploration\n- **Realistic**: Based on real use cases humans would care about\n- **Verifiable**: Single, clear answer that can be verified by string comparison\n- **Stable**: Answer won't change over time\n\n#### 4.4 Output Format\n\nCreate an XML file with this structure:\n\n```xml\n\u003Cevaluation>\n  \u003Cqa_pair>\n    \u003Cquestion>Find discussions about AI model launches with animal codenames. One model needed a specific safety designation that uses the format ASL-X. What number X was being determined for the model named after a spotted wild cat?\u003C\u002Fquestion>\n    \u003Canswer>3\u003C\u002Fanswer>\n  \u003C\u002Fqa_pair>\n\u003C!-- More qa_pairs... -->\n\u003C\u002Fevaluation>\n```\n\n---\n\n# Reference Files\n\n## ? Documentation Library\n\nLoad these resources as needed during development:\n\n### Core MCP Documentation (Load First)\n\n- **MCP Protocol**: Fetch from `https:\u002F\u002Fmodelcontextprotocol.io\u002Fllms-full.txt` - Complete MCP specification\n- [? MCP Best Practices](.\u002Freference\u002Fmcp_best_practices.md) - Universal MCP guidelines including:\n  - Server and tool naming conventions\n  - Response format guidelines (JSON vs Markdown)\n  - Pagination best practices\n  - Character limits and truncation strategies\n  - Tool development guidelines\n  - Security and error handling standards\n\n### SDK Documentation (Load During Phase 1\u002F2)\n\n- **Python SDK**: Fetch from `https:\u002F\u002Fraw.githubusercontent.com\u002Fmodelcontextprotocol\u002Fpython-sdk\u002Fmain\u002FREADME.md`\n- **TypeScript SDK**: Fetch from `https:\u002F\u002Fraw.githubusercontent.com\u002Fmodelcontextprotocol\u002Ftypescript-sdk\u002Fmain\u002FREADME.md`\n\n### Language-Specific Implementation Guides (Load During Phase 2)\n\n- [? Python Implementation Guide](.\u002Freference\u002Fpython_mcp_server.md) - Complete Python\u002FFastMCP guide with:\n  - Server initialization patterns\n  - Pydantic model examples\n  - Tool registration with `@mcp.tool`\n  - Complete working examples\n  - Quality checklist\n\n- [⚡ TypeScript Implementation Guide](.\u002Freference\u002Fnode_mcp_server.md) - Complete TypeScript guide with:\n  - Project structure\n  - Zod schema patterns\n  - Tool registration with `server.registerTool`\n  - Complete working examples\n  - Quality checklist\n\n### Evaluation Guide (Load During Phase 4)\n\n- [✅ Evaluation Guide](.\u002Freference\u002Fevaluation.md) - Complete evaluation creation guide with:\n  - Question creation guidelines\n  - Answer verification strategies\n  - XML format specifications\n  - Example questions and answers\n  - Running an evaluation with the provided scripts\n",{"mx":49,"name":5,"description":7},{"license":50},"Complete terms in LICENSE.txt","main","94cac13323e3a1686d255ad6a4455bc0d2272b8c",".claude\u002Fskills\u002Fmcp-builder",0,"https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2",null,"https:\u002F\u002Fgithub.com\u002Fddttom","Independent Technology Consultant at DIGITAL DOMAIN TECHNOLOGIES LIMITED","2026-11-14 16:27:17",{"source":9,"skillName":5,"commands":61,"prompt":71,"zipAvailable":72},[62,65,68],{"tool":63,"command":64},"npx","npx skills add ddttom\u002Fallaboutv2 --skill mcp-builder",{"tool":66,"command":67},"bunx","bunx skills add ddttom\u002Fallaboutv2 --skill mcp-builder",{"tool":69,"command":70},"pnpm","pnpm dlx skills add ddttom\u002Fallaboutv2 --skill mcp-builder","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmcp-builder\u002FSKILL.md",true,[74,79,85,89,93,97,103,107,111],{"path":75,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":78,"sourceHtmlUrl":17},"LICENSE.txt","LICENSE","许可证",11358,{"path":80,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":83,"sourceHtmlUrl":84},"reference\u002Fevaluation.md","REFERENCE","参考文档",21688,"https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmcp-builder\u002Freference\u002Fevaluation.md",{"path":86,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":87,"sourceHtmlUrl":88},"reference\u002Fmcp_best_practices.md",28946,"https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmcp-builder\u002Freference\u002Fmcp_best_practices.md",{"path":90,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":91,"sourceHtmlUrl":92},"reference\u002Fnode_mcp_server.md",26729,"https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmcp-builder\u002Freference\u002Fnode_mcp_server.md",{"path":94,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":95,"sourceHtmlUrl":96},"reference\u002Fpython_mcp_server.md",26201,"https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmcp-builder\u002Freference\u002Fpython_mcp_server.md",{"path":98,"resourceType":99,"resourceTypeDesc":100,"sizeBytes":101,"sourceHtmlUrl":102},"scripts\u002Fconnections.py","SCRIPT","脚本",4870,"https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmcp-builder\u002Fscripts\u002Fconnections.py",{"path":104,"resourceType":99,"resourceTypeDesc":100,"sizeBytes":105,"sourceHtmlUrl":106},"scripts\u002Fevaluation.py",12573,"https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmcp-builder\u002Fscripts\u002Fevaluation.py",{"path":108,"resourceType":99,"resourceTypeDesc":100,"sizeBytes":109,"sourceHtmlUrl":110},"scripts\u002Fexample_evaluation.xml",1194,"https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmcp-builder\u002Fscripts\u002Fexample_evaluation.xml",{"path":112,"resourceType":99,"resourceTypeDesc":100,"sizeBytes":113,"sourceHtmlUrl":114},"scripts\u002Frequirements.txt",29,"https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmcp-builder\u002Fscripts\u002Frequirements.txt",[116,136,151,169,178,199],{"skillNo":117,"name":118,"nameZh":56,"description":119,"descriptionZh":56,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":120,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":44},"01M6BX9XTV2PTCX7CC2DS4NC9N","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[124,125,126,127,128,129,130,131,132,41,133,134,135],"testing","webapp testing","frontend","screenshots","playwright","web","debugging","toolkit","browser","ui","logs","applications",{"skillNo":137,"name":138,"nameZh":56,"description":139,"descriptionZh":56,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":140,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":44},"01M6BX9V12H31MGZ0YYXZJ6R05","theme-factory","Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors\u002Ffonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.","https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftheme-factory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftheme-factory\u002FSKILL.md",[],[144,145,41,146,131,147,148,149,150],"theme factory","artifacts","generate","SET","docs","fly","slides",{"skillNo":152,"name":153,"nameZh":56,"description":154,"descriptionZh":56,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":56,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":44},"01M6BX9QWNATVKD88BNQHVZ92A","Testing Blocks","Guide for testing code changes in AEM Edge Delivery projects including blocks, scripts, and styles. Use this skill after making code changes and before opening a pull request to validate functionality. Covers unit testing for utilities and logic, browser testing with Playwright\u002FPuppeteer, linting, performance validation, and guidance on which tests to maintain vs use as throwaway validation.","https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftesting-blocks\u002FSKILL.md",[],[124,153,158,159,132,160,161,128,162,163,164,165,166,167,168],"projects","edge","https","performance","validate","pull request","code","validation","puppeteer","pull","browser testing",{"skillNo":170,"name":171,"nameZh":56,"description":172,"descriptionZh":56,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":56,"sourceHtmlUrl":173,"categories":174,"keywords":175,"publishedAt":44},"01M6BX9PFJ1F4QSAXHGVPB4MB0","template-skill","Replace with description of the skill and when Claude should use it.","https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftemplate-skill\u002FSKILL.md",[],[176,177,160],"template skill","template",{"skillNo":179,"name":180,"nameZh":181,"description":182,"descriptionZh":183,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":184,"sourceHtmlUrl":185,"categories":186,"keywords":193,"publishedAt":44},"01M6BX9K7A0AJM3RQJ70G3XNX9","slack-gif-creator","Slack 动图 GIF 制作","Toolkit for creating animated GIFs optimized for Slack, with validators for size constraints and composable animation primitives. This skill applies when users request animated GIFs or emoji animations for Slack from descriptions like \"make me a GIF for Slack of X doing Y\".","用于创建针对 Slack 优化的动图 GIF 的工具包，包含大小限制校验器和可组合的动画原语。当用户请求制作 Slack 用的动图 GIF 或表情动画时适用，例如“帮我做一个 X 做 Y 的 Slack GIF”。","https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fslack-gif-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fslack-gif-creator\u002FSKILL.md",[187,190],{"categoryNo":188,"categoryName":189,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8C55A3R2M9C8CAKG3W16HTA","内容创作者",{"categoryNo":191,"categoryName":192,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C8DBWTZ7VT76QWWE5JQN8D","动图 GIF 制作",[194,195,196,197,131,41,198],"slack","slack gif creator","constraints","composable","Animation",{"skillNo":200,"name":201,"nameZh":202,"description":203,"descriptionZh":204,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":56,"sourceHtmlUrl":205,"categories":206,"keywords":211,"publishedAt":44},"01M6BX9G4PJA81VK9ZNQENT3B2","skill-developer","Claude Code 技能开发与管理","Create and manage Claude Code skills following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns, file paths, content patterns), enforcement levels (block, suggest, warn), hook mechanisms (UserPromptSubmit, PreToolUse), session tracking, and the 500-line rule.","遵循 Anthropic 最佳实践创建和管理 Claude Code 技能。在创建新技能、修改 skill-rules.json、理解触发模式、使用 hooks、调试技能激活，或实现渐进式披露时使用。涵盖技能结构、YAML frontmatter、触发类型（关键词、意图模式、文件路径、内容模式）、强制级别（block、suggest、warn）、hook 机制（UserPromptSubmit、PreToolUse）、会话跟踪以及 500 行规则。","https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fskill-developer\u002FSKILL.md",[207,210],{"categoryNo":208,"categoryName":209,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRN0CV1NMDZ5TEJX1GVM29","插件与技能管理",{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},[212,213,130,214,164,215,216,160,217,218,219,220],"skill developer","developer","create","best practices","content","file","yaml","json","claude code skills"]