Skip to content

v0.7.0

Latest

Choose a tag to compare

@peteski22 peteski22 released this 13 Nov 13:50
e5c8e23

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 Origin the daemon does not serve is refused with 403. The daemon's own origins are always served, so its page at /docs works with no configuration. api.cors.allow_origins names any additional origins.
  • A request addressed to a Host the daemon does not serve is refused with 403. A daemon bound to a loopback address serves localhost, 127.0.0.1 and ::1. A daemon bound to a routable address serves any host name.
  • A POST, PUT or PATCH body must declare application/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 bare localhost:3000 is 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

Full Changelog: v0.6.1...v0.7.0