universal-mcp 0.1.24rc27__py3-none-any.whl → 0.1.24rc28__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.
- universal_mcp/tools/adapters.py +8 -3
- {universal_mcp-0.1.24rc27.dist-info → universal_mcp-0.1.24rc28.dist-info}/METADATA +1 -1
- {universal_mcp-0.1.24rc27.dist-info → universal_mcp-0.1.24rc28.dist-info}/RECORD +6 -6
- {universal_mcp-0.1.24rc27.dist-info → universal_mcp-0.1.24rc28.dist-info}/WHEEL +0 -0
- {universal_mcp-0.1.24rc27.dist-info → universal_mcp-0.1.24rc28.dist-info}/entry_points.txt +0 -0
- {universal_mcp-0.1.24rc27.dist-info → universal_mcp-0.1.24rc28.dist-info}/licenses/LICENSE +0 -0
universal_mcp/tools/adapters.py
CHANGED
|
@@ -28,9 +28,14 @@ def convert_to_native_tool(tool: Tool) -> Callable[..., Any]:
|
|
|
28
28
|
"""Decorator to convert a Tool object to a native tool."""
|
|
29
29
|
|
|
30
30
|
def decorator(func):
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
if inspect.iscoroutinefunction(func):
|
|
32
|
+
@wraps(func)
|
|
33
|
+
async def wrapper(*args, **kwargs):
|
|
34
|
+
return await func(*args, **kwargs)
|
|
35
|
+
else:
|
|
36
|
+
@wraps(func)
|
|
37
|
+
def wrapper(*args, **kwargs):
|
|
38
|
+
return func(*args, **kwargs)
|
|
34
39
|
|
|
35
40
|
wrapper.__name__ = tool.name
|
|
36
41
|
wrapper.__doc__ = tool.fn.__doc__
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: universal-mcp
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.24rc28
|
|
4
4
|
Summary: Universal MCP acts as a middle ware for your API applications. It can store your credentials, authorize, enable disable apps on the fly and much more.
|
|
5
5
|
Author-email: Manoj Bajaj <manojbajaj95@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -23,7 +23,7 @@ universal_mcp/servers/server.py,sha256=OUze-imwZxfQdqaRtsoT4DOAbjRK42qfO7k13TpiK
|
|
|
23
23
|
universal_mcp/stores/__init__.py,sha256=quvuwhZnpiSLuojf0NfmBx2xpaCulv3fbKtKaSCEmuM,603
|
|
24
24
|
universal_mcp/stores/store.py,sha256=yWbEGZb53z3fpVyqGWbes63z1CtIzC_IuM49OXy__UY,10137
|
|
25
25
|
universal_mcp/tools/__init__.py,sha256=jC8hsqfTdtn32yU57AVFUXiU3ZmUOCfCERSCaNEIH7E,395
|
|
26
|
-
universal_mcp/tools/adapters.py,sha256=
|
|
26
|
+
universal_mcp/tools/adapters.py,sha256=Qxi6WdSSMlvp1mKOukUOlpBdqCUPqmdm897Rqypm7Rk,5250
|
|
27
27
|
universal_mcp/tools/docstring_parser.py,sha256=efEOE-ME7G5Jbbzpn7pN2xNuyu2M5zfZ1Tqu1lRB0Gk,8392
|
|
28
28
|
universal_mcp/tools/func_metadata.py,sha256=F4jd--hoZWKPBbZihVtluYKUsIdXdq4a0VWRgMl5k-Q,10838
|
|
29
29
|
universal_mcp/tools/local_registry.py,sha256=Gp3bXwLwJ1SBzS1ZSDXa5pHU6kapwAYx5lU41NfRKx4,4247
|
|
@@ -49,8 +49,8 @@ universal_mcp/utils/openapi/readme.py,sha256=R2Jp7DUXYNsXPDV6eFTkLiy7MXbSULUj1vH
|
|
|
49
49
|
universal_mcp/utils/openapi/test_generator.py,sha256=vucBh9klWmQOUA740TFwfM9ry2nkwKWQiNRcsiZ9HbY,12229
|
|
50
50
|
universal_mcp/utils/templates/README.md.j2,sha256=Mrm181YX-o_-WEfKs01Bi2RJy43rBiq2j6fTtbWgbTA,401
|
|
51
51
|
universal_mcp/utils/templates/api_client.py.j2,sha256=DS1nczOOD8YkMexVSGpUGeyc0nYGKKTPadL_x1_if7k,900
|
|
52
|
-
universal_mcp-0.1.
|
|
53
|
-
universal_mcp-0.1.
|
|
54
|
-
universal_mcp-0.1.
|
|
55
|
-
universal_mcp-0.1.
|
|
56
|
-
universal_mcp-0.1.
|
|
52
|
+
universal_mcp-0.1.24rc28.dist-info/METADATA,sha256=qjwjURi_Xj9UZOBRa4zMNTXPaowh2kcO1yfMrqrFCZc,3255
|
|
53
|
+
universal_mcp-0.1.24rc28.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
54
|
+
universal_mcp-0.1.24rc28.dist-info/entry_points.txt,sha256=QlBrVKmA2jIM0q-C-3TQMNJTTWOsOFQvgedBq2rZTS8,56
|
|
55
|
+
universal_mcp-0.1.24rc28.dist-info/licenses/LICENSE,sha256=NweDZVPslBAZFzlgByF158b85GR0f5_tLQgq1NS48To,1063
|
|
56
|
+
universal_mcp-0.1.24rc28.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|