mcp-mesh 0.7.9__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 CHANGED
@@ -31,7 +31,7 @@ from .engine.decorator_registry import (
31
31
  get_decorator_stats,
32
32
  )
33
33
 
34
- __version__ = "0.7.9"
34
+ __version__ = "0.7.11"
35
35
 
36
36
  # Store reference to runtime processor if initialized
37
37
  _runtime_processor = None
@@ -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(url=endpoint, headers=trace_headers)
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
- return Client(endpoint)
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
@@ -73,6 +73,11 @@ def configure_logging():
73
73
  logging.getLogger("mcp_mesh").setLevel(log_level)
74
74
  logging.getLogger("_mcp_mesh").setLevel(log_level)
75
75
 
76
+ # Suppress noisy third-party loggers
77
+ # docket (task queue used by fastmcp) produces excessive DEBUG logs like
78
+ # "Scheduling due tasks", "Getting redeliveries", "Getting new deliveries" in tight loops
79
+ logging.getLogger("docket").setLevel(logging.WARNING)
80
+
76
81
  # Return the configured level for reference
77
82
  return log_level
78
83
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mcp-mesh
3
- Version: 0.7.9
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=nqOstdPUBQNfTwpyBX5Dp0FPxw3GYfVdZiEcfl05ZoM,2719
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=RIkYQGf04xxKui4kLa6N-L7KvH7XTrOy6I2AeMY9imY,36762
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
@@ -127,7 +127,7 @@ _mcp_mesh/shared/fast_heartbeat_status.py,sha256=OquEsX9ZTbxY1lIsll0Mbb2KDzSJD76
127
127
  _mcp_mesh/shared/fastapi_middleware_manager.py,sha256=_h10dSL9mgQstpJW_ZM2cpkU6yTKaYKlZaKXMk2i6IA,14638
128
128
  _mcp_mesh/shared/health_check_cache.py,sha256=bEdWMBwubK7W01gRCDcZo9NjVQELY4p42fIreeGahZ4,9399
129
129
  _mcp_mesh/shared/host_resolver.py,sha256=ycs6gXnI1zJX5KiqiLJPX5GkHX8r4j8NMHQOlG2J2X8,2964
130
- _mcp_mesh/shared/logging_config.py,sha256=n9AqShZ5BZgyrkoTlvux6ECRVpM9dUYvmGB0NPMl-Ak,2477
130
+ _mcp_mesh/shared/logging_config.py,sha256=lIljIVd2a_ekWj4isZnNDi4lzaEbPB-nyIapXPAz22c,2748
131
131
  _mcp_mesh/shared/registry_client_wrapper.py,sha256=8x40IzeigI0SFPz44OWgbXCkVrEDgV7N9a8wZ58Lh4Y,21181
132
132
  _mcp_mesh/shared/server_discovery.py,sha256=W5nsN-GvEVFD-7XkbMTxh-9FUIEiyWOxP3GYr8GNi3E,13142
133
133
  _mcp_mesh/shared/simple_shutdown.py,sha256=jnF1rTR2yR619LZnEjNlu-ZdKlB3PovxKqG0VZ3HDgE,8319
@@ -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.9.dist-info/METADATA,sha256=nIdO8IyX_5G0I0IiA-Tfk4AWB6dd_Azs0Rj6B2cNoek,4972
149
- mcp_mesh-0.7.9.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
150
- mcp_mesh-0.7.9.dist-info/licenses/LICENSE,sha256=_EBQHRQThv9FPOLc5eFOUdeeRO0mYwChC7cx60dM1tM,1078
151
- mcp_mesh-0.7.9.dist-info/RECORD,,
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,,