chuk-tool-processor 0.6.13__py3-none-any.whl → 0.6.14__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.

Potentially problematic release.


This version of chuk-tool-processor might be problematic. Click here for more details.

@@ -4,6 +4,7 @@ from __future__ import annotations
4
4
  import asyncio
5
5
  import json
6
6
  import logging
7
+ import os
7
8
  import time
8
9
  from typing import Any
9
10
 
@@ -54,13 +55,28 @@ class StdioTransport(MCPBaseTransport):
54
55
  """
55
56
  # Convert dict to StdioParameters if needed
56
57
  if isinstance(server_params, dict):
58
+ # Merge provided env with system environment to ensure PATH is available
59
+ merged_env = os.environ.copy()
60
+ if server_params.get("env"):
61
+ merged_env.update(server_params["env"])
62
+
57
63
  self.server_params = StdioParameters(
58
64
  command=server_params.get("command", "python"),
59
65
  args=server_params.get("args", []),
60
- env=server_params.get("env"),
66
+ env=merged_env,
61
67
  )
62
68
  else:
63
- self.server_params = server_params
69
+ # Also handle StdioParameters object - merge env if provided
70
+ # Create a new StdioParameters with merged env (Pydantic models are immutable)
71
+ merged_env = os.environ.copy()
72
+ if hasattr(server_params, "env") and server_params.env:
73
+ merged_env.update(server_params.env)
74
+
75
+ self.server_params = StdioParameters(
76
+ command=server_params.command,
77
+ args=server_params.args,
78
+ env=merged_env,
79
+ )
64
80
 
65
81
  self.connection_timeout = connection_timeout
66
82
  self.default_timeout = default_timeout
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chuk-tool-processor
3
- Version: 0.6.13
3
+ Version: 0.6.14
4
4
  Summary: Async-native framework for registering, discovering, and executing tools referenced in LLM responses
5
5
  Author-email: CHUK Team <chrishayuk@somejunkmailbox.com>
6
6
  Maintainer-email: CHUK Team <chrishayuk@somejunkmailbox.com>
@@ -27,7 +27,7 @@ chuk_tool_processor/mcp/transport/__init__.py,sha256=Gpw9QZctxfO-tWZ8URpyFU8rePc
27
27
  chuk_tool_processor/mcp/transport/base_transport.py,sha256=rG61TlaignbVZbsqdBS38TnFzTVO666ehKEI0IUAJCM,8675
28
28
  chuk_tool_processor/mcp/transport/http_streamable_transport.py,sha256=lAETnKaIv5K3uncI2uMtLAKURE00Z4fjdHjygAVM63Y,22946
29
29
  chuk_tool_processor/mcp/transport/sse_transport.py,sha256=EkY4Fqa98LeuQfhWSUrD61pIiezNUucKJxCwCxv5aaI,26199
30
- chuk_tool_processor/mcp/transport/stdio_transport.py,sha256=0I5eV4mT7khIjxhKgxuxk5CF7WsCv8nSVVGcCTR4ruI,26936
30
+ chuk_tool_processor/mcp/transport/stdio_transport.py,sha256=y7VTN11lN7qe22ORd2vmgmtEAn9uTRBlCBUr3RFnW6Y,27624
31
31
  chuk_tool_processor/models/__init__.py,sha256=A3ysSvRxaxso_AN57QZt5ZYahJH5zlL-IENqNaius84,41
32
32
  chuk_tool_processor/models/execution_strategy.py,sha256=O0h8d8JSgm-tv26Cc5jAkZqup8vIgx0zfb5n0b2vpSk,1967
33
33
  chuk_tool_processor/models/streaming_tool.py,sha256=3IXe9VV6sgPHzMeHpuNzZThFhu5BuB3MQdoYSogz348,3359
@@ -54,7 +54,7 @@ chuk_tool_processor/registry/providers/__init__.py,sha256=iGc_2JzlYJSBRQ6tFbX781
54
54
  chuk_tool_processor/registry/providers/memory.py,sha256=udfboAHH0gRxtnf3GsI3wMshhobJxYnCkMwKjQ_uqkw,5017
55
55
  chuk_tool_processor/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
56
56
  chuk_tool_processor/utils/validation.py,sha256=jHPO65sB61ynm9P6V3th4pN7j4u0SQhYR-bstj5QjnI,4175
57
- chuk_tool_processor-0.6.13.dist-info/METADATA,sha256=p1nm2are6xykVh0nQ17VzIAblyW_9NthqeUA20LlsEc,23493
58
- chuk_tool_processor-0.6.13.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
59
- chuk_tool_processor-0.6.13.dist-info/top_level.txt,sha256=7lTsnuRx4cOW4U2sNJWNxl4ZTt_J1ndkjTbj3pHPY5M,20
60
- chuk_tool_processor-0.6.13.dist-info/RECORD,,
57
+ chuk_tool_processor-0.6.14.dist-info/METADATA,sha256=QWBhddJCAJTm7Pqb-rrGHbTD-wBMS5k3N-Nbi3z5i44,23493
58
+ chuk_tool_processor-0.6.14.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
59
+ chuk_tool_processor-0.6.14.dist-info/top_level.txt,sha256=7lTsnuRx4cOW4U2sNJWNxl4ZTt_J1ndkjTbj3pHPY5M,20
60
+ chuk_tool_processor-0.6.14.dist-info/RECORD,,