Skip to main content

Definition

Assembly: Microsoft.OData.Mcp.Core.dll Namespace: Microsoft.OData.Mcp.Core.Routing

Syntax

Summary

Manages the registration and discovery of MCP endpoints.

Methods

GetAllEndpoints Abstract

Gets all registered endpoints.

Syntax

Returns

Type: System.Collections.Generic.IEnumerable<Microsoft.OData.Mcp.Core.Routing.McpRouteEntry> A collection of all registered endpoints.

GetMcpUrl Abstract

Gets the MCP URL for a given OData route.

Syntax

Parameters

Returns

Type: string? The MCP URL, or null if not found.

HasEndpoint Abstract

Checks if a route has an MCP endpoint registered.

Syntax

Parameters

Returns

Type: bool True if the route has an MCP endpoint; otherwise, false.

Register Abstract

Registers an MCP endpoint.

Syntax

Parameters

TryGetEndpoint Abstract

Attempts to get an endpoint by path.

Syntax

Parameters

Returns

Type: bool True if an endpoint was found; otherwise, false.