update_openai_token
Update the OpenAI API key for VoiceAI-MCP-VAVicky to ensure seamless integration and functionality for custom VoiceAI and AI chat applications.
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)Handler implementation in the executeTool switch statement. Sets up a POST request to the backend API `/openai/oauth` endpoint with the `openai_token` from arguments in the request body.case 'update_openai_token': url = `${this.baseUrl}/openai/oauth`; method = 'POST'; body = { openai_token: args.openai_token }; break;
- index.js:82-88 (schema)Input schema definition for the tool, specifying that `openai_token` is a required string.inputSchema: { type: 'object', properties: { openai_token: { type: 'string', description: 'OpenAI API Key' } }, required: ['openai_token'] }
- index.js:79-89 (registration)Tool registration in the ListToolsRequestSchema handler's tools array, including name, description, and input schema.{ name: 'update_openai_token', description: 'Update OpenAI API Key', inputSchema: { type: 'object', properties: { openai_token: { type: 'string', description: 'OpenAI API Key' } }, required: ['openai_token'] } },