get_configuration_status
Check if the Gemini API token is properly configured for the Nano-Banana-MCP server to ensure integration readiness.
Instructions
Check if Gemini API token is configured
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_configuration_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:444-482 (handler)The handler function that checks the Gemini API configuration status and returns a detailed text response indicating if it's configured, the source, and setup instructions if not.
private async getConfigurationStatus(): Promise<CallToolResult> { const isConfigured = this.config !== null && this.genAI !== null; let statusText: string; let sourceInfo = ""; if (isConfigured) { statusText = "✅ Gemini API token is configured and ready to use"; switch (this.configSource) { case 'environment': sourceInfo = "\n📍 Source: Environment variable (GEMINI_API_KEY)\n💡 This is the most secure configuration method."; break; case 'config_file': sourceInfo = "\n📍 Source: Local configuration file (.nano-banana-config.json)\n💡 Consider using environment variables for better security."; break; } } else { statusText = "❌ Gemini API token is not configured"; sourceInfo = ` 📝 Configuration options (in priority order): 1. 🥇 MCP client environment variables (Recommended) 2. 🥈 System environment variable: GEMINI_API_KEY 3. 🥉 Use configure_gemini_token tool 💡 For the most secure setup, add this to your MCP configuration: "env": { "GEMINI_API_KEY": "your-api-key-here" }`; } return { content: [ { type: "text", text: statusText + sourceInfo, }, ], }; } - src/index.ts:110-118 (registration)Tool registration in the ListTools handler, including name, description, and input schema (empty object).
{ name: "get_configuration_status", description: "Check if Gemini API token is configured", inputSchema: { type: "object", properties: {}, additionalProperties: false, }, }, - src/index.ts:165-166 (registration)Dispatch case in the CallTool request handler that routes to the getConfigurationStatus method.
case "get_configuration_status": return await this.getConfigurationStatus(); - src/index.ts:113-117 (schema)Input schema definition for the tool: an empty object (no parameters required).
inputSchema: { type: "object", properties: {}, additionalProperties: false, },