Class McpProducer

Assembly: redb.Route.Llm.Mcp.dll

MCP producer — translates an exchange into an MCP tools/call RPC.
The exchange body is interpreted as JSON arguments; the result's
content[] array is serialized back to a JSON string in
.

public sealed class McpProducer : IProducer, IProcessor

Inheritance

Object→McpProducer

Implements

Methods

Process(IExchange, CancellationToken)

Processes the exchange asynchronously.

public Task Process(IExchange exchange, CancellationToken ct = default)

Start(CancellationToken)

Starts the producer.

public Task Start(CancellationToken ct = default)

Stop(CancellationToken)

Stops the producer.

public Task Stop(CancellationToken ct = default)

Constructors