update_openai_token
Update the OpenAI API key for VoiceAI-MCP-VAVicky to enable custom voice and AI chat integrations.
Instructions
Update OpenAI API Key
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| openai_token | Yes | OpenAI API Key |
Implementation Reference
- index.js:518-522 (handler)Switch case in executeTool method that handles 'update_openai_token' by setting up a POST request to the backend API endpoint /openai/oauth with the provided openai_token.case 'update_openai_token': url = `${this.baseUrl}/openai/oauth`; method = 'POST'; body = { openai_token: args.openai_token }; break;
- index.js:80-89 (schema)Tool schema definition including name, description, and input schema requiring 'openai_token' string.name: 'update_openai_token', description: 'Update OpenAI API Key', inputSchema: { type: 'object', properties: { openai_token: { type: 'string', description: 'OpenAI API Key' } }, required: ['openai_token'] } },