# MCP Server

> Build and use the Makerkit MCP server shipped in tooling/mcp-server.

*Canonical: https://makerkit.dev/docs/tanstack-prisma/installation/mcp-server*

---

Build the local MCP server with:

```bash
pnpm --filter "@kit/mcp-server" build
```

The repo already includes `.mcp.json` for tools that auto-detect MCP config.

## Current Tool Surface

The server currently registers tools/resources for:

- components
- scripts
- run checks
- database tools and resources
- environment variables
- prerequisites
- dev status
- mailbox/email helpers
- email templates
- translations
- dependency upgrade advice
- PRD management

See `tooling/mcp-server/src/index.ts` for the current registration list.

## Configure Other Tools

If your editor does not auto-detect `.mcp.json`, point it at the built entrypoint:

```text
tooling/mcp-server/build/index.js
```

## Rebuild After Changes

If you edit the MCP server source, rebuild it:

```bash
pnpm --filter "@kit/mcp-server" build
```

Then restart the AI tool session.
