Cloudflare Access:MCP 门户新增 Code Mode 策略,弃用旧布尔值
Access - Admins can turn on Code Mode by default for MCP portal users
使用 Cloudflare Access 管理 MCP 门户的团队注意了:Code Mode 策略从布尔值升级为四档,旧的 allow_code_mode 已弃用,需要尽快迁移到新的 code_mode 字段,否则后续可能无法配置。
MCP server portals now support four Code Mode policies: Off, Opt-in, On by default, and Enforced. Admins can choose whether Code Mode is unavailable, optional, enabled by default, or required for every session.
Existing portals retain their current behavior. Portals that previously allowed Code Mode use Opt-in, while portals that did not allow Code Mode use Off. New portals also use Opt-in by default.
Clients turn on Code Mode for an Opt-in portal with ?codemode=search_and_execute. The On by default policy lets clients opt out with ?codemode=off, which avoids nested code execution when a client runs its own Code Mode implementation. The Off and Enforced policies ignore client overrides.
The Cloudflare API exposes these policies through the code_mode field:
{
"code_mode": "default_on"
}The supported values are off, opt_in, default_on, and enforced. The previous allow_code_mode boolean is deprecated.
For configuration details and client behavior, refer to Code Mode policies.
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力