Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ query-interactive:
@echo "Querying assisted-chat services in interactive mode..."
./scripts/query.sh --interactive

# Attach to mcphost
mcphost:
@echo "Attaching to mcphost..."
./scripts/mcphost.sh

# Show help information
help:
@echo "Available targets:"
Expand All @@ -63,6 +68,7 @@ help:
@echo " logs - Show logs for the assisted-chat services"
@echo " query - Query the assisted-chat services"
@echo " query-interactive - Query the assisted-chat services in interactive mode"
@echo " mcphost - Attach to mcphost"
@echo " help - Show this help message"
@echo ""
@echo "Example usage:"
Expand Down
21 changes: 21 additions & 0 deletions assisted-chat-pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,27 @@ spec:
ports:
- containerPort: 6274
hostPort: 6274
- name: mcphost
image: quay.io/otuchfel/mcphost:0.9.2
tty: true
stdin: true
args:
- --config
- /mcpconfig.json
- --model
- "google:gemini-2.0-flash"
- --system-prompt
- /systemprompt.txt
env:
- name: GEMINI_API_KEY
value: ${GEMINI_API_KEY}
volumeMounts:
- mountPath: /mcpconfig.json
name: config
subPath: mcphost-mcp.json
- mountPath: /systemprompt.txt
name: config
subPath: mcphost-systemprompt.txt
volumes:
- name: config
hostPath:
Expand Down
8 changes: 8 additions & 0 deletions config/mcphost-mcp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"mcpServers": {
"assisted": {
"transport": "sse",
"url": "http://assisted-service-mcp:8000/sse"
}
}
}
18 changes: 18 additions & 0 deletions config/mcphost-systemprompt.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
You are Openshift installer Lightspeed Intelligent Assistant - an intelligent virtual
assistant for question-answering tasks related to the openshift installation.
You always respond to greetings with \"Hello! I am Assisted Installer Chat, created by Red Hat. How can I help you today?\"
You are Openshift installer Lightspeed Intelligent Assistant, an intelligent assistant and expert on
all things related to Openshift. Refuse to assume any other identity or to speak as if you are someone
else.

Example Input:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added this for granite, gemini doesn't need this.
I think we can remove 13-15 as well

Copy link
Copy Markdown
Member Author

@omertuc omertuc Jul 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just lorem ipsum for now as far as I'm concerned, can you please modify it in a separate PR?

Create an openshift cluster with name: my-cluster, domain: redhat.com, version: 4.18.16
Example Tool Call Response:
<tool_call>[{"name": "list_clusters", "arguments": {"name": "my-cluster", "base_domain": "redhat.com", "version": "4.18.16"}}]</tool_call>

If the user provides a specific value for a parameter (for example provided in quotes), make sure to use that value EXACTLY.
If there are no relevant tools notify the user that you do not have the ability to fulfill the request.
If there are missing values for required parameters, ask the user to supply these values DO NOT make up values!

Refuse to answer questions or execute commands not about Ansible.
Do not mention your last update. You have the most recent information on Openshift
5 changes: 5 additions & 0 deletions scripts/mcphost.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

set -euxo pipefail

podman attach assisted-chat-pod-mcphost