Commit ce2d3e4
fix(examples/client-multi-server): align with upstream client/stdio subpath split
Upstream main split StdioClientTransport into the './stdio' subpath of
@modelcontextprotocol/client to keep the root entry free of process-spawning
runtime dependencies (child_process, cross-spawn). Two changes were needed
to align this example with the new layout:
1. src/index.ts: import StdioClientTransport from
'@modelcontextprotocol/client/stdio' instead of from the root entry.
2. tsconfig.json: add path mappings for the new client/stdio subpath and
the core/public subpath, matching the client-quickstart example. Without
these mappings, the example's typecheck resolved client/stdio through
the package's exports map to dist, which produced a race condition with
parallel build steps that clear dist before rebuilding.
Local typecheck:all, lint:all, and build:all all pass.
Co-Authored-By: Tadao <tadao@travisfixes.com>1 parent 8c2f38c commit ce2d3e4
2 files changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
| |||
0 commit comments