Commit eafaf13
committed
address review: changeset, move ToolError, migration docs, test nit
1. Add minor changeset for @modelcontextprotocol/server
2. Move ToolError class above McpServer JSDoc so generated docs
aren't orphaned
3. Add migration.md entry explaining the breaking change for v1
authors who throw raw Error expecting clients to see the message
4. Add expect(result.isError).toBe(true) to cancellation test1 parent a866147 commit eafaf13
File tree
4 files changed
+39
-14
lines changed- .changeset
- docs
- packages/server/src/server
- test/integration/test/server
4 files changed
+39
-14
lines changed| 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 | |
|---|---|---|---|
| |||
870 | 870 | | |
871 | 871 | | |
872 | 872 | | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
873 | 893 | | |
874 | 894 | | |
875 | 895 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | 48 | | |
63 | 49 | | |
64 | 50 | | |
| |||
74 | 60 | | |
75 | 61 | | |
76 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
77 | 76 | | |
78 | 77 | | |
79 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7076 | 7076 | | |
7077 | 7077 | | |
7078 | 7078 | | |
| 7079 | + | |
7079 | 7080 | | |
7080 | 7081 | | |
7081 | 7082 | | |
| |||
0 commit comments