mcp-standards
Use when developing MCP servers to access comprehensive standards for scaffolding, packaging, sampling, documentation, testing, error handling, monitoring, and CI/CD workflows.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- mcp-standards
- description
- Use when developing MCP servers to access comprehensive standards for scaffolding, packaging, sampling, documentation, testing, error handling, monitoring, and CI/CD workflows.
02 资源文件 1
- 参考文档_toc.md3.3 KB
03 SKILL.md 正文
MCP Standards - Complete Reference
The comprehensive standards collection for the MCP (Model Context Protocol) ecosystem. This skill provides access to all MCP standards documentation, from initial scaffolding to production deployment.
When to Use This Skill
Use this skill for:
- MCP server development and standards compliance
- FastMCP version requirements and migration
- Repository structure and project setup
- Documentation standards and practices
- Testing, error handling, and monitoring standards
- CI/CD workflows and deployment patterns
Don't use for:
- General programming questions
- Non-MCP specific development
- Individual coding problems
Standards Categories
? Development Standards
- MCP Scaffolding - Project structure and server templates
- MCPB Packaging - Build and distribution standards
- AI Sampling - FastMCP 3.2+ sampling workflows
? Frontend & Integration
- Frontend SOTA - React, TypeScript, Tailwind standards
- MCP-WebApp Integration - Backend-frontend bridging
?️ DevOps & Quality
- GitHub Workflows - CI/CD and release management
- Testing Standards - Comprehensive testing requirements
- Error Handling - Exception management and recovery
- Logging Standards - Structured logging patterns
- Monitoring - Prometheus, Grafana, Loki setup
- Docker Standards - Container architecture
? Documentation & Process
- Documentation Standards - README, CHANGELOG, PRD standards
Key Requirements
FastMCP Version
Minimum: FastMCP 3.2+ - Required for sampling support and enhanced AI workflows.
Status Classification
- ✅ Tested and Working - Verified functionality with tests
- ? Implemented but Untested - Code complete, testing needed
- ? Planned - On development roadmap
- ❌ Deprecated - Will be removed
Error Handling - Zero Tolerance
All errors must be handled with detailed logging - no empty catch blocks allowed.
Quick Implementation Guide
1. Repository Setup
# Create new MCP server
mkdir my-mcp-server
cd my-mcp-server
# Initialize with proper structure
# (See MCP Scaffolding standards)
2. FastMCP Configuration
from fastmcp import FastMCP
# Minimum version requirement
app = FastMCP("server-name", version="1.0.0")
# Implement sampling for creative servers
@app.tool()
async def sample_workflow(iterations: int = 5):
# (See AI Sampling standards)
pass
3. Error Handling
try:
result = await risky_operation()
except SpecificError as e:
logger.error(f"Detailed error: {e}", extra={
"correlation_id": request_id,
"operation": "risky_operation"
})
# Recovery logic
4. Testing Requirements
- Unit tests: 80% minimum coverage
- Integration tests: 70% minimum coverage
- End-to-end tests for critical workflows
Progressive Usage
Level 1: Basic Setup
Start with MCP Scaffolding for project structure.
Level 2: Core Development
Implement AI Sampling for creative workflows.
Level 3: Quality Assurance
Apply Testing Standards and Error Handling.
Level 4: Production Ready
Implement Monitoring and Docker Standards.
Common Patterns
Repository Structure
mcp-server/
├── src/mcp_server_name/
├── tests/
├── docs/
├── pyproject.toml
├── README.md
└── .mcp-standards.yaml
Tool Implementation
@app.tool()
async def example_tool(ctx, param: str) -> dict:
"""Tool with proper error handling and logging."""
try:
result = await process_data(param)
logger.info("Tool executed successfully", extra={
"tool": "example_tool",
"param_length": len(param)
})
return {"success": True, "result": result}
except Exception as e:
logger.error(f"Tool execution failed: {e}", extra={
"tool": "example_tool",
"error_type": type(e).__name__,
"correlation_id": ctx.get("correlation_id")
})
return {"error": str(e)}
Standards Compliance Checklist
- [ ] FastMCP 3.2+ minimum version
- [ ] Proper project structure (MCP Scaffolding)
- [ ] Comprehensive error handling (no empty catches)
- [ ] Detailed logging with correlation IDs
- [ ] 80%+ test coverage
- [ ] Multi-level documentation (README, INSTALL, CHANGELOG)
- [ ] CI/CD workflows configured
- [ ] Monitoring and health checks implemented
Getting Help
Standards Reference
- Table of Contents - Complete overview
- Specific Standards - Detailed implementation guides
- MCP Central Docs - Source documentation
Troubleshooting
- Check Error Handling for common issues
- Review Testing Standards for validation problems
- Consult Logging Standards for debugging setup
This skill provides hierarchical access to thousands of lines of MCP standards documentation, loading only the relevant sections for your current development task.
04 同仓库更多 Skills
Docs Research
Use MCP Central Docs server to search, ask, and retrieve documentation (FastMCP, standards, packaging).
wrappee-drift
Read-only, single-repo audit of a repo's tool coverage against the software it wraps (its current real API/docs, not training-data memory) and against comparable/competing wrappers. Trigger when the user says "wrappee drift" followed by a repo name, "capability audit" followed by a repo name, or asks whether a repo is missing features the wrapped software or a competitor now has. Always scoped to one named repo per invocation -- never trigger this fleet-wide or unprompted; that is explicitly against the SOP. Do NOT trigger for internal fleet-standard compliance (that is drift-scan) or strategic worth/archive decisions (that is quality-check) -- this is specifically about the gap between the repo's tool list and the wrapped software's/competitors' actual current capabilities.
modules
暂无简介
webapp-cua-test
Run the pre-Tauri CUA click-through test (real browser, dev stack, OCR "Connected" wait, sidebar nav walk) for a fleet MCP server repo under D:\Dev\repos. Trigger when the user says "cua webapp test" or "webapp clickthrough" followed by a repo name, asks for an e2e click-through of a webapp, or asks whether a webapp boots and connects in a real browser. Not for the installed NSIS app (that is the nsis-build skill / cua-nsis-test) and not for DOM assertions (Playwright), and not for hunting fake data or dead buttons (fakefind).
ship
Final release gate for a fleet MCP server repo under D:\Dev\repos -- run all quality gates, build the release artifact, verify it, commit, push, and cut a GitHub release. Trigger this whenever the user says "ship it", "ship" followed by a repo name, "release" followed by a repo name, or asks to finalize and publish work that's already been done in a repo. This is the terminal step after assfix/nsis-build, not a substitute for them -- if the repo hasn't been assessed recently, say so before shipping rather than shipping blind.
quality-check
Strategic, qualitative assessment of whether a fleet MCP server repo is worth having -- its originality, difficulty, wrappee, competition, tool surface, fleet integration, and whether to promote, archive, or deprecate it. Trigger when the user says "qualitycheck" followed by a repo name, "is this repo worth it", "should I archive X", or asks for a strategic rather than mechanical review. Do NOT trigger for SOTA compliance, linting, or packaging (that is assfix), nor for auditing a webapp for mock data and dead buttons (that is fakefind).