Add the Red Hat Security MCP server at the project or user level for the current tool. Configures the HTTP transport endpoint and explains the Red Hat Customer Portal SSO browser login flow.
77%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./rh-basic/skills/red-hat-security-mcp-setup/SKILL.mdAdd the Red Hat Security MCP server to the current tool's MCP configuration, at either the project or user level.
A Red Hat account at console.redhat.com.
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:
┌─────────────────┬───────────────────────────┬────────────────────────────┬─────────────────────┐ │ Current tool │ Vendor namespace dir │ Project-level target │ User-level target │ ├─────────────────┼───────────────────────────┼────────────────────────────┼─────────────────────┤ │ Claude Code │ com.anthropic.claude-code │ /.mcp.json │ ~/.claude/.mcp.json │ ├─────────────────┼───────────────────────────┼────────────────────────────┼─────────────────────┤ │ Cursor │ com.cursor.editor │ /.cursor/mcp.json │ ~/.cursor/mcp.json │ ├─────────────────┼───────────────────────────┼────────────────────────────┼─────────────────────┤ │ Other / unknown │ (plugin root) │ /.mcp.json │ ~/.mcp.json │ └─────────────────┴───────────────────────────┴────────────────────────────┴─────────────────────┘
This makes it crystal clear that:
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.
$MCP_FILE be this fully resolved absolute path. This is the file
you will read/write in Step 4.$PLUGIN_ROOT is the root directory of this plugin. Derive it from the
path of this skill file: navigate two directories up from SKILL.md.
Structure:
$PLUGIN_ROOT/
├── skills/
│ └── <skill-name>/
│ └── SKILL.md ← you are here
├── com.<vendor>/
│ └── mcp.json
└── mcp.jsonLook 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. $PLUGIN_ROOT/com.cursor.editor/mcp.json,
$PLUGIN_ROOT/com.anthropic.claude-code/mcp.json).$PLUGIN_ROOT/mcp.json — the plugin-root fallback.{
"mcpServers": {
"red-hat-security": {
"type": "http",
"url": "https://security-mcp.api.redhat.com/mcp"
}
}
}Treat whichever source is found as read-only reference material — do not edit it in place.
If $MCP_FILE (resolved in Step 2) exists: read it and merge in the
red-hat-security entry found in Step 3, without removing any other
servers already present.
If it does not exist: create it, wrapping the entry in {"mcpServers": {...}}.
Write the result back to $MCP_FILE.
Tell the user:
Red Hat Security MCP server added.
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./red-hat-cve-explainer when get_cve_by_id and
related tools are available.headers or env auth fields to the target MCP config -- the
server handles authentication itself via the browser SSO flow.RHEcosystemAppEng/agentic-plugins
89ba231
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.