Path: redb-route/redb.Route.Llm.Mcp/McpEndpointOptions.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/McpEndpointOptions.cs ---- using redb.Route.Core; namespace redb.Route.Llm.Mcp; /// /// Endpoint options for the mcp:// scheme. The URI parser maps /// mcp://serverName/toolName to + . /// Optional ?callTimeoutMs=30000 (milliseconds) overrides the per-call timeout. /// public sealed class McpEndpointOptions : EndpointOptions { /// Logical MCP server name (registry key set by AddMcpServer). public string ServerName { get; set; } = ""; /// Server-side tool name (raw name as returned by tools/list). public string ToolName { get; set; } = ""; /// Per-call timeout in milliseconds. Default 60s. 0 = no client-side timeout. public int CallTimeoutMs { get; set; } = 60_000; /// public override void Validate() { if (string.IsNullOrWhiteSpace(ServerName)) throw new InvalidOperationException("mcp:// URI requires a server name (mcp://serverName/toolName)."); if (string.IsNullOrWhiteSpace(ToolName)) throw new InvalidOperationException("mcp:// URI requires a tool name (mcp://serverName/toolName)."); if (CallTimeoutMs < 0) throw new ArgumentOutOfRangeException(nameof(CallTimeoutMs), "CallTimeoutMs must be non-negative."); } }