Definition
Assembly: Microsoft.OData.Mcp.Core.dll Namespace: Microsoft.OData.Mcp.Core.RoutingSyntax
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
| Name | Type | Description |
|---|---|---|
routeName | string | The OData route name. |
command | System.Nullable<Microsoft.OData.Mcp.Core.Routing.McpCommand> | The MCP command (optional). |
Returns
Type:string?
The MCP URL, or null if not found.
HasEndpoint Abstract
Checks if a route has an MCP endpoint registered.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
routeName | string | The OData route name. |
Returns
Type:bool
True if the route has an MCP endpoint; otherwise, false.
Register Abstract
Registers an MCP endpoint.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
route | Microsoft.OData.Mcp.Core.Routing.McpRouteEntry | The route entry to register. |
TryGetEndpoint Abstract
Attempts to get an endpoint by path.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
path | string | The request path. |
route | Microsoft.OData.Mcp.Core.Routing.McpRouteEntry? | The matched route entry. |
command | Microsoft.OData.Mcp.Core.Routing.McpCommand | The MCP command. |
Returns
Type:bool
True if an endpoint was found; otherwise, false.