Fixed MCP connection and other MCP issues + API fixes

This commit is contained in:
Renn F
2025-12-18 00:32:54 +01:00
parent 405944f36a
commit 9f008e5362
20 changed files with 674 additions and 139 deletions
+3 -1
View File
@@ -62,7 +62,9 @@ class ToonAdapter:
if isinstance(data, BaseModel):
data = data.model_dump()
result: str = toon.encode(data, indent=self.config.indent)
# Note: toon.encode() does not support indent parameter
# TOON format is already compact by design
result: str = toon.encode(data)
return result
def decode(self, toon_str: str) -> dict[str, Any] | list[Any]: