This is the documentation for v2 — looking for the v1 documentation?
Skip to content

MCP TypeScript SDK (V2) / @modelcontextprotocol/server / ext/skills/files

ext/skills/files ​

Functions ​

memorySkillFiles() ​

memorySkillFiles(files): SkillFiles

Defined in: packages/server/src/ext/skills/files.ts:47

An in-memory adapter. The record is re-read whenever a walk starts — list('') — so reload() sees later changes. Other calls use the index from that read (built on first use if no walk has started), so their cost does not grow with the record. File contents are always read live.

Parameters ​

files ​

Record<string, string | Uint8Array>

Returns ​

SkillFiles


splitRelativePath() ​

splitRelativePath(path, label): string[]

Defined in: packages/server/src/ext/skills/files.ts:6

Parameters ​

path ​

string

label ​

string

Returns ​

string[]