mcp -rhoai-workbenches
This project is meant as a bachelors thesis about MCP servers in RHOAI
claude mcp add --transport stdio ada333-mcp-server-rhoai-workbenches /home/amaly/mcp-server-rhoai/mcp-server-rhoai \ --env MCP_RHOAI_MODE="read"
How to use
This MCP server provides a centralized interface for managing Red Hat OpenShift AI (RHOAI) workbenches, images, hardware profiles, and storage within an OpenShift cluster. It supports listing and querying operations by default and can be extended with write capabilities when configured in read-write mode. The server exposes tools to inspect resource consumption at various scopes (per workbench, per user, per namespace, or cluster-wide) and to manage resources such as workbenches, images, hardware profiles, and PVCs. Use it to integrate natural language prompts with concrete OpenShift actions, enabling smooth governance and monitoring of AI workloads in your cluster.
How to install
Prerequisites:
- Go 1.24.0 or later installed on your machine
- Access to an OpenShift cluster with RHOAI installed
- oc CLI logged in to your cluster
- Optional: golangci-lint for code linting
Installation steps:
-
Clone the repository and enter the project directory git clone https://github.com/amaly/mcp-server-rhoai.git cd mcp-server-rhoai
-
Fetch dependencies go mod download
-
Ensure authentication with OpenShift oc login <your-cluster-url>
-
Build the project make build
-
(Optional) Run tests make test
-
Run the server (example using the built binary in read-only mode) ./mcp-server-rhoai
Notes:
- The project includes a Makefile with convenient targets for build and test workflows.
- The MCP server relies on your current OpenShift login for permission-scoped operations.
Additional notes
Tips and conventions:
- Start in read-only mode to explore available tools and verify permissions before enabling write operations.
- The MCP mode is controlled via the MCP_RHOAI_MODE environment variable. If not set or set to anything other than 'write', the server operates in read-only mode by default.
- When integrating with editors or CLIs, you can reference the provided commands and ensure the server binary path matches your deployment.
- Ensure oc is configured and logged in to the correct cluster context to avoid permissions issues.
- If you encounter linting or test failures, you can run golangci-lint locally (if installed) and adapt the code accordingly before re-running make build.
Related MCP Servers
trpc-agent-go
trpc-agent-go is a powerful Go framework for building intelligent agent systems using large language models (LLMs) and tools.
station
Station is our open-source runtime that lets teams deploy agents on their own infrastructure with full control.
tiger-cli
Tiger CLI is the command-line interface for Tiger Cloud. It includes an MCP server for helping coding agents write production-level Postgres code.
gopls
MCP server for golang projects development: Expand AI Code Agent ability boundary to have a semantic understanding and determinisic information for golang projects.
kubernetes
A Model Context Protocol (MCP) server for the Kubernetes API.
gcp-cost
💰 An MCP server that enables AI assistants to estimate Google Cloud costs, powered by Cloud Billing Catalog API and built with Genkit for Go