SIGIL

Skill · mcp/typescript-server · v1.0.0 · MIT

MCP Servers in TypeScript (SDK v2)

Build, test and port MCP servers on the v2 TypeScript SDK and the 2026-07-28 protocol, without the v1-era mistakes agents usually make.

Current, verified guidance for Model Context Protocol servers written with the official TypeScript SDK v2 (@modelcontextprotocol/server 2.x, zod 4). It covers tool registration and schemas, structured output that passes the SDK's own validation, choosing between isError results and protocol errors, resource templates that actually list, prompts, progress and cancellation through ctx.mcpReq, serving both protocol eras with serveStdio or createMcpHandler, stdout hygiene on stdio, and a symptom-driven map for porting @modelcontextprotocol/sdk 1.x code. Each claim was checked against the installed 2.4.0 packages and the 2026-07-28 specification.

  • AI engineering
  • Backend
  • build
  • test
  • mcp
  • typescript
  • nodejs
  • zod

uplift

Untested

No runs exist for this digest.

Not measured for this digest.

Untested is not the same as useless: nobody has measured it yet. Proof comes from A/B runs on hidden tests:

npx sigil prove catalog/skills/mcp/typescript-server --suite <suite> --runs 6

trust level · submitted

Submitted
  • in the catalog: met
Validated
  • structure check: not met
  • static scan, no high findings: not met
Verified
  • canary sandbox passed: not met
  • maintainer approved: not met

canary sandbox

Not run for this digest.

static scan

Not run for this digest.

compatibility · targeted, compiled and evaluated are separate claims

agenttargeted by authorcompiledevaluated in the labnotes
Claude Codetargeted: yesno record for compiledno record for evaluated
Codextargeted: yesno record for compiledno record for evaluated
Cursortargeted: yesno record for compiledno record for evaluated
GitHub Copilottargeted: yesno record for compiledno record for evaluated
Gemini CLItargeted: yesno record for compiledno record for evaluated
OpenCodetargeted: yesno record for compiledno record for evaluated

declared permissions

network
none
shell
node, npm test, npm run typecheck, npx tsc
filesystem
write
env
none

Undeclared access is a finding in the scan and a tripwire in the canary.

source

path
catalog/skills/mcp/typescript-server
authors
dgesteves
entry
SKILL.md (agent-skill)
registry
2026-11-02 · 5cb851d

install

$ npx sigil add mcp/typescript-server --agent claude-code

No compile record for Claude Code on this digest. Install never runs capability scripts, and refuses on any digest mismatch.

known limitations

  • Written for @modelcontextprotocol/server 2.4.x and protocol revision 2026-07-28; later 2.x releases may rename or add APIs.
  • Covers TypeScript servers. Client and host development, OAuth authorization servers and the Python SDK are only touched where a server needs them.
  • Streamable HTTP guidance is lighter than stdio and was checked with node:http only, not every framework adapter.
  • Multi-round-trip input (inputRequired), subscriptions and tasks are named but not taught in depth.
  • The proof suite exercises stdio servers only; HTTP deployment advice is not measured by it.