Xeku.MCP 0.0.0.7

dotnet add package Xeku.MCP --version 0.0.0.7
                    
NuGet\Install-Package Xeku.MCP -Version 0.0.0.7
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Xeku.MCP" Version="0.0.0.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Xeku.MCP" Version="0.0.0.7" />
                    
Directory.Packages.props
<PackageReference Include="Xeku.MCP" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Xeku.MCP --version 0.0.0.7
                    
#r "nuget: Xeku.MCP, 0.0.0.7"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Xeku.MCP@0.0.0.7
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Xeku.MCP&version=0.0.0.7
                    
Install as a Cake Addin
#tool nuget:?package=Xeku.MCP&version=0.0.0.7
                    
Install as a Cake Tool

Xeku.MCP (Model Context Protocol for XAF)

Xeku.MCP is a bridge module for DevExpress XAF (eXpressApp Framework) that implements the Model Context Protocol (MCP). It allows AI Agents to discover and interact with your XAF Business Objects and custom actions through a standardized JSON-RPC 2.0 interface.

🚀 Key Features

  • Standard MCP Protocol: Support for resources/list, tools/list, and tools/call.
  • OData Native Proxy: Automatically delegates Create and Update operations to XAF's native OData engine for maximum compatibility, security, and complex business logic execution.
  • Recursive Mapping: Supports deep updates and master-detail relationships through nested JSON structures.
  • XAF Tracing Integration: Logs all bridge activity directly into the native XAF eXpressAppFramework.log.
  • Detailed Error Handling: Captures and returns granular ValidationException results to AI Agents for self-correction.

🏗️ Architecture

graph TD
    subgraph "Presentation (Blue)"
        B1["MCP Controller (API Port)"]:::blue
    end

    subgraph "Service/Logic (Yellow)"
        S1["McpDiscoveryService"]:::yellow
        S2["OData Proxy Engine"]:::yellow
        S3["JSON-RPC Dispatcher"]:::yellow
    end

    subgraph "Data/Entity (Green)"
        D1["XAF Business Objects"]:::green
        D2["ITypesInfo / DC"]:::green
    end

    subgraph "External/Native (Purple)"
        E1["Native XAF OData API"]:::purple
        E2["AI Agent (MCP Client)"]:::purple
    end

    E2 -->|JSON-RPC| B1
    B1 --> S3
    S3 --> S1
    S3 --> S2
    S1 --> D2
    S2 -->|Internal HTTP| E1
    E1 --> D1

    classDef blue fill:#e1f5ff,stroke:#01579b
    classDef yellow fill:#fff4e1,stroke:#f57f17
    classDef green fill:#e8f5e9,stroke:#1b5e20
    classDef purple fill:#f3e5f5,stroke:#4a148c

🤖 AI Agent Integration

Use Cases

  • Dynamic Data Entry: Agents can create complex Master-Detail records (e.g., An Order with multiple Items) in a single tool call.
  • Automated Workflows: Trigger custom XAF Actions defined on Business Objects.
  • Knowledge Discovery: Agents can scan BO metadata to understand available properties and capabilities.

API Integration

AI Agents interact with the bridge via:

  • POST /api/mcp/protocol: The main JSON-RPC endpoint for MCP clients.
  • GET /api/mcp/resources: REST endpoint for resource discovery.
  • GET /api/mcp/tools: REST endpoint for tool discovery.

Best Practices

  • Stability: Use the OData Proxy for complex data writes to ensure transaction integrity.
  • Error Handling: Monitor the ValidationFailed responses; Agents should be prompted to correct the specific fields mentioned in the Details array.

🛠️ Configuration

Register the MCP services in your Startup.cs:

public void ConfigureServices(IServiceCollection services) {
    // ...
    services.AddXekuMcp();
    services.AddHttpClient(); // Required for OData Proxy
}

📄 License

This module is part of the Xeku private framework.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Xeku.MCP:

Package Downloads
Xeku.MCP.WebApi

XAF Model Context Protocol (MCP) Bridge - WebApi Module

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.0.7 135 1/28/2026
0.0.0.6 124 1/21/2026
0.0.0.5 131 1/15/2026
0.0.0.4 130 1/13/2026