fastmcp/tests
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
..
auth Support 'scp' claim for OAuth scopes in BearerAuthProvider 2025-07-03 20:18:54 -04:00
cli Update test_cli.py 2025-07-07 10:46:59 -04:00
client Fix single-element list unwrapping in tool content 2025-07-07 12:07:16 -04:00
contrib Remove asyncio mark 2025-07-06 21:14:30 -04:00
deprecated Avoid propagating logs (#1042) 2025-07-04 12:22:11 -04:00
prompts Avoid propagating logs (#1042) 2025-07-04 12:22:11 -04:00
resources Fix single-element list unwrapping in tool content 2025-07-07 12:07:16 -04:00
server Fix single-element list unwrapping in tool content 2025-07-07 12:07:16 -04:00
test_servers Update tests for prompts 2025-06-04 16:37:41 -04:00
tools Fix single-element list unwrapping in tool content 2025-07-07 12:07:16 -04:00
utilities Add Cursor support via CLI integration (#1052) 2025-07-05 20:30:47 -04:00
__init__.py Update type handling for resources 2024-11-29 19:42:46 -05:00
conftest.py Only apply log config to FastMCP loggers 2025-04-14 15:45:05 -04:00
test_examples.py Fix single-element list unwrapping in tool content 2025-07-07 12:07:16 -04:00