mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-10-09 23:27:07 +00:00
🚐 fix: Reuse Request-Scoped MCP Connections per Run (#13673)
Some checks are pending
Docker Dev Branch Images Build / build (Dockerfile, lc-dev, node) (push) Waiting to run
Docker Dev Branch Images Build / build (Dockerfile.multi, lc-dev-api, api-build) (push) Waiting to run
GitNexus Index / index (push) Waiting to run
GitNexus Index / post-index (push) Blocked by required conditions
Docker Dev Images Build / build (Dockerfile, librechat-dev, node) (push) Waiting to run
Docker Dev Images Build / build (Dockerfile.multi, librechat-dev-api, api-build) (push) Waiting to run
Sync Locize Translations & Create Translation PR / Sync Translation Keys with Locize (push) Waiting to run
Sync Locize Translations & Create Translation PR / Create Translation PR on Version Published (push) Blocked by required conditions
Sync Helm Chart Tags / Ignore non-main push (push) Waiting to run
Sync Helm Chart Tags / Sync chart tags (push) Waiting to run
Some checks are pending
Docker Dev Branch Images Build / build (Dockerfile, lc-dev, node) (push) Waiting to run
Docker Dev Branch Images Build / build (Dockerfile.multi, lc-dev-api, api-build) (push) Waiting to run
GitNexus Index / index (push) Waiting to run
GitNexus Index / post-index (push) Blocked by required conditions
Docker Dev Images Build / build (Dockerfile, librechat-dev, node) (push) Waiting to run
Docker Dev Images Build / build (Dockerfile.multi, librechat-dev-api, api-build) (push) Waiting to run
Sync Locize Translations & Create Translation PR / Sync Translation Keys with Locize (push) Waiting to run
Sync Locize Translations & Create Translation PR / Create Translation PR on Version Published (push) Blocked by required conditions
Sync Helm Chart Tags / Ignore non-main push (push) Waiting to run
Sync Helm Chart Tags / Sync chart tags (push) Waiting to run
* fix(mcp): reuse request-scoped connections per run * test(mcp): update connection factory defaults
This commit is contained in:
parent
65bca95023
commit
139d61c437
20 changed files with 291 additions and 25 deletions
|
|
@ -348,6 +348,7 @@ const OpenAIChatCompletionController = async (req, res) => {
|
|||
* @type {Map<string, {
|
||||
* agent: object,
|
||||
* toolRegistry?: import('@librechat/agents').LCToolRegistry,
|
||||
* requestScopedConnections?: import('@librechat/api').RequestScopedMCPConnectionStore,
|
||||
* userMCPAuthMap?: Record<string, Record<string, string>>,
|
||||
* tool_resources?: object,
|
||||
* actionsEnabled?: boolean,
|
||||
|
|
@ -493,6 +494,7 @@ const OpenAIChatCompletionController = async (req, res) => {
|
|||
signal: abortController.signal,
|
||||
toolRegistry: ctx.toolRegistry,
|
||||
mcpAvailableTools: ctx.mcpAvailableTools,
|
||||
requestScopedConnections: ctx.requestScopedConnections,
|
||||
userMCPAuthMap: ctx.userMCPAuthMap,
|
||||
tool_resources: ctx.tool_resources,
|
||||
actionsEnabled: ctx.actionsEnabled,
|
||||
|
|
|
|||
|
|
@ -467,6 +467,7 @@ const createResponse = async (req, res) => {
|
|||
* @type {Map<string, {
|
||||
* agent: object,
|
||||
* toolRegistry?: import('@librechat/agents').LCToolRegistry,
|
||||
* requestScopedConnections?: import('@librechat/api').RequestScopedMCPConnectionStore,
|
||||
* userMCPAuthMap?: Record<string, Record<string, string>>,
|
||||
* tool_resources?: object,
|
||||
* actionsEnabled?: boolean,
|
||||
|
|
@ -685,6 +686,7 @@ const createResponse = async (req, res) => {
|
|||
signal: abortController.signal,
|
||||
toolRegistry: ctx.toolRegistry,
|
||||
mcpAvailableTools: ctx.mcpAvailableTools,
|
||||
requestScopedConnections: ctx.requestScopedConnections,
|
||||
userMCPAuthMap: ctx.userMCPAuthMap,
|
||||
tool_resources: ctx.tool_resources,
|
||||
actionsEnabled: ctx.actionsEnabled,
|
||||
|
|
@ -860,6 +862,7 @@ const createResponse = async (req, res) => {
|
|||
signal: abortController.signal,
|
||||
toolRegistry: ctx.toolRegistry,
|
||||
mcpAvailableTools: ctx.mcpAvailableTools,
|
||||
requestScopedConnections: ctx.requestScopedConnections,
|
||||
userMCPAuthMap: ctx.userMCPAuthMap,
|
||||
tool_resources: ctx.tool_resources,
|
||||
actionsEnabled: ctx.actionsEnabled,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue