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