Mcp builder
Skill Poorgramer-Zack/copilot-cli-things/plugins/mcp-builder/skills/mcp-builder
A curated collection of extensions, skills, and plugins for GitHub Copilot CLI.
npx -y skills add Poorgramer-Zack/copilot-cli-things --skill mcp-builderAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
MCP server development: build, create, and test Model Context Protocol servers in TypeScript or Python. Tool design, input/output schemas, Zod/Pydantic validation, evaluations, stdio/HTTP transport, @modelcontextprotocol/sdk, FastMCP.
SKILL.md
8.4 KB, as published. Nobody here has run it
MCP Server Development Guide
Build MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools.
Deliverables: working MCP server with well-designed tools, clear tool descriptions/input schemas/annotations, evaluation suite, and setup documentation.
Phase 1: Deep Research and Planning
1.1 Understand Modern MCP Design
API Coverage vs. Workflow Tools: Balance comprehensive API endpoint coverage with specialized workflow tools. When uncertain, prioritize comprehensive API coverage β it gives agents flexibility to compose operations.
Tool Naming and Discoverability:
- Use
snake_casewith service prefix:{service}_{action}_{resource} - Examples:
slack_send_message,github_create_issue - Be action-oriented: start with verbs (get, list, search, create, update, delete)
Context Management: Design tools that return focused, relevant data. Support pagination and filtering to avoid overwhelming responses.
Actionable Error Messages: Error messages should guide agents toward solutions with specific suggestions and next steps.
1.2 Study MCP Protocol
Start with the sitemap: https://modelcontextprotocol.io/sitemap.xml
Fetch specific pages with .md suffix (e.g., https://modelcontextprotocol.io/specification/draft.md).
Key pages: specification overview, transport mechanisms (streamable HTTP, stdio), tool/resource/prompt definitions.
1.3 Choose Framework
Recommended stack:
- Language: TypeScript (strong SDK support, good AI code generation, static typing)
- Transport: Streamable HTTP for remote servers (stateless JSON), stdio for local servers
Framework documentation:
- π MCP Best Practices β Core guidelines (load first)
- β‘ TypeScript Guide β TypeScript patterns with
@modelcontextprotocol/sdk - π Python Guide β Python patterns with FastMCP
SDK README (fetch via web):
- TypeScript:
https://raw.githubusercontent.com/modelcontextprotocol/typescript-sdk/main/README.md - Python:
https://raw.githubusercontent.com/modelcontextprotocol/python-sdk/main/README.md
1.4 Plan Implementation
Review the target service's API documentation to identify key endpoints, authentication requirements, and data models. Prioritize comprehensive API coverage. List endpoints to implement, starting with the most common operations.
Phase 2: Implementation
2.1 Project Setup
See language-specific guides for project structure, dependencies, and configuration:
- β‘ TypeScript Guide β package.json, tsconfig.json, project layout
- π Python Guide β Module organization, FastMCP initialization
2.2 Core Infrastructure
Create shared utilities:
- API client with authentication (env vars for secrets, never hardcode)
- Error handling helpers with actionable messages
- Response formatting (JSON for programmatic, Markdown for human-readable)
- Pagination support with
limit,offset,has_more,next_offset
2.3 Implement Tools
For each tool, define:
Input Schema:
- Use Zod (TypeScript) or Pydantic (Python) for runtime validation
- Include constraints, clear descriptions, and examples
Output Schema:
- Define
outputSchemawhere possible for structured data - Use
structuredContentin tool responses (TypeScript SDK)
Annotations:
readOnlyHint: true/false β Does not modify environment
destructiveHint: true/false β May perform destructive updates
idempotentHint: true/false β Repeated calls have no additional effect
openWorldHint: true/false β Interacts with external entities
Implementation patterns:
- Async/await for all I/O operations
- Proper error handling with actionable messages
- Support pagination where applicable
- Return both text content and structured data
2.4 Server Naming
- Python:
{service}_mcp(e.g.,slack_mcp) - Node/TypeScript:
{service}-mcp-server(e.g.,slack-mcp-server)
Phase 3: Review and Test
3.1 Code Quality
Review for:
- No duplicated code (DRY principle)
- Consistent error handling across all tools
- Full type coverage (TypeScript strict mode, Python type hints)
- Clear, comprehensive tool descriptions
3.2 Build and Test
TypeScript:
npm run build # Verify compilation
npx @modelcontextprotocol/inspector # Test with MCP Inspector
Python:
python -m py_compile your_server.py # Verify syntax
# Test with MCP Inspector
Manual testing with Copilot CLI:
Configure the server in .github/mcp.json and test with copilot --debug.
See π MCP Best Practices for quality checklists.
Phase 4: Create Evaluations
After implementing the MCP server, create evaluations to measure tool effectiveness.
Load β Evaluation Guide for complete guidelines.
4.1 Purpose
Evaluations test whether LLMs can effectively use your MCP server to answer realistic, complex questions using only the tools provided. Quality is measured by how well tools enable task completion, not just API coverage.
4.2 Create 10 Evaluation Questions
Follow the evaluation guide's process:
- Tool Inspection β List available tools and understand capabilities
- Content Exploration β Use READ-ONLY operations to explore available data
- Question Generation β Create 10 complex, realistic questions
- Answer Verification β Solve each question yourself to verify answers
4.3 Requirements
Each question must be:
- Independent β Not dependent on other questions
- Read-only β Only non-destructive operations required
- Complex β Requiring multiple tool calls and deep exploration
- Realistic β Based on real use cases humans would care about
- Verifiable β Single, clear answer verifiable by string comparison
- Stable β Answer will not change over time
4.4 Output Format
<evaluation>
<qa_pair>
<question>Your question here</question>
<answer>Single verifiable answer</answer>
</qa_pair>
<!-- More qa_pairs... -->
</evaluation>
4.5 Running Evaluations
Use the provided evaluation harness in scripts/:
pip install -r scripts/requirements.txt
export ANTHROPIC_API_KEY=your_key
python scripts/evaluation.py \
-t stdio \
-c python \
-a my_mcp_server.py \
evaluation.xml
See scripts/README.md and Evaluation Guide for detailed instructions.
Quick Reference
Transport Options
| Criterion | stdio | Streamable HTTP |
|---|---|---|
| Deployment | Local | Remote |
| Clients | Single | Multiple |
| Complexity | Low | Medium |
| Real-time | No | Yes |
Security Considerations
- OAuth 2.1 for production authentication
- Environment variables for API keys β never in code
- Input validation via Zod/Pydantic schemas
- DNS rebinding protection for local HTTP servers (bind to
127.0.0.1) - Sanitize file paths, validate URLs, prevent command injection
Reference Files
Load these resources as needed during development:
| Resource | When to Load | Content |
|---|---|---|
| π Best Practices | Phase 1-3 | Naming, responses, pagination, security, error handling |
| β‘ TypeScript Guide | Phase 2 | Project setup, Zod schemas, registerTool, complete examples |
| π Python Guide | Phase 2 | FastMCP setup, Pydantic models, @mcp.tool, complete examples |
| β Evaluation Guide | Phase 4 | Question/answer guidelines, running evaluations |
| π Example Evaluation | Phase 4 | Sample evaluation XML |