# NousResearch/hermes-agent · MCP schema cache ttl_ms=0 lazy mode bug fix

## Open now

- 1 issue, 2 PRs open on GitHub.
- #101007: \`mcp_servers.<name>.lazy\` never engages: schema cache entries written with \`ttl_ms: 0\` are treated as expired
- PR #101050: fix(mcp): treat ttl_ms of 0 as no-hint so lazy mode engages (#101007)
- PR #134622: fix(mcp): preserve absent ttlMs/cacheScope so the lazy schema cache can engage

A bug where ttl_ms of 0 in MCP schema cache entries was treated as expired rather than as no TTL hint, preventing lazy mode from engaging. The fix reinterprets ttl_ms=0 as the absence of a hint.

## TL;DR

- 4 member(s): 1 open issue(s), 0 closed issue(s), 2 open PR(s), 0 merged PR(s), 1 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.50`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Open related issues

- #101007: \`mcp_servers.<name>.lazy\` never engages: schema cache entries written with \`ttl_ms: 0\` are treated as expired

## Prior & competing PRs

- **#101050: fix(mcp): treat ttl_ms of 0 as no-hint so lazy mode engages (#101007)**. open
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#92621`, `#92621`
  - files: `tests/tools/test_mcp_schema_cache_ttl.py`, `tools/mcp_schema_cache.py`
- **#101390: fix(tools): treat ttl_ms=0 as no TTL hint in MCP schema cache (#101007)**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#92621`, `#92621`
- **#134622: fix(mcp): preserve absent ttlMs/cacheScope so the lazy schema cache can engage**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `tools/mcp_schema_cache.py`, `tools/mcp_tool.py`, `tools/mcp_tool_discovery.py`

## Fix status

- No merged fix on record.
- Subsystem: `mcp`
