Skip to main content

Definition

Assembly: ModelContextProtocol.dll Namespace: Microsoft.Extensions.DependencyInjection

Syntax

Summary

This type is defined in ModelContextProtocol.

Methods

WithODataCatalogHandlers Extension

Extension method from Microsoft.Extensions.DependencyInjection.ODataMcp_Core_McpServerBuilderExtensions
Adds list/call/resource/complete handlers that resolve an ODataMcpSession per request.

Syntax

Parameters

Returns

Type: Microsoft.Extensions.DependencyInjection.IMcpServerBuilder The builder.

Exceptions

Examples

Remarks

tryHandleCallException exists so a host can recover from a failure Core has no vocabulary for — an outbound sign-in that needs a human, for instance — without Core learning anything about authentication: it is handed the exception and either answers the call or returns null, in which case the original exception propagates unchanged.