mbxai 0.8.0__tar.gz → 0.8.1__tar.gz
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.
- {mbxai-0.8.0 → mbxai-0.8.1}/PKG-INFO +1 -1
- {mbxai-0.8.0 → mbxai-0.8.1}/pyproject.toml +1 -1
- {mbxai-0.8.0 → mbxai-0.8.1}/setup.py +1 -1
- {mbxai-0.8.0 → mbxai-0.8.1}/src/mbxai/__init__.py +1 -1
- {mbxai-0.8.0 → mbxai-0.8.1}/src/mbxai/mcp/client.py +2 -2
- {mbxai-0.8.0 → mbxai-0.8.1}/src/mbxai/mcp/server.py +1 -1
- {mbxai-0.8.0 → mbxai-0.8.1}/.gitignore +0 -0
- {mbxai-0.8.0 → mbxai-0.8.1}/LICENSE +0 -0
- {mbxai-0.8.0 → mbxai-0.8.1}/README.md +0 -0
- {mbxai-0.8.0 → mbxai-0.8.1}/src/mbxai/core.py +0 -0
- {mbxai-0.8.0 → mbxai-0.8.1}/src/mbxai/examples/openrouter_example.py +0 -0
- {mbxai-0.8.0 → mbxai-0.8.1}/src/mbxai/examples/parse_example.py +0 -0
- {mbxai-0.8.0 → mbxai-0.8.1}/src/mbxai/examples/parse_tool_example.py +0 -0
- {mbxai-0.8.0 → mbxai-0.8.1}/src/mbxai/examples/tool_client_example.py +0 -0
- {mbxai-0.8.0 → mbxai-0.8.1}/src/mbxai/mcp/__init__.py +0 -0
- {mbxai-0.8.0 → mbxai-0.8.1}/src/mbxai/mcp/example.py +0 -0
- {mbxai-0.8.0 → mbxai-0.8.1}/src/mbxai/openrouter/__init__.py +0 -0
- {mbxai-0.8.0 → mbxai-0.8.1}/src/mbxai/openrouter/client.py +0 -0
- {mbxai-0.8.0 → mbxai-0.8.1}/src/mbxai/openrouter/config.py +0 -0
- {mbxai-0.8.0 → mbxai-0.8.1}/src/mbxai/openrouter/models.py +0 -0
- {mbxai-0.8.0 → mbxai-0.8.1}/src/mbxai/tools/__init__.py +0 -0
- {mbxai-0.8.0 → mbxai-0.8.1}/src/mbxai/tools/client.py +0 -0
- {mbxai-0.8.0 → mbxai-0.8.1}/src/mbxai/tools/example.py +0 -0
- {mbxai-0.8.0 → mbxai-0.8.1}/src/mbxai/tools/types.py +0 -0
@@ -60,7 +60,7 @@ class MCPClient(ToolClient):
|
|
60
60
|
|
61
61
|
def _create_tool_function(self, tool: MCPTool) -> Callable[..., Any]:
|
62
62
|
"""Create a function that invokes an MCP tool."""
|
63
|
-
|
63
|
+
def tool_function(**kwargs: Any) -> Any:
|
64
64
|
# If kwargs has input wrapper, unwrap it
|
65
65
|
if "input" in kwargs:
|
66
66
|
kwargs = kwargs["input"]
|
@@ -75,7 +75,7 @@ class MCPClient(ToolClient):
|
|
75
75
|
url = f"{server_url}/tools/{tool.name}/invoke"
|
76
76
|
|
77
77
|
# Make the HTTP request to the tool's URL
|
78
|
-
response =
|
78
|
+
response = self._http_client.post(
|
79
79
|
url,
|
80
80
|
json={"input": kwargs} if tool.strict else kwargs,
|
81
81
|
timeout=300.0 # 5 minutes timeout
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|