用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill mcp-server-dev命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | mcp-server-dev |
| description | > Use when this capability is needed. |
Create multi-tool MCP servers in Python or TypeScript that follow the Model Context Protocol specification and Anthropic's tool design best practices.
An MCP server is a process that exposes one or more tools (and optionally resources and prompts) over the Model Context Protocol. Servers communicate via stdio transport — they read JSON-RPC from stdin and write responses to stdout.
MCP servers are how you package and distribute tool capabilities. An LLM client (Claude Code, Claude Desktop, etc.) starts the server process and calls its tools.
uvx or npx)mcp-tool-dev skill)| Factor | Python (FastMCP) | TypeScript (@modelcontextprotocol/sdk) |
|---|---|---|
| Distribution | uvx (uv tool) | npx |
| Type system | Type hints + docstrings | Zod schemas |
| Packaging | pyproject.toml | package.json with bin |
| Async | Native async/await | Native async/await |
| Best for | Data science, Python tooling, API wrappers | Frontend tooling, Node.js ecosystem, npm distribution |
Choose Python when the tools interact with Python libraries or you prefer pyproject.toml packaging. Choose TypeScript when targeting the npm ecosystem or when tools interact with Node.js libraries.
List every tool with its name, description, parameters, and return format. Apply the consolidation principle: prefer fewer capable tools over many narrow ones.
For each tool, write the 3-4 sentence description (what, when to use, when NOT to use, behavior notes). This is the most important step — good descriptions prevent misuse.
Use the templates as starting points:
templates/mcp-server-python-template/templates/mcp-server-typescript-template/Core directory structure:
Python:
my-server/
├── pyproject.toml # uvx entry point
├── src/my_server/
│ ├── __init__.py
│ ├── server.py # FastMCP instance + tool registration
│ └── tools/ # One file per tool or tool group
│ └── search.py
├── tests/
│ ├── conftest.py
│ └── test_tools.py
└── README.md
TypeScript:
my-server/
├── package.json # npx entry point with bin
├── tsconfig.json
├── src/
│ ├── index.ts # Entry: CLI args, transport, shutdown
│ ├── server.ts # Tool registration
│ └── tools/
│ └── search.ts
├── tests/
│ └── tools.test.ts
└── README.md
Write each tool handler following the patterns in the language-specific reference:
references/python-server-patterns.mdreferences/typescript-server-patterns.mdKey principles for all tools:
Python (uvx): Set [project.scripts] in pyproject.toml:
[project.scripts]
my-server = "my_server.server:main"
TypeScript (npx): Set bin in package.json:
{
"bin": { "my-server": "dist/index.js" }
}
Implement graceful shutdown (SIGINT/SIGTERM handling). This is critical for clean process termination when the client disconnects.
Test at three levels:
See references/server-testing-guide.md for detailed patterns.
list_capabilities tool[project.scripts] or bin entry; server can't be installedFor detailed patterns per language, see the references/ directory.
Source: andisab/swe-marketplace — distributed by TomeVault.