Class McpComponent

Assembly: redb.Route.Llm.Mcp.dll

MCP component. Scheme: mcp. Endpoint URI: mcp://serverName/toolName.
Producer-only — invokes tools/call on the named MCP server.

[EndpointRole(EndpointRole.Producer, Hint = "MCP servers are invoked through tools/call from the agent loop.")]
public sealed class McpComponent : ComponentBase, IComponent, IAsyncDisposable

Inheritance

Object→ComponentBase→McpComponent

Implements

Inherited Members

Properties

Scheme

The URI scheme this component handles (e.g., "kafka", "rabbitmq").

public override string Scheme { get; }

Methods

CreateEndpoint(EndpointUri)

Creates an endpoint from a parsed URI.

public override IEndpoint CreateEndpoint(EndpointUri uri)

Constructors

McpComponent()

Creates the component over the MCP client registry its context holds, looked up when the first endpoint is

McpComponent(IMcpRegistry)

Creates the component over the given MCP client registry.