fix mcp setup add local or user setting - #157
Open
RedTanny wants to merge 1 commit into
Open
Conversation
RedTanny
requested review from
TomerFi,
dmartinol and
r2dedios
as code owners
September 9, 2026 13:29
r2dedios
requested changes
Sep 9, 2026
|
|
||
| Look for the `red-hat-security` entry to merge, in this order: | ||
|
|
||
| 1. `$PLUGIN_ROOT/com.<vendor>/mcp.json` — the namespace dir for the |
Contributor
There was a problem hiding this comment.
$PLUGIN_ROOT is never defined
|
|
||
| ## Step 4 — Merge the entry into the target file | ||
|
|
||
| If `$MCP_FILE` (resolved in Step 2) exists: read it and merge in the |
Contributor
There was a problem hiding this comment.
$MCP_FILE is not defined either
| Look for the `red-hat-security` entry to merge, in this order: | ||
|
|
||
| 1. `$PLUGIN_ROOT/com.<vendor>/mcp.json` — the namespace dir for the | ||
| currently executing tool (e.g. `./com.cursor.editor/mcp.json`, |
Contributor
There was a problem hiding this comment.
Not sure if this is an error on not, but I was expecting to see those dirs created on the PR. AM I wrong?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Update the
red-hat-security-mcp-setupskill so the Red Hat Security MCPserver can be installed at either the project level or the user
level, for whichever agentic tool is running (Claude Code, Cursor, or
other). Previously the skill only wrote to the current project's
.mcp.json. It now:(e.g.
.cursor/mcp.jsonvs~/.cursor/mcp.jsonfor Cursor,.mcp.jsonvs~/.claude/.mcp.jsonfor Claude Code).red-hat-securityserver entry from the plugin'svendor-specific
com.<vendor>/mcp.json, falling back to theplugin-root
mcp.json, then to an inline skeleton.existing servers.
Pack(s) affected
ocp-adminrh-ai-engineerrh-automationrh-basicrh-developerrh-srerh-virtChange type
mcps.json)Contribution method
/agentic-contribution-skillmake validate+make validate-skill-design-changed)Pack-persona alignment (new skills only)
N/A — this updates an existing skill in
rh-basic; no new skill or pack alignment question applies.AGENTS.md compliance
${VAR}referencesValidation
make validatepasses locallyname,description)name,description)