This commit is contained in:
Octopus 2026-04-23 10:31:05 +08:00 committed by GitHub
commit 6a3ad36a8d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View file

@ -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 {

View file

@ -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> {