• v0.1.0-dev.38 a7d80c6a66

    v0.1.0-dev.38
    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 Release / release-1 (push) Successful in 3s
    Corn Release / release (push) Successful in 0s
    Corn CI / release-check-1 (push) Successful in 11s
    Corn CI / release-check (push) Successful in 0s
    Corn CI / test (push) Successful in 3m55s
    Corn CI / release (push) Successful in 14s
    Code Architecture / review-1 (push) Successful in 4m23s
    Code Architecture / analyze (push) Successful in 0s
    Pre-release

    john released this 2026-11-22 09:31:51 +00:00 | 81 commits to main since this release

    v0.1.0-dev.38 — Upstream tool lists served from cache (pre-release)

    MCP clients list tools before most calls. Corn forwarded every one of those
    listings to the upstream (Coder), and in production a listing took 160–620 ms,
    more than most tool calls. Corn now answers listings of upstream tools,
    resources, resource templates and prompts from each user's own cache, and only
    asks the upstream again once the entry is older than the cache TTL.

    • One TTL for all upstream list caches: CORN_UPSTREAM_CACHE_TTL_SECONDS,
      default 60 seconds; 0 disables the cache. Invalid values fail at start-up.
      A tool added or removed upstream appears within that window.
    • The cache stays per user. A user who is not connected, or who disconnects,
      is never served a cached list.
    • Tool calls are unchanged and always go to the upstream.
    • Timing lines mark a listing answered from the cache as session=cached.

    Other Corn caches (transit, calendar, fuel and shopping) keep their existing
    lifetimes.

    No API, database or deployment-file changes.

    Source commit a7d80c6a66bf37dd65474cd04412280d6821e501.

    Downloads