Path: redb-route/redb.Route.Llm.Mcp/McpEndpoint.cs Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.Llm.Mcp/McpEndpoint.cs ---- using redb.Route.Abstractions; using redb.Route.Core; namespace redb.Route.Llm.Mcp; /// /// MCP endpoint — a single (server, tool) coordinate. Producer-only. /// public sealed class McpEndpoint : EndpointBase { /// Creates a new MCP endpoint. /// Parsed URI. /// Owning component. /// Endpoint options. public McpEndpoint(EndpointUri uri, McpComponent component, McpEndpointOptions options) : base(uri, component, options) { } /// The MCP server registry, resolved from the parent component. internal IMcpRegistry Registry => ((McpComponent)Component).Registry; /// Logical server name from the URI path. public string ServerName => Options.ServerName; /// Server-side tool name from the URI path. public string ToolName => Options.ToolName; /// public override IProducer CreateProducer() => new McpProducer(this, Options); /// public override IConsumer CreateConsumer(IProcessor processor) => throw new NotSupportedException( "mcp:// is producer-only. MCP servers are invoked via tools/call from the agent loop."); }