Repository navigation
Commit c920f1f
committed
release: sync fastmcpp v3.4.7.1 from private
HTTPS without OpenSSL, an OAuth-capable client, and a handshake that negotiates.
Reaching https:// no longer needs OpenSSL. With FASTMCPP_ENABLE_OPENSSL off --
the default -- an https:// URL parsed fine and then failed at the TLS handshake.
Two new transports close that, both implementing ITransport so they drop into
Client in place of StreamableHttpTransport:
* WinHttpTransport (Windows, on by default) -- TLS via Schannel, with the
system certificate store and enterprise proxy configuration. No third-party
dependency.
* CurlTransport (all platforms, FASTMCPP_ENABLE_CURL_TRANSPORT=ON) -- binds to
whichever TLS backend the platform provides.
Client:
* HeaderProvider computes headers per request, so a rotating bearer token is
refreshed without rebuilding the transport and losing its session. It is
given the outgoing request, so request-signing schemes work too.
* TransportHttpError retains the status, headers and body of a failure. The
WWW-Authenticate challenge -- the client's discovery mechanism under the MCP
authorization spec -- was previously discarded. It derives from
TransportError, so existing catch sites are unaffected.
* Credentials are dropped across a cross-origin redirect.
* Client::set_protocol_version(), and cancel() now accepts a JSON-RPC id.
Protocol:
* ITransport::notify() frames notifications without an id.
notifications/initialized was never sent, leaving the handshake incomplete;
cancel/progress/roots-list-changed went out as requests carrying ids.
* Servers negotiate: initialize echoes back a recognised requested version
rather than announcing a constant, so older clients keep working. The
default advances to 2025-11-25.
* A timed-out tools/call sends notifications/cancelled naming that request.
Fixes:
* The Host/Origin guard could reset the connection instead of delivering its
421/403. httplib runs pre-routing before the body is read, so rejecting a
POST left it unread and the close sent RST -- and every MCP request is a
POST with a body.
* call_tool_mcp's timeout could not fire early: an std::async future's
destructor blocks, so the exception arrived only after the call finished.
* clientInfo.version was hardcoded at 2.14.0; it is now the build version.
Versioning: major.minor.patch tracks the upstream fastmcp release this port is
at parity with; the fourth component is a local revision for C++-side work with
no upstream delta, and resets when the parity level moves.1 parent 3f4f9b5 commit c920f1f
45 files changed
Lines changed: 5035 additions & 753 deletions
File tree
- .github/workflows
- include
- fastmcpp
- client
- server
- src
- client
- cli
- mcp
- server
- tests
- client
- server
- support
- transports
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
7 | 14 | | |
8 | 15 | | |
9 | 16 | | |
| |||
16 | 23 | | |
17 | 24 | | |
18 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
19 | 37 | | |
20 | 38 | | |
21 | 39 | | |
| |||
55 | 73 | | |
56 | 74 | | |
57 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
58 | 79 | | |
59 | 80 | | |
60 | 81 | | |
61 | 82 | | |
62 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
63 | 91 | | |
64 | 92 | | |
65 | 93 | | |
66 | 94 | | |
67 | 95 | | |
68 | 96 | | |
69 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
70 | 103 | | |
71 | 104 | | |
72 | 105 | | |
| |||
135 | 168 | | |
136 | 169 | | |
137 | 170 | | |
138 | | - | |
| 171 | + | |
139 | 172 | | |
140 | 173 | | |
141 | 174 | | |
| |||
196 | 229 | | |
197 | 230 | | |
198 | 231 | | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
199 | 238 | | |
200 | 239 | | |
201 | 240 | | |
202 | 241 | | |
203 | 242 | | |
204 | 243 | | |
205 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
206 | 248 | | |
207 | 249 | | |
208 | 250 | | |
| |||
222 | 264 | | |
223 | 265 | | |
224 | 266 | | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
225 | 274 | | |
226 | 275 | | |
227 | 276 | | |
| |||
507 | 556 | | |
508 | 557 | | |
509 | 558 | | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
510 | 603 | | |
511 | 604 | | |
512 | 605 | | |
| |||
738 | 831 | | |
739 | 832 | | |
740 | 833 | | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
741 | 837 | | |
742 | 838 | | |
743 | 839 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
25 | 32 | | |
26 | 33 | | |
27 | 34 | | |
28 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
29 | 39 | | |
30 | 40 | | |
31 | 41 | | |
| |||
40 | 50 | | |
41 | 51 | | |
42 | 52 | | |
43 | | - | |
| 53 | + | |
44 | 54 | | |
45 | 55 | | |
46 | 56 | | |
47 | 57 | | |
48 | | - | |
| 58 | + | |
| 59 | + | |
49 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
50 | 94 | | |
51 | 95 | | |
52 | 96 | | |
| |||
75 | 119 | | |
76 | 120 | | |
77 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
78 | 125 | | |
79 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
80 | 131 | | |
81 | 132 | | |
82 | 133 | | |
| |||
355 | 406 | | |
356 | 407 | | |
357 | 408 | | |
358 | | - | |
| 409 | + | |
359 | 410 | | |
360 | 411 | | |
361 | 412 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
| 39 | + | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
| |||
0 commit comments