jdewitte commited on
Commit
81eda6f
Β·
1 Parent(s): 350c271

Fix httpx issue

Browse files
app.py CHANGED
@@ -4,8 +4,9 @@ import logging
4
  import sys
5
  import time
6
  import json
 
7
  from datetime import datetime
8
- from typing import Any, Dict, List, Optional
9
  from fastapi import FastAPI, HTTPException, Request
10
  from fastapi.responses import HTMLResponse
11
  from pydantic import BaseModel, Field
 
4
  import sys
5
  import time
6
  import json
7
+ import httpx
8
  from datetime import datetime
9
+ from typing import Any, Dict, List, Optional, Union
10
  from fastapi import FastAPI, HTTPException, Request
11
  from fastapi.responses import HTMLResponse
12
  from pydantic import BaseModel, Field
inference_app.log CHANGED
@@ -18,3 +18,46 @@
18
  2025-09-12 19:04:04,723 - __main__ - INFO - βœ… MCP client initialized successfully in 0.00s
19
  2025-09-12 19:04:04,723 - __main__ - INFO - πŸ› οΈ MCP client type: <class 'prestashop_mcp.client.LocalMCPClient'>
20
  2025-09-12 19:04:04,723 - __main__ - INFO - 🎯 Application startup complete, ready to serve requests
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  2025-09-12 19:04:04,723 - __main__ - INFO - βœ… MCP client initialized successfully in 0.00s
19
  2025-09-12 19:04:04,723 - __main__ - INFO - πŸ› οΈ MCP client type: <class 'prestashop_mcp.client.LocalMCPClient'>
20
  2025-09-12 19:04:04,723 - __main__ - INFO - 🎯 Application startup complete, ready to serve requests
21
+ 2025-09-12 19:25:26,554 - __main__ - INFO - πŸš€ Starting HF Inference Point server
22
+ 2025-09-12 19:25:26,554 - __main__ - INFO - 🌐 Host: 0.0.0.0
23
+ 2025-09-12 19:25:26,554 - __main__ - INFO - πŸ”Œ Port: 7860
24
+ 2025-09-12 19:25:26,554 - __main__ - INFO - 🏠 Environment: development
25
+ 2025-09-12 19:25:26,554 - __main__ - INFO - πŸ“ Log level: DEBUG
26
+ 2025-09-12 19:25:26,554 - __main__ - INFO - πŸ“ Working directory: /Users/jdewitte/www/mcp/huggingface/inference_point
27
+ 2025-09-12 19:25:26,554 - __main__ - INFO - 🐍 Python version: 3.13.5 (main, Jun 11 2025, 15:36:57) [Clang 17.0.0 (clang-1700.0.13.3)]
28
+ 2025-09-12 19:25:26,554 - __main__ - INFO - 🎯 Starting uvicorn server with debug logging
29
+ 2025-09-12 19:25:26,555 - asyncio - DEBUG - Using selector: KqueueSelector
30
+ 2025-09-12 19:25:26,575 - __main__ - INFO - πŸš€ Starting HF Inference Point application
31
+ 2025-09-12 19:25:26,575 - __main__ - INFO - πŸ“¦ Environment: unknown
32
+ 2025-09-12 19:25:26,575 - __main__ - INFO - πŸ”— Default PrestaShop URL: https://shop.mcp.integration.ambris.com
33
+ 2025-09-12 19:25:26,575 - __main__ - INFO - πŸ”§ Attempting to initialize MCP client...
34
+ 2025-09-12 19:25:26,575 - mcp.server.lowlevel.server - DEBUG - Initializing server 'prestashop-mcp'
35
+ 2025-09-12 19:25:26,575 - mcp.server.lowlevel.server - DEBUG - Registering handler for ListToolsRequest
36
+ 2025-09-12 19:25:26,575 - mcp.server.lowlevel.server - DEBUG - Registering handler for CallToolRequest
37
+ 2025-09-12 19:25:26,575 - prestashop_mcp.client - INFO - MCP client initialized with 4 tools
38
+ 2025-09-12 19:25:26,575 - __main__ - INFO - βœ… MCP client initialized successfully in 0.00s
39
+ 2025-09-12 19:25:26,575 - __main__ - INFO - πŸ› οΈ MCP client type: <class 'prestashop_mcp.client.LocalMCPClient'>
40
+ 2025-09-12 19:25:26,575 - __main__ - INFO - 🎯 Application startup complete, ready to serve requests
41
+ 2025-09-12 19:26:56,868 - __main__ - INFO - πŸš€ Starting HF Inference Point server
42
+ 2025-09-12 19:26:56,868 - __main__ - INFO - 🌐 Host: 0.0.0.0
43
+ 2025-09-12 19:26:56,868 - __main__ - INFO - πŸ”Œ Port: 7860
44
+ 2025-09-12 19:26:56,869 - __main__ - INFO - 🏠 Environment: development
45
+ 2025-09-12 19:26:56,869 - __main__ - INFO - πŸ“ Log level: DEBUG
46
+ 2025-09-12 19:26:56,869 - __main__ - INFO - πŸ“ Working directory: /Users/jdewitte/www/mcp/huggingface/inference_point
47
+ 2025-09-12 19:26:56,869 - __main__ - INFO - 🐍 Python version: 3.13.5 (main, Jun 11 2025, 15:36:57) [Clang 17.0.0 (clang-1700.0.13.3)]
48
+ 2025-09-12 19:26:56,869 - __main__ - INFO - 🎯 Starting uvicorn server with debug logging
49
+ 2025-09-12 19:26:56,870 - asyncio - DEBUG - Using selector: KqueueSelector
50
+ 2025-09-12 19:26:56,889 - __main__ - INFO - πŸš€ Starting HF Inference Point application
51
+ 2025-09-12 19:26:56,889 - __main__ - INFO - πŸ“¦ Environment: unknown
52
+ 2025-09-12 19:26:56,889 - __main__ - INFO - πŸ”— Default PrestaShop URL: https://shop.mcp.integration.ambris.com
53
+ 2025-09-12 19:26:56,889 - __main__ - INFO - πŸ”§ Attempting to initialize MCP client...
54
+ 2025-09-12 19:26:56,889 - mcp.server.lowlevel.server - DEBUG - Initializing server 'prestashop-mcp'
55
+ 2025-09-12 19:26:56,889 - mcp.server.lowlevel.server - DEBUG - Registering handler for ListToolsRequest
56
+ 2025-09-12 19:26:56,889 - mcp.server.lowlevel.server - DEBUG - Registering handler for CallToolRequest
57
+ 2025-09-12 19:26:56,889 - prestashop_mcp.client - INFO - MCP client initialized with 4 tools
58
+ 2025-09-12 19:26:56,889 - __main__ - INFO - βœ… MCP client initialized successfully in 0.00s
59
+ 2025-09-12 19:26:56,889 - __main__ - INFO - πŸ› οΈ MCP client type: <class 'prestashop_mcp.client.LocalMCPClient'>
60
+ 2025-09-12 19:26:56,889 - __main__ - INFO - 🎯 Application startup complete, ready to serve requests
61
+ 2025-09-12 19:26:56,890 - __main__ - INFO - πŸ›‘ Application shutdown initiated
62
+ 2025-09-12 19:26:56,890 - __main__ - INFO - βœ… MCP client closed successfully
63
+ 2025-09-12 19:26:56,890 - __main__ - INFO - πŸ‘‹ Application shutdown complete
prestashop_mcp/__pycache__/server.cpython-313.pyc CHANGED
Binary files a/prestashop_mcp/__pycache__/server.cpython-313.pyc and b/prestashop_mcp/__pycache__/server.cpython-313.pyc differ