Architecture docs and patterns for NestJS + Nuxt full-stack apps
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Inspect callable tools, capabilities, and parameters exposed to AI agents by CleanSlice.
get-startedReturns the essential CleanSlice rules and conventions. **Call this first.
list-categoriesLists all documentation categories available for search filtering
searchSearch docs by query, category, framework, phase, or tags. Returns **snippets** (keyword-in-context excerpts) and document paths
read-docRead the full content of a specific document by path. Use after `search` to get complete docs
MCP (Model Context Protocol) server that gives AI coding agents access to the CleanSlice architecture documentation. Connect it to Claude, Cursor, Windsurf, or any MCP-compatible client so the AI knows how to build apps using CleanSlice conventions.
Run this command. See Claude Code MCP docs for more info.
Remove
--scope userto install for the current project only.
Tip: enforce MCP usage with CLAUDE.md
To make sure Claude Code always consults the CleanSlice MCP before writing any code, add the following to your project's CLAUDE.md:
This ensures the agent reads CleanSlice docs at the start of every task, not after the fact.
Optional: add a Stop hook as a safety net
To catch cases where the agent skips the MCP despite the CLAUDE.md instruction, add this to .claude/settings.json:
Go to: Settings -> Cursor Settings -> MCP -> Add new global MCP server
Paste the following into your Cursor ~/.cursor/mcp.json file. You may also install in a specific project by creating .cursor/mcp.json in your project folder. See Cursor MCP docs for more info.
Tip: enforce MCP usage with a Cursor rule
Create .cursor/rules/cleanslice.mdc in your project to make Cursor always consult the MCP before writing code:
Add to your Windsurf MCP config file. See Windsurf MCP docs for more info.
Tip: enforce MCP usage with a Windsurf rule
Create .windsurf/rules/cleanslice.md in your project to make Windsurf always consult the MCP before writing code:
Add to .vscode/mcp.json in your project. See VS Code MCP docs for more info.
Tip: enforce MCP usage with Copilot instructions
Create .github/copilot-instructions.md in your project root to make Copilot always consult the MCP before writing code:
Add to your claude_desktop_config.json. See Claude Desktop MCP docs for more info.
Add this to your Opencode configuration file. See Opencode MCP docs for more info.
Tip: enforce MCP usage with AGENTS.md
Create AGENTS.md in your project root to make Opencode always consult the MCP before writing code:
Then point your MCP client to http://localhost:8080/mcp.
| Tool | Description |
|---|---|
get-started | Returns the essential CleanSlice rules and conventions. Call this first. |
list-categories | Lists all documentation categories available for search filtering |
search | Search docs by query, category, framework, phase, or tags. Returns snippets (keyword-in-context excerpts) and document paths |
read-doc | Read the full content of a specific document by path. Use after search to get complete docs |
The search tool returns 1-3 keyword-in-context snippets per result instead of full document content. This keeps responses compact (~3-5K instead of ~95K) while showing the most relevant sections. Use read-doc with the path from search results to fetch the complete document when needed.
| Variable | Default | Description |
|---|---|---|
PORT | 8080 | Server port |
NODE_ENV | - | Set to dev for debug/verbose logging |
DOCS_PATH | Auto-discover | Path to bundled docs directory |
GITHUB_REPO | CleanSlice/docs | Fallback GitHub repo for docs |
GITHUB_BRANCH | main | GitHub branch to fetch from |
GITHUB_TOKEN | - | GitHub token (optional, for higher rate limits) |
GITHUB_CACHE_TTL | 3600 | GitHub content cache TTL in seconds |
CORS_ORIGIN | * | Allowed CORS origin(s) |
| Endpoint | Description |
|---|---|
GET /sse | SSE transport (for Claude Desktop, Cursor) |
POST /messages | SSE message handler |
POST /mcp | Streamable HTTP transport |
GET /health | Health check |
GET /api | Swagger docs |
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/cleanslice)<a href="https://allmcps.com/mcp/cleanslice"><img src="https://allmcps.com/api/badge/cleanslice?style=directory" alt="CleanSlice on AllMCPs" /></a>