UNPKG

n8n

Version:

n8n Workflow Automation Tool

27 lines (26 loc) 1.22 kB
import { ModuleRegistry } from '@n8n/backend-common'; import { GlobalConfig } from '@n8n/config'; import type { User } from '@n8n/db'; import type { ProtectedResource } from '../../services/protected-resource.registry'; import { UrlService } from '../../services/url.service'; import { McpConfig } from './mcp.config'; import { McpSettingsService } from './mcp.settings.service'; export declare const SUPPORTED_SCOPES: string[]; export declare class McpProtectedResource implements ProtectedResource { private readonly urlService; private readonly mcpSettingsService; private readonly mcpConfig; private readonly globalConfig; private readonly moduleRegistry; readonly id = "instance-mcp"; readonly isDefault = true; constructor(urlService: UrlService, mcpSettingsService: McpSettingsService, mcpConfig: McpConfig, globalConfig: GlobalConfig, moduleRegistry: ModuleRegistry); get scopes(): string[]; getScopeTools(): Record<string, string[]>; getResourceUrl(): string; getProtectedResourceMetadataUrl(): string; getResourceUrls(): string[]; getAudiences(): string[]; getAllowedRedirectUris(): Promise<string[]>; authorize(_user: User): Promise<boolean>; }