CommandMcpServe constructor

CommandMcpServe()

Implementation

CommandMcpServe() {
  argParser
    ..addOption(
      'http',
      help:
          'Serve over HTTP/SSE on the given port instead of stdio.\n'
          '(omit to use the stdio transport)',
      valueHelp: 'port',
    )
    ..addOption(
      'host',
      help: 'Host/interface to bind for --http.',
      defaultsTo: '127.0.0.1',
    );
  addWorkspaceOptions();
}