@n8n/n8n-nodes-langchain
Version:
69 lines (63 loc) • 1.98 kB
text/typescript
/**
* MCP Client Tool Node - Version 1.3
* Connect tools from an MCP Server
*/
export interface LcMcpClientToolV13Params {
/**
* Endpoint of your MCP server
*/
endpointUrl: string | Expression<string>;
/**
* 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 LcMcpClientToolV13Credentials {
httpBearerAuth: CredentialReference;
httpHeaderAuth: CredentialReference;
mcpOAuth2Api: CredentialReference;
httpMultipleHeadersAuth: CredentialReference;
}
interface LcMcpClientToolV13NodeBase {
type: '@n8n/n8n-nodes-langchain.mcpClientTool';
version: 1.3;
}
export type LcMcpClientToolV13ParamsNode = LcMcpClientToolV13NodeBase & {
config: NodeConfig<LcMcpClientToolV13Params> & { credentials?: LcMcpClientToolV13Credentials };
};
export type LcMcpClientToolV13Node = LcMcpClientToolV13ParamsNode;