@n8n/n8n-nodes-langchain
Version:

71 lines (65 loc) • 2.02 kB
text/typescript
/**
* MCP Client Tool Node - Version 1.2
* Connect tools from an MCP Server
*/
export interface LcMcpClientToolV12Params {
/**
* Endpoint of your MCP server
*/
endpointUrl: string | Expression<string> | PlaceholderValue;
/**
* The transport used by your endpoint
* @default httpStreamable
*/
serverTransport?: 'httpStreamable' | 'sse' | Expression<string>;
/**
* The way to authenticate with your endpoint
* @default none
*/
authentication?: 'bearerAuth' | 'headerAuth' | 'mcpOAuth2Api' | 'multipleHeadersAuth' | 'none' | Expression<string>;
/**
* How to select the tools you want to be exposed to the AI Agent
* @default all
*/
include?: 'all' | 'selected' | 'except' | Expression<string>;
/**
* Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>
* @loadOptionsMethod getTools
* @displayOptions.show { include: ["selected"] }
* @default []
*/
includeTools?: string[];
/**
* Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>
* @loadOptionsMethod getTools
* @displayOptions.show { include: ["except"] }
* @default []
*/
excludeTools?: string[];
/**
* Additional options to add
* @default {}
*/
options?: {
/** Time in ms to wait for tool calls to finish
* @default 60000
*/
timeout?: number | Expression<number>;
};
}
export interface LcMcpClientToolV12Credentials {
httpBearerAuth: CredentialReference;
httpHeaderAuth: CredentialReference;
mcpOAuth2Api: CredentialReference;
httpMultipleHeadersAuth: CredentialReference;
}
interface LcMcpClientToolV12NodeBase {
type: '@n8n/n8n-nodes-langchain.mcpClientTool';
version: 1.2;
credentials?: LcMcpClientToolV12Credentials;
isTrigger: true;
}
export type LcMcpClientToolV12ParamsNode = LcMcpClientToolV12NodeBase & {
config: NodeConfig<LcMcpClientToolV12Params>;
};
export type LcMcpClientToolV12Node = LcMcpClientToolV12ParamsNode;