thordata-mcp-server 0.4.4__py3-none-any.whl → 0.5.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- thordata_mcp/__init__.py +1 -1
- thordata_mcp/browser_session.py +157 -12
- thordata_mcp/config.py +14 -3
- thordata_mcp/context.py +1 -1
- thordata_mcp/tools/data/browser.py +124 -18
- thordata_mcp/tools/debug.py +125 -0
- thordata_mcp/tools/params_utils.py +107 -0
- thordata_mcp/tools/product.py +83 -5
- thordata_mcp/tools/product_compact.py +2108 -962
- thordata_mcp/tools/utils.py +2 -0
- thordata_mcp/utils.py +393 -322
- {thordata_mcp_server-0.4.4.dist-info → thordata_mcp_server-0.5.0.dist-info}/METADATA +29 -54
- thordata_mcp_server-0.5.0.dist-info/RECORD +26 -0
- thordata_mcp_server-0.4.4.dist-info/RECORD +0 -24
- {thordata_mcp_server-0.4.4.dist-info → thordata_mcp_server-0.5.0.dist-info}/WHEEL +0 -0
- {thordata_mcp_server-0.4.4.dist-info → thordata_mcp_server-0.5.0.dist-info}/entry_points.txt +0 -0
- {thordata_mcp_server-0.4.4.dist-info → thordata_mcp_server-0.5.0.dist-info}/top_level.txt +0 -0
thordata_mcp/tools/utils.py
CHANGED
|
@@ -108,9 +108,11 @@ def tool_schema(t: type[ToolRequest]) -> dict[str, Any]:
|
|
|
108
108
|
"""
|
|
109
109
|
fields: dict[str, Any] = {}
|
|
110
110
|
for name, f in t.__dataclass_fields__.items(): # type: ignore[attr-defined]
|
|
111
|
+
required = f.default is dataclasses.MISSING and f.default_factory is dataclasses.MISSING # type: ignore[attr-defined]
|
|
111
112
|
fields[name] = {
|
|
112
113
|
"type": getattr(getattr(f.type, "__name__", None), "lower", lambda: str(f.type))(),
|
|
113
114
|
"default": None if f.default is dataclasses.MISSING else f.default,
|
|
115
|
+
"required": required,
|
|
114
116
|
}
|
|
115
117
|
|
|
116
118
|
key = tool_key(t)
|