mbxai 0.1.0__tar.gz → 0.3.0__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mbxai
3
- Version: 0.1.0
3
+ Version: 0.3.0
4
4
  Summary: MBX AI SDK
5
5
  Project-URL: Homepage, https://www.mibexx.de
6
6
  Project-URL: Documentation, https://www.mibexx.de
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "mbxai"
7
- version = "0.1.0"
7
+ version = "0.3.0"
8
8
  authors = [
9
9
  { name = "MBX AI" }
10
10
  ]
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="mbxai",
5
- version="0.1.0",
5
+ version="0.3.0",
6
6
  author="MBX AI",
7
7
  description="MBX AI SDK",
8
8
  long_description=open("README.md").read(),
@@ -31,7 +31,7 @@ class MCPServer:
31
31
  self.app = FastAPI(
32
32
  title=self.name,
33
33
  description=self.description,
34
- version="0.1.0",
34
+ version="0.3.0",
35
35
  )
36
36
 
37
37
  # Initialize MCP server
@@ -55,6 +55,12 @@ class MCPServer:
55
55
  """Invoke a specific MCP tool."""
56
56
  try:
57
57
  result = await self.mcp_server.call_tool(tool_name, arguments=arguments)
58
+ if isinstance(result, list) and len(result) == 1:
59
+ first_item = result[0]
60
+ if hasattr(first_item, "type") and first_item.type == "text":
61
+ return first_item.text
62
+ elif isinstance(result, dict) and result.get("type") == "text":
63
+ return result["text"]
58
64
  return result
59
65
  except Exception as e:
60
66
  return {"error": f"Error invoking tool {tool_name}: {str(e)}"}
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