mcp-typescript-sdk-skills
Installation
SKILL.md
Skills over MCP with the TypeScript SDK
Skills over MCP lets an MCP server publish agent skills (folders with a SKILL.md) and lets clients list, verify and load them. In v2 of the TypeScript SDK it ships as the ext/skills subpaths of @modelcontextprotocol/server and @modelcontextprotocol/client.
The goal is working, verified code in the user's project. Use only the APIs shown here and in the references, and skip explaining the protocol unless the user asks.
Which side the project is on
Read package.json and the source before writing anything:
- Server: depends on
@modelcontextprotocol/serverand creates anMcpServer, directly or in a factory passed toserveStdioorcreateMcpHandler. It publishes skills: follow Serve skills. - Client or host: depends on
@modelcontextprotocol/clientand creates aClient. It loads skills from the servers it connects to: follow Use skills. - Both (a host that also runs a server, a gateway): follow both, each against its own code. A
Clientthat exists only in the project's tests does not make it a host: that is where Verify runs. - v1 (
@modelcontextprotocol/sdk): Skills over MCP exists only in v2. Upgrade first with themcp-typescript-sdk-upgrade-to-v2skill, then come back.
Check that the installed SDK has skills
Skills over MCP ships in the ./ext/skills export of the v2 packages, and an import of a subpath the installed package lacks fails only at build or run time. Check first, from the package that depends on the SDK (use client in place of server for a client):