createServer method

Future<String> createServer({
  1. required String name,
  2. required String version,
  3. dynamic capabilities,
  4. Map<String, dynamic>? options,
})

UNSUPPORTED ON WEB Create an MCP server

Implementation

Future<String> createServer({
  required String name,
  required String version,
  dynamic capabilities,
  Map<String, dynamic>? options,
}) async {
  _logger.fine('Server creation not supported on web platform');
  throw MCPPlatformNotSupportedException(
    'MCP Server creation is not supported on web platform',
    errorCode: 'WEB_SERVER_NOT_SUPPORTED',
  );
}