update_gemini_token
Update the Google Gemini API key in the VoiceAI-MCP-VAVicky server to ensure seamless integration and functionality for AI-driven voice and chat services.
Instructions
Update Google Gemini API Key
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gemini_token | Yes | Google Gemini API Key |
Implementation Reference
- index.js:533-537 (handler)Switch case handling the execution of 'update_gemini_token' tool by configuring a POST request to the backend API endpoint '/gemini/oauth' with the provided gemini_token in the request body.case 'update_gemini_token': url = `${this.baseUrl}/gemini/oauth`; method = 'POST'; body = { gemini_token: args.gemini_token }; break;
- index.js:112-122 (registration)Registration of the 'update_gemini_token' tool in the ListTools response, defining its name, description, and input schema.{ name: 'update_gemini_token', description: 'Update Google Gemini API Key', inputSchema: { type: 'object', properties: { gemini_token: { type: 'string', description: 'Google Gemini API Key' } }, required: ['gemini_token'] } },
- index.js:115-121 (schema)Input schema definition for the 'update_gemini_token' tool, specifying the required 'gemini_token' string parameter.inputSchema: { type: 'object', properties: { gemini_token: { type: 'string', description: 'Google Gemini API Key' } }, required: ['gemini_token'] }