mcp-dashboards 2.1.0 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +291 -244
- package/THIRD_PARTY_LICENSES.md +337 -0
- package/dist/index.js +38 -3
- package/dist/index.js.map +1 -1
- package/dist/mcp-app.html +543 -416
- package/dist/preview-server.d.ts +3 -2
- package/dist/preview-server.d.ts.map +1 -1
- package/dist/preview-server.js +69 -10
- package/dist/preview-server.js.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +453 -86
- package/dist/server.js.map +1 -1
- package/dist/url-safety.d.ts +30 -0
- package/dist/url-safety.d.ts.map +1 -0
- package/dist/url-safety.js +164 -0
- package/dist/url-safety.js.map +1 -0
- package/package.json +112 -103
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
# Third-Party Licenses
|
|
2
|
+
|
|
3
|
+
MCP Dashboards is distributed under FSL-1.1-MIT (see LICENSE).
|
|
4
|
+
|
|
5
|
+
The bundled UI artifact (`dist/mcp-app.html`) embeds the following open-source libraries. Each is reproduced below with its full license text.
|
|
6
|
+
|
|
7
|
+
| Package | Version | License |
|
|
8
|
+
|---|---|---|
|
|
9
|
+
| [chart.js](https://www.npmjs.com/package/chart.js) | 4.5.1 | MIT |
|
|
10
|
+
| [@sgratzl/chartjs-chart-boxplot](https://www.npmjs.com/package/@sgratzl/chartjs-chart-boxplot) | 4.4.5 | MIT |
|
|
11
|
+
| [chartjs-adapter-luxon](https://www.npmjs.com/package/chartjs-adapter-luxon) | 1.3.1 | MIT |
|
|
12
|
+
| [chartjs-chart-financial](https://www.npmjs.com/package/chartjs-chart-financial) | 0.2.1 | MIT |
|
|
13
|
+
| [chartjs-chart-geo](https://www.npmjs.com/package/chartjs-chart-geo) | 4.3.6 | MIT |
|
|
14
|
+
| [chartjs-chart-sankey](https://www.npmjs.com/package/chartjs-chart-sankey) | 0.14.0 | MIT |
|
|
15
|
+
| [chartjs-chart-treemap](https://www.npmjs.com/package/chartjs-chart-treemap) | 3.1.0 | MIT |
|
|
16
|
+
| [chartjs-chart-wordcloud](https://www.npmjs.com/package/chartjs-chart-wordcloud) | 4.4.5 | MIT |
|
|
17
|
+
| [chartjs-plugin-annotation](https://www.npmjs.com/package/chartjs-plugin-annotation) | 3.1.0 | MIT |
|
|
18
|
+
| [chartjs-plugin-datalabels](https://www.npmjs.com/package/chartjs-plugin-datalabels) | 2.2.0 | MIT |
|
|
19
|
+
| [html2canvas-pro](https://www.npmjs.com/package/html2canvas-pro) | 2.0.4 | MIT |
|
|
20
|
+
| [luxon](https://www.npmjs.com/package/luxon) | 3.7.2 | MIT |
|
|
21
|
+
| [topojson-client](https://www.npmjs.com/package/topojson-client) | 3.1.0 | ISC |
|
|
22
|
+
| [world-atlas](https://www.npmjs.com/package/world-atlas) | 2.0.2 | ISC |
|
|
23
|
+
| [@dagrejs/dagre](https://www.npmjs.com/package/@dagrejs/dagre) | 3.0.0 | MIT |
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## chart.js @ 4.5.1
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
The MIT License (MIT)
|
|
31
|
+
|
|
32
|
+
Copyright (c) 2014-2024 Chart.js Contributors
|
|
33
|
+
|
|
34
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
35
|
+
|
|
36
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
37
|
+
|
|
38
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## @sgratzl/chartjs-chart-boxplot @ 4.4.5
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
MIT License
|
|
45
|
+
|
|
46
|
+
Copyright (c) 2019 datavisyn GmbH
|
|
47
|
+
Copyright (c) 2019-2023 Samuel Gratzl
|
|
48
|
+
|
|
49
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
50
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
51
|
+
in the Software without restriction, including without limitation the rights
|
|
52
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
53
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
54
|
+
furnished to do so, subject to the following conditions:
|
|
55
|
+
|
|
56
|
+
The above copyright notice and this permission notice shall be included in all
|
|
57
|
+
copies or substantial portions of the Software.
|
|
58
|
+
|
|
59
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
60
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
61
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
62
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
63
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
64
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
65
|
+
SOFTWARE.
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## chartjs-adapter-luxon @ 1.3.1
|
|
69
|
+
|
|
70
|
+
```
|
|
71
|
+
The MIT License (MIT)
|
|
72
|
+
|
|
73
|
+
Copyright (c) 2019 Chart.js Contributors
|
|
74
|
+
|
|
75
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
76
|
+
|
|
77
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
78
|
+
|
|
79
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## chartjs-chart-financial @ 0.2.1
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
MIT License
|
|
86
|
+
|
|
87
|
+
Copyright (c) 2017 Ben McCann
|
|
88
|
+
|
|
89
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
90
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
91
|
+
in the Software without restriction, including without limitation the rights
|
|
92
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
93
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
94
|
+
furnished to do so, subject to the following conditions:
|
|
95
|
+
|
|
96
|
+
The above copyright notice and this permission notice shall be included in all
|
|
97
|
+
copies or substantial portions of the Software.
|
|
98
|
+
|
|
99
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
100
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
101
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
102
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
103
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
104
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
105
|
+
SOFTWARE.
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
## chartjs-chart-geo @ 4.3.6
|
|
109
|
+
|
|
110
|
+
```
|
|
111
|
+
MIT License
|
|
112
|
+
|
|
113
|
+
Copyright (c) 2019-2023 Samuel Gratzl
|
|
114
|
+
|
|
115
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
116
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
117
|
+
in the Software without restriction, including without limitation the rights
|
|
118
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
119
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
120
|
+
furnished to do so, subject to the following conditions:
|
|
121
|
+
|
|
122
|
+
The above copyright notice and this permission notice shall be included in all
|
|
123
|
+
copies or substantial portions of the Software.
|
|
124
|
+
|
|
125
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
126
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
127
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
128
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
129
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
130
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
131
|
+
SOFTWARE.
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
## chartjs-chart-sankey @ 0.14.0
|
|
135
|
+
|
|
136
|
+
```
|
|
137
|
+
MIT License
|
|
138
|
+
|
|
139
|
+
Copyright (c) 2019-2024 Jukka Kurkela
|
|
140
|
+
|
|
141
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
142
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
143
|
+
in the Software without restriction, including without limitation the rights
|
|
144
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
145
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
146
|
+
furnished to do so, subject to the following conditions:
|
|
147
|
+
|
|
148
|
+
The above copyright notice and this permission notice shall be included in all
|
|
149
|
+
copies or substantial portions of the Software.
|
|
150
|
+
|
|
151
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
152
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
153
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
154
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
155
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
156
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
157
|
+
SOFTWARE.
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
## chartjs-chart-treemap @ 3.1.0
|
|
161
|
+
|
|
162
|
+
```
|
|
163
|
+
MIT License
|
|
164
|
+
|
|
165
|
+
Copyright (c) 2019-2021 Jukka Kurkela
|
|
166
|
+
|
|
167
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
168
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
169
|
+
in the Software without restriction, including without limitation the rights
|
|
170
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
171
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
172
|
+
furnished to do so, subject to the following conditions:
|
|
173
|
+
|
|
174
|
+
The above copyright notice and this permission notice shall be included in all
|
|
175
|
+
copies or substantial portions of the Software.
|
|
176
|
+
|
|
177
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
178
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
179
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
180
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
181
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
182
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
183
|
+
SOFTWARE.
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
## chartjs-chart-wordcloud @ 4.4.5
|
|
187
|
+
|
|
188
|
+
```
|
|
189
|
+
MIT License
|
|
190
|
+
|
|
191
|
+
Copyright (c) 2019-2023 Samuel Gratzl
|
|
192
|
+
|
|
193
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
194
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
195
|
+
in the Software without restriction, including without limitation the rights
|
|
196
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
197
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
198
|
+
furnished to do so, subject to the following conditions:
|
|
199
|
+
|
|
200
|
+
The above copyright notice and this permission notice shall be included in all
|
|
201
|
+
copies or substantial portions of the Software.
|
|
202
|
+
|
|
203
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
204
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
205
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
206
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
207
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
208
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
209
|
+
SOFTWARE.
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
## chartjs-plugin-annotation @ 3.1.0
|
|
213
|
+
|
|
214
|
+
```
|
|
215
|
+
The MIT License (MIT)
|
|
216
|
+
|
|
217
|
+
Copyright (c) 2016-2021 chartjs-plugin-annotation Contributors
|
|
218
|
+
|
|
219
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
220
|
+
|
|
221
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
222
|
+
|
|
223
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
## chartjs-plugin-datalabels @ 2.2.0
|
|
227
|
+
|
|
228
|
+
```
|
|
229
|
+
The MIT License (MIT)
|
|
230
|
+
|
|
231
|
+
Copyright (c) 2017-2021 chartjs-plugin-datalabels contributors
|
|
232
|
+
|
|
233
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
234
|
+
|
|
235
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
236
|
+
|
|
237
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
## html2canvas-pro @ 2.0.4
|
|
241
|
+
|
|
242
|
+
```
|
|
243
|
+
MIT License
|
|
244
|
+
|
|
245
|
+
Copyright (c) 2024-present yorickshan and html2canvas-pro contributors
|
|
246
|
+
|
|
247
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
248
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
249
|
+
in the Software without restriction, including without limitation the rights
|
|
250
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
251
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
252
|
+
furnished to do so, subject to the following conditions:
|
|
253
|
+
|
|
254
|
+
The above copyright notice and this permission notice shall be included in all
|
|
255
|
+
copies or substantial portions of the Software.
|
|
256
|
+
|
|
257
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
258
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
259
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
260
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
261
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
262
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
263
|
+
SOFTWARE.
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
## luxon @ 3.7.2
|
|
267
|
+
|
|
268
|
+
```
|
|
269
|
+
Copyright 2019 JS Foundation and other contributors
|
|
270
|
+
|
|
271
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
272
|
+
|
|
273
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
274
|
+
|
|
275
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
## topojson-client @ 3.1.0
|
|
279
|
+
|
|
280
|
+
```
|
|
281
|
+
Copyright 2012-2019 Michael Bostock
|
|
282
|
+
|
|
283
|
+
Permission to use, copy, modify, and/or distribute this software for any purpose
|
|
284
|
+
with or without fee is hereby granted, provided that the above copyright notice
|
|
285
|
+
and this permission notice appear in all copies.
|
|
286
|
+
|
|
287
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
288
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
289
|
+
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
290
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
|
291
|
+
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
292
|
+
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
|
293
|
+
THIS SOFTWARE.
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
## world-atlas @ 2.0.2
|
|
297
|
+
|
|
298
|
+
```
|
|
299
|
+
Copyright 2013-2019 Michael Bostock
|
|
300
|
+
|
|
301
|
+
Permission to use, copy, modify, and/or distribute this software for any purpose
|
|
302
|
+
with or without fee is hereby granted, provided that the above copyright notice
|
|
303
|
+
and this permission notice appear in all copies.
|
|
304
|
+
|
|
305
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
306
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
307
|
+
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
308
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
|
309
|
+
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
310
|
+
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
|
311
|
+
THIS SOFTWARE.
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
## @dagrejs/dagre @ 3.0.0
|
|
315
|
+
|
|
316
|
+
```
|
|
317
|
+
Copyright (c) 2012-2014 Chris Pettitt
|
|
318
|
+
|
|
319
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
320
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
321
|
+
in the Software without restriction, including without limitation the rights
|
|
322
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
323
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
324
|
+
furnished to do so, subject to the following conditions:
|
|
325
|
+
|
|
326
|
+
The above copyright notice and this permission notice shall be included in
|
|
327
|
+
all copies or substantial portions of the Software.
|
|
328
|
+
|
|
329
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
330
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
331
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
332
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
333
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
334
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
335
|
+
THE SOFTWARE.
|
|
336
|
+
```
|
|
337
|
+
|
package/dist/index.js
CHANGED
|
@@ -12,7 +12,36 @@ async function startStreamableHTTPServer(factory) {
|
|
|
12
12
|
const express = await import("express");
|
|
13
13
|
const cors = await import("cors");
|
|
14
14
|
const app = express.default();
|
|
15
|
-
|
|
15
|
+
// CORS: default to localhost-only to prevent drive-by attacks from any
|
|
16
|
+
// webpage the user happens to visit (a malicious site could otherwise POST
|
|
17
|
+
// to http://localhost:3001/mcp and invoke our tools - save_file etc.).
|
|
18
|
+
// Override with MCP_CORS_ALLOWED_ORIGINS=https://your-host.com,... for
|
|
19
|
+
// legitimate browser-based access from non-localhost origins.
|
|
20
|
+
const defaultOrigins = [
|
|
21
|
+
`http://localhost:${port}`,
|
|
22
|
+
`http://127.0.0.1:${port}`,
|
|
23
|
+
];
|
|
24
|
+
const envOrigins = (process.env.MCP_CORS_ALLOWED_ORIGINS ?? "")
|
|
25
|
+
.split(",")
|
|
26
|
+
.map((s) => s.trim())
|
|
27
|
+
.filter(Boolean);
|
|
28
|
+
const allowedOrigins = envOrigins.length > 0 ? envOrigins : defaultOrigins;
|
|
29
|
+
if (envOrigins.includes("*")) {
|
|
30
|
+
console.warn("[mcp-dashboards] WARNING: MCP_CORS_ALLOWED_ORIGINS contains '*' - allowing any origin. This is a serious security risk; only use for trusted environments.");
|
|
31
|
+
}
|
|
32
|
+
app.use(cors.default({
|
|
33
|
+
origin: (origin, cb) => {
|
|
34
|
+
// Same-origin requests / curl / non-browser callers have no Origin header
|
|
35
|
+
if (!origin)
|
|
36
|
+
return cb(null, true);
|
|
37
|
+
if (allowedOrigins.includes("*") || allowedOrigins.includes(origin)) {
|
|
38
|
+
return cb(null, true);
|
|
39
|
+
}
|
|
40
|
+
cb(null, false);
|
|
41
|
+
},
|
|
42
|
+
credentials: false,
|
|
43
|
+
methods: ["GET", "POST", "OPTIONS"],
|
|
44
|
+
}));
|
|
16
45
|
app.use(express.default.json());
|
|
17
46
|
app.all("/mcp", async (req, res) => {
|
|
18
47
|
const server = factory();
|
|
@@ -38,8 +67,14 @@ async function startStreamableHTTPServer(factory) {
|
|
|
38
67
|
}
|
|
39
68
|
}
|
|
40
69
|
});
|
|
41
|
-
|
|
42
|
-
|
|
70
|
+
// Default-bind to 127.0.0.1 so LAN attackers can't reach port 3001 directly
|
|
71
|
+
// and bypass the CORS allowlist (cors only triggers when an Origin header is
|
|
72
|
+
// sent; a raw curl from another machine has no Origin and would otherwise
|
|
73
|
+
// be waved through). Override with MCP_HTTP_BIND_HOST=0.0.0.0 (or any
|
|
74
|
+
// interface) for trusted deployment scenarios.
|
|
75
|
+
const bindHost = process.env.MCP_HTTP_BIND_HOST || "127.0.0.1";
|
|
76
|
+
const httpServer = app.listen(port, bindHost, () => {
|
|
77
|
+
console.log(`MCP Dashboards server listening on http://${bindHost}:${port}/mcp`);
|
|
43
78
|
});
|
|
44
79
|
const shutdown = () => {
|
|
45
80
|
console.log("\nShutting down...");
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAEA;;;;GAIG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,6BAA6B,EAAE,MAAM,oDAAoD,CAAC;AAGnG,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,KAAK,UAAU,yBAAyB,CACtC,OAAwB;IAExB,MAAM,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,MAAM,EAAE,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