check_api_keys
Verify API key functionality to ensure seamless integration and operation with the LinkedIn Post Generator, enabling automated creation of LinkedIn posts from YouTube video transcripts.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.js:58-72 (registration)Registration of the 'check_api_keys' tool, including its inline handler function that calls apiKeyManager.getStatus() and returns the status as JSON text content.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:75-90 (helper)The getStatus() helper method in ApiKeyManager class that provides masked API key status information used by the tool handler./** * Get the status of API keys * @returns {Object} - Status object with key information */ 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 } }; }