Skip to content

Add Xquik API example and fix cache refresh duplication#1

Open
kriptoburak wants to merge 1 commit into
EliFuzz:mainfrom
kriptoburak:codex/add-xquik-api-source-example
Open

Add Xquik API example and fix cache refresh duplication#1
kriptoburak wants to merge 1 commit into
EliFuzz:mainfrom
kriptoburak:codex/add-xquik-api-source-example

Conversation

@kriptoburak

@kriptoburak kriptoburak commented Jun 30, 2026

Copy link
Copy Markdown

Summary

  • add a ready-to-use API_SOURCES example for Xquik's public OpenAPI 3.1 document
  • replace an existing source's cache entry during refresh instead of appending duplicates
  • add a regression test that refreshes the same OpenAPI source twice

Why this helps

CacheManager.refresh() previously appended another entry for every configured source on each refresh. Long-running MCP sessions could therefore return duplicate documentation and keep growing the in-memory cache. The cache now retains one current entry per source name.

The Xquik example points to the public https://xquik.com/openapi.json document, which currently exposes OpenAPI 3.1.0 with 99 paths.

Validation

  • pnpm install --frozen-lockfile
  • pnpm run build
  • pnpm test (13 tests passed)
  • live Xquik OpenAPI parse check (OpenAPI 3.1.0, 99 paths)

@kriptoburak
kriptoburak force-pushed the codex/add-xquik-api-source-example branch from 1bce9c5 to 2242c49 Compare July 19, 2026 23:32
@kriptoburak kriptoburak changed the title Add Xquik API source example Add Xquik API example and fix cache refresh duplication Jul 19, 2026
@kriptoburak
kriptoburak force-pushed the codex/add-xquik-api-source-example branch from 2242c49 to 504f0d6 Compare July 19, 2026 23:33
@kriptoburak
kriptoburak force-pushed the codex/add-xquik-api-source-example branch from 504f0d6 to 67224b2 Compare July 19, 2026 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant