Commit b2e4966
authored
Move aggregation to mcpd-proxy and add resource templates support (#4)
* Refactor to use SDK methods and add resource templates support
* Simplified all MCP protocol handlers to use SDK client methods instead of manual fetch calls. This provides automatic health checking, 501 Not Implemented handling, concurrent requests, caching, and proper error handling.
* Added missing resource templates support via ListResourceTemplatesRequestSchema handler.
* Removed all console output to keep stderr clean for MCP stdio protocol. Removed unnecessary try/catch blocks that just re-throw errors.
* Move server aggregation from SDK to proxy
* Version updates
* Bump to JS SDK v0.0.2
* Use mcpd-proxy version 0.0.2
* Fix generate prompt
* Update README
* Use vi.mocked1 parent 26467c4 commit b2e4966
File tree
7 files changed
+1598
-472
lines changed- src
- tests/unit
7 files changed
+1598
-472
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| 184 | + | |
184 | 185 | | |
185 | 186 | | |
186 | | - | |
| 187 | + | |
| 188 | + | |
187 | 189 | | |
188 | 190 | | |
189 | 191 | | |
| |||
346 | 348 | | |
347 | 349 | | |
348 | 350 | | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | 351 | | |
366 | 352 | | |
367 | 353 | | |
| |||
0 commit comments