-
v0.1.0-dev.38
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 Release / release-1 (push) Successful in 3sCorn Release / release (push) Successful in 0sCorn CI / release-check-1 (push) Successful in 11sCorn CI / release-check (push) Successful in 0sCorn CI / test (push) Successful in 3m55sCorn CI / release (push) Successful in 14sCode Architecture / review-1 (push) Successful in 4m23sCode Architecture / analyze (push) Successful in 0sreleased this
2026-11-22 09:31:51 +00:00 | 81 commits to main since this releasev0.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;0disables 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
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- One TTL for all upstream list caches: