File size: 18,429 Bytes
6bb43da 81eda6f 2560b19 e1876af 13c0a57 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 | 2025-09-12 19:04:04,701 - __main__ - INFO - π Starting HF Inference Point server
2025-09-12 19:04:04,701 - __main__ - INFO - π Host: 0.0.0.0
2025-09-12 19:04:04,701 - __main__ - INFO - π Port: 7860
2025-09-12 19:04:04,701 - __main__ - INFO - π Environment: development
2025-09-12 19:04:04,701 - __main__ - INFO - π Log level: DEBUG
2025-09-12 19:04:04,701 - __main__ - INFO - π Working directory: /Users/jdewitte/www/mcp/huggingface/inference_point
2025-09-12 19:04:04,701 - __main__ - INFO - π Python version: 3.13.5 (main, Jun 11 2025, 15:36:57) [Clang 17.0.0 (clang-1700.0.13.3)]
2025-09-12 19:04:04,702 - __main__ - INFO - π― Starting uvicorn server with debug logging
2025-09-12 19:04:04,703 - asyncio - DEBUG - Using selector: KqueueSelector
2025-09-12 19:04:04,723 - __main__ - INFO - π Starting HF Inference Point application
2025-09-12 19:04:04,723 - __main__ - INFO - π¦ Environment: unknown
2025-09-12 19:04:04,723 - __main__ - INFO - π Default PrestaShop URL: https://shop.mcp.integration.ambris.com
2025-09-12 19:04:04,723 - __main__ - INFO - π§ Attempting to initialize MCP client...
2025-09-12 19:04:04,723 - mcp.server.lowlevel.server - DEBUG - Initializing server 'prestashop-mcp'
2025-09-12 19:04:04,723 - mcp.server.lowlevel.server - DEBUG - Registering handler for ListToolsRequest
2025-09-12 19:04:04,723 - mcp.server.lowlevel.server - DEBUG - Registering handler for CallToolRequest
2025-09-12 19:04:04,723 - prestashop_mcp.client - INFO - MCP client initialized with 4 tools
2025-09-12 19:04:04,723 - __main__ - INFO - β
MCP client initialized successfully in 0.00s
2025-09-12 19:04:04,723 - __main__ - INFO - π οΈ MCP client type: <class 'prestashop_mcp.client.LocalMCPClient'>
2025-09-12 19:04:04,723 - __main__ - INFO - π― Application startup complete, ready to serve requests
2025-09-12 19:25:26,554 - __main__ - INFO - π Starting HF Inference Point server
2025-09-12 19:25:26,554 - __main__ - INFO - π Host: 0.0.0.0
2025-09-12 19:25:26,554 - __main__ - INFO - π Port: 7860
2025-09-12 19:25:26,554 - __main__ - INFO - π Environment: development
2025-09-12 19:25:26,554 - __main__ - INFO - π Log level: DEBUG
2025-09-12 19:25:26,554 - __main__ - INFO - π Working directory: /Users/jdewitte/www/mcp/huggingface/inference_point
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)]
2025-09-12 19:25:26,554 - __main__ - INFO - π― Starting uvicorn server with debug logging
2025-09-12 19:25:26,555 - asyncio - DEBUG - Using selector: KqueueSelector
2025-09-12 19:25:26,575 - __main__ - INFO - π Starting HF Inference Point application
2025-09-12 19:25:26,575 - __main__ - INFO - π¦ Environment: unknown
2025-09-12 19:25:26,575 - __main__ - INFO - π Default PrestaShop URL: https://shop.mcp.integration.ambris.com
2025-09-12 19:25:26,575 - __main__ - INFO - π§ Attempting to initialize MCP client...
2025-09-12 19:25:26,575 - mcp.server.lowlevel.server - DEBUG - Initializing server 'prestashop-mcp'
2025-09-12 19:25:26,575 - mcp.server.lowlevel.server - DEBUG - Registering handler for ListToolsRequest
2025-09-12 19:25:26,575 - mcp.server.lowlevel.server - DEBUG - Registering handler for CallToolRequest
2025-09-12 19:25:26,575 - prestashop_mcp.client - INFO - MCP client initialized with 4 tools
2025-09-12 19:25:26,575 - __main__ - INFO - β
MCP client initialized successfully in 0.00s
2025-09-12 19:25:26,575 - __main__ - INFO - π οΈ MCP client type: <class 'prestashop_mcp.client.LocalMCPClient'>
2025-09-12 19:25:26,575 - __main__ - INFO - π― Application startup complete, ready to serve requests
2025-09-12 19:26:56,868 - __main__ - INFO - π Starting HF Inference Point server
2025-09-12 19:26:56,868 - __main__ - INFO - π Host: 0.0.0.0
2025-09-12 19:26:56,868 - __main__ - INFO - π Port: 7860
2025-09-12 19:26:56,869 - __main__ - INFO - π Environment: development
2025-09-12 19:26:56,869 - __main__ - INFO - π Log level: DEBUG
2025-09-12 19:26:56,869 - __main__ - INFO - π Working directory: /Users/jdewitte/www/mcp/huggingface/inference_point
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)]
2025-09-12 19:26:56,869 - __main__ - INFO - π― Starting uvicorn server with debug logging
2025-09-12 19:26:56,870 - asyncio - DEBUG - Using selector: KqueueSelector
2025-09-12 19:26:56,889 - __main__ - INFO - π Starting HF Inference Point application
2025-09-12 19:26:56,889 - __main__ - INFO - π¦ Environment: unknown
2025-09-12 19:26:56,889 - __main__ - INFO - π Default PrestaShop URL: https://shop.mcp.integration.ambris.com
2025-09-12 19:26:56,889 - __main__ - INFO - π§ Attempting to initialize MCP client...
2025-09-12 19:26:56,889 - mcp.server.lowlevel.server - DEBUG - Initializing server 'prestashop-mcp'
2025-09-12 19:26:56,889 - mcp.server.lowlevel.server - DEBUG - Registering handler for ListToolsRequest
2025-09-12 19:26:56,889 - mcp.server.lowlevel.server - DEBUG - Registering handler for CallToolRequest
2025-09-12 19:26:56,889 - prestashop_mcp.client - INFO - MCP client initialized with 4 tools
2025-09-12 19:26:56,889 - __main__ - INFO - β
MCP client initialized successfully in 0.00s
2025-09-12 19:26:56,889 - __main__ - INFO - π οΈ MCP client type: <class 'prestashop_mcp.client.LocalMCPClient'>
2025-09-12 19:26:56,889 - __main__ - INFO - π― Application startup complete, ready to serve requests
2025-09-12 19:26:56,890 - __main__ - INFO - π Application shutdown initiated
2025-09-12 19:26:56,890 - __main__ - INFO - β
MCP client closed successfully
2025-09-12 19:26:56,890 - __main__ - INFO - π Application shutdown complete
2025-09-12 20:03:19,081 - __main__ - INFO - π Application shutdown initiated
2025-09-12 20:03:19,082 - __main__ - INFO - β
MCP client closed successfully
2025-09-12 20:03:19,082 - __main__ - INFO - π Application shutdown complete
2025-09-12 20:03:21,393 - __main__ - INFO - π Starting HF Inference Point server
2025-09-12 20:03:21,394 - __main__ - INFO - π Host: 0.0.0.0
2025-09-12 20:03:21,394 - __main__ - INFO - π Port: 7860
2025-09-12 20:03:21,394 - __main__ - INFO - π Environment: development
2025-09-12 20:03:21,394 - __main__ - INFO - π Log level: DEBUG
2025-09-12 20:03:21,394 - __main__ - INFO - π Working directory: /Users/jdewitte/www/mcp/huggingface/inference_point
2025-09-12 20:03:21,394 - __main__ - INFO - π Python version: 3.13.5 (main, Jun 11 2025, 15:36:57) [Clang 17.0.0 (clang-1700.0.13.3)]
2025-09-12 20:03:21,394 - __main__ - INFO - π― Starting uvicorn server with debug logging
2025-09-12 20:03:21,395 - asyncio - DEBUG - Using selector: KqueueSelector
2025-09-12 20:03:21,414 - __main__ - INFO - π Starting HF Inference Point application
2025-09-12 20:03:21,414 - __main__ - INFO - π¦ Environment: unknown
2025-09-12 20:03:21,414 - __main__ - INFO - π Default PrestaShop URL: https://hub.mcp.integration.ambris.com
2025-09-12 20:03:21,414 - __main__ - INFO - π§ Attempting to initialize MCP client...
2025-09-12 20:03:21,414 - mcp.server.lowlevel.server - DEBUG - Initializing server 'prestashop-mcp'
2025-09-12 20:03:21,414 - mcp.server.lowlevel.server - DEBUG - Registering handler for ListToolsRequest
2025-09-12 20:03:21,414 - mcp.server.lowlevel.server - DEBUG - Registering handler for CallToolRequest
2025-09-12 20:03:21,414 - prestashop_mcp.client - INFO - MCP client initialized with 4 tools
2025-09-12 20:03:21,414 - __main__ - INFO - β
MCP client initialized successfully in 0.00s
2025-09-12 20:03:21,414 - __main__ - INFO - π οΈ MCP client type: <class 'prestashop_mcp.client.LocalMCPClient'>
2025-09-12 20:03:21,414 - __main__ - INFO - π― Application startup complete, ready to serve requests
2025-09-12 20:05:21,507 - __main__ - INFO - π Application shutdown initiated
2025-09-12 20:05:21,507 - __main__ - INFO - β
MCP client closed successfully
2025-09-12 20:05:21,507 - __main__ - INFO - π Application shutdown complete
2025-09-12 20:05:34,501 - __main__ - INFO - π Starting HF Inference Point server
2025-09-12 20:05:34,502 - __main__ - INFO - π Host: 0.0.0.0
2025-09-12 20:05:34,502 - __main__ - INFO - π Port: 7860
2025-09-12 20:05:34,502 - __main__ - INFO - π Environment: development
2025-09-12 20:05:34,502 - __main__ - INFO - π Log level: DEBUG
2025-09-12 20:05:34,502 - __main__ - INFO - π Working directory: /Users/jdewitte/www/mcp/huggingface/inference_point
2025-09-12 20:05:34,502 - __main__ - INFO - π Python version: 3.13.5 (main, Jun 11 2025, 15:36:57) [Clang 17.0.0 (clang-1700.0.13.3)]
2025-09-12 20:05:34,502 - __main__ - INFO - π― Starting uvicorn server with debug logging
2025-09-12 20:05:34,503 - asyncio - DEBUG - Using selector: KqueueSelector
2025-09-12 20:05:34,515 - __main__ - INFO - π Starting HF Inference Point application
2025-09-12 20:05:34,515 - __main__ - INFO - π¦ Environment: unknown
2025-09-12 20:05:34,515 - __main__ - INFO - π Default PrestaShop URL: https://hub.mcp.integration.ambris.com
2025-09-12 20:05:34,515 - __main__ - INFO - π§ Attempting to initialize MCP client...
2025-09-12 20:05:34,515 - mcp.server.lowlevel.server - DEBUG - Initializing server 'prestashop-mcp'
2025-09-12 20:05:34,515 - mcp.server.lowlevel.server - DEBUG - Registering handler for ListToolsRequest
2025-09-12 20:05:34,515 - mcp.server.lowlevel.server - DEBUG - Registering handler for CallToolRequest
2025-09-12 20:05:34,515 - prestashop_mcp.client - INFO - MCP client initialized with 4 tools
2025-09-12 20:05:34,515 - __main__ - INFO - β
MCP client initialized successfully in 0.00s
2025-09-12 20:05:34,515 - __main__ - INFO - π οΈ MCP client type: <class 'prestashop_mcp.client.LocalMCPClient'>
2025-09-12 20:05:34,515 - __main__ - INFO - π― Application startup complete, ready to serve requests
2025-09-12 20:57:39,323 - __main__ - INFO - π Starting HF Inference Point server
2025-09-12 20:57:39,323 - __main__ - INFO - π Host: 0.0.0.0
2025-09-12 20:57:39,323 - __main__ - INFO - π Port: 7860
2025-09-12 20:57:39,323 - __main__ - INFO - π Environment: development
2025-09-12 20:57:39,323 - __main__ - INFO - π Log level: DEBUG
2025-09-12 20:57:39,323 - __main__ - INFO - π Working directory: /Users/jdewitte/www/mcp/huggingface/inference_point
2025-09-12 20:57:39,323 - __main__ - INFO - π Python version: 3.13.5 (main, Jun 11 2025, 15:36:57) [Clang 17.0.0 (clang-1700.0.13.3)]
2025-09-12 20:57:39,323 - __main__ - INFO - π― Starting uvicorn server with debug logging
2025-09-12 20:57:39,324 - asyncio - DEBUG - Using selector: KqueueSelector
2025-09-12 20:57:39,344 - __main__ - INFO - π Starting HF Inference Point application
2025-09-12 20:57:39,344 - __main__ - INFO - π¦ Environment: unknown
2025-09-12 20:57:39,344 - __main__ - INFO - π Default PrestaShop URL: https://hub.mcp.integration.ambris.com
2025-09-12 20:57:39,344 - __main__ - INFO - π§ Attempting to initialize MCP client...
2025-09-12 20:57:39,344 - mcp.server.lowlevel.server - DEBUG - Initializing server 'prestashop-mcp'
2025-09-12 20:57:39,344 - mcp.server.lowlevel.server - DEBUG - Registering handler for ListToolsRequest
2025-09-12 20:57:39,344 - mcp.server.lowlevel.server - DEBUG - Registering handler for CallToolRequest
2025-09-12 20:57:39,345 - prestashop_mcp.client - INFO - MCP client initialized with 4 tools
2025-09-12 20:57:39,345 - __main__ - INFO - β
MCP client initialized successfully in 0.00s
2025-09-12 20:57:39,345 - __main__ - INFO - π οΈ MCP client type: <class 'prestashop_mcp.client.LocalMCPClient'>
2025-09-12 20:57:39,345 - __main__ - INFO - π― Application startup complete, ready to serve requests
2025-09-12 20:57:39,345 - __main__ - INFO - π Application shutdown initiated
2025-09-12 20:57:39,345 - __main__ - INFO - β
MCP client closed successfully
2025-09-12 20:57:39,345 - __main__ - INFO - π Application shutdown complete
2025-09-12 20:57:48,425 - requests - INFO - π₯ [req_1757703468425_7397] POST http://localhost:7860/chat
2025-09-12 20:57:48,425 - requests - INFO - π [req_1757703468425_7397] Headers: {'host': 'localhost:7860', 'user-agent': 'curl/8.7.1', 'accept': '*/*', 'content-type': 'application/json', 'content-length': '32'}
2025-09-12 20:57:48,425 - requests - INFO - π [req_1757703468425_7397] Client: 127.0.0.1
2025-09-12 20:57:48,426 - requests - INFO - π [req_1757703468425_7397] Body: {
"message": "show me product 1"
}
2025-09-12 20:57:48,428 - __main__ - INFO - π¬ Direct chat request: show me product 1...
2025-09-12 20:57:48,428 - prestashop_mcp.server - INFO - Resolving client token: testclie***
2025-09-12 20:57:48,456 - httpcore.connection - DEBUG - connect_tcp.started host='hub.mcp.integration.ambris.com' port=443 local_address=None timeout=10.0 socket_options=None
2025-09-12 20:57:48,530 - httpcore.connection - DEBUG - connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x107514980>
2025-09-12 20:57:48,530 - httpcore.connection - DEBUG - start_tls.started ssl_context=<ssl.SSLContext object at 0x1074d90a0> server_hostname='hub.mcp.integration.ambris.com' timeout=10.0
2025-09-12 20:57:48,610 - httpcore.connection - DEBUG - start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x107472350>
2025-09-12 20:57:48,610 - httpcore.http11 - DEBUG - send_request_headers.started request=<Request [b'POST']>
2025-09-12 20:57:48,611 - httpcore.http11 - DEBUG - send_request_headers.complete
2025-09-12 20:57:48,611 - httpcore.http11 - DEBUG - send_request_body.started request=<Request [b'POST']>
2025-09-12 20:57:48,611 - httpcore.http11 - DEBUG - send_request_body.complete
2025-09-12 20:57:48,611 - httpcore.http11 - DEBUG - receive_response_headers.started request=<Request [b'POST']>
2025-09-12 20:57:48,715 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 400, b'Bad Request', [(b'Connection', b'Keep-Alive'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Content-Type', b'application/json'), (b'Access-Control-Allow-Origin', b'*'), (b'Access-Control-Allow-Methods', b'POST, OPTIONS'), (b'Access-Control-Allow-Headers', b'Content-Type, Authorization'), (b'set-cookie', b'PrestaShop-d45117ffc342311f92def0f6a9a9a0b7=def5020098d7cc24d4f65ec34894b2f2bb8a0354078c250775761f93b161b76c9bdc0a2ab17e09e2a4227f5b6905fb1b73636d6eda257e53430a333f2c030e5271b74ad372cb9f9bfe61945e0522274320237f24e2dd21624266e70efe0a763ab3cdf1a5b3ec1d8e9e25102f27d46bb0864f942770102ec4396fa2a01a516688eb90fd6c071fced08c6d7606f1013a337998e95c01579b0e88e28705bfc3b9bf46a24b0ad5b9a85063740a65355df17c4f71e51f8f399c25cff854ea1d1df6091b40dcb7177c48515b2c68125fea4b8ffe263fd0b4; expires=Thu, 02-Oct-2025 18:57:48 GMT; Max-Age=1728000; path=/; domain=hub.mcp.integration.ambris.com; secure; HttpOnly; SameSite=Lax'), (b'Content-Length', b'114'), (b'Date', b'Fri, 12 Sep 2025 18:57:48 GMT'), (b'Server', b'LiteSpeed'), (b'alt-svc', b'h3=":443"; ma=2592000, h3-29=":443"; ma=2592000, h3-Q050=":443"; ma=2592000, h3-Q046=":443"; ma=2592000, h3-Q043=":443"; ma=2592000, quic=":443"; ma=2592000; v="43,46"')])
2025-09-12 20:57:48,716 - httpx - INFO - HTTP Request: POST https://hub.mcp.integration.ambris.com/index.php?fc=module&module=ambmcpsubscriptiontoken&controller=resolve "HTTP/1.1 400 Bad Request"
2025-09-12 20:57:48,716 - httpcore.http11 - DEBUG - receive_response_body.started request=<Request [b'POST']>
2025-09-12 20:57:48,716 - httpcore.http11 - DEBUG - receive_response_body.complete
2025-09-12 20:57:48,717 - httpcore.http11 - DEBUG - response_closed.started
2025-09-12 20:57:48,717 - httpcore.http11 - DEBUG - response_closed.complete
2025-09-12 20:57:48,717 - prestashop_mcp.server - ERROR - Token resolution request failed: 400
2025-09-12 20:57:48,717 - httpcore.connection - DEBUG - close.started
2025-09-12 20:57:48,717 - httpcore.connection - DEBUG - close.complete
2025-09-12 20:57:48,727 - httpcore.connection - DEBUG - connect_tcp.started host='hub.mcp.integration.ambris.com' port=443 local_address=None timeout=30 socket_options=None
2025-09-12 20:57:48,778 - httpcore.connection - DEBUG - connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x107544550>
2025-09-12 20:57:48,778 - httpcore.connection - DEBUG - start_tls.started ssl_context=<ssl.SSLContext object at 0x10742ccb0> server_hostname='hub.mcp.integration.ambris.com' timeout=30
2025-09-12 20:57:48,843 - httpcore.connection - DEBUG - start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x10752c8a0>
2025-09-12 20:57:48,843 - httpcore.http11 - DEBUG - send_request_headers.started request=<Request [b'POST']>
2025-09-12 20:57:48,843 - httpcore.http11 - DEBUG - send_request_headers.complete
2025-09-12 20:57:48,843 - httpcore.http11 - DEBUG - send_request_body.started request=<Request [b'POST']>
2025-09-12 20:57:48,844 - httpcore.http11 - DEBUG - send_request_body.complete
2025-09-12 20:57:48,844 - httpcore.http11 - DEBUG - receive_response_headers.started request=<Request [b'POST']>
2025-09-12 20:57:48,945 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 404, b'Not Found', [(b'Connection', b'Keep-Alive'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Content-Type', b'application/json'), (b'Content-Length', b'63'), (b'Date', b'Fri, 12 Sep 2025 18:57:48 GMT'), (b'Server', b'LiteSpeed'), (b'alt-svc', b'h3=":443"; ma=2592000, h3-29=":443"; ma=2592000, h3-Q050=":443"; ma=2592000, h3-Q046=":443"; ma=2592000, h3-Q043=":443"; ma=2592000, quic=":443"; ma=2592000; v="43,46"')])
2025-09-12 20:57:48,945 - httpx - INFO - HTTP Request: POST https://hub.mcp.integration.ambris.com/index.php?fc=module&module=ambaiagent&controller=api&action=getStats "HTTP/1.1 404 Not Found"
2025-09-12 20:57:48,945 - httpcore.http11 - DEBUG - receive_response_body.started request=<Request [b'POST']>
2025-09-12 20:57:48,945 - httpcore.http11 - DEBUG - receive_response_body.complete
2025-09-12 20:57:48,946 - httpcore.http11 - DEBUG - response_closed.started
2025-09-12 20:57:48,946 - httpcore.http11 - DEBUG - response_closed.complete
2025-09-12 20:57:48,946 - httpcore.connection - DEBUG - close.started
2025-09-12 20:57:48,946 - httpcore.connection - DEBUG - close.complete
2025-09-12 20:57:48,948 - requests - INFO - π€ [req_1757703468425_7397] Response: 200 in 0.523s
|