• v0.1.0-dev.37 3453fa4858

    v0.1.0-dev.37
    All checks were successful
    Code Architecture / inventory (push) Has been skipped
    Code Architecture / mermaid-comment (push) Has been skipped
    Code Architecture / review (push) Has been skipped
    Code Architecture / comment (push) Has been skipped
    Corn CI / release-check-1 (push) Successful in 14s
    Corn CI / release-check (push) Successful in 0s
    Corn Release / release-1 (push) Successful in 20s
    Corn Release / release (push) Successful in 0s
    Corn CI / test (push) Successful in 3m58s
    Corn CI / release (push) Successful in 15s
    Code Architecture / review-1 (push) Successful in 4m23s
    Code Architecture / analyze (push) Successful in 0s
    Pre-release

    john released this 2026-11-22 08:55:24 +00:00 | 86 commits to main since this release

    v0.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=value line per MCP tool call and tool listing on the
    corn.timing logger (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
  • v0.1.0-dev.36 b5f7f6a7df

    v0.1.0-dev.36
    All checks were successful
    Corn CI / release-check-1 (push) Successful in 13s
    Corn CI / release-check (push) Successful in 0s
    Corn Release / release-1 (push) Successful in 19s
    Corn Release / release (push) Successful in 0s
    Corn CI / test (push) Successful in 3m19s
    Corn CI / release (push) Successful in 2s
    Pre-release

    john released this 2026-11-21 10:24:20 +00:00 | 105 commits to main since this release

    v0.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_timeout to 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 sets busy_timeout first 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
  • v0.1.0-dev.35 70ebe2e935

    v0.1.0-dev.35
    Some checks failed
    Corn CI / release-check-1 (push) Successful in 2s
    Corn CI / release-check (push) Successful in 0s
    Corn Release / release-1 (push) Successful in 7s
    Corn Release / release (push) Successful in 0s
    Corn CI / test (push) Has been cancelled
    Corn CI / release (push) Has been cancelled
    Pre-release

    john released this 2026-11-21 09:21:36 +00:00 | 115 commits to main since this release

    v0.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 under FASTMCP_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
  • v0.1.0-dev.34 7669e0647f

    v0.1.0-dev.34
    All checks were successful
    Corn CI / release-check-1 (push) Successful in 2s
    Corn CI / release-check (push) Successful in 0s
    Corn Release / release-1 (push) Successful in 5s
    Corn Release / release (push) Successful in 0s
    Corn CI / test (push) Successful in 2m41s
    Corn CI / release (push) Successful in 9s
    Pre-release

    john released this 2026-11-21 07:59:30 +00:00 | 119 commits to main since this release

    v0.1.0-dev.34 — Universal offset pagination (pre-release)

    Every list-returning operation now takes the same offset and limit parameters,
    with limit defaulting 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_offset is null on the last page. Pass it back as offset for the next page.

    Operation (MCP tool) List Max limit
    listConnections connections 50
    nswFuelHistoryMonths months 100
    nswFuelHistoryMonth (nsw_fuel_history_month) stations 100
    nswFuelPrices (nsw_fuel_prices/search/nearby) stations 50
    protonCalendarEvents (proton_calendar_events) events 100
    pricingLookup (pricing_lookup) prices 10
    nswTransitStopFinder (nsw_transit_stop_finder) locations 50
    nswTransitDepartures (nsw_transit_departures) stopEvents 50
    nswTransitAlerts (nsw_transit_service_alerts) infos.current 50
    nswTransitRealtime (nsw_transit_realtime) entities 100
    nswTransitPlan (nsw_transit_plan_trip) journeys 50
    nswTransitNearby (nsw_transit_nearby) locations 50
    shoppingSearch (shopping_search) products 20
    nswTransitLive (nsw_transit_live) vehicles 100

    Behaviour changes

    • Results that were unbounded now return the first 10 items by default. Request more
      with limit, or page with offset.
    • 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).
      Shopping offset must be a multiple of limit.
    • The Corn console calls services directly and is unaffected.
    • Item contents are unchanged (no compaction).

    Source commit 7669e0647f912a154c9c93fa6d3eb255bacde029.

    Downloads
  • v0.1.0-dev.33 6762436b72

    v0.1.0-dev.33
    All checks were successful
    Corn CI / release-check-1 (push) Successful in 2s
    Corn CI / release-check (push) Successful in 0s
    Corn Release / release-1 (push) Successful in 4s
    Corn Release / release (push) Successful in 0s
    Corn CI / test (push) Successful in 2m37s
    Corn CI / release (push) Successful in 1s
    Pre-release

    john released this 2026-11-21 07:10:25 +00:00 | 123 commits to main since this release

    v0.1.0-dev.33 — Linking Coder from the console works in Chrome (pre-release)

    Pressing Connect for a linked MCP server (Coder) on /connections did nothing
    in Chrome. The form posts to Corn, which answers 303 to the server's
    authorization page; the console CSP's form-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-action now also allows the origins of configured upstream
      servers' authorization endpoints (from issuer/authorization_endpoint in
      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
  • v0.1.0-dev.32 23e90d196c

    v0.1.0-dev.32
    All checks were successful
    Corn CI / release-check-1 (push) Successful in 13s
    Corn CI / release-check (push) Successful in 0s
    Corn Release / release-1 (push) Successful in 18s
    Corn Release / release (push) Successful in 0s
    Corn CI / test (push) Successful in 3m20s
    Corn CI / release (push) Successful in 1s
    Pre-release

    john released this 2026-11-21 06:33:42 +00:00 | 127 commits to main since this release

    v0.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
    includes form-action 'self'. The consent form posts to Corn and is redirected
    to Pocket ID; Chrome applies form-action to 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
  • v0.1.0-dev.31 2f7189a642

    v0.1.0-dev.31
    All checks were successful
    Corn CI / release-check-1 (push) Successful in 2s
    Corn Release / release-1 (push) Successful in 3s
    Corn CI / release-check (push) Successful in 0s
    Corn Release / release (push) Successful in 0s
    Corn CI / test (push) Successful in 2m54s
    Corn CI / release (push) Successful in 1s
    Pre-release

    john released this 2026-11-21 04:11:14 +00:00 | 131 commits to main since this release

    v0.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
  • v0.1.0-dev.30 2198e6dd32

    v0.1.0-dev.30
    All checks were successful
    Corn CI / release-check-1 (push) Successful in 13s
    Corn CI / release-check (push) Successful in 0s
    Corn Release / release-1 (push) Successful in 19s
    Corn Release / release (push) Successful in 0s
    Corn CI / test (push) Successful in 3m36s
    Corn CI / release (push) Successful in 1s
    Pre-release

    john released this 2026-11-21 00:59:42 +00:00 | 139 commits to main since this release

    v0.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_FILES lists private
      KEY=value files (colon-separated). Only CORN_SECRET_KEY,
      CORN_OIDC_CLIENT_SECRET, CORN_UPSTREAM_MCP_SERVERS and CORN_SMTP_* may come from them; an
      environment variable still wins. The platform's identity worker writes the issued
      client secret as SSO_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.py enforces the pipeline's admission rules.
    • CD (yawn.json → ci.yml): a release job submits each green main push to
      the corn1 intake with a Forgejo ID token. It is off until the repository variable
      CORN_CD_ENABLED=true and the secret CORN_RELEASE_KEY are set. A submission only
      plans; nothing deploys without Resume in xyOps.

    No API, database or existing-deployment changes.

    Source commit 2198e6dd3297c5c35c4b8ae0bff9ae2fc2296a57.

    Downloads
  • v0.1.0-dev.29 38ae6b1b4b

    v0.1.0-dev.29
    All checks were successful
    Corn CI / release-check-1 (push) Successful in 2s
    Corn Release / release-1 (push) Successful in 3s
    Corn CI / release-check (push) Successful in 0s
    Corn Release / release (push) Successful in 0s
    Corn CI / test (push) Successful in 2m45s
    Pre-release

    john released this 2026-11-20 15:13:32 +00:00 | 143 commits to main since this release

    v0.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_health corn_health
    corn_corn_whoami corn_whoami
    corn_coder_coder_list_workspaces corn_coder_list_workspaces
    corn_nsw_fuel_prices (unchanged) corn_nsw_fuel_prices
    • Corn's own tools are now health and whoami. 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's coder_*) 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_whoami or
    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 corn
    

    Source commit 38ae6b1b4b4e9680469d18159022c502aa29fe68.

    Downloads
  • v0.1.0-dev.28 33188a1853

    v0.1.0-dev.28
    All checks were successful
    Corn CI / release-check-1 (push) Successful in 2s
    Corn CI / release-check (push) Successful in 0s
    Corn Release / release-1 (push) Successful in 20s
    Corn Release / release (push) Successful in 0s
    Corn CI / test (push) Successful in 3m11s
    Pre-release

    john released this 2026-11-20 14:37:54 +00:00 | 145 commits to main since this release

    v0.1.0-dev.28 — Open WebUI MCP sign-in fix (pre-release)

    Fixes OAuth callback failed: invalid_request ... The 'resource' or 'scope' parameter is invalid when an MCP client (Open WebUI) signs in to Corn.

    • Cause: MCP clients send an RFC 8707 resource (Corn's /mcp URL). 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 forwards resource.
      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 corn
    

    Source commit 33188a18533baeb4cc8b08dc39ba27b29de1ee13.

    Downloads