Commit 4fadcb1
authored
ZIO client streaming transport and generic tests (#148)
* feat: split client into regular and bidirectional one depending on transport
# Conflicts:
# client/src/main/scala/chimp/client/McpClientImpl.scala
# client/src/main/scala/chimp/client/transport/HttpTransport.scala
* feat: effectful client creation, initialize internally, avoids having transient client state
* refactor: small refactor
* refactor: more readable response handling in http transport
* feat: zio client parts
* refactor: rename
* refactor: logging
* refactor: logging
* feat: integration tests WIP
* feat: integration tests WIP
* feat: integration tests WIP
* fix: flush chunks eagerly for ZIO stdio transport
* feat: add integration tests to ci
* fix: merge error
* feat: extend integration tests WIP
* fix: fix resource type tool tests
* fix: formatting
* refactor: abstract test cases over mcp client only instead over transport
* feat: default, scoped and layered factory methods for zio transport to match sttp
* fix: fix zio stdio transport hung on close
* fix: remove streams evidence from streaming stdio transport, it makes sense only to narrow down possible sttp http backend choices
* review: resolve critical findings
* feat: configurable timeout of async zio transport
* feat: require resumability for SSE stream from streaming http transports, implement for ZIO and generic test using toxiproxy
* review: avoid Thread.sleep(), abstract sleep to implement for effects
* wip: few more test cases for server sens events and client responses
* wip: few more test cases for server sens events and client responses
* fix: fix restarting SSE listener on transport close by introducing closing flag
* fix: take closing ref into account when resuming stream for pending request too
* fix: define retry policy for SSE stream reconnect instead of fixed delay
* fix: improve shutdown, make pending requests truly internal
* fix: move -32000 error to enum
* fix: specific version of everything container and latest toxiproxy1 parent 9552c29 commit 4fadcb1
39 files changed
Lines changed: 1502 additions & 274 deletions
File tree
- .github/workflows
- client-conformance/src/main/scala/chimp/conformance/client
- client-streaming/client-zio/src
- main/scala/chimp/client/transport/zio
- internal
- test/scala/chimp/client/transport/zio
- client/src
- main/scala/chimp/client
- internal
- transport
- test
- resources
- scala/chimp/client
- integration
- core/src
- main/scala/chimp/protocol
- test/scala/chimp/protocol
- examples
- src/main/scala/examples/client
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
| 28 | + | |
| 29 | + | |
25 | 30 | | |
26 | 31 | | |
27 | 32 | | |
| |||
30 | 35 | | |
31 | 36 | | |
32 | 37 | | |
33 | | - | |
| 38 | + | |
34 | 39 | | |
35 | 40 | | |
36 | 41 | | |
| |||
68 | 73 | | |
69 | 74 | | |
70 | 75 | | |
71 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
72 | 80 | | |
73 | 81 | | |
74 | 82 | | |
75 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
76 | 98 | | |
77 | 99 | | |
78 | 100 | | |
79 | 101 | | |
80 | 102 | | |
81 | 103 | | |
82 | | - | |
| 104 | + | |
83 | 105 | | |
84 | 106 | | |
85 | 107 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
| 37 | + | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
43 | | - | |
44 | | - | |
| 42 | + | |
45 | 43 | | |
46 | 44 | | |
47 | 45 | | |
| |||
0 commit comments