/rh-basic:red-hat-security-mcp-setupfrom rh-basic
Add the Red Hat Security MCP server at the project or user level for the current tool. Configures stdio transport via npx mcp-remote and explains the Red Hat Customer Portal SSO browser login flow.
Ships in rh-basic. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Add the Red Hat Security MCP server to the current tool's MCP configuration, at either the project or user level.
npx on PATH (the server is launched as
npx -y mcp-remote https://security-mcp.api.redhat.com/mcp).When the user wants to add the Red Hat Security MCP server to their project to enable live CVE and advisory lookups.
red-hat-security entry: prefer this plugin's
vendor-specific com.<vendor>/mcp.json, falling back to the plugin-root
mcp.json, then to the inline skeleton.com.<vendor>/mcp.json.Ask the user to choose one:
For Codex, project-level .mcp.json is not loaded. Use the user-level
~/.codex/config.toml target (or rely on the plugin's own mcp.json after
install). If the user asks for project-level on Codex, explain that and use
the Codex user-level file instead.
Determine which agentic tool is currently executing this skill, then
resolve $MCP_FILE from the table below using the level chosen in Step 1.
$PLUGIN_ROOT is this plugin's install directory (the parent of this
skill's skills/ folder).
| Current tool | Vendor namespace dir | Project-level target | User-level target |
|---|---|---|---|
| Claude Code | com.anthropic.claude-code | <project>/.mcp.json | ~/.claude/.mcp.json |
| Cursor | com.cursor.editor | <project>/.cursor/mcp.json | ~/.cursor/mcp.json |
| Codex | com.openai.codex | (not used — see Step 1) | ~/.codex/config.toml |
| Other / unknown | (plugin root) | <project>/.mcp.json | ~/.mcp.json |
PROJ=$(git rev-parse --show-toplevel 2>/dev/null || echo "$PWD")
If the current tool isn't in the table, use the "Other / unknown" row and tell the user the target location is a best-effort default they should verify for their tool.
Look for the red-hat-security entry to merge, in this order:
$PLUGIN_ROOT/com.<vendor>/mcp.json — the namespace dir for the
currently executing tool (e.g. ./com.cursor.editor/mcp.json,
./com.anthropic.claude-code/mcp.json).$PLUGIN_ROOT/mcp.json — the plugin-root fallback.{
"mcpServers": {
"red-hat-security": {
"type": "stdio",
"command": "npx",
"args": ["-y", "mcp-remote", "https://security-mcp.api.redhat.com/mcp"]
}
}
}
Treat whichever source is found as read-only reference material — do not edit it in place.
JSON targets (Claude, Cursor, unknown): if $MCP_FILE exists, read it
and merge in the red-hat-security stdio entry found in Step 3, without
removing any other servers already present. If it does not exist, create it,
wrapping the entry in {"mcpServers": {...}}. If an older HTTP /
streamable-http red-hat-security entry is present, replace it with the
stdio npx / mcp-remote entry.
Codex ~/.codex/config.toml: merge a TOML table (not JSON). If
[mcp_servers.red-hat-security] exists, replace it. Append:
[mcp_servers.red-hat-security]
command = "npx"
args = ["-y", "mcp-remote", "https://security-mcp.api.redhat.com/mcp"]
Do not set enabled = false. Do not add headers, env, or tokens. If a
user-level Codex server with the same name would shadow the plugin MCP,
keep this stdio block and tell the user to restart Codex (including the
app-server daemon) so only one red-hat-security is active.
Write the result back to $MCP_FILE.
Tell the user:
Red Hat Security MCP server added (stdio via npx mcp-remote).
Prerequisite: Node.js with npx on PATH.
Authentication: Red Hat Customer Portal SSO
The first time any tool from this server is called, a browser window will
open automatically so you can log in with your Red Hat account. After you
complete login, the session token is stored and subsequent calls proceed
without prompting.
If the browser does not open automatically, look for an authentication URL
printed in the MCP server output and open it manually.
Restart the agentic tool (or reload MCP servers) for the new configuration
to take effect. On Codex, quit the TUI and ensure the app-server daemon
restarts if /mcp still shows the old HTTP server.
/red-hat-cve-explainer when get_cve_by_id and
related tools are available.headers or env auth fields to the target MCP config --
mcp-remote handles authentication via the browser SSO flow.What SKILL.md sets; muted values are Claude Code's defaults
inheritnpx claudepluginhub rhecosystemappeng/agentic-catalog --plugin rh-basic6 skills in this plugin
/red-hat-cve-explainerExplain a CVE using Red Hat's severity rating system. Looks up the CVE, explains the rating, and suggests a course of action./red-hat-diagnosticsExplain how to gather diagnostic information for Red Hat products (RHEL, OpenShift, Ansible Automation Platform, Satellite) to share with Red Hat Technical Support./red-hat-get-startedBootstrap installer. Fetches and installs all Red Hat agent skills into this project.