YongGoose commented on PR #1050: URL: https://github.com/apache/burr/pull/1050#issuecomment-7209964363
Thanks @skrawcz. Both changes are in 7250b95: 1. **Off by default.** `BURR_MCP_ENABLED` now defaults to `false`, and `auto` is gone. `true` still fails at startup without `mcp>=2`. The docs start the server with `BURR_MCP_ENABLED=true burr`, and `test_off_by_default` checks that an unset variable serves no `/mcp` and logs nothing, whether `mcp` 1.x, 2.x or none is installed. 2. **No MCP-specific Host policy.** `mount_mcp()` passes `TransportSecuritySettings(enable_dns_rebinding_protection=False)`, so `/mcp` answers any `Host` and `Origin`, like the REST API. The 421 test is replaced by `test_mcp_works_behind_a_hostname`, which calls `/mcp` and `/api/v0/projects` at `https://burr.example.com` with a matching `Origin`. The docs bullet about DNS rebinding now says `/mcp` is reachable like the REST API and points to the security page. I also ran the `burr` CLI in a container. With the variable unset, `POST /mcp` gave a 404. With `true`, `tools/list` returned the seven tools for both `Host: localhost:7241` and `Host: burr.example.com`. The full suite passes on Python 3.12 and 3.10. I updated the description and removed the "Still to decide" section. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
