McpResponse.methodNotFound constructor
McpResponse.methodNotFound(
- Object id
Create a method not found error response
Implementation
factory McpResponse.methodNotFound(Object id) {
return McpResponse.error(
id,
McpProtocol.errorMethodNotFound,
'Method not found',
);
}