mcp-mesh 0.7.10__py3-none-any.whl → 0.7.11__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/engine/unified_mcp_proxy.py +25 -2
- {mcp_mesh-0.7.10.dist-info → mcp_mesh-0.7.11.dist-info}/METADATA +1 -1
- {mcp_mesh-0.7.10.dist-info → mcp_mesh-0.7.11.dist-info}/RECORD +6 -6
- {mcp_mesh-0.7.10.dist-info → mcp_mesh-0.7.11.dist-info}/WHEEL +0 -0
- {mcp_mesh-0.7.10.dist-info → mcp_mesh-0.7.11.dist-info}/licenses/LICENSE +0 -0
_mcp_mesh/__init__.py
CHANGED
|
@@ -100,13 +100,36 @@ class UnifiedMCPProxy:
|
|
|
100
100
|
# Try to get current trace context for header injection
|
|
101
101
|
trace_headers = self._get_trace_headers()
|
|
102
102
|
|
|
103
|
+
# Use stream_timeout for read timeout (default 300s for LLM calls)
|
|
104
|
+
# Note: sse_read_timeout is deprecated, use httpx_client_factory instead
|
|
105
|
+
import httpx
|
|
106
|
+
|
|
107
|
+
def create_httpx_client(**kwargs):
|
|
108
|
+
# Override timeout to use stream_timeout for long-running LLM calls
|
|
109
|
+
kwargs["timeout"] = httpx.Timeout(
|
|
110
|
+
timeout=self.stream_timeout,
|
|
111
|
+
connect=30.0, # 30s for connection
|
|
112
|
+
read=self.stream_timeout, # Long read timeout for SSE streams
|
|
113
|
+
write=30.0, # 30s for writes
|
|
114
|
+
pool=30.0, # 30s for pool
|
|
115
|
+
)
|
|
116
|
+
return httpx.AsyncClient(**kwargs)
|
|
117
|
+
|
|
103
118
|
if trace_headers:
|
|
104
119
|
# Create client with trace headers for distributed tracing
|
|
105
|
-
transport = StreamableHttpTransport(
|
|
120
|
+
transport = StreamableHttpTransport(
|
|
121
|
+
url=endpoint,
|
|
122
|
+
headers=trace_headers,
|
|
123
|
+
httpx_client_factory=create_httpx_client,
|
|
124
|
+
)
|
|
106
125
|
return Client(transport)
|
|
107
126
|
else:
|
|
108
127
|
# Create standard client when no trace context available
|
|
109
|
-
|
|
128
|
+
transport = StreamableHttpTransport(
|
|
129
|
+
url=endpoint,
|
|
130
|
+
httpx_client_factory=create_httpx_client,
|
|
131
|
+
)
|
|
132
|
+
return Client(transport)
|
|
110
133
|
|
|
111
134
|
except ImportError as e:
|
|
112
135
|
# DNS names or FastMCP not available - this will trigger HTTP fallback
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mcp-mesh
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.11
|
|
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=YyIzN6x9OBfdEWJq2A9-8O8byF-947bWhfJAdmVa1ZE,2720
|
|
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
|
|
@@ -18,7 +18,7 @@ _mcp_mesh/engine/session_manager.py,sha256=MCr0_fXBaUjXM51WU5EhDkiGvBdfzYQFVNb9D
|
|
|
18
18
|
_mcp_mesh/engine/signature_analyzer.py,sha256=ftn9XsX0ZHWIaACdjgBVtCuIdqVU_4ST8cvcpzu4HTk,12339
|
|
19
19
|
_mcp_mesh/engine/tool_executor.py,sha256=Bf_9d02EEY9_yHm1p1-5YZ4rY6MPxn4SVpI6-3sm1uo,5456
|
|
20
20
|
_mcp_mesh/engine/tool_schema_builder.py,sha256=SQCxQIrSfdLu9-dLqiFurQLK7dhl0dc0xa0ibaxU-iE,3644
|
|
21
|
-
_mcp_mesh/engine/unified_mcp_proxy.py,sha256=
|
|
21
|
+
_mcp_mesh/engine/unified_mcp_proxy.py,sha256=FG3zwE5Li3Fdx8Rabzogpd4FsYIt13xjXcpU48Zth6c,37778
|
|
22
22
|
_mcp_mesh/engine/provider_handlers/__init__.py,sha256=LLTCOgnuM3dlogbLmrpiMK3oB5L22eAmDC4BfxJ-L2I,593
|
|
23
23
|
_mcp_mesh/engine/provider_handlers/base_provider_handler.py,sha256=J-SPFFFG1eFSUVvfsv7y4EuNM4REjSxaYWC5E_lC6Pc,4195
|
|
24
24
|
_mcp_mesh/engine/provider_handlers/claude_handler.py,sha256=CCmlsWiCfIcgrLbAZzeSnl0g2pq0uDffT8zOj4F-sPQ,15727
|
|
@@ -145,7 +145,7 @@ mesh/__init__.py,sha256=0zequaBtd_9NLOLsr9sNONuwWa_fT_-G4LnJ1CHTEY0,3808
|
|
|
145
145
|
mesh/decorators.py,sha256=_3yVrEvGHZ5MKX_pf7Zn-vLdOH68iE7o6EIvxKcGOds,57636
|
|
146
146
|
mesh/helpers.py,sha256=2Iquvco5mDl0Qs_FD4rMiI88Q-sjXEkKitsXw2HS4Jc,9878
|
|
147
147
|
mesh/types.py,sha256=9TqbJSxlybLQaPVjugcKwPiIrVnJEzqAOvPRhlX1zmo,15559
|
|
148
|
-
mcp_mesh-0.7.
|
|
149
|
-
mcp_mesh-0.7.
|
|
150
|
-
mcp_mesh-0.7.
|
|
151
|
-
mcp_mesh-0.7.
|
|
148
|
+
mcp_mesh-0.7.11.dist-info/METADATA,sha256=gWVztMobWhc0salCmhAZ2STRs6SPBYGtErNDe_RMyLc,4973
|
|
149
|
+
mcp_mesh-0.7.11.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
150
|
+
mcp_mesh-0.7.11.dist-info/licenses/LICENSE,sha256=_EBQHRQThv9FPOLc5eFOUdeeRO0mYwChC7cx60dM1tM,1078
|
|
151
|
+
mcp_mesh-0.7.11.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|