Skip to content

Conversation

@paulczar
Copy link

This creates a new rosa cli command for hosting a mcp server. rosa mcp serve it supports both the stdio and http transports. It also has a command rosa mcp chat which is a basic chat client that uses the openai api to use an LLM (tested with chatgpt, but should work with anything).

$ ./rosa mcp chat
ROSA AI Chat Assistant
Type 'exit' or 'quit' to end the session, or Ctrl+C to interrupt

You: who am i logged in as ?

[Executing: rosa_whoami] (call 1/1)

Assistant: You are currently logged in with the following details:

- **AWS Account ID:** xxxxx
- **AWS ARN:** arn:aws:iam::xxxxx:user/xxxxx-cli
- **AWS Default Region:** us-east-2

Regarding your Red Hat account:

- **OCM Account Email:** [email protected]
- **OCM Account Username:** xxxx
- **OCM Account Name:** xxxx xxxxx
- **OCM Account ID:** xxxxxx

Your organization details are:

- **OCM Organization Name:** Red Hat, Inc.
- **OCM Organization ID:** xxxxxx
- **OCM Organization External ID:** xxxxx

If you need further information or assistance, feel free to ask!

You: what clusters exist ?

[Executing: rosa_list] (call 1/1)

Assistant: Here are the clusters that currently exist:

1. **Cluster Name:** poc-xx
   - **Cluster ID:** xxxxxx
   - **API URL:** [https://api.xxxxx.128v.p3.openshiftapps.com:443](https://api.xxxxx.128v.p3.openshiftapps.com:443)
   - **Console URL:** [https://console-openshift-console.apps.rosa.xxxxx.128v.p3.openshiftapps.com](https://console-openshift-console.apps.rosa.xxxxx.128v.p3.openshiftapps.com)
   - **Region:** us-east-1
   - **State:** Ready
   - **OpenShift Version:** 4.19.16

2. **Cluster Name:** xxxxx-v8
   - **Cluster ID:** xxxxx
   - **API URL:** [https://api.xxxx-v8.dfbm.p3.openshiftapps.com:443](https://api.daxelrod-v8.dfbm.p3.openshiftapps.com:443)
   - **Console URL:** [https://console-openshift-console.apps.rosa.xxxxx-v8.dfbm.p3.openshiftapps.com](https://console-openshift-console.apps.rosa.xxxxx-v8.dfbm.p3.openshiftapps.com)
   - **Region:** us-east-2
   - **State:** Ready
   - **OpenShift Version:** 4.19.17

If you need more detailed information about any cluster, feel free to ask!

This creates a new rosa cli command for hosting a mcp server. rosa mcp serve it supports both the stdio and http transports. It also has a command rosa mcp chat which is a basic chat client that uses the openai api to use an LLM (tested with chatgpt, but should work with anything).

```
$ ./rosa mcp chat
ROSA AI Chat Assistant
Type 'exit' or 'quit' to end the session, or Ctrl+C to interrupt

You: who am i logged in as ?

[Executing: rosa_whoami] (call 1/1)

Assistant: You are currently logged in with the following details:

- **AWS Account ID:** xxxxx
- **AWS ARN:** arn:aws:iam::xxxxx:user/xxxxx-cli
- **AWS Default Region:** us-east-2

Regarding your Red Hat account:

- **OCM Account Email:** [email protected]
- **OCM Account Username:** xxxx
- **OCM Account Name:** xxxx xxxxx
- **OCM Account ID:** xxxxxx

Your organization details are:

- **OCM Organization Name:** Red Hat, Inc.
- **OCM Organization ID:** xxxxxx
- **OCM Organization External ID:** xxxxx

If you need further information or assistance, feel free to ask!

You: what clusters exist ?

[Executing: rosa_list] (call 1/1)

Assistant: Here are the clusters that currently exist:

1. **Cluster Name:** poc-xx
   - **Cluster ID:** xxxxxx
   - **API URL:** [https://api.xxxxx.128v.p3.openshiftapps.com:443](https://api.xxxxx.128v.p3.openshiftapps.com:443)
   - **Console URL:** [https://console-openshift-console.apps.rosa.xxxxx.128v.p3.openshiftapps.com](https://console-openshift-console.apps.rosa.xxxxx.128v.p3.openshiftapps.com)
   - **Region:** us-east-1
   - **State:** Ready
   - **OpenShift Version:** 4.19.16

2. **Cluster Name:** xxxxx-v8
   - **Cluster ID:** xxxxx
   - **API URL:** [https://api.xxxx-v8.dfbm.p3.openshiftapps.com:443](https://api.daxelrod-v8.dfbm.p3.openshiftapps.com:443)
   - **Console URL:** [https://console-openshift-console.apps.rosa.xxxxx-v8.dfbm.p3.openshiftapps.com](https://console-openshift-console.apps.rosa.xxxxx-v8.dfbm.p3.openshiftapps.com)
   - **Region:** us-east-2
   - **State:** Ready
   - **OpenShift Version:** 4.19.17

If you need more detailed information about any cluster, feel free to ask!
```

Signed-off-by: Paul Czarkowski <[email protected]>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 24, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: paulczar
Once this PR has been reviewed and has the lgtm label, please assign robpblake for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 24, 2025

@paulczar: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/build f15c5ea link true /test build
ci/prow/e2e-presubmits-images f15c5ea link true /test e2e-presubmits-images
ci/prow/images-images f15c5ea link true /test images-images
ci/prow/lint f15c5ea link true /test lint
ci/prow/test f15c5ea link true /test test
ci/prow/commits f15c5ea link true /test commits

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant