# X_MCP_INCLUDE_EARLY

## Means

include: 'exposed' projected before the scan registered every exposed primitive

## Typical cause

an mcp endpoint built with include: 'exposed' at the top level of a module the boot scan evaluates before the app's actions and queries — an apps/<app>/{app,site,api,shared}/ file — so its catalog froze without them

## Fix

`move the defineAppMcp / adminMcp call into apps/<app>/mcp.ts at module scope — the boot scan evaluates that file after every apps/*/{site,app,api,shared} module`

[MCP and AI](/error-codes#mcp-and-ai)
