Add ListTools, search limit, and catalog size annotation to CodeMode (#3359)

* Add tests for two-stage pattern, empty full-detail results, empty inputs

* Add ListTools, search limit, catalog size annotation; split tests

Co-authored-by: Claude <noreply@anthropic.com>

* Remove BM25 internal cap so Search.limit is the sole truncation point

* Pass default_limit to BM25 instead of arbitrary high cap

---------

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Jeremiah Lowin 2026-03-02 18:00:21 -05:00 committed by GitHub
commit 404b820144
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 704 additions and 264 deletions

View file

@ -13,7 +13,7 @@ Run with:
"""
from fastmcp import FastMCP
from fastmcp.experimental.transforms import CodeMode
from fastmcp.experimental.transforms.code_mode import CodeMode
mcp = FastMCP("CodeMode Demo")