mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-07-01 11:53:55 +00:00
Advertise io.modelcontextprotocol/ui unconditionally on every MCP connection instead of gating it on a per-connection appsEnabled value, and remove the now-unused enableApps plumbing from the connection factory, inspector, and connection-building call sites. Per SEP-1865 the capability is a per-session statement of host rendering ability, not a per-user setting; gating it per request on a shared connection pool was both spec-incorrect and unable to support tenant opt-in. Per-tenant apps enablement stays enforced downstream (callTool UI-resource attachment plus the app endpoints), which now works for both opt-in and opt-out. Replace the exact-match visibility helpers with includes-based semantics: a tool is hidden from the model when an explicit visibility array omits "model", and denied to app callers when it omits "app". An empty or future-scoped array such as [] or ["model","internal"] is now handled correctly, and the both-scopes default applies only when visibility is absent. Rename the cache to reflect that it holds app-hidden tools. |
||
|---|---|---|
| .. | ||
| src | ||
| types | ||
| .gitignore | ||
| babel.config.cjs | ||
| jest.config.mjs | ||
| jest.setup.cjs | ||
| package.json | ||
| tsconfig-paths-bootstrap.mjs | ||
| tsconfig.build.json | ||
| tsconfig.json | ||
| tsconfig.spec.json | ||
| tsdown.config.mjs | ||