Skip to content

Commit 2fce8a0

Browse files
Add optional path parameter to resources/list request
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent b9a802e commit 2fce8a0

7 files changed

Lines changed: 38 additions & 8 deletions

File tree

‎docs/specification/2025-03-26/server/resources.mdx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ supports [pagination](/specification/2025-03-26/server/utilities/pagination).
9595
"id": 1,
9696
"method": "resources/list",
9797
"params": {
98-
"cursor": "optional-cursor-value"
98+
"cursor": "optional-cursor-value",
99+
"path": "optional-path-filter"
99100
}
100101
}
101102
```

‎docs/specification/draft/changelog.mdx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ the previous revision, [2025-03-26](/specification/2025-03-26).
1111

1212
## Other schema changes
1313

14+
- Added optional `path` parameter to `resources/list` request to allow filtering resources by path
1415
- TODO
1516

1617
## Full changelog

‎docs/specification/draft/server/resources.mdx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ supports [pagination](/specification/draft/server/utilities/pagination).
9595
"id": 1,
9696
"method": "resources/list",
9797
"params": {
98-
"cursor": "optional-cursor-value"
98+
"cursor": "optional-cursor-value",
99+
"path": "optional-path-filter"
99100
}
100101
}
101102
```

‎package-lock.json‎

Lines changed: 16 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,13 @@
3535
"mintlify": "^4.0.468",
3636
"prettier": "^3.4.2",
3737
"tsx": "^4.19.1",
38-
"typescript": "^5.6.2",
38+
"typescript": "^5.8.3",
3939
"typescript-json-schema": "^0.65.1"
4040
},
4141
"resolutions": {
4242
"fast-json-patch": "^3.1.1"
43+
},
44+
"dependencies": {
45+
"tsc": "^2.0.4"
4346
}
4447
}

‎schema/2025-03-26/schema.json‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,11 @@
985985
"params": {
986986
"properties": {
987987
"cursor": {
988-
"description": "An opaque token representing the current pagination position.\nIf provided, the server should return results starting after this cursor.",
988+
"description": "An opaque token used to represent a cursor for pagination.",
989+
"type": "string"
990+
},
991+
"path": {
992+
"description": "An optional path to filter resources by.\nIf provided, the server should return only resources under this path.",
989993
"type": "string"
990994
}
991995
},

‎schema/2025-03-26/schema.ts‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,14 @@ export interface PaginatedResult extends Result {
342342
*/
343343
export interface ListResourcesRequest extends PaginatedRequest {
344344
method: "resources/list";
345+
params?: {
346+
cursor?: Cursor;
347+
/**
348+
* An optional path to filter resources by.
349+
* If provided, the server should return only resources under this path.
350+
*/
351+
path?: string;
352+
};
345353
}
346354

347355
/**

0 commit comments

Comments
 (0)