You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi community, I am implementing a MCP server which provides a set of tools and want to make it available in LibreChat and offer user-specific tool discovery.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi community, I am implementing a MCP server which provides a set of tools and want to make it available in LibreChat and offer user-specific tool discovery.
According to https://www.librechat.ai/docs/configuration/librechat_yaml/object_structure/mcp_servers#headers
I've configured my MCP server as follows:
I'm using https://github.com/mark3labs/mcp-go for building the MCP server.
And making tool availability basd on the user email
However, LibreChat server initializes the MCP server at boot time.
In app level initialization, no user specific headers are provided:
https://github.com/danny-avila/LibreChat/blob/main/packages/api/src/mcp/manager.ts#L63-L64
User specific connections are only done when tool call is initiated.
https://github.com/danny-avila/LibreChat/blob/main/packages/api/src/mcp/manager.ts#L440
How can we get an MCP server connection initializes and offer user specific tool set when a user logged in?
Beta Was this translation helpful? Give feedback.
All reactions