McpResponse.methodNotFound constructor

McpResponse.methodNotFound(
  1. Object id
)

Create a method not found error response

Implementation

factory McpResponse.methodNotFound(Object id) {
  return McpResponse.error(
    id,
    McpProtocol.errorMethodNotFound,
    'Method not found',
  );
}