ai·rete·rag

v0.12.1
com.ai-rete-rag/ai-rete-rag-mcp Checked 4 days ago Published 14 days ago

Author rules from policy docs, then decide: a Rete engine gives the verdict, an LLM explains why.

Values you need

VariableWhat it is
AI_RETE_RAG_API_KEYrequired secret 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.
AI_RETE_RAG_API_URLoptional API base URL. Defaults to https://ai-rete-rag.com; override for local development.

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
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
Add to claude_desktop_config.json
{
  "mcpServers": {
    "ai-rete-rag-mcp": {
      "args": [
        "ai-rete-rag-mcp==0.12.1"
      ],
      "command": "uvx",
      "env": {
        "AI_RETE_RAG_API_KEY": "<AI_RETE_RAG_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "ai-rete-rag-mcp": {
      "args": [
        "ai-rete-rag-mcp==0.12.1"
      ],
      "command": "uvx",
      "env": {
        "AI_RETE_RAG_API_KEY": "<AI_RETE_RAG_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "AI_RETE_RAG_API_KEY",
      "id": "ai-rete-rag-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "ai-rete-rag-mcp": {
      "args": [
        "ai-rete-rag-mcp==0.12.1"
      ],
      "command": "uvx",
      "env": {
        "AI_RETE_RAG_API_KEY": "${input:ai-rete-rag-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.ai-rete-rag-mcp]
command = "uvx"
args = ["ai-rete-rag-mcp==0.12.1"]
env = { "AI_RETE_RAG_API_KEY" = "<AI_RETE_RAG_API_KEY>" }

Remote (hosted)

Run in a terminal
claude mcp add --transport http ai-rete-rag-mcp https://ai-rete-rag.com/mcp --header 'Authorization: <Authorization>'
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "ai-rete-rag-mcp": {
      "args": [
        "-y",
        "mcp-remote",
        "https://ai-rete-rag.com/mcp",
        "--header",
        "Authorization: <Authorization>"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "ai-rete-rag-mcp": {
      "headers": {
        "Authorization": "<Authorization>"
      },
      "url": "https://ai-rete-rag.com/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "ai-rete-rag-mcp": {
      "headers": {
        "Authorization": "<Authorization>"
      },
      "type": "http",
      "url": "https://ai-rete-rag.com/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.ai-rete-rag-mcp]
command = "npx"
args = ["-y", "mcp-remote", "https://ai-rete-rag.com/mcp", "--header", "Authorization: <Authorization>"]

Remote (hosted)

Run in a terminal
claude mcp add --transport http ai-rete-rag-mcp https://ai-rete-rag.com/mcp/auth --header 'Authorization: <Authorization>'
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "ai-rete-rag-mcp": {
      "args": [
        "-y",
        "mcp-remote",
        "https://ai-rete-rag.com/mcp/auth",
        "--header",
        "Authorization: <Authorization>"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "ai-rete-rag-mcp": {
      "headers": {
        "Authorization": "<Authorization>"
      },
      "url": "https://ai-rete-rag.com/mcp/auth"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "ai-rete-rag-mcp": {
      "headers": {
        "Authorization": "<Authorization>"
      },
      "type": "http",
      "url": "https://ai-rete-rag.com/mcp/auth"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.ai-rete-rag-mcp]
command = "npx"
args = ["-y", "mcp-remote", "https://ai-rete-rag.com/mcp/auth", "--header", "Authorization: <Authorization>"]

For AI agents

  1. 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.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: decide, list_rules, get_parameters, ingest_text, list_documents, delete_domain, get_rule_source, put_rules, ….
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json