langflow icon indicating copy to clipboard operation
langflow copied to clipboard

Headers are not being saved for MCP Server SSE

Open PeterHuo201 opened this issue 1 year ago • 8 comments

Bug Description

When adding an MCP server as SSE, there are input fields for headers and environment variables. However, these fields are not being saved nor used. use-add-mcp-server.ts seems to leave out these fields as well.

When I put authorization bearer token in the header, the MCP server component throws

ERROR - mcp - Configuration error for server bookingkit: Invalid SSE URL: Server returned client error status: 401

Is this intentional or is it a bug?

Reproduction

  1. Add an MCP server as SSE either from the canvas or from the MCP server page in settings.
  2. Add your headers.
  3. Add server, and when you go back to check, all these fields are gone.

Expected behavior

Headers and environment variables are saved and used correctly.

Who can help?

No response

Operating System

mac os 15.5

Langflow Version

1.5.0.post1

Python Version

None

Screenshot

No response

Flow File

No response

PeterHuo201 avatar Jul 17 '25 23:07 PeterHuo201

@lucaseduoli could you help look at it?

Yukiyukiyeah avatar Jul 18 '25 00:07 Yukiyukiyeah

I am having the same issue on both version 1.5.0.post1 and 1.5.0

sfriedowitz avatar Jul 18 '25 03:07 sfriedowitz

Please fix this!

daniel-quiroga avatar Jul 18 '25 13:07 daniel-quiroga

I have the same issue

Yoannoza avatar Jul 20 '25 18:07 Yoannoza

I have the same issue.

HiltonRosenfeld avatar Jul 21 '25 01:07 HiltonRosenfeld

Hello! Thanks for the report. I just fixed it on this branch:

https://github.com/langflow-ai/langflow/pull/9148

It will be released as soon as possible.

lucaseduoli avatar Jul 23 '25 13:07 lucaseduoli

@lucaseduoli when will this be released? It's been 6 weeks and still not published. There's another open issue referencing the PR as well. https://github.com/langflow-ai/langflow/issues/9579

mrburrito avatar Sep 02 '25 17:09 mrburrito

same problem in version 1.6.4!

luizhsalazar avatar Oct 16 '25 19:10 luizhsalazar