check_api_keys
Verifies API keys are properly configured for the LinkedIn Post Generator to create post drafts from YouTube video transcripts.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.js:58-71 (registration)Registration of the 'check_api_keys' MCP tool. Includes empty input schema, inline handler function that retrieves API key status via apiKeyManager.getStatus() and returns it as JSON text content, and tool description.server.tool( "check_api_keys", {}, async () => { const status = apiKeyManager.getStatus(); return { content: [{ type: "text", text: JSON.stringify(status, null, 2) }] }; }, { description: "Check the status of your API keys" } );
- src/modules/api-key-manager.js:79-90 (helper)ApiKeyManager.getStatus() method called by the tool handler. Returns a status object with masked API keys for OpenAI and YouTube, indicating if set and partial key for verification.getStatus() { return { openai: { set: this.hasOpenAIKey(), key: this.hasOpenAIKey() ? "********" + this.openaiApiKey.slice(-4) : null }, youtube: { set: this.hasYouTubeKey(), key: this.hasYouTubeKey() ? "********" + this.youtubeApiKey.slice(-4) : null } }; }