Repository navigation
Commit 6bc7ade
committed
fix(mcp): log the server/discover connect probe as info, not an error
That call now passes false for the error argument when the method is
server/discover and true for every other unknown method, so the probe is
logged as level=info with status=ok while other misses stay level=warn
and status=error. The JSON-RPC response is still -32601 Method not
found. The new test server_handle_discover_probe_logs_info checks those
log fields, checks that unknown/method still logs a warning, checks that
an initialize request for 2026-07-28 still negotiates 2025-11-25, and
checks that resources/list still returns an empty resource list.
Fixes #2433
Signed-off-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>1 parent 268a9d8 commit 6bc7ade
2 files changed
Lines changed: 57 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18681 | 18681 | | |
18682 | 18682 | | |
18683 | 18683 | | |
18684 | | - | |
| 18684 | + | |
| 18685 | + | |
| 18686 | + | |
18685 | 18687 | | |
18686 | 18688 | | |
18687 | 18689 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2355 | 2355 | | |
2356 | 2356 | | |
2357 | 2357 | | |
| 2358 | + | |
| 2359 | + | |
| 2360 | + | |
| 2361 | + | |
| 2362 | + | |
| 2363 | + | |
| 2364 | + | |
| 2365 | + | |
| 2366 | + | |
| 2367 | + | |
| 2368 | + | |
| 2369 | + | |
| 2370 | + | |
| 2371 | + | |
| 2372 | + | |
| 2373 | + | |
| 2374 | + | |
| 2375 | + | |
| 2376 | + | |
| 2377 | + | |
| 2378 | + | |
| 2379 | + | |
| 2380 | + | |
| 2381 | + | |
| 2382 | + | |
| 2383 | + | |
| 2384 | + | |
| 2385 | + | |
| 2386 | + | |
| 2387 | + | |
| 2388 | + | |
| 2389 | + | |
| 2390 | + | |
| 2391 | + | |
| 2392 | + | |
| 2393 | + | |
| 2394 | + | |
| 2395 | + | |
| 2396 | + | |
| 2397 | + | |
| 2398 | + | |
| 2399 | + | |
| 2400 | + | |
| 2401 | + | |
| 2402 | + | |
| 2403 | + | |
| 2404 | + | |
| 2405 | + | |
| 2406 | + | |
| 2407 | + | |
| 2408 | + | |
| 2409 | + | |
| 2410 | + | |
2358 | 2411 | | |
2359 | 2412 | | |
2360 | 2413 | | |
| |||
22351 | 22404 | | |
22352 | 22405 | | |
22353 | 22406 | | |
| 22407 | + | |
22354 | 22408 | | |
22355 | 22409 | | |
22356 | 22410 | | |
| |||
0 commit comments