mcp-builder
构建用于 LLM 工具集成的 MCP 服务器
Également disponible depuis: ZhanlinCui,ComposioHQ,Doyajin174,mcp-use,anthropics,sickn33,davila7,DYAI2025,ArtemisAI,92Bilal26,Cam10001110101,92Bilal26,AutumnsGrove,Azeem-2
创建有效的 MCP 服务器需要理解协议规范、SDK 模式和测试策略。本技能提供全面的指南,帮助使用 Python 和 TypeScript 构建高质量的 MCP 服务器,并提供评估框架来验证工具的有效性。
Télécharger le ZIP du skill
Importer dans Claude
Allez dans Paramètres → Capacités → Skills → Importer un skill
Activez et commencez à utiliser
Tester
Utilisation de "mcp-builder". Create a Python MCP server for searching users with pagination
Résultat attendu:
- 1. Define Pydantic model with limit/offset parameters
- 2. Use httpx for async API requests
- 3. Return structured data with has_more and next_offset
- 4. Support both JSON and Markdown response formats
- 5. Add clear error messages for rate limits and auth failures
Utilisation de "mcp-builder". Set up TypeScript MCP server project
Résultat attendu:
- 1. Initialize npm project with package.json
- 2. Install @modelcontextprotocol/typescript-sdk
- 3. Create server.ts with StdioServerParameters
- 4. Register tools with inputSchema and descriptions
- 5. Run npm run build to verify compilation
Audit de sécurité
Risque faibleThis skill is a legitimate documentation and evaluation framework for building MCP servers. The 526 static findings are false positives from pattern-matching on documentation examples and license text. The evaluation script launches user-specified MCP servers for testing - a necessary function for its testing purpose. Credentials are passed via command-line and never exfiltrated.
Facteurs de risque
⚡ Contient des scripts (2)
⚙️ Commandes externes (1)
Score de qualité
Ce que vous pouvez construire
构建 API 集成
创建将外部 API 公开为 LLM 工具的 MCP 服务器,供 Claude 和其他客户端使用
测试 MCP 服务器
使用评估框架验证 MCP 服务器工具的有效性并识别改进点
设计工具模式
应用工具命名、输入验证和响应格式的最佳实践
Essayez ces prompts
Show me how to create a new MCP server using Python FastMCP for the GitHub API. Include Pydantic models for input validation and pagination support.
Write a complete TypeScript example showing how to register MCP tools with Zod schemas, annotations, and structured content output.
Create an evaluation XML file with 10 challenging questions for a GitHub MCP server. Include guidelines for creating complex, read-only questions.
What are the recommended naming conventions, response formats, and security practices for MCP server development? Include tool annotations and error handling patterns.
Bonnes pratiques
- 使用带有服务前缀的描述性工具名称,以防止多个 MCP 服务器之间的冲突
- 实现分页时使用 limit 参数和 has_more 指示符,防止响应过于庞大
- 为每个工具包含 readOnlyHint、destructiveHint、idempotentHint 和 openWorldHint 注释
Éviter
- 避免使用像 'get_data' 或 'search' 这样的通用工具名称,这些名称可能与其他 MCP 服务器冲突
- 不要返回所有结果而不进行分页,这可能会耗尽上下文并导致超时
- 避免在未格式化或过滤的情况下暴露原始 API 响应——应为 LLM 理解而结构化数据
Foire aux questions
我应该使用哪种语言进行 MCP 服务器开发?
我的 MCP 服务器应该实现多少个工具?
如何测试我的 MCP 服务器是否正常工作?
使用 MCP 服务器时我的 API 密钥是否安全?
为什么我的工具响应被截断了?
MCP 与直接 API 调用相比如何?
Détails du développeur
Structure de fichiers