Skip to main content

Function: measureMcpSurface()

measureMcpSurface(__namedParameters): McpSurfaceReport

Defined in: mcpSurface.ts:81

Measures what an MCP server costs every session that connects to it: each tool's name, description and input schema, and the instructions.

It does not judge; checkMcpSurface compares the same numbers with a budget.

Parameters​

ParameterType
__namedParameters{ instructions?: string; tools: McpSurfaceTool[]; }
__namedParameters.instructions?string
__namedParameters.toolsMcpSurfaceTool[]

Returns​

McpSurfaceReport