update_openrouter_token
Update the Open Router API Key in the VoiceAI-MCP-VAVicky server to ensure proper integration and access to AI-driven voice and chat functionalities.
Instructions
Update Open Router API Key
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| openrouter_token | Yes | Open Router API Key |
Implementation Reference
- index.js:538-542 (handler)Switch case in the executeTool method that sets up a POST request to the backend API endpoint '/openrouter/oauth' with the new OpenRouter token in the request body, executing the tool logic.case 'update_openrouter_token': url = `${this.baseUrl}/openrouter/oauth`; method = 'POST'; body = { openrouter_token: args.openrouter_token }; break;
- index.js:123-133 (schema)Tool definition including name, description, and input schema registered in the ListTools response, specifying the required 'openrouter_token' string parameter.{ name: 'update_openrouter_token', description: 'Update Open Router API Key', inputSchema: { type: 'object', properties: { openrouter_token: { type: 'string', description: 'Open Router API Key' } }, required: ['openrouter_token'] } },
- index.js:123-133 (registration)Registration of the 'update_openrouter_token' tool in the array returned by the ListToolsRequestSchema handler.{ name: 'update_openrouter_token', description: 'Update Open Router API Key', inputSchema: { type: 'object', properties: { openrouter_token: { type: 'string', description: 'Open Router API Key' } }, required: ['openrouter_token'] } },