d365-agent-mcpserver-dotnet

d365-agent-mcpserver-dotnet

1

The Dynamics 365 AI Agent MCP Server project provides a .NET Core-based server for implementing and executing MCP tools related to Dynamics 365 operations, interacting securely with D365 OData API through standardized protocols.

Dynamics 365 AI Agent - D365 MCP Server (.NET)\n\nThis project contains the .NET Core implementation of the Dynamics 365 Model Context Protocol (MCP) Server. It functions as a gateway to Dynamics 365 by handling MCP tool execution requests, translating them into operations against the D365 OData API.\n\n## Key Features & Responsibilities\n\n- Implements MCP tools for various Dynamics 365 operations.\n- Interacts with D365 OData using a type-safe C# client.\n- Manages secure authentication via Azure Key Vault.\n- Supports multi-instance requests handling.\n- Standardized interface for MCP-compliant clients.\n- Provides robust error handling and communicates errors via standardized responses.\n- Packaged as a Docker container for deployment in Azure services.\n\n## Technology Stack\n\n- .NET Core / ASP.NET Core\n- C#\n- D365 Agent C# MCP SDK\n- Generated D365 OData Client\n- MSAL.NET for Azure AD authentication.\n\n## Interaction Flow\n\n1. Receives MCP CallTool requests.\n2. Identifies and validates requested tool parameters.\n3. Performs required operations with D365 OData API.\n4. Sends McpResponse back to the orchestrator.