{
  "openapi": "3.1.0",
  "info": {
    "title": "ALM XPP MCP -- D365 AI Agent",
    "version": "1.0.0",
    "description": "MCP (Model Context Protocol) server for Dynamics 365 F\u0026O. Provides 90\u002B AI tools: code search, X\u002B\u002B generation, DevOps integration, security tracing, upgrade impact analysis.",
    "contact": {
      "email": "alim@almxpp.com"
    }
  },
  "servers": [
    {
      "url": "https://www.almxpp.com",
      "description": "ALM XPP MCP Cloud"
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "paths": {
    "/mcp": {
      "post": {
        "operationId": "mcp_call",
        "summary": "MCP Streamable HTTP transport",
        "description": "Send a JSON-RPC 2.0 MCP request. On first call send \u0060{\u0022method\u0022:\u0022initialize\u0022,\u0022params\u0022:{\u0022protocolVersion\u0022:\u00222024-11-05\u0022,\u0022clientInfo\u0022:{\u0022name\u0022:\u0022CopilotStudio\u0022,\u0022version\u0022:\u00221\u0022},\u0022capabilities\u0022:{}},\u0022id\u0022:1,\u0022jsonrpc\u0022:\u00222.0\u0022}\u0060. The transport is stateless: no session token is issued, so send your API token on every request. Pass your DevOps headers: DEVOPS_ORG_URL, DEVOPS_PAT, DEVOPS_PROJECT for Azure DevOps tools.",
        "requestBody": {
          "required": true,
          "content": {
            "application_json": {
              "schema": {
                "type": "object",
                "properties": {
                  "jsonrpc": {
                    "type": "string",
                    "example": "2.0"
                  },
                  "method": {
                    "type": "string",
                    "example": "tools/call"
                  },
                  "id": {
                    "type": "integer",
                    "example": 1
                  },
                  "params": {
                    "type": "object"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "_200": {
            "description": "MCP JSON-RPC response (text/event-stream for SSE or application/json)"
          },
          "_401": {
            "description": "Invalid or missing API token"
          },
          "_429": {
            "description": "Rate limit exceeded"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    },
    "/api/config/mcp-url": {
      "get": {
        "operationId": "get_mcp_url",
        "summary": "Returns the MCP server URL for this instance",
        "responses": {
          "_200": {
            "description": "MCP URL",
            "content": {
              "application_json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "API token from almxpp.com dashboard",
        "description": "Get your API token at https://almxpp.com/account/dashboard. Pass it as: \u0060Authorization: Bearer mcp-\u003Cyour-token\u003E\u0060 OR as header \u0060X-API-Key: mcp-\u003Cyour-token\u003E\u0060."
      }
    }
  }
}