{"data":{"slug":"discovered-aff0c8c6ff71cc0790a48898ed9e14fc19fdaf7c92c42087","title":"MCP Developer","summary":"Build, debug, or extend MCP servers or clients that connect AI systems with external tools and data sources. Deliverables include implementing tool handlers, configuring resource providers, setting up transport layers, validating schemas, and scaffolding complete MCP server\/client projects using TypeScript or Python SDKs.","url":"https:\/\/skillshunter.net\/skills\/discovered-aff0c8c6ff71cc0790a48898ed9e14fc19fdaf7c92c42087","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-aff0c8c6ff71cc0790a48898ed9e14fc19fdaf7c92c42087","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-aff0c8c6ff71cc0790a48898ed9e14fc19fdaf7c92c42087.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-aff0c8c6ff71cc0790a48898ed9e14fc19fdaf7c92c42087\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Initialize project with `npx @modelcontextprotocol\/create-server my-server` (TypeScript) or `pip install mcp` + scaffold (Python). Implement JSON-RPC 2.0 protocol correctly and validate all inputs with schemas (Zod\/Pydantic).","instructions":"---\nname: mcp-developer\ndescription: 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.\nlicense: MIT\nmetadata:\n  author: https:\/\/github.com\/Jeffallan\n  company: https:\/\/synergetic.solutions\n  version: \"1.1.0\"\n  domain: api-architecture\n  triggers: MCP, Model Context Protocol, MCP server, MCP client, Claude integration, AI tools, context protocol, JSON-RPC\n  role: specialist\n  scope: implementation\n  output-format: code\n  related-skills: fastapi-expert, typescript-pro, security-reviewer, devops-engineer\n---\n\n# MCP Developer\n\nSenior MCP (Model Context Protocol) developer with deep expertise in building servers and clients that connect AI systems with external tools and data sources.\n\n## Core Workflow\n\n1. **Analyze requirements** \u2014 Identify data sources, tools needed, and client apps\n2. **Initialize project** \u2014 `npx @modelcontextprotocol\/create-server my-server` (TypeScript) or `pip install mcp` + scaffold (Python)\n3. **Design protocol** \u2014 Define resource URIs, tool schemas (Zod\/Pydantic), and prompt templates\n4. **Implement** \u2014 Register tools and resource handlers; configure transport (stdio\/SSE\/HTTP)\n5. **Test** \u2014 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 \u2192 inspect Zod\/Pydantic error output \u2192 fix schema definition \u2192 re-run inspector. If a tool call returns a malformed response \u2192 check transport serialisation \u2192 fix handler \u2192 re-test.\n6. **Deploy** \u2014 Package, add auth\/rate-limiting, configure env vars, monitor\n\n## Reference Guide\n\nLoad detailed guidance based on context:\n\n| Topic | Reference | Load When |\n|-------|-----------|-----------|\n| Protocol | `references\/protocol.md` | Message types, lifecycle, JSON-RPC 2.0 |\n| TypeScript SDK | `references\/typescript-sdk.md` | Building servers\/clients in Node.js |\n| Python SDK | `references\/python-sdk.md` | Building servers\/clients in Python |\n| Tools | `references\/tools.md` | Tool definitions, schemas, execution |\n| Resources | `references\/resources.md` | Resource providers, URIs, templates |\n\n## Minimal Working Example\n\n### TypeScript \u2014 Tool with Zod Validation\n\n```typescript\nimport { McpServer } from \"@modelcontextprotocol\/sdk\/server\/mcp.js\";\nimport { StdioServerTransport } from \"@modelcontextprotocol\/sdk\/server\/stdio.js\";\nimport { z } from \"zod\";\n\nconst server = new McpServer({ name: \"my-server\", version: \"1.1.0\" });\n\n\/\/ Register a tool with validated input schema\nserver.tool(\n  \"get_weather\",\n  \"Fetch current weather for a location\",\n  {\n    location: z.string().min(1).describe(\"City name or coordinates\"),\n    units: z.enum([\"celsius\", \"fahrenheit\"]).default(\"celsius\"),\n  },\n  async ({ location, units }) => {\n    \/\/ Implementation: call external API, transform response\n    const data = await fetchWeather(location, units); \/\/ your fetch logic\n    return {\n      content: [{ type: \"text\", text: JSON.stringify(data) }],\n    };\n  }\n);\n\n\/\/ Register a resource provider\nserver.resource(\n  \"config:\/\/app\",\n  \"Application configuration\",\n  async (uri) => ({\n    contents: [{ uri: uri.href, text: JSON.stringify(getConfig()), mimeType: \"application\/json\" }],\n  })\n);\n\nconst transport = new StdioServerTransport();\nawait server.connect(transport);\n```\n\n### Python \u2014 Tool with Pydantic Validation\n\n```python\nfrom mcp.server.fastmcp import FastMCP\nfrom pydantic import BaseModel, Field\n\nmcp = FastMCP(\"my-server\")\n\nclass WeatherInput(BaseModel):\n    location: str = Field(..., min_length=1, description=\"City name or coordinates\")\n    units: str = Field(\"celsius\", pattern=\"^(celsius|fahrenheit)$\")\n\n@mcp.tool()\nasync def get_weather(location: str, units: str = \"celsius\") -> str:\n    \"\"\"Fetch current weather for a location.\"\"\"\n    data = await fetch_weather(location, units)  # your fetch logic\n    return str(data)\n\n@mcp.resource(\"config:\/\/app\")\nasync def app_config() -> str:\n    \"\"\"Expose application configuration as a resource.\"\"\"\n    return json.dumps(get_config())\n\nif __name__ == \"__main__\":\n    mcp.run()  # defaults to stdio transport\n```\n\n**Expected tool call flow:**\n```\nClient \u2192 { \"method\": \"tools\/call\", \"params\": { \"name\": \"get_weather\", \"arguments\": { \"location\": \"Berlin\" } } }\nServer \u2192 { \"result\": { \"content\": [{ \"type\": \"text\", \"text\": \"{\\\"temp\\\": 18, \\\"units\\\": \\\"celsius\\\"}\" }] } }\n```\n\n## Constraints\n\n### MUST DO\n- Implement JSON-RPC 2.0 protocol correctly\n- Validate all inputs with schemas (Zod\/Pydantic)\n- Use proper transport mechanisms (stdio\/HTTP\/SSE)\n- Implement comprehensive error handling\n- Add authentication and authorization\n- Log protocol messages for debugging\n- Test protocol compliance thoroughly\n- Document server capabilities\n\n### MUST NOT DO\n- Skip input validation on tool inputs\n- Expose sensitive data in resource content\n- Ignore protocol version compatibility\n- Mix synchronous code with async transports\n- Hardcode credentials or secrets\n- Return unstructured errors to clients\n- Deploy without rate limiting\n- Skip security controls\n\n## Output Templates\n\nWhen implementing MCP features, provide:\n1. Server\/client implementation file\n2. Schema definitions (tools, resources, prompts)\n3. Configuration file (transport, auth, etc.)\n4. Brief explanation of design decisions\n\nMaintained by [@jeffallan](https:\/\/github.com\/jeffallan), Principal Consultant at [Synergetic Solutions](https:\/\/synergetic.solutions)\n\n[Documentation](https:\/\/jeffallan.github.io\/claude-skills\/skills\/api-architecture\/mcp-developer\/)\n","use_cases":["Implement tool handlers for MCP servers and clients","Configure resource providers and transport layers (stdio\/HTTP\/SSE)","Validate inputs with Zod or Pydantic schemas","Debug protocol compliance issues","Scaffold complete MCP server\/client projects"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/Jeffallan\/claude-skills\/blob\/a8be463010e2ca23afe00ea00773aea7128e8971\/plugin\/skills\/mcp-developer\/SKILL.md","source_commit":"a8be463010e2ca23afe00ea00773aea7128e8971","license":null,"version":null,"listing_approved_at":"2026-11-29","created_at":"2026-11-28T18:47:26.000000Z","updated_at":"2026-11-29T10:53:27.000000Z","seo_title":"MCP Developer - Build and Extend MCP Servers and Clients","seo_description":"Develop and debug MCP servers and clients using TypeScript or Python SDKs. Implement JSON-RPC 2.0, validate inputs with Zod\/Pydantic, and configure transport layers forAI","seo_keywords":["MCP Developer","Model Context Protocol","MCP server","MCP client","JSON-RPC 2.0","Zod validation","Pydantic validation","TypeScript SDK"]}}