Files
jhonny-editor/code/docs/recommendations/2026-08-18/10-cacheable-discovery.md
T
João Henrique b541f502ba feat: initial commit - Jhonny Editor
- Adicionado estrutura completa do projeto
- Configurado MCP server para Premiere Pro
- Adicionado documentação e skills
- Configurado Gitignore para o projeto
2026-09-08 09:59:31 -04:00

1.0 KiB
Executable File

Recommendation 10: cacheable discovery with invalidation

Evidence

MCP 2026-07-28 adds ttlMs and cacheScope to list results. This server repeatedly builds large tool catalogs whose contents vary with authority and UXP connection state.

Proposed improvement

Return private cache metadata for tools, prompts, and resources when the installed SDK supports it. Key caches by server version, authority profile, selected tool pack, UXP protocol/capabilities, and connector state. Emit list-changed notifications only to clients that negotiate them, coalescing connection churn.

Acceptance

  • Cache keys never cross authorization profiles.
  • UXP connect/disconnect and pack changes invalidate discovery deterministically.
  • Repeated list benchmarks show lower serialization work and bytes transferred.
  • Older clients retain current behavior without unknown fields or notifications.

No cache may preserve tools after their authority is revoked.