fleet-memory/hindsight-api-slim/hindsight_api/api
Nicolò Boschi 443c94c827
fix(mcp): auto-coerce string-encoded JSON in tool arguments (#849) (#899)
LLM agents frequently serialize list/dict tool arguments as JSON strings
instead of native types (e.g., tags='["a","b"]' instead of tags=["a","b"]),
causing Pydantic validation failures. This extends _make_tools_tolerant to
detect array/object parameters from the JSON Schema and auto-coerce string
values via json.loads before validation.

Also fixes _make_tools_tolerant compatibility with FastMCP 3.x by adding
a _get_mcp_tools helper that supports both 2.x and 3.x internal APIs.
2026-04-07 09:33:12 +02:00
..
__init__.py feat: introduce hindsight-api-slim and hindsight-all-slim packages (#560) 2026-03-13 13:50:03 +01:00
http.py feat: bank template import/export with Template Hub (#819) 2026-04-02 12:21:53 +02:00
mcp.py fix(mcp): auto-coerce string-encoded JSON in tool arguments (#849) (#899) 2026-04-07 09:33:12 +02:00