build-clean-mcp-architecture
Installation
SKILL.md
Apply Clean MCP Architecture
Architectural standard for TypeScript MCP servers built with mcp-use/server. Decides where files live, what each layer may import, what bootstrap wires, and how the discipline is enforced. Mechanical recipes (exact APIs, auth, transports, widgets) live in build-mcp-use-server.
When to use this skill
Trigger on phrases or contexts like:
- "where should this tool / gateway / presenter / port live?"
- "refactor this monolithic
src/tools/*.tsinto clean layers" - "audit this MCP server's architecture" / "PR review for layering"
- "set up
dependency-cruiserfor an mcp-use server" - "why is
mcp-useimported fromdomain/orapplication/?" - "scaffold a greenfield
mcp-use/serverrepo with proper folders" - "
process.envis being read all over the codebase — fix the seam" - "design ports, adapters, and provider error classification"
Do NOT use this skill when: