Commit graph

13 commits

Author SHA1 Message Date
William Easton
64010ff276
Cleanup content conversion 2025-09-06 17:32:33 -05:00
William Easton
d7a74419b2
Preserve order in mixed text/image tool returns (#1704)
Co-authored-by: William Easton <strawgate@users.noreply.github.com>
Co-authored-by: marvin-context-protocol[bot] <225465937+marvin-context-protocol[bot]@users.noreply.github.com>
2025-09-06 14:22:29 -04:00
Jeremiah Lowin
0600834da4 Fix single-element list unwrapping in tool content
Single-element lists like [1] were being incorrectly unwrapped to "1"
in unstructured content while multi-element lists remained as lists.
This created inconsistent behavior where the structure was lost for
single items.

This fix ensures lists always preserve their structure in unstructured
content regardless of length, making behavior consistent and predictable.

Also removes pretty-printing from JSON serialization for more compact
output across tools, prompts, and resources.

Fixes #1064

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-07 12:07:16 -04:00
Jeremiah Lowin
d8dc28b9b2 Add structured content & update almost all tests 2025-06-27 15:40:52 -04:00
Jeremiah Lowin
f1e3713fc6 Update test typing 2025-05-31 20:41:18 -04:00
zzstoatzz
7f46580c14 rm slop markers 2025-05-20 13:48:23 -05:00
Jeremiah Lowin
bf09a09163 Fix prompt test 2025-05-06 13:29:00 -04:00
Alain IVARS
f92abd446f Fix remark to use the fastmcp Client. 2025-05-03 16:39:35 +01:00
Alain IVARS
6086fe6ab8 Fix github remote errors. 2025-05-03 16:09:15 +01:00
Alain IVARS
09bbdb6178 Fix pre-commit ruff-format errors. 2025-05-03 15:48:10 +01:00
Alain IVARS
233f65948f Fix pre-commit ruff-format errors. 2025-05-03 15:06:17 +01:00
Alain IVARS
8068bed9fc Fix pre-commit errors. 2025-05-03 15:04:34 +01:00
Alain IVARS
b77907797c Add test coverage for simple_echo,complex_inputs, desktop, echo. 2025-05-03 14:57:23 +01:00