Commit 9bb0937
committed
Ignore MCP notifications
With the [email protected] we now get a notification before receiving the
response to our request:
>>> {"jsonrpc":"2.0","id":2,"method":"tools/list"}
<<< {"jsonrpc":"2.0","method":"notifications/tools/list_changed","params":{}}
Notifications have a `method` field, but no `id`. We need to ignore them
until we receive an actual response object.
This commit also fixes a potential problem deleting the /tmp/tmp directory
inside the VM when running the tests multiple times using the same Lima
instance (LIMA_BATS_REUSE_INSTANCE=1).
Signed-off-by: Jan Dubois <[email protected]>1 parent 02161c4 commit 9bb0937
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
71 | 79 | | |
72 | 80 | | |
73 | 81 | | |
| |||
253 | 261 | | |
254 | 262 | | |
255 | 263 | | |
| 264 | + | |
| 265 | + | |
256 | 266 | | |
257 | 267 | | |
258 | 268 | | |
| |||
0 commit comments