Files
mattgodbolt-molty 12975ec7ba MCP: list_libraries match also searches version strings
Drove staging post-merge of #8644 and noticed the natural LLM query
"find Boost 1.88" returned zero results — `list_libraries({match:
"boost 1.88"})` only matched against `{id, name}` of each library, so
the version token never matched anything. To find a specific version
an agent had to first query for "boost", read the response, and scan
the `versions` array for the right id.

Fix: include each version's `version` (human form) and `id` in the
haystack `applyMatch` sees. The library entry is still returned in
full (with all versions), so the caller still has everything they
need to pass to `compile`. Schema description updated to make the
contract explicit.

Numeric-token version-prefix semantics are inherited from applyMatch
unchanged: "boost 1.88" matches "1.88.0" but not "1.880" or "1.8".

Tests cover the canonical case ("boost 1.88") and version-id form
("188" by itself).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-08 10:45:52 -05:00
..
2021-10-05 01:45:05 +02:00
2019-08-21 01:26:16 +02:00
2025-01-29 10:41:03 -06:00
2021-09-13 20:22:27 +02:00
2024-10-27 15:28:38 +02:00
2024-10-26 17:42:22 +02:00
2024-03-08 22:25:09 -06:00
2024-03-08 22:25:09 -06:00
2024-03-08 22:25:09 -06:00
2026-02-08 12:50:20 +01:00
2024-03-08 22:25:09 -06:00
2024-03-08 22:25:09 -06:00
2025-07-28 10:34:46 -05:00