You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Within your tools (and eventually within your prompts and resources
176
-
too), you can try and perform a side-effect that can _only_ be tried
177
-
once using `at_most_once`. If you can attempt to perform the
178
-
side-effect more than once always prefer `at_least_once`. Here's an
179
-
example of `at_most_once`:
175
+
Within your tools (and soon within your prompts and resources too),
176
+
you can perform a side-effect that can _only_ be tried once using
177
+
`at_most_once` (if you can perform the side-effect more than once
178
+
using safely then always prefer `at_least_once`). Here's an example of
179
+
`at_most_once`:
180
180
181
181
```python
182
182
from reboot.aio.workflows import at_least_once
@@ -220,9 +220,11 @@ Start by enabling debug logging:
220
220
mcp = DurableMCP(path="/mcp", log_level="DEBUG")
221
221
```
222
222
223
-
Then consider wrapping your tool/prompt/etc functions in a
224
-
`try`/`except` because the MCP SDK will "swallow" errors and all that
225
-
the client gets back is just that the request failed.
223
+
The MCP SDK is aggressive about "swallowing" errors on the server side
224
+
and just returning "request failed" so we do our best to log stack
225
+
traces on the server. If you find a place where you've needed to add
226
+
your own `try`/`catch` please let us know we'd love to log that for
227
+
you automatically.
226
228
227
229
### Supported client --> server _requests_:
228
230
-[x]`initialize`
@@ -260,11 +262,10 @@ the client gets back is just that the request failed.
260
262
-[ ]`notifications/cancelled`
261
263
262
264
### TODO:
265
+
-[ ] Auth pass through to MCP SDK
263
266
-[ ] Adding tools, resources, and prompts dynamically
264
267
-[ ] Add examples of how to test via `Reboot().start/up/down/stop()`
265
268
-[ ] Add example of rebooting server using MCP Inspector version [0.16.7](https://github.com/modelcontextprotocol/inspector/releases/tag/0.16.7) which includes [modelcontextprotocol/inspector#787](https://github.com/modelcontextprotocol/inspector/pull/787)
0 commit comments