mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-07-01 20:01:35 +00:00
docs(mcp): clarify the UI capability is a host-level, per-session setting
Note at the advertising site that io.modelcontextprotocol/ui tracks the instance-wide apps setting and per-tenant policy is enforced downstream, so the rationale lives with the code.
This commit is contained in:
parent
d87c12b7ec
commit
ea5600a4b1
1 changed files with 2 additions and 2 deletions
|
|
@ -1266,8 +1266,8 @@ export class MCPConnection extends EventEmitter {
|
|||
if (params.oauthTokens) {
|
||||
this.oauthTokens = params.oauthTokens;
|
||||
}
|
||||
// Advertise the UI capability so servers expose app-enhanced tools; suppressed when MCP Apps
|
||||
// are disabled by config.
|
||||
// io.modelcontextprotocol/ui is a per-session host capability, so it tracks the instance-wide
|
||||
// apps setting; per-tenant apps policy is enforced downstream, not renegotiated per request.
|
||||
const appsEnabled = params.enableApps !== false;
|
||||
const capabilities: ClientCapabilities = appsEnabled
|
||||
? { extensions: { 'io.modelcontextprotocol/ui': { mimeTypes: [RESOURCE_MIME_TYPE] } } }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue