Basic client and mcp server around https://access.redhat.com/management/api/case_management
pip install rhsupportcli fastmcp
Get an offline token from https://access.redhat.com/management/api and stored it as env variable OFFLINETOKEN
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>"
}
}