Fails to connect to Zapier Mcp server #6496
Replies: 6 comments 4 replies
-
From looking at this part: I also recommend renaming "everything" from the example. on that note, please share the relevant part of your |
Beta Was this translation helpful? Give feedback.
-
Thanks danny, I removed the sse part and still shows this in the logs after restarting the docker container:
Librechat.yaml mcp section:
|
Beta Was this translation helpful? Give feedback.
-
Thanks for checking. I have another MCP server (not Zapier, its a self hosted one) and its working ok (so not network issue). I keep getting the error on Zapier - it only occurs in LC. The Zapier MCP works fine when I run it with my own client python script. So there is something specifically about my LC setup or docker but I am using a fresh download of the LC project. I can't explain it. |
Beta Was this translation helpful? Give feedback.
-
Thanks for those instructions. Still getting the same error. {"event":{},"level":"error","message":"[MCP][zapier] Initialization failed SSE error: undefined","stack":"Error: SSE error: undefined\n at _eventSource.onerror (file:///app/packages/mcp/dist/index.es.js:1:88218)\n at EventSource.scheduleReconnect_fn (file:///app/node_modules/eventsource/dist/index.js:192:53)\n at file:///app/node_modules/eventsource/dist/index.js:45:174\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"} If I put the Zapier url into my browser it works fine. Likewise in my python local script which runs in the terminal (basically the anthropic mcp client example) it all works ok. I just can't seem to get it to work from LC. I am in a company network so there may be restrictions - but the fact it works from the python terminal app would indicate otherwise. |
Beta Was this translation helpful? Give feedback.
-
I downloaded the Zscaler cert and added it to the base dockerfile:
I then used the override docker compose to use the local build:
I removed all the older images and did a fresh docker compose up. Everything starts except LC which crashes and restarts constantly with exitcode 127
|
Beta Was this translation helpful? Give feedback.
-
Thanks for all the help and confirmations which helped me track down to the fact its a Zscaler issue and needed to get the cert inside the docker container. Of course since alpine was used then update-ca-certificates is not available (and can;t be downloaded during build because of the aforementioned Zscaler) Had to resort to using the node slim docker image which allowed me to get the cert installed ok. Its now showing the tools from Zapier! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What happened?
I setup a simple MCP Server on Zapier as part of their new offering and i added the url to the librechat.yaml under everything, errors on startup:
debug log:
It the Zapier endpoint works fine when I connect to it in a terminal in a simple python script and I am able to interact with the tools using the anthropic client example, so there is something in LibreChat which is causing an issue.
Version Information
ghcr.io/danny-avila/librechat-dev latest 7c6d45a52fb0 3 days ago 1.57GB
ghcr.io/danny-avila/librechat-rag-api-dev-lite latest f96c21d7fc2f 2 weeks ago 1.79GB
Running latest
Steps to Reproduce
Setup a simple Zapier mcp server, copy the url generated and add to yaml in librechat, start the docker conteiner.
What browsers are you seeing the problem on?
No response
Relevant log output
Screenshots
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions