mcp-chat 0.0.3__tar.gz → 0.0.5__tar.gz
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_chat-0.0.3 → mcp_chat-0.0.5}/PKG-INFO +1 -1
- {mcp_chat-0.0.3 → mcp_chat-0.0.5}/pyproject.toml +1 -1
- {mcp_chat-0.0.3 → mcp_chat-0.0.5}/src/mcp_chat/cli_chat.py +41 -1
- {mcp_chat-0.0.3 → mcp_chat-0.0.5}/uv.lock +1 -1
- {mcp_chat-0.0.3 → mcp_chat-0.0.5}/.env.template +0 -0
- {mcp_chat-0.0.3 → mcp_chat-0.0.5}/.gitignore +0 -0
- {mcp_chat-0.0.3 → mcp_chat-0.0.5}/.python-version +0 -0
- {mcp_chat-0.0.3 → mcp_chat-0.0.5}/LICENSE +0 -0
- {mcp_chat-0.0.3 → mcp_chat-0.0.5}/Makefile +0 -0
- {mcp_chat-0.0.3 → mcp_chat-0.0.5}/README.md +0 -0
- {mcp_chat-0.0.3 → mcp_chat-0.0.5}/llm_mcp_config.json5 +0 -0
- {mcp_chat-0.0.3 → mcp_chat-0.0.5}/src/mcp_chat/__init__.py +0 -0
- {mcp_chat-0.0.3 → mcp_chat-0.0.5}/src/mcp_chat/config_loader.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: mcp-chat
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.5
|
4
4
|
Summary: Simple CLI MCP Client to quickly test and explore MCP servers from the command line
|
5
5
|
Project-URL: Bug Tracker, https://github.com/hideya/mcp-client-langchain-py/issues
|
6
6
|
Project-URL: Source Code, https://github.com/hideya/mcp-client-langchain-py
|
@@ -237,7 +237,47 @@ async def run() -> None:
|
|
237
237
|
"""Main async function to set up and run the simple chat app."""
|
238
238
|
mcp_cleanup: McpServerCleanupFn | None = None
|
239
239
|
try:
|
240
|
-
|
240
|
+
# Debug: Check working directory and .env file existence
|
241
|
+
import os
|
242
|
+
from pathlib import Path
|
243
|
+
|
244
|
+
print(f"DEBUG: Current working directory: {os.getcwd()}")
|
245
|
+
env_file = Path(".env")
|
246
|
+
print(f"DEBUG: .env file exists: {env_file.exists()}")
|
247
|
+
if env_file.exists():
|
248
|
+
print(f"DEBUG: .env file path: {env_file.absolute()}")
|
249
|
+
|
250
|
+
# Try to load .env file with multiple strategies
|
251
|
+
from pathlib import Path
|
252
|
+
|
253
|
+
# Strategy 1: Try current working directory
|
254
|
+
env_file = Path(".env")
|
255
|
+
if env_file.exists():
|
256
|
+
load_dotenv(env_file)
|
257
|
+
print(f"DEBUG: Loaded .env from: {env_file.absolute()}")
|
258
|
+
else:
|
259
|
+
# Strategy 2: Try default load_dotenv behavior
|
260
|
+
result = load_dotenv()
|
261
|
+
print(f"DEBUG: load_dotenv() default result: {result}")
|
262
|
+
|
263
|
+
# Strategy 3: Try looking in parent directories
|
264
|
+
current_dir = Path.cwd()
|
265
|
+
for parent in [current_dir] + list(current_dir.parents):
|
266
|
+
potential_env = parent / ".env"
|
267
|
+
if potential_env.exists():
|
268
|
+
load_dotenv(potential_env)
|
269
|
+
print(f"DEBUG: Loaded .env from parent: {potential_env}")
|
270
|
+
break
|
271
|
+
|
272
|
+
# Debug: Check if environment variables are loaded
|
273
|
+
openai_key = os.getenv('OPENAI_API_KEY')
|
274
|
+
print(f"DEBUG: OPENAI_API_KEY loaded: {openai_key is not None}")
|
275
|
+
if openai_key:
|
276
|
+
print(f"DEBUG: Key length: {len(openai_key)}")
|
277
|
+
print(f"DEBUG: Key starts with: {openai_key[:10]}...")
|
278
|
+
else:
|
279
|
+
print("DEBUG: OPENAI_API_KEY is None or empty")
|
280
|
+
|
241
281
|
args = parse_arguments()
|
242
282
|
logger = init_logger(args.verbose)
|
243
283
|
config = load_config(args.config)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|