Skip to content

v0.3.3

Choose a tag to compare

@github-actions github-actions released this 20 Nov 17:56
· 170 commits to main since this release
f9854d2

byward v0.3.3

v0.3.3 fixes a bug that could leave a stdio MCP session unusable after an MCP client disconnected (#547). If you run a stdio upstream, upgrade.

byward puts any MCP server, HTTP or stdio, behind OAuth 2.1 and your identity provider: Microsoft Entra ID first-class, and Okta, Keycloak, Google, Auth0 or any other OpenID Connect provider.

Pre-1.0, and no independent security audit yet. Read the security posture before deploying it.

A patch release on v0.3.2. No setting changes and no store migration: the SQLite schema stays at v8.

Fixed

What was broken in v0.3.2. A request to a stdio upstream could end just as byward finished writing it to the process, because its MCP client disconnected or timed out at that moment. byward then left a write deadline in the past on the process's stdin.

  • The process kept running, but every later message to it failed.
  • A legacy (2025-11-25) MCP session then answered 404 session not found to every request, until its MCP client started a new session.
  • Modern (2026-07-28) requests to that user's process got 502 upstream unavailable until the process was stopped, each logged with the warning relaying to the upstream process failed … i/o timeout.

Who is affected. Deployments with a stdio upstream whose MCP clients disconnect or cancel requests: clients that time out, users who close the client mid-request, reverse proxies that drop idle connections. It depends on timing, because the disconnect has to land in a window of a few microseconds. HTTP upstreams are not affected.

The fix. byward now always clears that deadline before it moves on, so a disconnect can no longer leave the process unwritable. A message cut part-way through still stops the process, as before, since its framing is broken.

Verified

These runs used the real binary in front of a stdio MCP server, with a client that resets one request's connection after a varying delay, then sends a live notification to the same MCP session.

Result
v0.3.2 the session wedged in 3 of 3 runs (at tries 99, 21 and 3); the live notification got 404
v0.3.3 the session kept working in 3 runs of 1,500 tries each

Both regression tests fail on v0.3.2's code and pass on v0.3.3.

Every change runs CI: unit and integration tests, PostgreSQL 15 and 18, the MCP SDK clients (TypeScript, Python, Go), MCP Inspector and the MCP conformance authorization suite.

Upgrading

Replace the binary or the container image. No setting changes and no migration.

Install

docker pull ghcr.io/byward-dev/byward:v0.3.3

latest now points at v0.3.3. Verify the release as in packaging.

Known gaps

  • After byward revoke-user, an app-only caller stays out only once the tokens it already holds expire (up to about an hour), because Entra keeps returning them.

  • A configuration error can still print a refused value whole (#478, #485):

    • other scheme typos (https;//h/;tok=…, //h/;tok=…);
    • most non-URL settings, which quote a refused value as written: booleans, enums, durations, numbers, and the access gate's lists.

    It takes a secret pasted into the wrong setting. v0.4 redesigns this around the setting rather than the text (#485).

  • A public URL with the default port, such as https://h.example:443/mcp, is published with :443 (#484), which browsers drop. Leave the default port out.

  • A stream cut off after its headers were sent writes no request line and no metric (#533).

  • A client that goes away from a stdio upstream is logged as an upstream failure and records 502 (#529): fixed on main for v0.4.

MCP is a trademark of LF Projects, LLC. byward is an independent project.