Skip to main content

Definition

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

Syntax

Microsoft.OData.Mcp.Core.Routing.McpRouteEntry

Summary

Represents an MCP route entry with its associated OData information.

Constructors

.ctor

Syntax

public McpRouteEntry()

.ctor Inherited

Inherited from object

Syntax

public Object()

Properties

CustomMcpPath

Gets the custom MCP path if one was specified.

Syntax

public string CustomMcpPath { get; init; }

Property Value

Type: string?

IsExplicit

Gets a value indicating whether this route was explicitly registered.

Syntax

public bool IsExplicit { get; init; }

Property Value

Type: bool

McpBasePath

Gets the base path for MCP endpoints (e.g., “/api/v1/mcp”).

Syntax

public required string McpBasePath { get; init; }

Property Value

Type: string

Metadata

Gets additional metadata about this route.

Syntax

public System.Collections.Generic.Dictionary<string, object> Metadata { get; init; }

Property Value

Type: System.Collections.Generic.Dictionary<string, object>

ODataRoutePrefix

Gets the OData route prefix (e.g., “api/v1”, “odata”, or empty for root).

Syntax

public required string ODataRoutePrefix { get; init; }

Property Value

Type: string

RouteName

Gets the name of the OData route.

Syntax

public required string RouteName { get; init; }

Property Value

Type: string

Methods

Equals Inherited Virtual

Inherited from object

Syntax

public virtual bool Equals(object obj)

Parameters

NameTypeDescription
objobject?-

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

public static bool Equals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

public virtual int GetHashCode()

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

public System.Type GetType()

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

protected internal object MemberwiseClone()

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

public static bool ReferenceEquals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

public virtual string ToString()

Returns

Type: string?