UNPKG

@n8n/n8n-nodes-langchain

Version:
55 lines (48 loc) • 1.89 kB
/** * MCP Server Trigger Node - Version 1.1 * Expose n8n tools as an MCP Server endpoint */ export interface LcMcpTriggerV11Params { /** * The way to authenticate * @builderHint Default to 'none'. n8n exposes inbound trigger URLs publicly by design. Only select an authentication method when the user explicitly asks to authenticate inbound traffic. * @default none */ authentication?: 'none' | 'bearerAuth' | 'headerAuth' | Expression<string>; /** * Whether the triggering user must also have permission to execute the workflow in the project it belongs to * @displayOptions.show { authentication: ["n8nOAuth2"] } * @default true */ requireExecuteAccess?: boolean | Expression<boolean>; /** * The identity provider whose access tokens can call this MCP server * @loadOptionsMethod listTrustedSources * @displayOptions.show { authentication: ["n8nOAuth2"] } * @default n8n-internal */ trustedSource?: string; /** * The base path for this MCP server */ path: string | Expression<string>; /** * Sent to MCP clients when they connect. Clients that support server instructions typically add them to the model's system prompt — use for guidance that spans multiple tools, such as tool-choice rules or multi-step workflows. */ instructions?: string | Expression<string>; } export interface LcMcpTriggerV11SubnodeConfig { tools?: ToolInstance[]; } export interface LcMcpTriggerV11Credentials { httpBearerAuth: CredentialReference; httpHeaderAuth: CredentialReference; } interface LcMcpTriggerV11NodeBase { type: '@n8n/n8n-nodes-langchain.mcpTrigger'; version: 1.1; } export type LcMcpTriggerV11ParamsNode = LcMcpTriggerV11NodeBase & { config: NodeConfig<LcMcpTriggerV11Params> & { credentials?: LcMcpTriggerV11Credentials } & { subnodes?: LcMcpTriggerV11SubnodeConfig }; }; export type LcMcpTriggerV11Node = LcMcpTriggerV11ParamsNode;