xiaohongshu
xiaohongshu
fastmcp-creator
Build Model Context Protocol (MCP) servers - comprehensive coverage of generic MCP protocol AND FastMCP framework specialization. Use when creating any MCP server (Python FastMCP preferred, TypeScript/Node also covered). Includes agent-centric design principles, evaluation creation, Pydantic/Zod ...
Full skill instructions
TRIGGER: The model must activate when building MCP (Model Context Protocol) servers
SPECIALIZATION: FastMCP framework (Python, decorator-based) FALLBACK: Generic Python SDK, TypeScript SDK also covered
COVERAGE:
EXCLUSIONS:
TRIGGER: The model must follow this 4-phase workflow when building MCP servers
RULE: The model must design tools for AI agents, not just API wrappers
PRINCIPLES:
Build for Workflows, Not Just API Endpoints:
schedule_event that both checks availability and creates event)Optimize for Limited Context:
Design Actionable Error Messages:
Follow Natural Task Subdivisions:
Use Evaluation-Driven Development:
RESOURCE: https://modelcontextprotocol.io/llms-full.txt PURPOSE: Complete MCP specification and guidelines
RESEARCH TOOL PREFERENCE (in order):
mcp__Ref__ref_search_documentation(query="Model Context Protocol specification") - High-fidelity verbatim documentationmcp__exa__get_code_context_exa(query="MCP protocol server implementation examples") - Code context and examplesRATIONALE: MCP tools provide higher fidelity (verbatim source) compared to WebFetch (AI summaries)
Web resource access, definitive guide for getting accurate data for high quality results
DECISION_TREE:
IF implementing in Python THEN
- Load FastMCP patterns from references/development-guidelines.md
- Load Python SDK documentation from official source
- Focus on decorator-based patterns and Pydantic validation
ELSE IF implementing in TypeScript/Node THEN
- Load TypeScript patterns from references/typescript-mcp-server.md
- Load TypeScript SDK documentation from official source
- Focus on registerTool patterns and Zod validation
ELSE
- Load generic best practices from references/mcp-best-practices.md
- Adapt to target language/framework
REFERENCES_IN_SKILL:
RULE: The model must read through ALL available API documentation for target service
REQUIREMENTS:
RESEARCH TOOL HIERARCHY (use in this order):
mcp__Ref__ref_search_documentation for official API documentation (verbatim, high-fidelity)mcp__exa__get_code_context_exa for code examples and SDK usage patternsmcp__exa__web_search_exa for general research with LLM-optimized resultsRATIONALE: MCP tools provide superior accuracy, precision, and fidelity for technical documentation
PLAN_COMPONENTS:
Tool Selection:
Shared Utilities and Helpers:
Input/Output Design:
Error Handling Strategy:
RULE: The model must implement following language-specific best practices
Python Project Setup:
RULE: The model must activate the python3-development skill before setting up Python MCP server projects
CONSTRAINT: The python3-development skill contains:
ACTIVATION:
Skill(command: "python3-development")
The model must defer to python3-development for general Python project structure.
Basic Server Structure:
from fastmcp import FastMCP
from pydantic import Field
from typing import Annotated
mcp = FastMCP("service_mcp")
@mcp.tool()
def tool_name(
param: Annotated[str, Field(description="Parameter description")]
) -> dict:
"""Tool description for the AI."""
return {"result": "value"}
if __name__ == "__main__":
mcp.run() # Defaults to STDIO transport
Key Patterns:
@mcp.tool() decorator for toolsAnnotated[type, Field(...)] for parameter validationasync def for I/O-bound operationsSee: FastMCP Development Guidelines for complete Python patterns
Basic Server Structure:
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
import { z } from "zod";
const server = new McpServer({
name: "service-mcp-server",
version: "1.0.0",
});
const InputSchema = z
.object({
param: z.string().describe("Parameter description"),
})
.strict();
server.registerTool(
"tool_name",
{
title: "Tool Title",
description: "Tool description for the AI",
inputSchema: InputSchema,
annotations: { readOnlyHint: true },
},
async (params) => {
return { content: [{ type: "text", text: "result" }] };
},
);
const transport = new StdioServerTransport();
await server.connect(transport);
Key Patterns:
registerTool with complete configuration.strict()title, description, inputSchema, annotationsSee: TypeScript MCP Server Guide for complete TypeScript patterns
CHECKLIST:
Important: MCP servers are long-running processes. Running them directly causes your process to hang indefinitely.
Safe Testing:
timeout 5s python server.pyFor Python:
python -m py_compile your_server.py # Verify syntax
For TypeScript:
npm run build # Must complete without errors
RULE: The model must create comprehensive evaluations to test server effectiveness
RESOURCE: Evaluation Guide
Purpose: Evaluations test whether LLMs can effectively use your MCP server to answer realistic, complex questions.
Process:
Requirements: Each question must be:
Output Format:
<evaluation>
<qa_pair>
<question>Complex question requiring multiple tool calls</question>
<answer>Single verifiable answer</answer>
</qa_pair>
</evaluation>
Evaluation Scripts:
Located in ./scripts/:
evaluation.py - Evaluation harnessconnections.py - MCP connection utilitiesrequirements.txt - Python dependenciesexample_evaluation.xml - Example evaluationUsage:
pip install -r scripts/requirements.txt
export ANTHROPIC_API_KEY=your_api_key
python scripts/evaluation.py \
-t stdio \
-c python \
-a my_mcp_server.py \
evaluation.xml
from fastmcp import FastMCP
from pydantic import Field
from typing import Annotated
mcp = FastMCP("my-server")
@mcp.tool()
def search_items(
query: str,
limit: Annotated[int, Field(ge=1, le=100)] = 10
) -> dict:
"""Search for items matching the query."""
results = perform_search(query, limit)
return {"results": results, "count": len(results)}
@mcp.resource("data://config")
def get_config() -> dict:
return {"setting": "value"}
@mcp.prompt()
def explain_topic(topic: str) -> str:
return f"Explain the concept of '{topic}'"
if __name__ == "__main__":
mcp.run() # STDIO transport
# OR: mcp.run(transport="http", port=8000)
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
import { z } from "zod";
const server = new McpServer({
name: "my-server",
version: "1.0.0",
});
const SearchSchema = z
.object({
query: z.string(),
limit: z.number().int().min(1).max(100).default(10),
})
.strict();
server.registerTool(
"search_items",
{
title: "Search Items",
description: "Search for items matching the query",
inputSchema: SearchSchema,
annotations: { readOnlyHint: true },
},
async (params) => {
const results = await performSearch(params.query, params.limit);
return {
content: [
{
type: "text",
text: JSON.stringify({ results, count: results.length }, null, 2),
},
],
};
},
);
const transport = new StdioServerTransport();
await server.connect(transport);
MANDATORY_PRACTICES:
Tool Design:
{service}_{action}_{resource}Input/Output:
Validation:
Error Handling:
Security:
Performance:
Deployment:
COMPREHENSIVE_REFERENCES:
Universal MCP guidelines including naming conventions, response formats, pagination, security, and compliance requirements. Use for all MCP implementations regardless of language.
Complete FastMCP development guide covering decorators, Pydantic validation, async patterns, error handling, Context parameters, annotations, transport options, and production deployment.
Complete TypeScript/Node implementation guide covering project structure, registerTool patterns, Zod validation, error handling, and production build process.
Mid-2025+ best practices including .mcpb packaging, security by design patterns, observability and testing approaches, performance tuning, caching, ecosystem compatibility, and agent orchestration patterns.
FastMCP prompt and template system covering @mcp.prompt decorator, system instructions for tool use, configuration for AI-native tools, and prompt engineering for MCP servers.
Real-world FastMCP implementations demonstrating best practices and patterns from Ultimate MCP Server (AI Agent OS), Hugging Face MCP server, browser automation servers, data/DevOps integrations, coding assistants, and templates/aggregators.
Complete guide for creating comprehensive evaluations to test whether LLMs can effectively use your MCP server to answer realistic, complex questions. Includes question guidelines, answer requirements, evaluation process, output format, examples, and verification process.
CONSTRAINT: This skill is completely standalone with no external dependencies
VERIFICATION:
USAGE: Load this skill to access complete, comprehensive MCP server development guidance without needing any other skills or external resources.
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience