code-puppy 0.0.133__py3-none-any.whl → 0.0.135__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.
- code_puppy/mcp/managed_server.py +3 -6
- {code_puppy-0.0.133.dist-info → code_puppy-0.0.135.dist-info}/METADATA +1 -1
- {code_puppy-0.0.133.dist-info → code_puppy-0.0.135.dist-info}/RECORD +7 -7
- {code_puppy-0.0.133.data → code_puppy-0.0.135.data}/data/code_puppy/models.json +0 -0
- {code_puppy-0.0.133.dist-info → code_puppy-0.0.135.dist-info}/WHEEL +0 -0
- {code_puppy-0.0.133.dist-info → code_puppy-0.0.135.dist-info}/entry_points.txt +0 -0
- {code_puppy-0.0.133.dist-info → code_puppy-0.0.135.dist-info}/licenses/LICENSE +0 -0
code_puppy/mcp/managed_server.py
CHANGED
|
@@ -18,6 +18,7 @@ from pydantic_ai import RunContext
|
|
|
18
18
|
|
|
19
19
|
from pydantic_ai.mcp import MCPServerSSE, MCPServerStdio, MCPServerStreamableHTTP, CallToolFunc, ToolResult
|
|
20
20
|
|
|
21
|
+
from code_puppy.http_utils import create_async_client
|
|
21
22
|
from code_puppy.messaging import emit_info
|
|
22
23
|
from code_puppy.mcp.blocking_startup import BlockingMCPServerStdio
|
|
23
24
|
|
|
@@ -157,8 +158,6 @@ class ManagedMCPServer:
|
|
|
157
158
|
}
|
|
158
159
|
|
|
159
160
|
# Add optional parameters if provided
|
|
160
|
-
if "headers" in config:
|
|
161
|
-
sse_kwargs["headers"] = config["headers"]
|
|
162
161
|
if "timeout" in config:
|
|
163
162
|
sse_kwargs["timeout"] = config["timeout"]
|
|
164
163
|
if "read_timeout" in config:
|
|
@@ -219,8 +218,6 @@ class ManagedMCPServer:
|
|
|
219
218
|
}
|
|
220
219
|
|
|
221
220
|
# Add optional parameters if provided
|
|
222
|
-
if "headers" in config:
|
|
223
|
-
http_kwargs["headers"] = config["headers"]
|
|
224
221
|
if "timeout" in config:
|
|
225
222
|
http_kwargs["timeout"] = config["timeout"]
|
|
226
223
|
if "read_timeout" in config:
|
|
@@ -251,11 +248,11 @@ class ManagedMCPServer:
|
|
|
251
248
|
"""
|
|
252
249
|
headers = self.config.config.get("headers", {})
|
|
253
250
|
timeout = self.config.config.get("timeout", 30)
|
|
254
|
-
|
|
255
|
-
return httpx.AsyncClient(
|
|
251
|
+
client = create_async_client(
|
|
256
252
|
headers=headers,
|
|
257
253
|
timeout=timeout
|
|
258
254
|
)
|
|
255
|
+
return client
|
|
259
256
|
|
|
260
257
|
def enable(self) -> None:
|
|
261
258
|
"""Enable server availability."""
|
|
@@ -40,7 +40,7 @@ code_puppy/mcp/config_wizard.py,sha256=d0o29ZcnGLdpV778nwTUAPH7B8lHAC2XggU-ql37F
|
|
|
40
40
|
code_puppy/mcp/dashboard.py,sha256=fHBdAVidQUWuhjMjF7hIy0SjrQlrz31zSqzqJv8H2eI,9396
|
|
41
41
|
code_puppy/mcp/error_isolation.py,sha256=xw8DGTItT8-RY5TVYzORtrtfdI1s1ZfUUT88Pr7h_pI,12270
|
|
42
42
|
code_puppy/mcp/health_monitor.py,sha256=oNgPyEwzkF61gNc7nk-FJU_yO2MERjASn4g5shcabic,20428
|
|
43
|
-
code_puppy/mcp/managed_server.py,sha256=
|
|
43
|
+
code_puppy/mcp/managed_server.py,sha256=Cd2TmNzm9V6vOcpb-pmreybPGKa8fzbLmcOMhbAwQVA,14798
|
|
44
44
|
code_puppy/mcp/manager.py,sha256=ZfYoz3nmQqrkSnDzgr9s_QvGKFCthA1bvt3gQm0W6VI,27280
|
|
45
45
|
code_puppy/mcp/registry.py,sha256=YJ-VPFjk1ZFrSftbu9bKVIWvGYX4zIk2TnrM_h_us1M,15841
|
|
46
46
|
code_puppy/mcp/retry_manager.py,sha256=B4q1MyzZQ9RZRW3FKhyqhq-ebSG8Do01j4A70zHTxgA,10988
|
|
@@ -105,9 +105,9 @@ code_puppy/tui/tests/test_sidebar_history_navigation.py,sha256=JGiyua8A2B8dLfwiE
|
|
|
105
105
|
code_puppy/tui/tests/test_status_bar.py,sha256=nYT_FZGdmqnnbn6o0ZuOkLtNUtJzLSmtX8P72liQ5Vo,1797
|
|
106
106
|
code_puppy/tui/tests/test_timestamped_history.py,sha256=nVXt9hExZZ_8MFP-AZj4L4bB_1Eo_mc-ZhVICzTuw3I,1799
|
|
107
107
|
code_puppy/tui/tests/test_tools.py,sha256=kgzzAkK4r0DPzQwHHD4cePpVNgrHor6cFr05Pg6DBWg,2687
|
|
108
|
-
code_puppy-0.0.
|
|
109
|
-
code_puppy-0.0.
|
|
110
|
-
code_puppy-0.0.
|
|
111
|
-
code_puppy-0.0.
|
|
112
|
-
code_puppy-0.0.
|
|
113
|
-
code_puppy-0.0.
|
|
108
|
+
code_puppy-0.0.135.data/data/code_puppy/models.json,sha256=GpvtWnBKERm6T7HCZJQUIVAS5256-tZ_bFuRtnKXEsY,3128
|
|
109
|
+
code_puppy-0.0.135.dist-info/METADATA,sha256=1hZ-uf66rm9deSLl9_IHJWc9_9WWWzBW2WRfcDfb9ms,19873
|
|
110
|
+
code_puppy-0.0.135.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
111
|
+
code_puppy-0.0.135.dist-info/entry_points.txt,sha256=d8YkBvIUxF-dHNJAj-x4fPEqizbY5d_TwvYpc01U5kw,58
|
|
112
|
+
code_puppy-0.0.135.dist-info/licenses/LICENSE,sha256=31u8x0SPgdOq3izJX41kgFazWsM43zPEF9eskzqbJMY,1075
|
|
113
|
+
code_puppy-0.0.135.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|