mcp-mesh 0.7.5__py3-none-any.whl → 0.7.6__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.
- _mcp_mesh/__init__.py +1 -1
- {mcp_mesh-0.7.5.dist-info → mcp_mesh-0.7.6.dist-info}/METADATA +1 -1
- {mcp_mesh-0.7.5.dist-info → mcp_mesh-0.7.6.dist-info}/RECORD +6 -6
- mesh/helpers.py +8 -1
- {mcp_mesh-0.7.5.dist-info → mcp_mesh-0.7.6.dist-info}/WHEEL +0 -0
- {mcp_mesh-0.7.5.dist-info → mcp_mesh-0.7.6.dist-info}/licenses/LICENSE +0 -0
_mcp_mesh/__init__.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mcp-mesh
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.6
|
|
4
4
|
Summary: Kubernetes-native platform for distributed MCP applications
|
|
5
5
|
Project-URL: Homepage, https://github.com/dhyansraj/mcp-mesh
|
|
6
6
|
Project-URL: Documentation, https://github.com/dhyansraj/mcp-mesh/tree/main/docs
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
_mcp_mesh/__init__.py,sha256=
|
|
1
|
+
_mcp_mesh/__init__.py,sha256=wmzFxXFWCLIfgg1AYAaXn-da7rDLprYBMLsWEJafAgI,2719
|
|
2
2
|
_mcp_mesh/engine/__init__.py,sha256=2ennzbo7yJcpkXO9BqN69TruLjJfmJY4Y5VEsG644K4,3630
|
|
3
3
|
_mcp_mesh/engine/async_mcp_client.py,sha256=UcbQjxtgVfeRw6DHTZhAzN1gkcKlTg-lUPEePRPQWAU,6306
|
|
4
4
|
_mcp_mesh/engine/base_injector.py,sha256=qzRLZqFP2VvEFagVovkpdldvDmm3VwPHm6tHwV58a2k,5648
|
|
@@ -141,9 +141,9 @@ _mcp_mesh/tracing/utils.py,sha256=t9lJuTH7CeuzAiiAaD0WxsJMFJPdzZFR0w6-vyR9f2E,38
|
|
|
141
141
|
_mcp_mesh/utils/fastmcp_schema_extractor.py,sha256=M54ffesC-56zl_fNJHj9dZxElDQaWFf1MXdSLCuFStg,17253
|
|
142
142
|
mesh/__init__.py,sha256=0zequaBtd_9NLOLsr9sNONuwWa_fT_-G4LnJ1CHTEY0,3808
|
|
143
143
|
mesh/decorators.py,sha256=_3yVrEvGHZ5MKX_pf7Zn-vLdOH68iE7o6EIvxKcGOds,57636
|
|
144
|
-
mesh/helpers.py,sha256=
|
|
144
|
+
mesh/helpers.py,sha256=2Iquvco5mDl0Qs_FD4rMiI88Q-sjXEkKitsXw2HS4Jc,9878
|
|
145
145
|
mesh/types.py,sha256=9TqbJSxlybLQaPVjugcKwPiIrVnJEzqAOvPRhlX1zmo,15559
|
|
146
|
-
mcp_mesh-0.7.
|
|
147
|
-
mcp_mesh-0.7.
|
|
148
|
-
mcp_mesh-0.7.
|
|
149
|
-
mcp_mesh-0.7.
|
|
146
|
+
mcp_mesh-0.7.6.dist-info/METADATA,sha256=WUsSF3pKb7NqjKTh5aMn1Oc5ypa6QKecBG47NI01XzU,4972
|
|
147
|
+
mcp_mesh-0.7.6.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
148
|
+
mcp_mesh-0.7.6.dist-info/licenses/LICENSE,sha256=_EBQHRQThv9FPOLc5eFOUdeeRO0mYwChC7cx60dM1tM,1078
|
|
149
|
+
mcp_mesh-0.7.6.dist-info/RECORD,,
|
mesh/helpers.py
CHANGED
|
@@ -235,6 +235,13 @@ def llm_provider(
|
|
|
235
235
|
if func.__doc__:
|
|
236
236
|
process_chat.__doc__ = func.__doc__ + "\n\n" + (process_chat.__doc__ or "")
|
|
237
237
|
|
|
238
|
+
# FIX for issue #227: Preserve original function name to avoid conflicts
|
|
239
|
+
# when multiple @mesh.llm_provider decorators are used in the same agent.
|
|
240
|
+
# FastMCP uses __name__ as the tool name, so without this fix all providers
|
|
241
|
+
# would be registered as "process_chat" and overwrite each other.
|
|
242
|
+
process_chat.__name__ = func.__name__
|
|
243
|
+
process_chat.__qualname__ = func.__qualname__
|
|
244
|
+
|
|
238
245
|
# CRITICAL: Apply @mesh.tool() FIRST (before FastMCP caches the function)
|
|
239
246
|
# This ensures mesh DI wrapper is in place when FastMCP caches the function
|
|
240
247
|
# Decorators are applied bottom-up, so mesh wrapper must be innermost
|
|
@@ -249,7 +256,7 @@ def llm_provider(
|
|
|
249
256
|
process_chat = app.tool()(process_chat)
|
|
250
257
|
|
|
251
258
|
logger.info(
|
|
252
|
-
f"✅ Created LLM provider '{func.__name__}'
|
|
259
|
+
f"✅ Created LLM provider '{func.__name__}' "
|
|
253
260
|
f"(model={model}, capability={capability}, tags={tags}, vendor={vendor})"
|
|
254
261
|
)
|
|
255
262
|
|
|
File without changes
|
|
File without changes
|