Repository navigation
Upgrade notes
This release tightens who may reach the daemon's HTTP API. Read this before upgrading.
The API now binds loopback by default
mcpd daemon binds 127.0.0.1:8090 instead of 0.0.0.0:8090. A daemon that other machines must reach needs api.addr set to an address they can route to.
The published container image passes its own address and is unaffected. Publish its port on the host loopback with -p 127.0.0.1:8090:8090.
The API refuses requests it does not recognize
- A browser request whose
Originthe daemon does not serve is refused with403. The daemon's own origins are always served, so its page at/docsworks with no configuration.api.cors.allow_originsnames any additional origins. - A request addressed to a
Hostthe daemon does not serve is refused with403. A daemon bound to a loopback address serveslocalhost,127.0.0.1and::1. A daemon bound to a routable address serves any host name. - A
POST,PUTorPATCHbody must declareapplication/json.
A request carrying no Origin header is always served, so command line clients, SDKs and service to service callers are unaffected.
Configuration validation is stricter
- A CORS origin must be a full origin with a scheme, such as
http://localhost:3000. A barelocalhost:3000is now rejected, and earlier releases documented that form. - Enabling CORS without naming at least one origin is now rejected.
Both are checked when any mcpd command loads .mcpd.toml, not only when the daemon starts, so an affected file makes every command fail until it is corrected.
Security
This release fixes a vulnerability that allowed a web page open in a browser to call any tool of any configured MCP server. See the security advisory for details and credits.
What's Changed
- ci: scope publishing secrets to deployment environments by @peteski22 in #329
- ci: publish without a stored Docker Hub or tap credential by @peteski22 in #330
- ci: build the docs site from the commit the run was created on by @peteski22 in #331
- chore(deps): bump the go-minor-patch group with 2 updates by @dependabot[bot] in #332
- docs: document the SDKs and mcpd-proxy by @peteski22 in #333
- Fix SDK documentation link in README by @philippgille in #336
- chore(deps): bump the go-minor-patch group across 1 directory with 5 updates by @dependabot[bot] in #342
- chore(ci): bump the github-actions group with 2 updates by @dependabot[bot] in #338
- fix(daemon): validate request origin and host on the local API by @peteski22 in #343
New Contributors
- @philippgille made their first contribution in #336
Full Changelog: v0.6.1...v0.7.0