MCP TypeScript SDK (V2) / @modelcontextprotocol/server / ext/skills
ext/skills
Type Aliases
DirectoryResource
DirectoryResource =
z.infer<typeofDirectoryResourceSchema>
Defined in: packages/core/src/ext/skills/types.ts:38
A child of a directory resource.
GetSkillResult
GetSkillResult =
z.infer<typeofGetSkillResultSchema>
Defined in: packages/core/src/ext/skills/types.ts:36
Result of skills/get.
ListSkillsResult
ListSkillsResult =
z.infer<typeofListSkillsResultSchema>
Defined in: packages/core/src/ext/skills/types.ts:32
Result of skills/list.
ReadResourceDirectoryResult
ReadResourceDirectoryResult =
z.infer<typeofReadResourceDirectoryResultSchema>
Defined in: packages/core/src/ext/skills/types.ts:42
Result of resources/directory/read.
Skill
Skill =
z.infer<typeofSkillSchema>
Defined in: packages/core/src/ext/skills/types.ts:26
One skill entry, as skills/list and skills/get carry it.
SkillCacheScope
SkillCacheScope =
z.infer<typeofSkillCacheScopeSchema>
Defined in: packages/core/src/ext/skills/types.ts:28
public or private.
SkillFrontmatter
SkillFrontmatter =
z.infer<typeofSkillFrontmatterSchema>
Defined in: packages/core/src/ext/skills/types.ts:22
A skill's SKILL.md frontmatter as JSON, verbatim.
SkillResourceEntry
SkillResourceEntry =
z.infer<typeofSkillResourceEntrySchema>
Defined in: packages/core/src/ext/skills/types.ts:20
One file of a skill, with what a host needs to verify it.
SkillResources
SkillResources =
z.infer<typeofSkillResourcesSchema>
Defined in: packages/core/src/ext/skills/types.ts:24
A skill's complete file list, or "dynamic".
SkillsCapability
SkillsCapability =
z.infer<typeofSkillsCapabilitySchema>
Defined in: packages/core/src/ext/skills/types.ts:44
The value at capabilities.extensions["io.modelcontextprotocol/skills"].
Variables
DIRECTORY_MIME_TYPE
constDIRECTORY_MIME_TYPE:"inode/directory"='inode/directory'
Defined in: packages/core/src/ext/skills/constants.ts:20
The mimeType of a directory resource.
RESOURCES_DIRECTORY_READ_METHOD
constRESOURCES_DIRECTORY_READ_METHOD:"resources/directory/read"='resources/directory/read'
Defined in: packages/core/src/ext/skills/constants.ts:17
Lists the direct children of a directory resource (gated by directoryRead).
SKILL_LIMITS
constSKILL_LIMITS:Readonly<{bytes:number;files:number; }>
Defined in: packages/core/src/ext/skills/constants.ts:26
Per-skill interoperability limits. Hosts MUST accept skills up to these; servers SHOULD NOT publish skills over them.
SKILLS_EXTENSION_ID
constSKILLS_EXTENSION_ID:"io.modelcontextprotocol/skills"='io.modelcontextprotocol/skills'
Defined in: packages/core/src/ext/skills/constants.ts:8
The identifier a server advertises in ServerCapabilities.extensions.
SKILLS_GET_METHOD
constSKILLS_GET_METHOD:"skills/get"='skills/get'
Defined in: packages/core/src/ext/skills/constants.ts:14
Returns one skill's entry by its SKILL.md URI, listed or not.
SKILLS_LIST_METHOD
constSKILLS_LIST_METHOD:"skills/list"='skills/list'
Defined in: packages/core/src/ext/skills/constants.ts:11
Enumerates the skills a server serves.
References
memorySkillFiles
Re-exports memorySkillFiles
SkillCatalog
Re-exports SkillCatalog
SkillCatalogChanges
Re-exports SkillCatalogChanges
SkillCatalogError
Re-exports SkillCatalogError
SkillCatalogOptions
Re-exports SkillCatalogOptions
skillEntry
Re-exports skillEntry
SkillFileEntry
Re-exports SkillFileEntry
SkillFiles
Re-exports SkillFiles
SkillReadResult
Re-exports SkillReadResult
SkillsExtension
Re-exports SkillsExtension
SkillsOptions
Re-exports SkillsOptions
SkillSource
Re-exports SkillSource
SkillSourceOptions
Re-exports SkillSourceOptions
SkillWarning
Re-exports SkillWarning