[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69B49C3YPD1ZJ3NC0HPCY58":3,"skill-same:01M69B49C3YPD1ZJ3NC0HPCY58":125},{"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":52,"linkOnly":53,"markdownContent":54,"markdownBody":55,"frontMatter":56,"refName":57,"commitSha":58,"skillDirectory":59,"forksCount":60,"repositoryHtmlUrl":61,"repositoryHomepageUrl":62,"ownerHtmlUrl":63,"ownerBlogUrl":64,"ownerDescription":65,"updatedAt":66,"install":67,"resources":80},"01M69B49C3YPD1ZJ3NC0HPCY58","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), Node\u002FTypeScript (MCP SDK), or C#\u002F.NET (Microsoft MCP SDK).","用于创建高质量 MCP（Model Context Protocol）服务器的指南，使大语言模型能够通过设计完善的工具与外部服务交互。当构建用于集成外部 API 或服务的 MCP 服务器时使用，无论采用 Python（FastMCP）、Node\u002FTypeScript（MCP SDK），还是 C#\u002F.NET（Microsoft MCP SDK）。","microsoft\u002Fskills","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69AJYYW4E1RMSYCQDJ4FJSH",3204,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills\u002Fblob\u002Fmain\u002F.github\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,44,45,46,10,47,48,49,50,51],"mcp builder","MCP","builder","when","for","with","building mcp servers","mcp sdk","integrate","use","guide","context","node","model","Tools","fastmcp","model context protocol","sdk","llms","python","typescript","2026-11-10 10:12:30",false,"---\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), Node\u002FTypeScript (MCP SDK), or C#\u002F.NET (Microsoft MCP SDK).\n---\n\n# MCP Server Development Guide\n\n## Overview\n\nCreate MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. The quality of an MCP server is measured by how well it enables LLMs to accomplish real-world tasks.\n\n---\n\n## Microsoft MCP Ecosystem\n\nMicrosoft provides extensive MCP infrastructure for Azure and Foundry services. Understanding this ecosystem helps you decide whether to build custom servers or leverage existing ones.\n\n### Server Types\n\n| Type | Transport | Use Case | Example |\n|------|-----------|----------|---------|\n| **Local** | stdio | Desktop apps, single-user, local dev | Azure MCP Server via NPM\u002FDocker |\n| **Remote** | Streamable HTTP | Cloud services, multi-tenant, Agent Service | `https:\u002F\u002Fmcp.ai.azure.com` (Foundry) |\n\n### Microsoft MCP Servers\n\nBefore building a custom server, check if Microsoft already provides one:\n\n| Server | Type | Description |\n|--------|------|-------------|\n| **Azure MCP** | Local | 48+ Azure services (Storage, KeyVault, Cosmos, SQL, etc.) |\n| **Foundry MCP** | Remote | `https:\u002F\u002Fmcp.ai.azure.com` - Models, deployments, evals, agents |\n| **Fabric MCP** | Local | Microsoft Fabric APIs, OneLake, item definitions |\n| **Playwright MCP** | Local | Browser automation and testing |\n| **GitHub MCP** | Remote | `https:\u002F\u002Fapi.githubcopilot.com\u002Fmcp` |\n\n**Full ecosystem:** See [? Microsoft MCP Patterns](.\u002Freference\u002Fmicrosoft_mcp_patterns.md) for complete server catalog and patterns.\n\n### When to Use Microsoft vs Custom\n\n| Scenario | Recommendation |\n|----------|----------------|\n| Azure service integration | Use **Azure MCP Server** (48 services covered) |\n| AI Foundry agents\u002Fevals | Use **Foundry MCP** remote server |\n| Custom internal APIs | Build **custom server** (this guide) |\n| Third-party SaaS integration | Build **custom server** (this guide) |\n| Extending Azure MCP | Follow [Microsoft MCP Patterns](.\u002Freference\u002Fmicrosoft_mcp_patterns.md)\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 Modern MCP Design\n\n**API Coverage vs. Workflow Tools:**\nBalance comprehensive API endpoint coverage with specialized workflow tools. Workflow tools can be more convenient for specific tasks, while comprehensive coverage gives agents flexibility to compose operations. Performance varies by client—some clients benefit from code execution that combines basic tools, while others work better with higher-level workflows. When uncertain, prioritize comprehensive API coverage.\n\n**Tool Naming and Discoverability:**\nClear, descriptive tool names help agents find the right tools quickly. Use consistent prefixes (e.g., `github_create_issue`, `github_list_repos`) and action-oriented naming.\n\n**Context Management:**\nAgents benefit from concise tool descriptions and the ability to filter\u002Fpaginate results. Design tools that return focused, relevant data. Some clients support code execution which can help agents filter and process data efficiently.\n\n**Actionable Error Messages:**\nError messages should guide agents toward solutions with specific suggestions and next steps.\n\n#### 1.2 Study MCP Protocol Documentation\n\n**Navigate the MCP specification:**\n\nStart with the sitemap to find relevant pages: `https:\u002F\u002Fmodelcontextprotocol.io\u002Fsitemap.xml`\n\nThen fetch specific pages with `.md` suffix for markdown format (e.g., `https:\u002F\u002Fmodelcontextprotocol.io\u002Fspecification\u002Fdraft.md`).\n\nKey pages to review:\n- Specification overview and architecture\n- Transport mechanisms (streamable HTTP, stdio)\n- Tool, resource, and prompt definitions\n\n#### 1.3 Study Framework Documentation\n\n**Language Selection:**\n\n| Language | Best For | SDK |\n|----------|----------|-----|\n| **TypeScript** (recommended) | General MCP servers, broad compatibility | `@modelcontextprotocol\u002Fsdk` |\n| **Python** | Data\u002FML pipelines, FastAPI integration | `mcp` (FastMCP) |\n| **C#\u002F.NET** | Azure\u002FMicrosoft ecosystem, enterprise | `Microsoft.Mcp.Core` |\n\n**Transport Selection:**\n\n| Transport | Use Case | Characteristics |\n|-----------|----------|-----------------|\n| **Streamable HTTP** | Remote servers, multi-tenant, Agent Service | Stateless, scalable, requires auth |\n| **stdio** | Local servers, desktop apps | Simple, single-user, no network |\n\n**Load framework documentation:**\n\n- **MCP Best Practices**: [? View Best Practices](.\u002Freference\u002Fmcp_best_practices.md) - Core guidelines\n\n**For TypeScript (recommended):**\n- **TypeScript SDK**: Use WebFetch to load `https:\u002F\u002Fraw.githubusercontent.com\u002Fmodelcontextprotocol\u002Ftypescript-sdk\u002Fmain\u002FREADME.md`\n- [⚡ TypeScript Guide](.\u002Freference\u002Fnode_mcp_server.md) - TypeScript patterns and examples\n\n**For Python:**\n- **Python SDK**: Use WebFetch to load `https:\u002F\u002Fraw.githubusercontent.com\u002Fmodelcontextprotocol\u002Fpython-sdk\u002Fmain\u002FREADME.md`\n- [? Python Guide](.\u002Freference\u002Fpython_mcp_server.md) - Python patterns and examples\n\n**For C#\u002F.NET (Microsoft ecosystem):**\n- [? Microsoft MCP Patterns](.\u002Freference\u002Fmicrosoft_mcp_patterns.md) - C# patterns, Azure MCP architecture, command hierarchy\n\n#### 1.4 Plan Your Implementation\n\n**Understand the API:**\nReview the service's API documentation to identify key endpoints, authentication requirements, and data models. Use web search and WebFetch as needed.\n\n**Tool Selection:**\nPrioritize comprehensive API coverage. List endpoints to implement, starting with the most common operations.\n\n---\n\n### Phase 2: Implementation\n\n#### 2.1 Set Up Project Structure\n\nSee language-specific guides for project setup:\n- [⚡ TypeScript Guide](.\u002Freference\u002Fnode_mcp_server.md) - Project structure, package.json, tsconfig.json\n- [? Python Guide](.\u002Freference\u002Fpython_mcp_server.md) - Module organization, dependencies\n- [? Microsoft MCP Patterns](.\u002Freference\u002Fmicrosoft_mcp_patterns.md) - C# project structure, command hierarchy\n\n#### 2.2 Implement Core Infrastructure\n\nCreate shared utilities:\n- API client with authentication\n- Error handling helpers\n- Response formatting (JSON\u002FMarkdown)\n- Pagination support\n\n#### 2.3 Implement Tools\n\nFor each tool:\n\n**Input Schema:**\n- Use Zod (TypeScript) or Pydantic (Python)\n- Include constraints and clear descriptions\n- Add examples in field descriptions\n\n**Output Schema:**\n- Define `outputSchema` where possible for structured data\n- Use `structuredContent` in tool responses (TypeScript SDK feature)\n- Helps clients understand and process tool outputs\n\n**Tool Description:**\n- Concise summary of functionality\n- Parameter descriptions\n- Return type schema\n\n**Implementation:**\n- Async\u002Fawait for I\u002FO operations\n- Proper error handling with actionable messages\n- Support pagination where applicable\n- Return both text content and structured data when using modern SDKs\n\n**Annotations:**\n- `readOnlyHint`: true\u002Ffalse\n- `destructiveHint`: true\u002Ffalse\n- `idempotentHint`: true\u002Ffalse\n- `openWorldHint`: true\u002Ffalse\n\n---\n\n### Phase 3: Review and Test\n\n#### 3.1 Code Quality\n\nReview for:\n- No duplicated code (DRY principle)\n- Consistent error handling\n- Full type coverage\n- Clear tool descriptions\n\n#### 3.2 Build and Test\n\n**TypeScript:**\n- Run `npm run build` to verify compilation\n- Test with MCP Inspector: `npx @modelcontextprotocol\u002Finspector`\n\n**Python:**\n- Verify syntax: `python -m py_compile your_server.py`\n- Test with MCP Inspector\n\nSee language-specific guides for detailed testing approaches and quality checklists.\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\nUse evaluations to 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\nEnsure each question is:\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- **MCP Protocol**: Start with sitemap at `https:\u002F\u002Fmodelcontextprotocol.io\u002Fsitemap.xml`, then fetch specific pages with `.md` suffix\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  - Transport selection (streamable HTTP vs stdio)\n  - Security and error handling standards\n\n### Microsoft MCP Documentation (For Azure\u002FFoundry)\n- [? Microsoft MCP Patterns](.\u002Freference\u002Fmicrosoft_mcp_patterns.md) - Microsoft-specific patterns including:\n  - Azure MCP Server architecture (48+ Azure services)\n  - C#\u002F.NET command implementation patterns\n  - Remote MCP with Foundry Agent Service\n  - Authentication (Entra ID, OBO flow, Managed Identity)\n  - Testing infrastructure with Bicep templates\n\n### SDK Documentation (Load During Phase 1\u002F2)\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- **Microsoft MCP SDK**: See [Microsoft MCP Patterns](.\u002Freference\u002Fmicrosoft_mcp_patterns.md) for C#\u002F.NET\n\n### Language-Specific Implementation Guides (Load During Phase 2)\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- [? Microsoft MCP Patterns](.\u002Freference\u002Fmicrosoft_mcp_patterns.md) - Complete C#\u002F.NET guide with:\n  - Command hierarchy (BaseCommand → GlobalCommand → SubscriptionCommand)\n  - Naming conventions (`{Resource}{Operation}Command`)\n  - Option handling with `.AsRequired()` \u002F `.AsOptional()`\n  - Azure Functions remote MCP deployment\n  - Live test patterns with Bicep\n\n### Evaluation Guide (Load During Phase 4)\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","# MCP Server Development Guide\n\n## Overview\n\nCreate MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. The quality of an MCP server is measured by how well it enables LLMs to accomplish real-world tasks.\n\n---\n\n## Microsoft MCP Ecosystem\n\nMicrosoft provides extensive MCP infrastructure for Azure and Foundry services. Understanding this ecosystem helps you decide whether to build custom servers or leverage existing ones.\n\n### Server Types\n\n| Type | Transport | Use Case | Example |\n|------|-----------|----------|---------|\n| **Local** | stdio | Desktop apps, single-user, local dev | Azure MCP Server via NPM\u002FDocker |\n| **Remote** | Streamable HTTP | Cloud services, multi-tenant, Agent Service | `https:\u002F\u002Fmcp.ai.azure.com` (Foundry) |\n\n### Microsoft MCP Servers\n\nBefore building a custom server, check if Microsoft already provides one:\n\n| Server | Type | Description |\n|--------|------|-------------|\n| **Azure MCP** | Local | 48+ Azure services (Storage, KeyVault, Cosmos, SQL, etc.) |\n| **Foundry MCP** | Remote | `https:\u002F\u002Fmcp.ai.azure.com` - Models, deployments, evals, agents |\n| **Fabric MCP** | Local | Microsoft Fabric APIs, OneLake, item definitions |\n| **Playwright MCP** | Local | Browser automation and testing |\n| **GitHub MCP** | Remote | `https:\u002F\u002Fapi.githubcopilot.com\u002Fmcp` |\n\n**Full ecosystem:** See [? Microsoft MCP Patterns](.\u002Freference\u002Fmicrosoft_mcp_patterns.md) for complete server catalog and patterns.\n\n### When to Use Microsoft vs Custom\n\n| Scenario | Recommendation |\n|----------|----------------|\n| Azure service integration | Use **Azure MCP Server** (48 services covered) |\n| AI Foundry agents\u002Fevals | Use **Foundry MCP** remote server |\n| Custom internal APIs | Build **custom server** (this guide) |\n| Third-party SaaS integration | Build **custom server** (this guide) |\n| Extending Azure MCP | Follow [Microsoft MCP Patterns](.\u002Freference\u002Fmicrosoft_mcp_patterns.md)\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 Modern MCP Design\n\n**API Coverage vs. Workflow Tools:**\nBalance comprehensive API endpoint coverage with specialized workflow tools. Workflow tools can be more convenient for specific tasks, while comprehensive coverage gives agents flexibility to compose operations. Performance varies by client—some clients benefit from code execution that combines basic tools, while others work better with higher-level workflows. When uncertain, prioritize comprehensive API coverage.\n\n**Tool Naming and Discoverability:**\nClear, descriptive tool names help agents find the right tools quickly. Use consistent prefixes (e.g., `github_create_issue`, `github_list_repos`) and action-oriented naming.\n\n**Context Management:**\nAgents benefit from concise tool descriptions and the ability to filter\u002Fpaginate results. Design tools that return focused, relevant data. Some clients support code execution which can help agents filter and process data efficiently.\n\n**Actionable Error Messages:**\nError messages should guide agents toward solutions with specific suggestions and next steps.\n\n#### 1.2 Study MCP Protocol Documentation\n\n**Navigate the MCP specification:**\n\nStart with the sitemap to find relevant pages: `https:\u002F\u002Fmodelcontextprotocol.io\u002Fsitemap.xml`\n\nThen fetch specific pages with `.md` suffix for markdown format (e.g., `https:\u002F\u002Fmodelcontextprotocol.io\u002Fspecification\u002Fdraft.md`).\n\nKey pages to review:\n- Specification overview and architecture\n- Transport mechanisms (streamable HTTP, stdio)\n- Tool, resource, and prompt definitions\n\n#### 1.3 Study Framework Documentation\n\n**Language Selection:**\n\n| Language | Best For | SDK |\n|----------|----------|-----|\n| **TypeScript** (recommended) | General MCP servers, broad compatibility | `@modelcontextprotocol\u002Fsdk` |\n| **Python** | Data\u002FML pipelines, FastAPI integration | `mcp` (FastMCP) |\n| **C#\u002F.NET** | Azure\u002FMicrosoft ecosystem, enterprise | `Microsoft.Mcp.Core` |\n\n**Transport Selection:**\n\n| Transport | Use Case | Characteristics |\n|-----------|----------|-----------------|\n| **Streamable HTTP** | Remote servers, multi-tenant, Agent Service | Stateless, scalable, requires auth |\n| **stdio** | Local servers, desktop apps | Simple, single-user, no network |\n\n**Load framework documentation:**\n\n- **MCP Best Practices**: [? View Best Practices](.\u002Freference\u002Fmcp_best_practices.md) - Core guidelines\n\n**For TypeScript (recommended):**\n- **TypeScript SDK**: Use WebFetch to load `https:\u002F\u002Fraw.githubusercontent.com\u002Fmodelcontextprotocol\u002Ftypescript-sdk\u002Fmain\u002FREADME.md`\n- [⚡ TypeScript Guide](.\u002Freference\u002Fnode_mcp_server.md) - TypeScript patterns and examples\n\n**For Python:**\n- **Python SDK**: Use WebFetch to load `https:\u002F\u002Fraw.githubusercontent.com\u002Fmodelcontextprotocol\u002Fpython-sdk\u002Fmain\u002FREADME.md`\n- [? Python Guide](.\u002Freference\u002Fpython_mcp_server.md) - Python patterns and examples\n\n**For C#\u002F.NET (Microsoft ecosystem):**\n- [? Microsoft MCP Patterns](.\u002Freference\u002Fmicrosoft_mcp_patterns.md) - C# patterns, Azure MCP architecture, command hierarchy\n\n#### 1.4 Plan Your Implementation\n\n**Understand the API:**\nReview the service's API documentation to identify key endpoints, authentication requirements, and data models. Use web search and WebFetch as needed.\n\n**Tool Selection:**\nPrioritize comprehensive API coverage. List endpoints to implement, starting with the most common operations.\n\n---\n\n### Phase 2: Implementation\n\n#### 2.1 Set Up Project Structure\n\nSee language-specific guides for project setup:\n- [⚡ TypeScript Guide](.\u002Freference\u002Fnode_mcp_server.md) - Project structure, package.json, tsconfig.json\n- [? Python Guide](.\u002Freference\u002Fpython_mcp_server.md) - Module organization, dependencies\n- [? Microsoft MCP Patterns](.\u002Freference\u002Fmicrosoft_mcp_patterns.md) - C# project structure, command hierarchy\n\n#### 2.2 Implement Core Infrastructure\n\nCreate shared utilities:\n- API client with authentication\n- Error handling helpers\n- Response formatting (JSON\u002FMarkdown)\n- Pagination support\n\n#### 2.3 Implement Tools\n\nFor each tool:\n\n**Input Schema:**\n- Use Zod (TypeScript) or Pydantic (Python)\n- Include constraints and clear descriptions\n- Add examples in field descriptions\n\n**Output Schema:**\n- Define `outputSchema` where possible for structured data\n- Use `structuredContent` in tool responses (TypeScript SDK feature)\n- Helps clients understand and process tool outputs\n\n**Tool Description:**\n- Concise summary of functionality\n- Parameter descriptions\n- Return type schema\n\n**Implementation:**\n- Async\u002Fawait for I\u002FO operations\n- Proper error handling with actionable messages\n- Support pagination where applicable\n- Return both text content and structured data when using modern SDKs\n\n**Annotations:**\n- `readOnlyHint`: true\u002Ffalse\n- `destructiveHint`: true\u002Ffalse\n- `idempotentHint`: true\u002Ffalse\n- `openWorldHint`: true\u002Ffalse\n\n---\n\n### Phase 3: Review and Test\n\n#### 3.1 Code Quality\n\nReview for:\n- No duplicated code (DRY principle)\n- Consistent error handling\n- Full type coverage\n- Clear tool descriptions\n\n#### 3.2 Build and Test\n\n**TypeScript:**\n- Run `npm run build` to verify compilation\n- Test with MCP Inspector: `npx @modelcontextprotocol\u002Finspector`\n\n**Python:**\n- Verify syntax: `python -m py_compile your_server.py`\n- Test with MCP Inspector\n\nSee language-specific guides for detailed testing approaches and quality checklists.\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\nUse evaluations to 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\nEnsure each question is:\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- **MCP Protocol**: Start with sitemap at `https:\u002F\u002Fmodelcontextprotocol.io\u002Fsitemap.xml`, then fetch specific pages with `.md` suffix\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  - Transport selection (streamable HTTP vs stdio)\n  - Security and error handling standards\n\n### Microsoft MCP Documentation (For Azure\u002FFoundry)\n- [? Microsoft MCP Patterns](.\u002Freference\u002Fmicrosoft_mcp_patterns.md) - Microsoft-specific patterns including:\n  - Azure MCP Server architecture (48+ Azure services)\n  - C#\u002F.NET command implementation patterns\n  - Remote MCP with Foundry Agent Service\n  - Authentication (Entra ID, OBO flow, Managed Identity)\n  - Testing infrastructure with Bicep templates\n\n### SDK Documentation (Load During Phase 1\u002F2)\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- **Microsoft MCP SDK**: See [Microsoft MCP Patterns](.\u002Freference\u002Fmicrosoft_mcp_patterns.md) for C#\u002F.NET\n\n### Language-Specific Implementation Guides (Load During Phase 2)\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- [? Microsoft MCP Patterns](.\u002Freference\u002Fmicrosoft_mcp_patterns.md) - Complete C#\u002F.NET guide with:\n  - Command hierarchy (BaseCommand → GlobalCommand → SubscriptionCommand)\n  - Naming conventions (`{Resource}{Operation}Command`)\n  - Option handling with `.AsRequired()` \u002F `.AsOptional()`\n  - Azure Functions remote MCP deployment\n  - Live test patterns with Bicep\n\n### Evaluation Guide (Load During Phase 4)\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",{"name":5,"description":7},"main","3f5b461b2314e01c400564051e92469114c5b68f",".github\u002Fskills\u002Fmcp-builder",368,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills","https:\u002F\u002Fmicrosoft.github.io\u002Fskills\u002F","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-14 06:48:25",{"source":9,"skillName":5,"commands":68,"prompt":78,"zipAvailable":79},[69,72,75],{"tool":70,"command":71},"npx","npx skills add microsoft\u002Fskills --skill mcp-builder",{"tool":73,"command":74},"bunx","bunx skills add microsoft\u002Fskills --skill mcp-builder",{"tool":76,"command":77},"pnpm","pnpm dlx skills add microsoft\u002Fskills --skill mcp-builder","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fmcp-builder\u002FSKILL.md",true,[81,87,91,95,99,103,109,113,117,121],{"path":82,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":85,"sourceHtmlUrl":86},"reference\u002Fevaluation.md","REFERENCE","参考文档",21663,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fmcp-builder\u002Freference\u002Fevaluation.md",{"path":88,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":89,"sourceHtmlUrl":90},"reference\u002Fmcp_best_practices.md",12375,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fmcp-builder\u002Freference\u002Fmcp_best_practices.md",{"path":92,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":93,"sourceHtmlUrl":94},"reference\u002Fmicrosoft_mcp_patterns.md",21541,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fmcp-builder\u002Freference\u002Fmicrosoft_mcp_patterns.md",{"path":96,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":97,"sourceHtmlUrl":98},"reference\u002Fnode_mcp_server.md",29189,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fmcp-builder\u002Freference\u002Fnode_mcp_server.md",{"path":100,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":101,"sourceHtmlUrl":102},"reference\u002Fpython_mcp_server.md",25744,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fmcp-builder\u002Freference\u002Fpython_mcp_server.md",{"path":104,"resourceType":105,"resourceTypeDesc":106,"sizeBytes":107,"sourceHtmlUrl":108},"scripts\u002Fconnections.py","SCRIPT","脚本",4875,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fmcp-builder\u002Fscripts\u002Fconnections.py",{"path":110,"resourceType":105,"resourceTypeDesc":106,"sizeBytes":111,"sourceHtmlUrl":112},"scripts\u002Fevaluation.py",12579,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fmcp-builder\u002Fscripts\u002Fevaluation.py",{"path":114,"resourceType":105,"resourceTypeDesc":106,"sizeBytes":115,"sourceHtmlUrl":116},"scripts\u002Fexample_evaluation.xml",1194,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fmcp-builder\u002Fscripts\u002Fexample_evaluation.xml",{"path":118,"resourceType":105,"resourceTypeDesc":106,"sizeBytes":119,"sourceHtmlUrl":120},"scripts\u002Frequirements.txt",29,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fmcp-builder\u002Fscripts\u002Frequirements.txt",{"path":122,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":123,"sourceHtmlUrl":124},"testing-anti-patterns.md",8251,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002F_collections\u002Fsuperpowers\u002Fskills\u002Ftest-driven-development\u002Ftesting-anti-patterns.md",[126,134,160,194,227,261],{"skillNo":127,"name":128,"nameZh":17,"description":129,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":133},"01M741JBE1VH8A2Y3FXX2P7386","azure-advisor-cost-optimization","Analyze Azure Advisor Cost\u002FIdleResources findings and prevalidate deletion safety, including Service Groups. WHEN: \"find unused Azure resources\", \"what resources am I paying for but no longer using\", \"idle-resource savings\", \"historical idle-resource savings\", \"are these idle resources safe to delete\". Generic Cost, other subcategories, and cross-category requests use azure-advisor.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fazure-advisor\u002Fskills\u002Fazure-advisor-cost-optimization\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":135,"name":136,"nameZh":137,"description":138,"descriptionZh":139,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":140,"categories":141,"keywords":146,"publishedAt":52},"01M69B4JCRQV5SPXAFCKXQRV0H","skill-creator","Azure 技能创建与更新指南","Guide for creating effective skills for AI coding agents working with Azure SDKs and Microsoft Foundry services. Use when creating new skills or updating existing skills.","面向使用 Azure SDK 和 Microsoft Foundry 服务的 AI 编码智能体，指导其创建高效技能的指南。在创建新技能或更新现有技能时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fskill-creator\u002FSKILL.md",[142,145],{"categoryNo":143,"categoryName":144,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRN0CV1NMDZ5TEJX1GVM29","插件与技能管理",{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},[147,148,149,150,10,151,152,153,154,41,35,40,155,156,157,34,158,36,159],"skill creator","creator","ai coding agents","coding agents","azure","foundry","microsoft foundry","coding","Existing","services","new","sdks","ai coding",{"skillNo":161,"name":162,"nameZh":163,"description":164,"descriptionZh":165,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":166,"categories":167,"keywords":174,"publishedAt":52},"01M69B4FD57V1MYKRWAJJECTZ7","podcast-generation","AI 播客音频生成","Generate AI-powered podcast-style audio narratives using Azure OpenAI's GPT Realtime Mini model via WebSocket. Use when building text-to-speech features, audio narrative generation, podcast creation from content, or integrating with Azure OpenAI Realtime API for real audio output. Covers full-stack implementation from React frontend to Python FastAPI backend with WebSocket streaming.","通过 WebSocket 使用 Azure OpenAI 的 GPT Realtime Mini 模型生成 AI 驱动的播客式音频叙述。当构建文本转语音功能、音频叙述生成、根据内容制作播客，或集成 Azure OpenAI Realtime API 以获得真实音频输出时使用。涵盖从 React 前端到 Python FastAPI 后端及 WebSocket 流式传输的全栈实现。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fpodcast-generation\u002FSKILL.md",[168,171],{"categoryNo":169,"categoryName":170,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BR5V816HPKFXP1YV56C07K","多媒体工程师",{"categoryNo":172,"categoryName":173,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BR82CCRKG2HNYVFH5H6GZ0","音频与语音处理",[175,176,177,178,151,179,180,181,50,182,183,44,184,185,186,34,187,188,189,190,191,192,193],"podcast generation","generation","podcast","frontend","azure openai","realtime","react","Audio","creation","fastapi backend","python fastapi","fastapi","api","streaming","text","narrative","stack","generate","features",{"skillNo":195,"name":196,"nameZh":197,"description":198,"descriptionZh":199,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":200,"categories":201,"keywords":208,"publishedAt":52},"01M69B4CYPM5SESY5ZWEFDXEQZ","microsoft-docs","Microsoft 技术文档查询","Understand Microsoft technologies by querying official documentation. Use whenever the user asks how something works, wants tutorials, needs configuration options, limits, quotas, or best practices for any Microsoft technology (Azure, .NET, M365, Windows, Power Platform, etc.)—even if they don't mention \"docs.\" If the question is about understanding a concept rather than writing code, this is the right skill.","通过查询官方文档来理解 Microsoft 技术。当用户询问某项技术的工作原理、想要教程、需要任何 Microsoft 技术（Azure、.NET、M365、Windows、Power Platform 等）的配置选项、限制、配额或最佳实践时使用——即使他们没有提到\"文档\"。如果问题是为了理解概念而非编写代码，那么这就是合适的技能。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fmicrosoft-docs\u002FSKILL.md",[202,205],{"categoryNo":203,"categoryName":204,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TKQDF2K4KQS863Q79P4","开发参考",{"categoryNo":206,"categoryName":207,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",[209,10,210,211,212,213,214,151,32,215,216,217,218,219,220,221,35,222,70,223,40,224,225,226],"microsoft docs","docs","documentation","windows","official","cli","writing","power platform","mcp server","back","concept","power","platform","technology","question","learn mcp","learn","best practices",{"skillNo":228,"name":229,"nameZh":230,"description":231,"descriptionZh":232,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":233,"categories":234,"keywords":241,"publishedAt":52},"01M69B467A7CDMFQ0T6Q0ZA12Q","kql","KQL 查询编写与调试","KQL language expertise for writing correct, efficient Kusto Query Language queries. Covers syntax gotchas, join patterns, dynamic types, datetime pitfalls, regex patterns, serialization, memory management, result-size discipline, and advanced functions (geo, vector, graph). USE THIS SKILL whenever writing, debugging, or reviewing KQL queries — even simple ones — because the gotchas section prevents the most common errors that waste tool calls and cause expensive retry cascades. Trigger on: KQL, Kusto, ADX, Azure Data Explorer, Fabric Real-Time Intelligence, EventHouse, Log Analytics, log analysis, data exploration, time series, anomaly detection, summarize, where clause, join, extend, project, let statement, parse operator, extract function, any mention of pipe-forward query syntax.","KQL 语言专业能力，用于编写正确且高效的 Kusto Query Language 查询。涵盖语法陷阱、join 模式、dynamic 类型、datetime 陷阱、regex 模式、序列化、内存管理、结果集规模控制，以及高级函数（geo、vector、graph）。在编写、调试或审查 KQL 查询时均使用本技能——即使是简单查询——因为陷阱章节可防止最常见的错误，避免浪费工具调用并引发代价高昂的连锁重试。触发条件：KQL、Kusto、ADX、Azure Data Explorer、Fabric Real-Time Intelligence、EventHouse、Log Analytics、日志分析、数据探索、时间序列、异常检测、summarize、where 子句、join、extend、project、let 语句、parse 运算符、extract 函数，以及任何提及管道式查询语法的情形。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fkql\u002FSKILL.md",[235,238],{"categoryNo":236,"categoryName":237,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQGD4CMBM6B4PWSM1NXGT9","数据分析与报告",{"categoryNo":239,"categoryName":240,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5CX980XNXCJKQF70BY","数据分析师",[229,151,215,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,35,258,259,260],"analytics","memory","summarize","exploration","parse","project","time","vector","join","log","pipe","datetime","discipline","time series","regex","anomaly","section","tool","geo",{"skillNo":262,"name":263,"nameZh":264,"description":265,"descriptionZh":266,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":267,"categories":268,"keywords":273,"publishedAt":52},"01M69B44HJQ7897EZ7NE7DWQX3","github-issue-creator","GitHub Issue 报告生成","Convert raw notes, error logs, voice dictation, or screenshots into crisp GitHub-flavored markdown issue reports. Use when the user pastes bug info, error messages, or informal descriptions and wants a structured GitHub issue. Supports images\u002FGIFs for visual evidence.","将原始笔记、错误日志、语音听写内容或截图转换为简洁清晰的 GitHub 风格 Markdown issue 报告。当用户粘贴 bug 信息、错误消息或非正式描述，并希望获得结构化的 GitHub issue 时使用。支持使用图片\u002FGIF 作为可视化证据。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgithub-issue-creator\u002FSKILL.md",[269,270],{"categoryNo":206,"categoryName":207,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":271,"categoryName":272,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C2MZSDTE56BDKER3VPW2JM","工单与问题跟踪管理",[274,275,276,277,278,148,279,280,281,282,283,284,35,285,40,34,286,287,288,289,290],"github","github issue creator","issue creator","github issue","issue","notes","screenshots","images","error","evidence","error messages","messages","visual","convert","logs","reports","info"]