-
v0.1.0-dev.37
Pre-releaseAll checks were successfulCode Architecture / inventory (push) Has been skippedCode Architecture / mermaid-comment (push) Has been skippedCode Architecture / review (push) Has been skippedCode Architecture / comment (push) Has been skippedCorn CI / release-check-1 (push) Successful in 14sCorn CI / release-check (push) Successful in 0sCorn Release / release-1 (push) Successful in 20sCorn Release / release (push) Successful in 0sCorn CI / test (push) Successful in 3m58sCorn CI / release (push) Successful in 15sCode Architecture / review-1 (push) Successful in 4m23sCode Architecture / analyze (push) Successful in 0sreleased this
2026-11-22 08:55:24 +00:00 | 86 commits to main since this releasev0.1.0-dev.37 — Reuse upstream MCP sessions; non-blocking timing logs (pre-release)
Proxied upstream tools (Coder) no longer open a new MCP session for every call.
Previously each call made three HTTP requests to the upstream:initialize,
the call itself and a session close. Corn now keeps one open session per user,
bound to that user's current access token, so repeated calls send only the call.- A refreshed or rotated token replaces the session, disconnecting drops it,
and a session idle for two minutes is closed. A session that died (network
error, upstream restart) is replaced on the next call. Sessions close on
shutdown. - Locking is per user: one user's slow connect never delays other users.
- New sessions are opened in an empty context, so a long-lived session never
keeps the first caller's request or auth state. - The stored token is now read off the event loop (worker thread).
Corn also logs one
key=valueline per MCP tool call and tool listing on the
corn.timinglogger (stderr): tool, upstream server, outcome, whether the
upstream session was new or reused, and total, token, connect and call
milliseconds. Lines go onto an in-memory queue and a background thread writes
them, so logging never blocks a request; if the writer falls behind, lines are
dropped. No tokens, arguments, results, user ids or URLs are logged.Local benchmark against a real stateless MCP server: upstream requests per call
3 → 1; proxied call p50 11.5 ms → 4.4 ms with no added latency, 132 ms → 45 ms
with 30 ms simulated per upstream request.No API, database or deployment-file changes.
Source commit
3453fa485817adef076762f808eac35f9082ed09.Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- A refreshed or rotated token replaces the session, disconnecting drops it,
-
v0.1.0-dev.36
Pre-releaseAll checks were successfulCorn CI / release-check-1 (push) Successful in 13sCorn CI / release-check (push) Successful in 0sCorn Release / release-1 (push) Successful in 19sCorn Release / release (push) Successful in 0sCorn CI / test (push) Successful in 3m19sCorn CI / release (push) Successful in 2sreleased this
2026-11-21 10:24:20 +00:00 | 105 commits to main since this releasev0.1.0-dev.36 — Replicas start reliably on a fresh database (pre-release)
Switching SQLite to WAL needs an exclusive lock, and SQLite does not apply
busy_timeoutto that switch. When several replicas started against a brand-new
database at once, one could fail with "database is locked" (seen intermittently
in CI). Corn now setsbusy_timeoutfirst and retries the switch briefly. WAL
is persistent, so existing databases (CT 125 is already in WAL) are unaffected.No API, database or deployment-file changes.
Source commit
b5f7f6a7df303bf6fb07d79dcbbd259096073386.Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
-
Source code (ZIP)
-
v0.1.0-dev.35
Pre-releaseSome checks failedCorn CI / release-check-1 (push) Successful in 2sCorn CI / release-check (push) Successful in 0sCorn Release / release-1 (push) Successful in 7sCorn Release / release (push) Successful in 0sCorn CI / test (push) Has been cancelledCorn CI / release (push) Has been cancelledreleased this
2026-11-21 09:21:36 +00:00 | 115 commits to main since this releasev0.1.0-dev.35 — Stateless Corn: safe to run as several replicas (pre-release)
Prepares Corn to run as several identical replicas behind a load balancer, writing
to the same database. Single-instance behaviour is unchanged; this release still
deploys as one container. The replica deployment follows in a separate change.Shared state moves out of the process
- MCP OAuth state (client registrations, consent, authorization codes, the
Pocket ID token map) now lives in Corn's database (kv_entries) instead of
files underFASTMCP_HOME. Values stay Fernet-encrypted with the same derived
key. Existing registrations are read through from the old files on first use
and copied in, so connected MCP clients do not need to sign in again. - MCP over streamable HTTP is stateless: no per-process MCP session, so any
replica can serve any request. - Shopping product IDs from a search are shared, so a stock check works on any replica.
Concurrency
- SQLite runs in WAL mode with a 30 s busy timeout. First start creates the
schema under an exclusive lock, so replicas can start together. - Refreshing a user's Coder (upstream MCP) token and Corn's own Pocket ID
session takes a short database lease, so with rotating refresh tokens only one
replica refreshes and the others reuse the result. Without it, two replicas
could spend the same refresh token and disconnect the user.
In-memory caches (transit feeds, pricing, calendar, per-user upstream proxies)
stay per replica; they are re-derivable.No API changes. Migration: none.
Source commit
70ebe2e9354a844e0bb792c2b0a7ec1fd15619d6.Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- MCP OAuth state (client registrations, consent, authorization codes, the
-
v0.1.0-dev.34
Pre-releaseAll checks were successfulCorn CI / release-check-1 (push) Successful in 2sCorn CI / release-check (push) Successful in 0sCorn Release / release-1 (push) Successful in 5sCorn Release / release (push) Successful in 0sCorn CI / test (push) Successful in 2m41sCorn CI / release (push) Successful in 9sreleased this
2026-11-21 07:59:30 +00:00 | 119 commits to main since this releasev0.1.0-dev.34 — Universal offset pagination (pre-release)
Every list-returning operation now takes the same
offsetandlimitparameters,
withlimitdefaulting to 10, identically on the REST API and MCP (MCP tools run
through the same typed REST adapter). Responses keep their list where it was and add:"page": {"items": "events", "offset": 0, "limit": 10, "returned": 10, "total": 23, "next_offset": 10}next_offsetisnullon the last page. Pass it back asoffsetfor the next page.Operation (MCP tool) List Max limit listConnections connections50 nswFuelHistoryMonths months100 nswFuelHistoryMonth ( nsw_fuel_history_month)stations100 nswFuelPrices ( nsw_fuel_prices/search/nearby)stations50 protonCalendarEvents ( proton_calendar_events)events100 pricingLookup ( pricing_lookup)prices10 nswTransitStopFinder ( nsw_transit_stop_finder)locations50 nswTransitDepartures ( nsw_transit_departures)stopEvents50 nswTransitAlerts ( nsw_transit_service_alerts)infos.current50 nswTransitRealtime ( nsw_transit_realtime)entities100 nswTransitPlan ( nsw_transit_plan_trip)journeys50 nswTransitNearby ( nsw_transit_nearby)locations50 shoppingSearch ( shopping_search)products20 nswTransitLive ( nsw_transit_live)vehicles100 Behaviour changes
- Results that were unbounded now return the first 10 items by default. Request more
withlimit, or page withoffset. - Changed defaults: fuel history month 50 → 10, pricing 5 → 10, shopping search 12 → 10.
- Deprecated aliases, still accepted for one release:
max_results(stop finder,
=limit),page/page_size(shopping search; page N = offset (N-1)×size).
Shoppingoffsetmust be a multiple oflimit. - The Corn console calls services directly and is unaffected.
- Item contents are unchanged (no compaction).
Source commit
7669e0647f912a154c9c93fa6d3eb255bacde029.Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- Results that were unbounded now return the first 10 items by default. Request more
-
v0.1.0-dev.33
Pre-releaseAll checks were successfulCorn CI / release-check-1 (push) Successful in 2sCorn CI / release-check (push) Successful in 0sCorn Release / release-1 (push) Successful in 4sCorn Release / release (push) Successful in 0sCorn CI / test (push) Successful in 2m37sCorn CI / release (push) Successful in 1sreleased this
2026-11-21 07:10:25 +00:00 | 123 commits to main since this releasev0.1.0-dev.33 — Linking Coder from the console works in Chrome (pre-release)
Pressing Connect for a linked MCP server (Coder) on
/connectionsdid nothing
in Chrome. The form posts to Corn, which answers303to the server's
authorization page; the console CSP'sform-action 'self'blocked that
cross-origin step of the redirect chain (Chrome enforces form-action across
redirects). Same class of bug as dev.32's consent fix.- The console's
form-actionnow also allows the origins of configured upstream
servers' authorization endpoints (fromissuer/authorization_endpointin
CORN_UPSTREAM_MCP_SERVERS), e.g.https://coder.yawn.dev. Nothing else in the
console CSP changes.
No API, database or deployment-file changes.
Source commit
6762436b722e1048ffe56ff53cd379a1f61217d6.Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- The console's
-
v0.1.0-dev.32
Pre-releaseAll checks were successfulCorn CI / release-check-1 (push) Successful in 13sCorn CI / release-check (push) Successful in 0sCorn Release / release-1 (push) Successful in 18sCorn Release / release (push) Successful in 0sCorn CI / test (push) Successful in 3m20sCorn CI / release (push) Successful in 1sreleased this
2026-11-21 06:33:42 +00:00 | 127 commits to main since this releasev0.1.0-dev.32 — MCP sign-in consent works in Chrome (pre-release)
Approving an MCP client on Corn's consent page did nothing in Chrome, and a second
click showed "Invalid or expired consent token". The console's security headers
replaced FastMCP's own Content-Security-Policy on the OAuth pages with one that
includesform-action 'self'. The consent form posts to Corn and is redirected
to Pocket ID; Chrome appliesform-actionto the whole redirect chain, so the
navigation was blocked after the approval had already been consumed.- The console's CSP, frame and cache headers no longer apply to FastMCP's OAuth
pages (/consent,/authorize,/auth/callback,/token,/register), which
keep the policy FastMCP sets. All console pages are unchanged.
No API, database or deployment-file changes.
Source commit
23e90d196c71f30beb39259302b525b6f6557924.Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- The console's CSP, frame and cache headers no longer apply to FastMCP's OAuth
-
v0.1.0-dev.31
Pre-releaseAll checks were successfulCorn CI / release-check-1 (push) Successful in 2sCorn Release / release-1 (push) Successful in 3sCorn CI / release-check (push) Successful in 0sCorn Release / release (push) Successful in 0sCorn CI / test (push) Successful in 2m54sCorn CI / release (push) Successful in 1sreleased this
2026-11-21 04:11:14 +00:00 | 131 commits to main since this releasev0.1.0-dev.31 — MCP sessions survive Pocket ID's hourly token expiry (pre-release)
MCP clients were dropping every hour. Pocket ID access tokens last 60 minutes, and
Corn's MCP access token copied that lifetime. Open WebUI does not refresh on a 401
mid-session, so tool calls failed until a later reconnect ran the refresh grant
(seen on zuko at 15:51, 23:33, 00:45 and 01:55 UTC on 20–21 Nov, each about 60
minutes after the previous token).CORN_MCP_ACCESS_TOKEN_TTL(seconds, default 86400, 300 s to 30 days): how long
the MCP access token Corn issues stays valid. That token is only a reference;
every request still re-validates the Pocket ID session and refreshes it
transparently, so a revoked or expired Pocket ID session still fails.
No API, database or deployment-file changes.
Source commit
2f7189a6429ecee70fae0f69b7ca957c1529ddcf.Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
-
v0.1.0-dev.30
Pre-releaseAll checks were successfulCorn CI / release-check-1 (push) Successful in 13sCorn CI / release-check (push) Successful in 0sCorn Release / release-1 (push) Successful in 19sCorn Release / release (push) Successful in 0sCorn CI / test (push) Successful in 3m36sCorn CI / release (push) Successful in 1sreleased this
2026-11-21 00:59:42 +00:00 | 139 commits to main since this releasev0.1.0-dev.30 — Managed deployment (corn1) and file-based secrets (pre-release)
Corn can now run as a managed tenant service on its own small Proxmox guest
(corn1.yawn.dev, CT 125), deployed by the john/arch release pipeline with an
operator approval. The hand deployment on zuko is unaffected and keeps working.- File-based secrets (
src/corn/config.py):CORN_SECRETS_FILESlists private
KEY=valuefiles (colon-separated). OnlyCORN_SECRET_KEY,
CORN_OIDC_CLIENT_SECRET,CORN_UPSTREAM_MCP_SERVERSandCORN_SMTP_*may come from them; an
environment variable still wins. The platform's identity worker writes the issued
client secret asSSO_GENERIC_CLIENT_SECRET, which is accepted for
CORN_OIDC_CLIENT_SECRET. A listed but unreadable or malformed file fails startup. - Managed deploy files (
deploy/managed/): digest-pinned Compose project, a
pre-release online SQLite backup hook, a post-release commissioning probe
(anonymous MCP refused, OAuth metadata names corn1, Pocket ID PKCE login), the
Pocket ID client declaration (groups admin, ai_admin, user) and the release
declaration.tests/test_managed_deploy.pyenforces the pipeline's admission rules. - CD (
yawn.json→ci.yml): areleasejob submits each greenmainpush to
the corn1 intake with a Forgejo ID token. It is off until the repository variable
CORN_CD_ENABLED=trueand the secretCORN_RELEASE_KEYare set. A submission only
plans; nothing deploys without Resume in xyOps.
No API, database or existing-deployment changes.
Source commit
2198e6dd3297c5c35c4b8ae0bff9ae2fc2296a57.Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- File-based secrets (
-
v0.1.0-dev.29
Pre-releaseAll checks were successfulreleased this
2026-11-20 15:13:32 +00:00 | 143 commits to main since this releasev0.1.0-dev.29 — Tool names without redundant prefixes (pre-release)
MCP clients already prefix every tool with the server's name, so Corn's names
doubled up (corn_corn_whoami,corn_coder_coder_get_authenticated_user).Before (as seen by a client) After corn_corn_healthcorn_healthcorn_corn_whoamicorn_whoamicorn_coder_coder_list_workspacescorn_coder_list_workspacescorn_nsw_fuel_prices(unchanged)corn_nsw_fuel_prices- Corn's own tools are now
healthandwhoami. Domain tools
(nsw_*,proton_*,pricing_*,shopping_*) are unchanged. - Upstream MCP servers (
src/corn/upstream_mcp.py,UpstreamNamespace): a tool
that already starts with<namespace>_(Coder'scoder_*) is passed through as-is;
any other upstream tool is still prefixed, so servers without their own prefix
cannot collide with Corn's tools or with each other. Calls resolve both ways.
Breaking for direct callers: anything that calls
corn_health/corn_whoamior
coder_coder_*by name must use the new names. Open WebUI re-reads the tool list.No API, Compose or database changes. Upgrade:
docker compose -f compose.local.yaml up -d --pull always --no-build --no-deps cornSource commit
38ae6b1b4b4e9680469d18159022c502aa29fe68.Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- Corn's own tools are now
-
v0.1.0-dev.28
Pre-releaseAll checks were successfulreleased this
2026-11-20 14:37:54 +00:00 | 145 commits to main since this releasev0.1.0-dev.28 — Open WebUI MCP sign-in fix (pre-release)
Fixes
OAuth callback failed: invalid_request ... The 'resource' or 'scope' parameter is invalidwhen an MCP client (Open WebUI) signs in to Corn.- Cause: MCP clients send an RFC 8707
resource(Corn's/mcpURL). Corn's
login proxy forwarded it to Pocket ID, which rejects the whole authorization
unless that resource is a registered API granted to Corn's client. - Fix (
src/corn/auth.py): the Pocket ID login no longer forwardsresource.
Corn still validates its own issued tokens and the upstream token audience
(CORN_OIDC_AUDIENCE) exactly as before; no Pocket ID change is needed.
No API, Compose or database changes. Upgrade:
docker compose -f compose.local.yaml up -d --pull always --no-build --no-deps cornSource commit
33188a18533baeb4cc8b08dc39ba27b29de1ee13.Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- Cause: MCP clients send an RFC 8707