mcpBuilder function

Builder mcpBuilder(
  1. BuilderOptions options
)

Defines the build factory for the MCP annotation generators.

This uses SharedPartBuilder to combine the output of multiple generators into a single .mcp_generated.g.part file. The generated file will contain the necessary extensions and helper code based on the MCP annotations found in the source files.

Implementation

Builder mcpBuilder(BuilderOptions options) => SharedPartBuilder([
      McpToolGenerator(),
      McpPromptGenerator(),
    ], 'mcp_generated');