Commit 6136a41
Bump MCP Swift SDK to 0.12.0 and fix connection crash (#162)
* Fix SIGTRAP crash from continuation misuse in connection handling
The MCP SDK's NetworkTransport has reconnection logic that creates
unstructured tasks holding CheckedContinuation references. For
server-side incoming connections, this reconnection path can cause
double-resume when connections are cancelled, crashing the app.
Disable reconnection and heartbeats for server-accepted connections
since they are client features — if a client disconnects, it should
reconnect itself. Also make removeConnection idempotent to prevent
stop() being called twice on the same connection.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Bump MCP Swift SDK to 0.12.0 and fix breaking API changes
Update swift-sdk dependency from revision pin (106167b) to version-based
0.12.0, which resolves Swift 6 strict concurrency data race errors in
NetworkTransport that prevented building. Adapt ServerController to the
new Tool.Content labeled enum cases and convert inputSchema from
JSONSchema to Value at the MCP.Tool creation boundary.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Adam Van Prooyen <adam.vanpr@gmail.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 15a540d commit 6136a41
3 files changed
Lines changed: 46 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
| 435 | + | |
| 436 | + | |
435 | 437 | | |
436 | 438 | | |
437 | 439 | | |
| |||
627 | 629 | | |
628 | 630 | | |
629 | 631 | | |
| 632 | + | |
630 | 633 | | |
631 | 634 | | |
632 | 635 | | |
| |||
764 | 767 | | |
765 | 768 | | |
766 | 769 | | |
| 770 | + | |
767 | 771 | | |
768 | 772 | | |
769 | 773 | | |
770 | 774 | | |
771 | 775 | | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
772 | 784 | | |
773 | 785 | | |
774 | 786 | | |
| |||
873 | 885 | | |
874 | 886 | | |
875 | 887 | | |
876 | | - | |
| 888 | + | |
877 | 889 | | |
878 | 890 | | |
879 | 891 | | |
| |||
889 | 901 | | |
890 | 902 | | |
891 | 903 | | |
892 | | - | |
| 904 | + | |
893 | 905 | | |
894 | 906 | | |
895 | 907 | | |
| |||
899 | 911 | | |
900 | 912 | | |
901 | 913 | | |
902 | | - | |
| 914 | + | |
903 | 915 | | |
904 | 916 | | |
905 | 917 | | |
| |||
928 | 940 | | |
929 | 941 | | |
930 | 942 | | |
931 | | - | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
932 | 946 | | |
933 | 947 | | |
934 | 948 | | |
| |||
939 | 953 | | |
940 | 954 | | |
941 | 955 | | |
942 | | - | |
| 956 | + | |
| 957 | + | |
943 | 958 | | |
944 | 959 | | |
945 | 960 | | |
| |||
953 | 968 | | |
954 | 969 | | |
955 | 970 | | |
956 | | - | |
| 971 | + | |
957 | 972 | | |
958 | 973 | | |
959 | 974 | | |
960 | 975 | | |
961 | 976 | | |
962 | | - | |
| 977 | + | |
963 | 978 | | |
964 | 979 | | |
965 | 980 | | |
966 | 981 | | |
967 | 982 | | |
968 | 983 | | |
969 | | - | |
| 984 | + | |
970 | 985 | | |
971 | 986 | | |
972 | 987 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
759 | 759 | | |
760 | 760 | | |
761 | 761 | | |
762 | | - | |
763 | | - | |
| 762 | + | |
| 763 | + | |
764 | 764 | | |
765 | 765 | | |
766 | 766 | | |
| |||
Lines changed: 21 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments