# X_MCP_SURFACE_INVALID

## Means

the MCP meta surface is declared inconsistently

## Typical cause

surface: 'meta' with no groups, or groups with a flat-only surface

## Fix

declare groups: together with surface: 'meta' (or a surface function) in defineAppMcp, or drop both

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