You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/usage.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -180,6 +180,8 @@ These are **first-step checks** for common setup problems, not full diagnostics.
180
180
181
181
> **Note on Operating Systems**: Our primary development and testing environments are **macOS and Linux**. While we provide instructions for **Windows**, these commands are run at your own discretion. If you are unsure, please verify them with your IT or system administrator before proceeding.
182
182
183
+
> **Agents**: PatternFly MCP server information is available internally through the `patternfly://context` MCP resource.
184
+
183
185
### 1. Verify Node.js Version
184
186
The PatternFly MCP server requires **Node.js 20 or higher**.
Copy file name to clipboardExpand all lines: guidelines/README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,7 @@ Agents should use these phrases as signals to consult specific documentation and
36
36
|**"review development guide"**| Review `docs/development.md` for CLI, API, and plugin authoring. |
37
37
|**"create an example tool plugin"**| Review `guidelines/agent_coding.md`, `docs/development.md`, `docs/examples/*`, and `src/*` for context, coding standards, and existing example formats. |
38
38
|**"add documentation links"** / **"add doc entries"** / **"register docs"** / **"update docs.json"** / **"contribute to docs.json"**| Follow `guidelines/skills/add-docs-links/SKILL.md`: docs.json format, duplicate check, raw URL confirmation, then run unit tests and update meta. |
39
+
|**"troubleshoot server"** / **"debug server"**| Review `docs/usage.md#troubleshooting` and the PatternFly MCP server resource `patternfly://context`|
-**Guidance Review Scope**: Unless the user explicitly asks, do not make recommendations on improving guidance if all you're asked to do is review guidance.
48
48
-**Environment Awareness**:
49
-
- Server execution requires **Node.js >= 20**.
50
-
-External tool plugins (`--tool`) require **Node.js >= 22** primarily for its robust **Permission Model** (`--experimental-permission`), which enables strict filesystem and network isolation.
51
-
-Always verify environment compatibility when proposing tools using modern Node.js features.
49
+
- Server and plugin execution requirements are defined in `package.json`.
50
+
-Always verify environment compatibility by checking `patternfly://context` or `package.json`.
51
+
-Proactively check for environment mismatches (e.g., Node.js version) if tools fail to load.
52
52
-**Security Context**:
53
53
- Default to `--plugin-isolation strict`.
54
-
- If a tool requires filesystem or network access beyond the sandbox, document the need for `--plugin-isolation none` explicitly.
54
+
- If a tool requires filesystem or network access beyond the sandbox, document the need for `--plugin-isolation none`.
55
+
-**Implicit Diagnostics**: If a tool call fails, the agent MUST proactively check `patternfly://context` to see if the user's environment meets requirements before requesting more technical details.
55
56
- Warn users when a proposed solution requires disabling isolation.
56
57
-**State Management**: Use `.agent/` directory for local guidance and state; maintain context; preserve session information.
57
58
-**Security Awareness**: Be mindful of path traversal and isolation levels when working with external tools and resource loading.
59
+
-**Troubleshooting Reference**: When encountering environment or runtime issues, consult the [Troubleshooting section in docs/usage.md](../docs/usage.md#troubleshooting) for common fixes such as Node.js upgrades, cache resets, and Windows-specific symlink issues.
@@ -112,7 +116,7 @@ exports[`options defaults should return specific properties: defaults 1`] = `
112
116
113
117
",
114
118
"serverInstanceOptions": {
115
-
"instructions": "Use the PatternFly MCP when a user asks about: PatternFly, pf, pf docs, design tokens, design guidelines, accessibility, PatternFly components, and frontend development.",
119
+
"instructions": "Use the PatternFly MCP when a user asks about: PatternFly, pf, pf docs, design tokens, design guidelines, accessibility, PatternFly components, and frontend development. Use patternfly://context for server environment and troubleshooting links if runtime issues occur.",
Copy file name to clipboardExpand all lines: src/__tests__/__snapshots__/server.test.ts.snap
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -183,7 +183,7 @@ exports[`runServer should attempt to run server, create transport, connect, and
183
183
"resources": {},
184
184
"tools": {},
185
185
},
186
-
"instructions": "Use the PatternFly MCP when a user asks about: PatternFly, pf, pf docs, design tokens, design guidelines, accessibility, PatternFly components, and frontend development.",
186
+
"instructions": "Use the PatternFly MCP when a user asks about: PatternFly, pf, pf docs, design tokens, design guidelines, accessibility, PatternFly components, and frontend development. Use patternfly://context for server environment and troubleshooting links if runtime issues occur.",
187
187
},
188
188
],
189
189
],
@@ -256,7 +256,7 @@ exports[`runServer should attempt to run server, disable SIGINT handler: diagnos
256
256
"resources": {},
257
257
"tools": {},
258
258
},
259
-
"instructions": "Use the PatternFly MCP when a user asks about: PatternFly, pf, pf docs, design tokens, design guidelines, accessibility, PatternFly components, and frontend development.",
259
+
"instructions": "Use the PatternFly MCP when a user asks about: PatternFly, pf, pf docs, design tokens, design guidelines, accessibility, PatternFly components, and frontend development. Use patternfly://context for server environment and troubleshooting links if runtime issues occur.",
260
260
},
261
261
],
262
262
],
@@ -324,7 +324,7 @@ exports[`runServer should attempt to run server, enable SIGINT handler explicitl
324
324
"resources": {},
325
325
"tools": {},
326
326
},
327
-
"instructions": "Use the PatternFly MCP when a user asks about: PatternFly, pf, pf docs, design tokens, design guidelines, accessibility, PatternFly components, and frontend development.",
327
+
"instructions": "Use the PatternFly MCP when a user asks about: PatternFly, pf, pf docs, design tokens, design guidelines, accessibility, PatternFly components, and frontend development. Use patternfly://context for server environment and troubleshooting links if runtime issues occur.",
328
328
},
329
329
],
330
330
],
@@ -403,7 +403,7 @@ exports[`runServer should attempt to run server, register a tool: diagnostics 1`
403
403
"resources": {},
404
404
"tools": {},
405
405
},
406
-
"instructions": "Use the PatternFly MCP when a user asks about: PatternFly, pf, pf docs, design tokens, design guidelines, accessibility, PatternFly components, and frontend development.",
406
+
"instructions": "Use the PatternFly MCP when a user asks about: PatternFly, pf, pf docs, design tokens, design guidelines, accessibility, PatternFly components, and frontend development. Use patternfly://context for server environment and troubleshooting links if runtime issues occur.",
407
407
},
408
408
],
409
409
],
@@ -490,7 +490,7 @@ exports[`runServer should attempt to run server, register multiple tools: diagno
490
490
"resources": {},
491
491
"tools": {},
492
492
},
493
-
"instructions": "Use the PatternFly MCP when a user asks about: PatternFly, pf, pf docs, design tokens, design guidelines, accessibility, PatternFly components, and frontend development.",
493
+
"instructions": "Use the PatternFly MCP when a user asks about: PatternFly, pf, pf docs, design tokens, design guidelines, accessibility, PatternFly components, and frontend development. Use patternfly://context for server environment and troubleshooting links if runtime issues occur.",
494
494
},
495
495
],
496
496
],
@@ -566,7 +566,7 @@ exports[`runServer should attempt to run server, use custom options: diagnostics
566
566
"resources": {},
567
567
"tools": {},
568
568
},
569
-
"instructions": "Use the PatternFly MCP when a user asks about: PatternFly, pf, pf docs, design tokens, design guidelines, accessibility, PatternFly components, and frontend development.",
569
+
"instructions": "Use the PatternFly MCP when a user asks about: PatternFly, pf, pf docs, design tokens, design guidelines, accessibility, PatternFly components, and frontend development. Use patternfly://context for server environment and troubleshooting links if runtime issues occur.",
570
570
},
571
571
],
572
572
],
@@ -645,7 +645,7 @@ exports[`runServer should attempt to run server, use default tools, http: diagno
645
645
"resources": {},
646
646
"tools": {},
647
647
},
648
-
"instructions": "Use the PatternFly MCP when a user asks about: PatternFly, pf, pf docs, design tokens, design guidelines, accessibility, PatternFly components, and frontend development.",
648
+
"instructions": "Use the PatternFly MCP when a user asks about: PatternFly, pf, pf docs, design tokens, design guidelines, accessibility, PatternFly components, and frontend development. Use patternfly://context for server environment and troubleshooting links if runtime issues occur.",
649
649
},
650
650
],
651
651
],
@@ -727,7 +727,7 @@ exports[`runServer should attempt to run server, use default tools, stdio: diagn
727
727
"resources": {},
728
728
"tools": {},
729
729
},
730
-
"instructions": "Use the PatternFly MCP when a user asks about: PatternFly, pf, pf docs, design tokens, design guidelines, accessibility, PatternFly components, and frontend development.",
730
+
"instructions": "Use the PatternFly MCP when a user asks about: PatternFly, pf, pf docs, design tokens, design guidelines, accessibility, PatternFly components, and frontend development. Use patternfly://context for server environment and troubleshooting links if runtime issues occur.",
0 commit comments