Commit 7c9f8b0
authored
feat: enums connection state and standardise tool discovery (#672)
* use enums
* move broadcast out of the finally block
* use .then
* wip client connection refactor
* feat: discoverIfConnected to refresh mcp tools.
* changeset
* fix types on discover result
* allow discovery on ready servers also
* fix: allow for duplicate callbacks in connecting state
* don't block if failed to get tools
* better error message here
* discover on restore
* discover result types
* use remove rather than closeConnections
* fix: discovery states
* move discovery to client connection
* fix: boot loop on slow mcp servers restored in on start
* fix: merge artifacts
* lil test fix.
* fix: discover tests
* update changeset1 parent 293b546 commit 7c9f8b0
File tree
12 files changed
+1188
-542
lines changed- .changeset
- packages/agents/src
- mcp
- tests
- mcp
- transports
- site/ai-playground
- src
- components
12 files changed
+1188
-542
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
1367 | 1367 | | |
1368 | 1368 | | |
1369 | 1369 | | |
1370 | | - | |
| 1370 | + | |
| 1371 | + | |
1371 | 1372 | | |
1372 | 1373 | | |
1373 | 1374 | | |
| |||
1381 | 1382 | | |
1382 | 1383 | | |
1383 | 1384 | | |
1384 | | - | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
1385 | 1397 | | |
1386 | 1398 | | |
1387 | 1399 | | |
| |||
1446 | 1458 | | |
1447 | 1459 | | |
1448 | 1460 | | |
1449 | | - | |
1450 | | - | |
1451 | 1461 | | |
1452 | 1462 | | |
1453 | | - | |
1454 | | - | |
1455 | | - | |
1456 | | - | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
1457 | 1485 | | |
1458 | 1486 | | |
1459 | 1487 | | |
1460 | | - | |
1461 | | - | |
1462 | | - | |
1463 | | - | |
| 1488 | + | |
1464 | 1489 | | |
1465 | 1490 | | |
1466 | 1491 | | |
| |||
1535 | 1560 | | |
1536 | 1561 | | |
1537 | 1562 | | |
1538 | | - | |
1539 | | - | |
1540 | | - | |
1541 | | - | |
1542 | | - | |
1543 | | - | |
1544 | | - | |
1545 | | - | |
1546 | | - | |
1547 | | - | |
1548 | | - | |
1549 | | - | |
1550 | | - | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
| 1566 | + | |
| 1567 | + | |
| 1568 | + | |
1551 | 1569 | | |
1552 | 1570 | | |
| 1571 | + | |
| 1572 | + | |
1553 | 1573 | | |
1554 | 1574 | | |
1555 | 1575 | | |
| |||
0 commit comments