/rhsupportcli

Basic client and mcp server around https://access.redhat.com/management/api/case_management

Primary LanguagePython

Basic client and mcp server around https://access.redhat.com/management/api/case_management

How to install

pip install rhsupportcli fastmcp

Using client

Get an offline token from https://access.redhat.com/management/api and stored it as env variable OFFLINETOKEN

Using MCP

The server is started and configured differently depending on what transport you want to use

For STDIO:

In VSCode for example:

   "mcp": {
        "servers": {
            "rhsupportcli": {
                "command": "python3",
                "args": ["/path/to/rhsupportcli/src/rhsupportlib/mcp_server.py"],
                "env": {
                    "OFFLINETOKEN": <your token>
                }
            }
        }
    }

For Streamable HTTP:

Start the server in a terminal:

rhcsupportmcp

Configure the server in your client:

    "rhsupportcli": {
      "transport": "streamable-http",
      "url": "http://localhost:8000/mcp"
      "headers": {
        "OFFLINETOKEN": "<your token>"
      }
    }