
Security News
Ruby's Bundler 4.0.18 Extends Cooldown to bundle lock and bundle cache
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.
mcp-server-openshift
Advanced tools
MCP server for OpenShift operations and management with comprehensive tools for cluster management, application deployment, and secure route creation
A Model Context Protocol (MCP) server that provides AI assistants with comprehensive OpenShift/Kubernetes cluster management capabilities through the oc command-line interface.
Watch the oc-new-app tool deploy a complete Spring Boot application from GitHub to OpenShift:
https://github.com/user-attachments/assets/f4bace3f-755b-462f-8a8a-680e4dc02129
oc) installed and configuredgit clone https://github.com/sanjaypsachdev/mcp-server-openshift.git
cd mcp-server-openshift
npm install
npm run build
Add to your MCP client configuration:
{
"mcpServers": {
"openshift": {
"command": "node",
"args": ["/path/to/mcp-server-openshift/dist/index.js"],
"env": {
"OPENSHIFT_CONTEXT": "your-context-name",
"OPENSHIFT_NAMESPACE": "your-default-namespace"
}
}
}
}
# Start HTTP server
npm run start:http
# Connect via MCP remote
npx -y mcp-remote http://localhost:3000/sse --transport sse-only
oc_login - Securely log into OpenShift clusters using token or username/password authenticationoc_api_resources - List all available API resources in the cluster with categorizationoc_explain - Explain resource schemas, fields, and API documentationoc_get - Get OpenShift resources (pods, deployments, services, routes, etc.)oc_create - Create OpenShift resources from manifests or templatesoc_apply - Apply YAML manifests with validation and conflict resolutionoc_delete - Delete resources with safety checks and confirmation optionsoc_patch - Patch resources using strategic merge, JSON merge, or JSON patch operationsoc_describe - Describe resources with multiple output formatsoc_new_app - Deploy applications from Git repositories with S2I buildsoc_scale - Scale deployments, deploymentconfigs, replicasets, and statefulsetsoc_logs - Get logs from pods, deployments, builds with filtering optionsoc_install_operator - Install operators via OLM, Helm, or direct manifestsMCP Resources provide read-only access to cluster information:
openshift://cluster-info - Comprehensive cluster status, nodes, namespaces, and eventsopenshift://project-list - Detailed project information with quotas and usage statisticsopenshift://app-templates - Application deployment templates and patternsInteractive troubleshooting and operational guidance:
troubleshoot-openshift-prompt - Comprehensive OpenShift troubleshooting guide for all resource types and cluster issuesmonitoring-prompts - Monitoring and observability guidance for different scenariosIntelligent log analysis and pattern detection:
# Login with token (recommended)
oc_login with server: "https://api.cluster.example.com:6443",
authMethod: "token",
token: "sha256~your-token-here"
# Login with username/password
oc_login with server: "https://api.cluster.example.com:6443",
authMethod: "password",
username: "developer",
password: "your-password"
# List all available API resources
oc_api_resources
# List resources for specific API group
oc_api_resources with apiGroup: "apps"
# List only namespaced resources
oc_api_resources with namespaced: true
# Explain a resource schema
oc_explain with resource: "deployment"
# Explain specific field
oc_explain with resource: "pod", field: "spec.containers"
# Deploy Node.js app from GitHub
oc_new_app with gitRepo: "https://github.com/sclorg/nodejs-ex.git"
# Scale deployment to 3 replicas
oc_scale with name: "my-app", replicas: 3
# Update deployment labels
oc_patch with resourceType: "deployment", name: "my-app",
patch: '{"metadata":{"labels":{"environment":"production"}}}'
# Get pod troubleshooting guidance
Use prompt: troubleshoot-openshift-prompt
Arguments: issueType: "pod", resourceName: "my-app-12345", namespace: "my-project"
# Get deployment troubleshooting guidance
Use prompt: troubleshoot-openshift-prompt
Arguments: issueType: "deployment", resourceName: "my-app", namespace: "my-project"
# Get general cluster troubleshooting guidance
Use prompt: troubleshoot-openshift-prompt
Arguments: issueType: "cluster", symptoms: "nodes not ready"
# Setup
npm install
# Build
npm run build
# Test
npm test
# Start (STDIO)
npm start
# Start (HTTP)
npm run start:http
# Development mode
npm run dev
src/
├── index.ts # Main server entry point
├── tools/ # Tool implementations
├── resources/ # MCP resources
├── prompts/ # Interactive prompts
├── sampling/ # Log sampling and analysis
├── models/ # Zod validation schemas
└── utils/ # OpenShift CLI wrapper
oc logout to clear credentials when doneMIT License - see LICENSE file for details.
FAQs
MCP server for OpenShift operations and management with comprehensive tools for cluster management, application deployment, and secure route creation
The npm package mcp-server-openshift receives a total of 33 weekly downloads. As such, mcp-server-openshift popularity was classified as not popular.
We found that mcp-server-openshift demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.