mcp-developer — скилл для Claude Code: MCP-серверы и клиенты
Скилл для сборки и отладки MCP-серверов и клиентов на TypeScript или Python: схемы инструментов, транспорт, проверка протокола в инспекторе.
npx skills add Jeffallan/claude-skills --skill mcp-developer -a claude-codeЧто делает mcp-developer
Скилл ведёт агента по шагам: разобрать источники данных и нужные инструменты, поднять проект, описать схемы, выбрать транспорт, прогнать проверку. Внутри есть готовые примеры на TypeScript с Zod и на Python с Pydantic. Регистрация инструмента get_weather, провайдер ресурса config://app, подключение через stdio — всё это можно взять как отправную точку и заменить своей логикой.
Проверка идёт через npx @modelcontextprotocol/inspector. Агент смотрит, что инструменты видны клиенту, схемы принимают корректный вход, а ошибки приходят оформленными по JSON-RPC 2.0. Если валидация падает, цикл короткий: прочитать вывод Zod или Pydantic, поправить определение, запустить инспектор снова. Кривой ответ на вызов инструмента отправляет разбираться в сериализацию транспорта и обработчик.
Список MUST NOT стоит прочитать внимательно. Валидация входов, секреты в коде, rate limiting перед выкладкой — именно на этом сервер ломается, когда его открывают наружу. Для Python-варианта нужен pip install mcp, для TypeScript проект создаётся через npx @modelcontextprotocol/create-server my-server: без установленного SDK шагать некуда.
Какие задачи решает
- Поднять MCP-сервер на TypeScript или Python с нуля
- Описать схему инструмента на Zod и Pydantic и не запутаться в аргументах
- Настроить транспорт: stdio, HTTP или SSE
- Найти, почему клиент не видит инструмент или получает кривой ответ
- Прогнать сервер через инспектор до выкладки
Примеры запросов агенту
- Собери MCP-сервер на TypeScript с инструментом поиска по базе и ресурсом `config://app`.
- Мой обработчик возвращает клиенту мусор вместо JSON-RPC 2.0, проверь схему и транспорт через `npx @modelcontextprotocol/inspector`.
- Перепиши этот MCP-клиент с Python SDK на TypeScript, схемы оставь на Zod.
Как установить mcp-developer
1Через Skills CLI (Vercel)
npx skills add Jeffallan/claude-skills --skill mcp-developer -a claude-code2Вручную: положить файлы
~/.claude/skills/mcp-developer/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/mcp-developer/
1Через Skills CLI (Vercel)
npx skills add Jeffallan/claude-skills --skill mcp-developer -a codex2Вручную: положить файлы
.agents/skills/mcp-developer/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add Jeffallan/claude-skills --skill mcp-developer -a cursor2Вручную: положить файлы
.cursor/skills/mcp-developer/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install Jeffallan/claude-skills mcp-developer2Вручную: положить файлы
.github/skills/mcp-developer/SKILL.md1Через Skills CLI (Vercel)
npx skills add Jeffallan/claude-skills --skill mcp-developer -a gemini-cli2Командой платформы
gemini skills install https://github.com/Jeffallan/claude-skills --path skills/mcp-developerВручную: положить файлы
.devin/skills/mcp-developer/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add Jeffallan/claude-skills --skill mcp-developer -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Из того же набора61
Весь набор →Похожие
Вопросы о mcp-developer
Как установить mcp-developer в Claude Code?
Выполните npx skills add Jeffallan/claude-skills --skill mcp-developer -a claude-code. Файл скилла окажется в ~/.claude/skills/mcp-developer/SKILL.md.
Что делает mcp-developer?
Помогает агенту писать MCP-серверы и клиенты: определяет схемы инструментов и ресурсов, настраивает транспорт, проверяет соответствие протоколу JSON-RPC 2.0 и подсказывает, как оформить ошибки.
Какие транспорты разбирает скилл?
stdio, HTTP и SSE. В примерах сервер запускается через stdio, остальные варианты описаны в справочниках по протоколу и SDK.
Исходный текст
SKILL.md · MIT
---
name: mcp-developer
description: Use when building, debugging, or extending MCP servers or clients that connect AI systems with external tools and data sources. Invoke to implement tool handlers, configure resource providers, set up stdio/HTTP/SSE transport layers, validate schemas with Zod or Pydantic, debug protocol compliance issues, or scaffold complete MCP server/client projects using TypeScript or Python SDKs.
license: MIT
metadata:
author: https://github.com/Jeffallan
company: https://synergetic.solutions
version: "1.1.0"
domain: api-architecture
triggers: MCP, Model Context Protocol, MCP server, MCP client, Claude integration, AI tools, context protocol, JSON-RPC
role: specialist
scope: implementation
output-format: code
related-skills: fastapi-expert, typescript-pro, security-reviewer, devops-engineer
---
# MCP Developer
Senior MCP (Model Context Protocol) developer with deep expertise in building servers and clients that connect AI systems with external tools and data sources.
## Core Workflow
1. **Analyze requirements** — Identify data sources, tools needed, and client apps
2. **Initialize project** — `npx @modelcontextprotocol/create-server my-server` (TypeScript) or `pip install mcp` + scaffold (Python)
3. **Design protocol** — Define resource URIs, tool schemas (Zod/Pydantic), and prompt templates
4. **Implement** — Register tools and resource handlers; configure transport (stdio/SSE/HTTP)
5. **Test** — Run `npx @modelcontextprotocol/inspector` to verify protocol compliance interactively; confirm tools appear, schemas accept valid inputs, and error responses are well-formed JSON-RPC 2.0. **Feedback loop:** if schema validation fails → inspect Zod/Pydantic error output → fix schema definition → re-run inspector. If a tool call returns a malformed response → check transport serialisation → fix handler → re-test.
6. **Deploy** — Package, add auth/rate-limiting, configure env vars, monitor
## Reference Guide
Load detailed guidance based on context:
| Topic | Reference | Load When |
|-------|-----------|-----------|
| Protocol | `references/protocol.md` | Message types, lifecycle, JSON-RPC 2.0 |
| TypeScript SDK | `references/typescript-sdk.md` | Building servers/clients in Node.js |
| Python SDK | `references/python-sdk.md` | Building servers/clients in Python |
| Tools | `references/tools.md` | Tool definitions, schemas, execution |
| Resources | `references/resources.md` | Resource providers, URIs, templates |
## Minimal Working Example
### TypeScript — Tool with Zod Validation
```typescript
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.1.0" });
// Register a tool with validated input schema
server.tool(
"get_weather",
"Fetch current weather for a location",
{
location: z.string().min(1).describe("City name or coordinates"),
units: z.enum(["celsius", "fahrenheit"]).default("celsius"),
},
async ({ location, units }) => {
// Implementation: call external API, transform response
const data = await fetchWeather(location, units); // your fetch logic
return {
content: [{ type: "text", text: JSON.stringify(data) }],
};
}
);
// Register a resource provider
server.resource(
"config://app",
"Application configuration",
async (uri) => ({
contents: [{ uri: uri.href, text: JSON.stringify(getConfig()), mimeType: "application/json" }],
})
);
const transport = new StdioServerTransport();
await server.connect(transport);
```
### Python — Tool with Pydantic Validation
```python
from mcp.server.fastmcp import FastMCP
from pydantic import BaseModel, Field
mcp = FastMCP("my-server")
class WeatherInput(BaseModel):
location: str = Field(..., min_length=1, description="City name or coordinates")
units: str = Field("celsius", pattern="^(celsius|fahrenheit)$")
@mcp.tool()
async def get_weather(location: str, units: str = "celsius") -> str:
"""Fetch current weather for a location."""
data = await fetch_weather(location, units) # your fetch logic
return str(data)
@mcp.resource("config://app")
async def app_config() -> str:
"""Expose application configuration as a resource."""
return json.dumps(get_config())
if __name__ == "__main__":
mcp.run() # defaults to stdio transport
```
**Expected tool call flow:**
```
Client → { "method": "tools/call", "params": { "name": "get_weather", "arguments": { "location": "Berlin" } } }
Server → { "result": { "content": [{ "type": "text", "text": "{\"temp\": 18, \"units\": \"celsius\"}" }] } }
```
## Constraints
### MUST DO
- Implement JSON-RPC 2.0 protocol correctly
- Validate all inputs with schemas (Zod/Pydantic)
- Use proper transport mechanisms (stdio/HTTP/SSE)
- Implement comprehensive error handling
- Add authentication and authorization
- Log protocol messages for debugging
- Test protocol compliance thoroughly
- Document server capabilities
### MUST NOT DO
- Skip input validation on tool inputs
- Expose sensitive data in resource content
- Ignore protocol version compatibility
- Mix synchronous code with async transports
- Hardcode credentials or secrets
- Return unstructured errors to clients
- Deploy without rate limiting
- Skip security controls
## Output Templates
When implementing MCP features, provide:
1. Server/client implementation file
2. Schema definitions (tools, resources, prompts)
3. Configuration file (transport, auth, etc.)
4. Brief explanation of design decisions
Maintained by [@jeffallan](https://github.com/jeffallan), Principal Consultant at [Synergetic Solutions](https://synergetic.solutions)
[Documentation](https://jeffallan.github.io/claude-skills/skills/api-architecture/mcp-developer/)
© https://github.com/Jeffallan · MIT · Jeffallan/claude-skills