Custom headers are not passed to the /tool/call #7390
-
What happened?We have a multi-user environment, and we implement an MCP with user base auth. the message request looks like this:
when calling the tools:
Version Informationghcr.io/danny-avila/librechat-dev:latest Steps to Reproduce
What browsers are you seeing the problem on?Chrome Relevant log output2025-05-15T08:34:34.290Z debug: [MCP][User: 6818cef5c03978714d1576dc] Updated last activity timestamp: 2025-05-15T08:34:34.290Z
2025-05-15T08:34:34.290Z debug: [MCP][User: 6818cef5c03978714d1576dc][atlassian] Transport sending: {"method":"tools/call","params":{"name":"status","arguments":{}},"jsonrpc"... [truncated]
2025-05-15T08:34:34.301Z debug: [MCP][User: 6818cef5c03978714d1576dc] Updated last activity timestamp: 2025-05-15T08:34:34.301Z
2025-05-15T08:34:37.050Z debug: [MCP][User: 6818cef5c03978714d1576dc][atlassian] Transport sending: {"jsonrpc":"2.0","method":"notifications/cancelled","params":{"requestId":... [truncated] ScreenshotsNo response Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I'm not seeing this on my end, using an MCP Server with SSE transport. MCP Server logs (mock server) 2025-05-15 11:15:42,712 - __main__ - DEBUG - Request headers:
2025-05-15 11:15:42,712 - __main__ - DEBUG - host: localhost:8002
2025-05-15 11:15:42,712 - __main__ - DEBUG - connection: keep-alive
2025-05-15 11:15:42,712 - __main__ - DEBUG - authorization: Bearer test
2025-05-15 11:15:42,713 - __main__ - DEBUG - x-user-id: 68096bee4375901e7d0f24d6
2025-05-15 11:15:42,713 - __main__ - DEBUG - content-type: application/json
2025-05-15 11:15:42,713 - __main__ - DEBUG - accept: */*
2025-05-15 11:15:42,713 - __main__ - DEBUG - accept-language: *
2025-05-15 11:15:42,713 - __main__ - DEBUG - sec-fetch-mode: cors
2025-05-15 11:15:42,713 - __main__ - DEBUG - user-agent: node
2025-05-15 11:15:42,713 - __main__ - DEBUG - accept-encoding: gzip, deflate
2025-05-15 11:15:42,713 - __main__ - DEBUG - content-length: 127
2025-05-15 11:15:42,713 - mcp.server.sse - DEBUG - Handling POST message
2025-05-15 11:15:42,713 - mcp.server.sse - DEBUG - Parsed session ID: 3bf4c8d4-1028-4331-b21e-69e20b258676
2025-05-15 11:15:42,713 - mcp.server.sse - DEBUG - Received JSON: b'{"jsonrpc":"2.0","method":"notifications/cancelled","params":{"requestId":1,"reason":"AbortError: This operation was aborted"}}'
2025-05-15 11:15:42,713 - mcp.server.sse - DEBUG - Validated client message: root=JSONRPCNotification(method='notifications/cancelled', params={'requestId': 1, 'reason': 'AbortError: This operation was aborted'}, jsonrpc='2.0')
2025-05-15 11:15:42,713 - mcp.server.sse - DEBUG - Sending session message to writer: SessionMessage(message=JSONRPCMessage(root=JSONRPCNotification(method='notifications/cancelled', params={'requestId': 1, 'reason': 'AbortError: This operation was aborted'}, jsonrpc='2.0')), metadata=None)
2025-05-15 11:15:42,713 - __main__ - DEBUG - Response: 202
2025-05-15 11:15:42,713 - __main__ - DEBUG - Response headers:
2025-05-15 11:15:42,713 - __main__ - DEBUG - content-length: 8
INFO: 127.0.0.1:50502 - "POST /messages/?session_id=3bf4c8d410284331b21e69e20b258676 HTTP/1.1" 202 Accepted LibreChat debugging: |
Beta Was this translation helpful? Give feedback.
I'm not seeing this on my end, using an MCP Server with SSE transport.
MCP Server logs (mock server)
https://github.com/danny-avila/mock_confluence_mcp