Skip to content

Commit f3e0edd

Browse files
cliffhallclaude
andcommitted
docs: describe DirectoryReadResultSchema as the shape both eras share (#2374 review)
Its doc comment still called it the legacy result, though both eras now parse with it once the codec has removed resultType. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Q3RsrgCxVoFPokLB4vAkxi Signed-off-by: cliffhall <[email protected]>
1 parent e53f6a1 commit f3e0edd

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎core/mcp/skillsSchemas.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,10 @@ export type GetSkillResult = SkillEntry;
235235
export const DirectoryChildSchema = ResourceSchema;
236236

237237
/**
238-
* `resources/directory/read` result on a **legacy** connection: the directory's
239-
* direct children plus the opaque cursor.
238+
* `resources/directory/read` result on **either** era: the directory's direct
239+
* children plus the opaque cursor. On a modern connection this is the shape
240+
* after the SDK codec has checked and removed `resultType`, which is why no
241+
* modern variant exists — see the note below (#2373).
240242
*
241243
* `looseObject`, matching every other result schema here: a server that also
242244
* sends the caching attributes is not wrong for doing so, and a schema is not

0 commit comments

Comments
 (0)