Skip to main content
MCP client component for Model Context Protocol services. This component provides access to MCP servers for tool calling and context management, enabling integration with external tools and services through the MCP protocol. Remarks This component does not require API key injection by the builder. Example
const mcpComponent = new MCPClientComponent({
  sessionConfig: {
    serverPath: '/path/to/mcp-server',
    serverArgs: ['--config', 'config.json'],
    timeout: 30000
  }
});

Constructor

new MCPClientComponent(props: MCPClientComponentProps): MCPClientComponent
Creates a new MCPClientComponent instance. The provided camelCase sessionConfig is converted to snake_case when generating the runtime configuration.

Parameters

props
MCPClientComponentProps
required
Configuration for the MCP client component

Returns

A new MCPClientComponent instance

Overrides

AbstractComponent.constructor