Skip to content

Conversation

@paulczar
Copy link

@paulczar paulczar commented Oct 30, 2025

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!

@openshift-ci openshift-ci bot requested review from pvasant and willkutler October 30, 2025 03:06
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 30, 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 xueli181114 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

@hunterkepley
Copy link
Contributor

Hey there, is there a feature/ticket for this? Want to catch up on the context of this addition

@paulczar paulczar changed the title [Draft] first pass at a mcp OCM-20282 | Implement a MCP server for ROSA CLI Nov 4, 2025
@paulczar paulczar force-pushed the mcp branch 2 times, most recently from 1357088 to a4a707b Compare November 6, 2025 03:29
- Add MCP server with stdio and HTTP transport support
- Implement hierarchical tool registry based on Cobra command structure
- Add interactive chat interface (rosa mcp chat)

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

openshift-ci bot commented Nov 7, 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/coverage ce74b4d link true /test coverage
ci/prow/lint ce74b4d link true /test lint

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.

2 participants