Repository navigation
Commit b5af226
chore: migrate the TypeScript servers to TS SDK v2 (#4856)
Run @modelcontextprotocol/codemod v1-to-v2 (2.3.1) on everything,
filesystem, memory and sequentialthinking, and finish what it leaves:
- Manifests: drop @modelcontextprotocol/sdk; depend on
@modelcontextprotocol/server (plus node and server-legacy in
everything), with client (and core, for everything's skipped task
tests) as devDependencies; zod ^4.2.0; engines node >=20. The root
devDependency for the boot smoke moves to @modelcontextprotocol/client.
- everything: wrap the three raw-shape prompt argsSchemas in z.object();
drop the result schemas from ctx.mcpReq.send(); keep HTTP+SSE on the
frozen server-legacy bridge.
- Experimental tasks are gone in v2 (SEP-2663): remove
simulate-research-query and the two trigger-*-async tools and the
tasks capability, pending #4852. Their tests stay, skipped, behind
typed stand-ins for the removed v1 surface.
- Re-baseline the Part 1 (#4854) assertions that SDK v2's documented
wire changes move: unknown tools reject with -32602, the
"MCP error <code>: " prefix is gone, validation issues read
"field: message", tool schemas declare JSON Schema 2020-12, tools
no longer advertise execution.taskSupport, and the resource-not-found
message reads "Resource not found: <uri>".
- Docs, skills and the smoke script follow; one major changeset per
server records the breaking changes.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: cliffhall <[email protected]>1 parent b5cea9d commit b5af226
88 files changed
Lines changed: 674 additions & 1695 deletions
File tree
- .changeset
- .claude/skills
- security-advisory
- testing
- scripts
- src
- everything
- __tests__
- docs
- prompts
- resources
- server
- tools
- transports
- filesystem
- __tests__
- memory
- __tests__
- sequentialthinking
- __tests__
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
| 144 | + | |
144 | 145 | | |
145 | 146 | | |
146 | 147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
0 commit comments