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

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

ext/skills/fsPath ​

Interfaces ​

PathRules ​

Defined in: packages/server/src/ext/skills/fsPath.ts:4

Properties ​

sep ​

readonly sep: string

Defined in: packages/server/src/ext/skills/fsPath.ts:5

Methods ​

isAbsolute() ​

isAbsolute(path): boolean

Defined in: packages/server/src/ext/skills/fsPath.ts:8

Parameters ​
path ​

string

Returns ​

boolean

join() ​

join(...paths): string

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

Parameters ​
paths ​

...string[]

Returns ​

string

relative() ​

relative(from, to): string

Defined in: packages/server/src/ext/skills/fsPath.ts:7

Parameters ​
from ​

string

to ​

string

Returns ​

string

Functions ​

fsPathWithin() ​

fsPathWithin(rules, base, relative): string

Defined in: packages/server/src/ext/skills/fsPath.ts:15

Parameters ​

rules ​

PathRules

base ​

string

relative ​

string

Returns ​

string