Skip to content

RIDDL MCP Server

The RIDDL MCP Server is a Model Context Protocol (MCP) server that enables AI assistants to reason about and generate RIDDL models. It provides validation, analysis, and suggestion tools that AI tools can use to help you build better domain models.

What is MCP?

The Model Context Protocol (MCP) is an open standard that allows AI assistants to connect to external tools and data sources. When you connect the RIDDL MCP Server to your AI assistant, it gains the ability to:

  • Validate RIDDL source code for syntax and semantic errors
  • Analyze model completeness and suggest missing elements
  • Explain error messages and provide fix recommendations
  • Check if models are ready for simulation
  • Map natural language domain descriptions to RIDDL structures

Capabilities

Available Tools

Tool Description
validate-text Validate RIDDL source code from text
validate-url Validate RIDDL from a URL (GitHub, web)
validate-partial Validate incomplete models (ignore undefined refs)
check-completeness Find missing elements with suggestions
check-simulability Verify model can run in riddlsim
map-domain-to-riddl Extract RIDDL structure from natural language
explain-error Get detailed explanations for validation errors
suggest-next Get recommendations for what to add next

Available Resources

Resource Description
riddl://grammar/ebnf Complete EBNF grammar for RIDDL
riddl://grammar/guide Full language reference guide
riddl://patterns/catalog Reusable RIDDL patterns and examples

Installation Guides

The RIDDL MCP Server can be connected to various AI tools. Choose your platform:


Server URL

The hosted MCP server will be available at:

https://mcp.ossuminc.com/mcp/v1/

Coming Soon

The hosted server at mcp.ossuminc.com will be available in early 2026. For local development, use: http://localhost:8080/mcp/v1/


Authentication

All requests to the MCP server require an API key. Three methods are supported:

X-API-KEY: your-api-key

Query Parameter

?api_key=your-api-key

Bearer Token

Authorization: Bearer your-api-key

Obtaining an API Key

Contact support@ossuminc.com to request an API key for the hosted service.


Protocol Details

The server uses JSON-RPC 2.0 over HTTP:

  • Endpoint: POST /mcp/v1
  • Content-Type: application/json
  • Protocol Version: 2025-11-25

Example Request

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "validate-text",
    "arguments": {
      "content": "domain Example is { }"
    }
  }
}

Example Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "Validation successful: 0 errors, 1 warning"
      }
    ]
  }
}

Support


License

Apache License 2.0