McpConfig constructor

McpConfig({
  1. bool enable = false,
  2. int? port,
})

Creates an MCP configuration.

When enable is true, spry serve starts an MCP HTTP endpoint alongside the dev server so AI agents can inspect the project.

Implementation

factory McpConfig({
  bool enable = false,
  int? port,
}) => McpConfig._({
  'enable': enable,
  'port': ?port,
});