UNPKG

n8n

Version:

n8n Workflow Automation Tool

89 lines (88 loc) 5.16 kB
import { OutboundHttp, SsrfProtectionService } from '@n8n/backend-network'; import { SsrfProtectionConfig } from '@n8n/config'; import type { User } from '@n8n/db'; import { CredentialsService } from '../../../../credentials/credentials.service'; import { AgentConfigService } from '../../../../modules/agents/agent-config.service'; import { AgentCustomToolsService } from '../../../../modules/agents/agent-custom-tools.service'; import { AgentIntegrationManagementService } from '../../../../modules/agents/agent-integration-management.service'; import { AgentIntegrationPersistenceService } from '../../../../modules/agents/agent-integration-persistence.service'; import { AgentModelCatalogService } from '../../../../modules/agents/agent-model-catalog.service'; import { AgentPublishService } from '../../../../modules/agents/agent-publish.service'; import { AgentSkillsService } from '../../../../modules/agents/agent-skills.service'; import { AgentTaskService } from '../../../../modules/agents/agent-task.service'; import { AgentTestRunService } from '../../../../modules/agents/agent-test-run.service'; import { AgentValidationService } from '../../../../modules/agents/agent-validation.service'; import { AgentsService } from '../../../../modules/agents/agents.service'; import { AttachableWorkflowsService } from '../../../../modules/agents/attachable-workflows.service'; import { AgentSecureRuntime } from '../../../../modules/agents/runtime/agent-secure-runtime'; import { McpRegistryService } from '../../../../modules/mcp-registry/registry/mcp-registry.service'; import { NodeTypes } from '../../../../node-types'; import { OauthService } from '../../../../oauth/oauth.service'; import { ProjectScopeService } from '../../../../permissions.ee/project-scope.service'; import { UrlService } from '../../../../services/url.service'; import { Telemetry } from '../../../../telemetry'; import type { RegisterResourceFn, RegisterToolFn } from '../../mcp.types'; export declare class McpAgentToolsService { private readonly telemetry; private readonly credentialsService; private readonly agentsService; private readonly agentConfigService; private readonly agentValidationService; private readonly agentPublishService; private readonly agentSkillsService; private readonly agentTaskService; private readonly agentTestRunService; private readonly agentCustomToolsService; private readonly agentSecureRuntime; private readonly integrationPersistenceService; private readonly integrationManagementService; private readonly agentModelCatalogService; private readonly attachableWorkflowsService; private readonly mcpRegistryService; private readonly nodeTypes; private readonly oauthService; private readonly outboundHttp; private readonly ssrfConfig; private readonly ssrfProtectionService; private readonly urlService; private readonly projectScopeService; constructor(telemetry: Telemetry, credentialsService: CredentialsService, agentsService: AgentsService, agentConfigService: AgentConfigService, agentValidationService: AgentValidationService, agentPublishService: AgentPublishService, agentSkillsService: AgentSkillsService, agentTaskService: AgentTaskService, agentTestRunService: AgentTestRunService, agentCustomToolsService: AgentCustomToolsService, agentSecureRuntime: AgentSecureRuntime, integrationPersistenceService: AgentIntegrationPersistenceService, integrationManagementService: AgentIntegrationManagementService, agentModelCatalogService: AgentModelCatalogService, attachableWorkflowsService: AttachableWorkflowsService, mcpRegistryService: McpRegistryService, nodeTypes: NodeTypes, oauthService: OauthService, outboundHttp: OutboundHttp, ssrfConfig: SsrfProtectionConfig, ssrfProtectionService: SsrfProtectionService, urlService: UrlService, projectScopeService: ProjectScopeService); registerTools(registerTool: RegisterToolFn, registerResource: RegisterResourceFn, user: User, allowedToolNames?: Set<string>): void; private searchAgentsTool; private getAgentTool; private createAgentTool; private mutateAgentTool; private validateAgentTool; private callAgentTool; private publishAgentTool; private revertAgentTool; private listAgentVersionsTool; private unpublishAgentTool; private deleteAgentTool; private discoverAssetsTool; private verifyMcpServerTool; private updateIntegrationTool; private referenceTool; private getAgentSnapshot; private getAgentVersionSnapshot; private fetchConfigHash; private configFromEntity; private getAgentUrl; private callAgent; private applyMutation; private assertSanitizeStable; private assertPassesConfigGuards; private assertAccessibleCredentials; private setTaskEnabled; private validateAgent; private discoverAssets; private verifyMcpServer; private updateIntegration; private disconnectIntegration; private connectIntegration; private credentialProvider; private requireAccessibleCredential; private resolveAgent; private assertScope; private run; }