Class McpProducer
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
Implements
Methods
Process(IExchange, CancellationToken)
Processes the exchange asynchronously.
public Task Process(IExchange exchange, CancellationToken ct = default)
Constructors
McpProducer(McpEndpoint, McpEndpointOptions)
Creates a new MCP producer.