1818
1919## ` MCPGODEBUG ` history
2020
21+ ### 1.6.0
22+
23+ Options listed below were added and will be removed in the 1.8.0 version of the SDK.
24+
25+ - ` seterroroverwrite ` added. If set to ` 1 ` , ` SetError ` will always overwrite
26+ ` Content ` with the error text, restoring the previous behavior. The default
27+ behavior was changed to preserve existing ` Content ` if it has already been
28+ populated.
29+
30+ - ` enableoriginverification ` added. If set to ` 1 ` , default (zero-value)
31+ cross-origin protection will be applied when
32+ ` StreamableHTTPOptions.CrossOriginProtection ` is nil, restoring the
33+ behavior from v1.4.1-v1.5.0. The default behavior was changed to not
34+ enable cross-origin protection.
35+
36+ - ` disablelocalhostprotection ` removal was postponed until 1.8.0, as it is now
37+ also used in the SSE transport.
38+
39+ Options below were removed:
40+
41+ - ` jsonescaping ` , according to plan,
42+
43+ - ` disablecrossoriginprotection ` , it was replaced by
44+ ` enableoriginverification ` after the default was changed to not enable
45+ cross-origin protection.
46+
2147### 1.4.1
2248
2349Options listed below will be removed in the 1.6.0 version of the SDK.
2450
2551- ` disablecrossoriginprotection ` added. If set to ` 1 ` , newly added cross-origin
2652 protection will be disabled. The default behavior was changed to enable
27- cross-origin protection. ** Removal of this option was postponed until 1.7.0. **
53+ cross-origin protection.
2854
2955### 1.4.0
3056
@@ -39,4 +65,4 @@ Options listed below will be removed in the 1.6.0 version of the SDK.
3965 protection. The protection can also be disabled by setting the
4066 ` DisableLocalhostProtection ` field in the ` StreamableHTTPOptions ` or
4167 ` SSEOptions ` struct to ` true ` , which is the recommended way to disable
42- the protection long term. ** Removal of this option was postponed until 1.7 .0.**
68+ the protection long term. ** Removal of this option was postponed until 1.8 .0.**
0 commit comments