Commit 3e21c7c
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 89b9adc commit 3e21c7c
4 files changed
Lines changed: 39 additions & 14 deletions
File tree
- .changeset
- docs
- packages/server/src/server
- test/integration/test/server
| 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 | |
|---|---|---|---|
| |||
866 | 866 | | |
867 | 867 | | |
868 | 868 | | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
869 | 889 | | |
870 | 890 | | |
871 | 891 | | |
| |||
| 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