Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cspell.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"onsessionclosed",
"patternfly",
"rereview",
"rsort",
"sparkline",
"streamable",
"unrepresentable",
Expand Down
8 changes: 6 additions & 2 deletions guidelines/agent_behaviors.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,15 @@ When implementing tools that interact with the local filesystem, always use `res
```typescript
import { resolveLocalPathFunction } from './server.getResources';
// ...
const safePath = await resolveLocalPathFunction(requestedPath, rootDir);
let safePath;

if (!safePath) {
try {
safePath = resolveLocalPathFunction(requestedPath);
} catch {
throw new McpError(ErrorCode.InvalidParams, 'Access denied');
}

// use safePath for subsequent file operations
```

### 6.2 Plugin Isolation
Expand Down
199 changes: 65 additions & 134 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,14 @@
"@patternfly/patternfly-component-schemas": "1.2.0",
"fastest-levenshtein": "1.0.16",
"pid-port": "2.0.1",
"semver": "7.7.3",
"zod": "4.3.6"
},
"devDependencies": {
"@cdcabrera/eslint-config-toolkit": "^0.4.0",
"@types/jest": "^30.0.0",
"@types/node": "^25.0.10",
"@types/semver": "7.7.1",
"@typescript-eslint/eslint-plugin": "^8.54.0",
"@typescript-eslint/parser": "^8.54.0",
"changelog-light": "^3.0.5",
Expand Down
4 changes: 2 additions & 2 deletions src/__tests__/__snapshots__/options.defaults.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ exports[`options defaults should return specific properties: defaults 1`] = `
"nodeVersion": 22,
"patternflyOptions": {
"availableResourceVersions": [
"v6",
"6.0.0",
],
"default": {
"defaultVersion": "v6",
"defaultVersion": "6.0.0",
"versionStrategy": "highest",
"versionWhitelist": [
"@patternfly/react-core",
Expand Down
Loading
Loading