Metadata-Version: 2.4
Name: rhsupportcli
Version: 99.0.202509180749
Summary: RH support client
Author-email: Karim Boumedhel <karimboumedhel@gmail.com>
License: ASL
Project-URL: Homepage, http://github.com/karmab/rhsupportcli
Description-Content-Type: text/markdown
Requires-Dist: fastmcp
Requires-Dist: prettytable

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](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:
```json
   "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:

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