|
|
@@ -1,5 +1,6 @@
|
|
|
import json
|
|
|
import logging
|
|
|
+import uuid
|
|
|
from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
|
|
|
|
|
|
from constants import DEVICE_INVALID_MESSAGE
|
|
|
@@ -59,7 +60,7 @@ class PublicMcpHttpHandler:
|
|
|
context.gateway_session_id,
|
|
|
params.get('name'),
|
|
|
params.get('arguments') or {},
|
|
|
- request_id='rq_http_{0}'.format(request_id),
|
|
|
+ request_id='rq_http_{0}_{1}'.format(request_id, uuid.uuid4().hex[:16]),
|
|
|
)
|
|
|
structured_content = result.get('data') or {}
|
|
|
return McpProtocolHandler._success_response(request_id, {
|