OCM-20282 | Implement a MCP server for ROSA CLI#3114
OCM-20282 | Implement a MCP server for ROSA CLI#3114paulczar wants to merge 1 commit intoopenshift:masterfrom
Conversation
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:** xxxxx@redhat.com - **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 <username.taken@gmail.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: paulczar The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@paulczar: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
|
PR needs rebase. DetailsInstructions 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. |
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).