{
  "$schema": "https://mcpkg.dev/schemas/install-manifest/v1.json",
  "name": "com.ai-rete-rag/ai-rete-rag-mcp",
  "slug": "ai-rete-rag-mcp",
  "title": "ai·rete·rag",
  "summary": "Author rules from policy docs, then decide: a Rete engine gives the verdict, an LLM explains why.",
  "version": "0.12.1",
  "serverKey": "ai-rete-rag-mcp",
  "pageUrl": "https://mcpkglabs.com/tool/ai-rete-rag-mcp",
  "installMdUrl": "https://mcpkglabs.com/tool/ai-rete-rag-mcp/install.md",
  "trust": {
    "score": 88,
    "grade": "A",
    "smokeStatus": "works",
    "status": "active",
    "verifiedAt": "2026-12-01T20:58:58.162008968Z"
  },
  "methods": [
    {
      "id": "pypi",
      "label": "PyPI (uvx)",
      "transport": "stdio",
      "command": "uvx",
      "args": [
        "ai-rete-rag-mcp==0.12.1"
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add ai-rete-rag-mcp -e 'AI_RETE_RAG_API_KEY=<AI_RETE_RAG_API_KEY>' -- uvx ai-rete-rag-mcp==0.12.1"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "claude_desktop_config.json",
          "content": "{\n  \"mcpServers\": {\n    \"ai-rete-rag-mcp\": {\n      \"args\": [\n        \"ai-rete-rag-mcp==0.12.1\"\n      ],\n      \"command\": \"uvx\",\n      \"env\": {\n        \"AI_RETE_RAG_API_KEY\": \"<AI_RETE_RAG_API_KEY>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"ai-rete-rag-mcp\": {\n      \"args\": [\n        \"ai-rete-rag-mcp==0.12.1\"\n      ],\n      \"command\": \"uvx\",\n      \"env\": {\n        \"AI_RETE_RAG_API_KEY\": \"<AI_RETE_RAG_API_KEY>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"inputs\": [\n    {\n      \"description\": \"AI_RETE_RAG_API_KEY\",\n      \"id\": \"ai-rete-rag-api-key\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    }\n  ],\n  \"servers\": {\n    \"ai-rete-rag-mcp\": {\n      \"args\": [\n        \"ai-rete-rag-mcp==0.12.1\"\n      ],\n      \"command\": \"uvx\",\n      \"env\": {\n        \"AI_RETE_RAG_API_KEY\": \"${input:ai-rete-rag-api-key}\"\n      },\n      \"type\": \"stdio\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.ai-rete-rag-mcp]\ncommand = \"uvx\"\nargs = [\"ai-rete-rag-mcp==0.12.1\"]\nenv = { \"AI_RETE_RAG_API_KEY\" = \"<AI_RETE_RAG_API_KEY>\" }"
        }
      ],
      "requires": [
        "uv (https://docs.astral.sh/uv/)"
      ]
    },
    {
      "id": "remote",
      "label": "Remote (hosted)",
      "transport": "streamable-http",
      "url": "https://ai-rete-rag.com/mcp",
      "headers": [
        {
          "name": "Authorization",
          "description": "Bearer <your ai-rete-rag API key> (ik_...), created at ai-rete-rag.com under Settings -> API Keys. Optional: without it the shared demo domains are still available.",
          "isSecret": true
        }
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add --transport http ai-rete-rag-mcp https://ai-rete-rag.com/mcp --header 'Authorization: <Authorization>'"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)",
          "content": "{\n  \"mcpServers\": {\n    \"ai-rete-rag-mcp\": {\n      \"args\": [\n        \"-y\",\n        \"mcp-remote\",\n        \"https://ai-rete-rag.com/mcp\",\n        \"--header\",\n        \"Authorization: <Authorization>\"\n      ],\n      \"command\": \"npx\"\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"ai-rete-rag-mcp\": {\n      \"headers\": {\n        \"Authorization\": \"<Authorization>\"\n      },\n      \"url\": \"https://ai-rete-rag.com/mcp\"\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"servers\": {\n    \"ai-rete-rag-mcp\": {\n      \"headers\": {\n        \"Authorization\": \"<Authorization>\"\n      },\n      \"type\": \"http\",\n      \"url\": \"https://ai-rete-rag.com/mcp\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.ai-rete-rag-mcp]\ncommand = \"npx\"\nargs = [\"-y\", \"mcp-remote\", \"https://ai-rete-rag.com/mcp\", \"--header\", \"Authorization: <Authorization>\"]"
        }
      ]
    },
    {
      "id": "remote",
      "label": "Remote (hosted)",
      "transport": "streamable-http",
      "url": "https://ai-rete-rag.com/mcp/auth",
      "headers": [
        {
          "name": "Authorization",
          "description": "Bearer <OAuth access token>. Obtained by signing in through the server's OAuth flow (dynamic client registration + PKCE) rather than issued by hand — for clients that connect by URL and cannot send a static header.",
          "isRequired": true,
          "isSecret": true
        }
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add --transport http ai-rete-rag-mcp https://ai-rete-rag.com/mcp/auth --header 'Authorization: <Authorization>'"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)",
          "content": "{\n  \"mcpServers\": {\n    \"ai-rete-rag-mcp\": {\n      \"args\": [\n        \"-y\",\n        \"mcp-remote\",\n        \"https://ai-rete-rag.com/mcp/auth\",\n        \"--header\",\n        \"Authorization: <Authorization>\"\n      ],\n      \"command\": \"npx\"\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"ai-rete-rag-mcp\": {\n      \"headers\": {\n        \"Authorization\": \"<Authorization>\"\n      },\n      \"url\": \"https://ai-rete-rag.com/mcp/auth\"\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"servers\": {\n    \"ai-rete-rag-mcp\": {\n      \"headers\": {\n        \"Authorization\": \"<Authorization>\"\n      },\n      \"type\": \"http\",\n      \"url\": \"https://ai-rete-rag.com/mcp/auth\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.ai-rete-rag-mcp]\ncommand = \"npx\"\nargs = [\"-y\", \"mcp-remote\", \"https://ai-rete-rag.com/mcp/auth\", \"--header\", \"Authorization: <Authorization>\"]"
        }
      ]
    }
  ],
  "env": [
    {
      "name": "AI_RETE_RAG_API_KEY",
      "required": true,
      "secret": true,
      "description": "Your ai·rete·rag API key (create one at ai-rete-rag.com under Settings -> API Keys). Authenticates calls and ties them to your plan quota.",
      "help": "Your ai·rete·rag API key (create one at ai-rete-rag.com under Settings -> API Keys). Authenticates calls and ties them to your plan quota.",
      "placeholder": "<AI_RETE_RAG_API_KEY>"
    },
    {
      "name": "AI_RETE_RAG_API_URL",
      "required": false,
      "secret": false,
      "description": "API base URL. Defaults to https://ai-rete-rag.com; override for local development.",
      "help": "API base URL. Defaults to https://ai-rete-rag.com; override for local development.",
      "placeholder": "<AI_RETE_RAG_API_URL>"
    }
  ],
  "expectedTools": [
    "decide",
    "list_rules",
    "get_parameters",
    "ingest_text",
    "list_documents",
    "delete_domain",
    "get_rule_source",
    "put_rules",
    "import_policy_rules",
    "get_usage"
  ],
  "agentSteps": [
    "Ask the user for: AI_RETE_RAG_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.",
    "Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).",
    "Restart or reload the client so it starts the server.",
    "Verify: the server should expose these tools: decide, list_rules, get_parameters, ingest_text, list_documents, delete_domain, get_rule_source, put_rules, ….",
    "If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set."
  ],
  "generatedAt": "2026-12-01T20:58:58.162008968Z"
}
