chuk-tool-processor 0.1.5__py3-none-any.whl → 0.1.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.
- chuk_tool_processor/mcp/stream_manager.py +28 -0
- {chuk_tool_processor-0.1.5.dist-info → chuk_tool_processor-0.1.6.dist-info}/METADATA +1 -1
- {chuk_tool_processor-0.1.5.dist-info → chuk_tool_processor-0.1.6.dist-info}/RECORD +5 -5
- {chuk_tool_processor-0.1.5.dist-info → chuk_tool_processor-0.1.6.dist-info}/WHEEL +0 -0
- {chuk_tool_processor-0.1.5.dist-info → chuk_tool_processor-0.1.6.dist-info}/top_level.txt +0 -0
|
@@ -174,6 +174,34 @@ class StreamManager:
|
|
|
174
174
|
|
|
175
175
|
def get_server_info(self) -> List[Dict[str, Any]]:
|
|
176
176
|
return self.server_info
|
|
177
|
+
|
|
178
|
+
async def list_tools(self, server_name: str) -> List[Dict[str, Any]]:
|
|
179
|
+
"""
|
|
180
|
+
List all tools available from a specific server.
|
|
181
|
+
|
|
182
|
+
This method is required by ProxyServerManager for proper tool discovery.
|
|
183
|
+
|
|
184
|
+
Args:
|
|
185
|
+
server_name: Name of the server to query
|
|
186
|
+
|
|
187
|
+
Returns:
|
|
188
|
+
List of tool definitions from the server
|
|
189
|
+
"""
|
|
190
|
+
if server_name not in self.transports:
|
|
191
|
+
logger.error(f"Server '{server_name}' not found in transports")
|
|
192
|
+
return []
|
|
193
|
+
|
|
194
|
+
# Get the transport for this server
|
|
195
|
+
transport = self.transports[server_name]
|
|
196
|
+
|
|
197
|
+
try:
|
|
198
|
+
# Call the get_tools method on the transport
|
|
199
|
+
tools = await transport.get_tools()
|
|
200
|
+
logger.debug(f"Found {len(tools)} tools for server {server_name}")
|
|
201
|
+
return tools
|
|
202
|
+
except Exception as e:
|
|
203
|
+
logger.error(f"Error listing tools for server {server_name}: {e}")
|
|
204
|
+
return []
|
|
177
205
|
|
|
178
206
|
# ------------------------------------------------------------------ #
|
|
179
207
|
# EXTRA HELPERS – ping / resources / prompts #
|
|
@@ -21,7 +21,7 @@ chuk_tool_processor/mcp/mcp_tool.py,sha256=TvZEudgQvaev2jaPw6OGsqAR5GNu6_cPaUCgq
|
|
|
21
21
|
chuk_tool_processor/mcp/register_mcp_tools.py,sha256=ofE7pEn6sKDH8HWvNamVOaXsitLOaG48M5GhcpqCBbs,2801
|
|
22
22
|
chuk_tool_processor/mcp/setup_mcp_sse.py,sha256=Ep2IKRdH1Y299bCxt9G0NtwnsvguYP6mpraZyUJ8OKU,2643
|
|
23
23
|
chuk_tool_processor/mcp/setup_mcp_stdio.py,sha256=NjTvAFqQHxxN3XubsTgYY3lTrvPVWlnwCzkzbz7WE_M,2747
|
|
24
|
-
chuk_tool_processor/mcp/stream_manager.py,sha256=
|
|
24
|
+
chuk_tool_processor/mcp/stream_manager.py,sha256=mrmlG54P_xLbDYz_rBjdu-OPMnbi916dgyJg7BrIbjM,12798
|
|
25
25
|
chuk_tool_processor/mcp/transport/__init__.py,sha256=7QQqeSKVKv0N9GcyJuYF0R4FDZeooii5RjggvFFg5GY,296
|
|
26
26
|
chuk_tool_processor/mcp/transport/base_transport.py,sha256=1E29LjWw5vLQrPUDF_9TJt63P5dxAAN7n6E_KiZbGUY,3427
|
|
27
27
|
chuk_tool_processor/mcp/transport/sse_transport.py,sha256=bryH9DOWOn5qr6LsimTriukDC4ix2kuRq6bUv9qOV20,7645
|
|
@@ -51,7 +51,7 @@ chuk_tool_processor/registry/providers/__init__.py,sha256=_0dg4YhyfAV0TXuR_i4ewX
|
|
|
51
51
|
chuk_tool_processor/registry/providers/memory.py,sha256=29aI5uvykjDmn9ymIukEdUtmTC9SXOAsDu9hw36XF44,4474
|
|
52
52
|
chuk_tool_processor/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
53
53
|
chuk_tool_processor/utils/validation.py,sha256=7ezn_o-3IHDrzOD3j6ttsAn2s3zS-jIjeBTuqicrs6A,3775
|
|
54
|
-
chuk_tool_processor-0.1.
|
|
55
|
-
chuk_tool_processor-0.1.
|
|
56
|
-
chuk_tool_processor-0.1.
|
|
57
|
-
chuk_tool_processor-0.1.
|
|
54
|
+
chuk_tool_processor-0.1.6.dist-info/METADATA,sha256=XsvUbxDUKZHtefun8o-xsg6HvAm5hxqrEhkTFrhkjLI,13703
|
|
55
|
+
chuk_tool_processor-0.1.6.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
|
|
56
|
+
chuk_tool_processor-0.1.6.dist-info/top_level.txt,sha256=7lTsnuRx4cOW4U2sNJWNxl4ZTt_J1ndkjTbj3pHPY5M,20
|
|
57
|
+
chuk_tool_processor-0.1.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|