methodScopes constant

Map<String, List<String>> const methodScopes

Methods that require specific scopes

Implementation

static const Map<String, List<String>> methodScopes = {
  McpProtocol.methodCallTool: ['tools:execute'],
  McpProtocol.methodListTools: ['tools:read'],
  McpProtocol.methodListResources: ['resources:read'],
  McpProtocol.methodReadResource: ['resources:read'],
  McpProtocol.methodListPrompts: ['prompts:read'],
  McpProtocol.methodGetPrompt: ['prompts:read'],
  McpProtocol.methodComplete: ['completion:create'],
};