mirror of
https://github.com/voideditor/void
synced 2026-05-23 09:28:23 +00:00
Merge 1519aaf8cc into 17e7a5b152
This commit is contained in:
commit
6a3ad36a8d
2 changed files with 4 additions and 1 deletions
|
|
@ -6,6 +6,7 @@
|
|||
.interactive-session {
|
||||
max-width: 850px;
|
||||
margin: auto;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.interactive-list > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row > .monaco-tl-row > .monaco-tl-twistie {
|
||||
|
|
|
|||
|
|
@ -230,7 +230,9 @@ export class MCPChannel implements IServerChannel {
|
|||
}
|
||||
|
||||
private _addUniquePrefix(base: string) {
|
||||
return `${Math.random().toString(36).slice(2, 8)}_${base}`;
|
||||
// Prefix must start with a letter to satisfy Gemini's function name requirements:
|
||||
// "Must start with a letter or an underscore" (alphanumeric, _, ., - only; max 64 chars)
|
||||
return `m${Math.random().toString(36).slice(2, 8)}_${base}`;
|
||||
}
|
||||
|
||||
private async _createClient(serverConfig: MCPConfigFileEntryJSON, serverName: string, isOn = true): Promise<ClientInfo> {
|
||||
|
|
|
|||
Loading…
Reference in a new issue