Skip to main content

Definition

Assembly: Microsoft.OData.Mcp.Core.dll Namespace: Microsoft.OData.Mcp.Core.Routing Inheritance: System.Object

Syntax

Summary

Default implementation of the MCP endpoint registry.

Remarks

This implementation is thread-safe and optimized for concurrent access during application startup when multiple OData routes may be registered simultaneously.

Constructors

.ctor

Initializes a new instance of the McpEndpointRegistry class.

Syntax

.ctor Inherited

Inherited from object

Syntax

Methods

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

GetAllEndpoints

Gets all registered endpoints.

Syntax

Returns

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

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetMcpUrl

Gets the MCP URL for a given OData route.

Syntax

Parameters

Returns

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

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

HasEndpoint

Checks if a route has an MCP endpoint registered.

Syntax

Parameters

Returns

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

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

Register

Registers an MCP endpoint.

Syntax

Parameters

Exceptions

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?

TryGetEndpoint

Attempts to get an endpoint by path.

Syntax

Parameters

Returns

Type: bool True if an endpoint was found; otherwise, false.
  • Microsoft.OData.Mcp.Core.Routing.IMcpEndpointRegistry