greptile_env_check
Verify environment variable configuration and setup status to ensure proper system operation and identify potential issues.
Instructions
Check environment variable configuration and setup status
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.ts:372-410 (handler)The primary handler function for the greptile_env_check tool. It generates a detailed report on environment variable status, missing variables, setup instructions, and Greptile API connectivity./** * Handle greptile_env_check tool */ private async handleEnvironmentCheck(): Promise<{ content: Array<{ type: string; text: string }>; }> { const status = this.envStatus; const report = { status: status.isFullyConfigured ? 'CONFIGURED' : 'INCOMPLETE', environment_variables: { GREPTILE_API_KEY: status.hasGreptileApiKey ? 'SET' : 'MISSING', GITHUB_TOKEN: status.hasGithubToken ? 'SET' : 'MISSING', }, api_connectivity: null as string | null, missing_variables: status.missingVars, setup_instructions: status.suggestions, }; if (this.greptileClient) { try { const healthCheck = await this.greptileClient.healthCheck(); report.api_connectivity = healthCheck ? 'CONNECTED' : 'FAILED'; } catch (error) { report.api_connectivity = 'ERROR: ' + (error as Error).message; } } else { report.api_connectivity = 'NOT_INITIALIZED'; } return { content: [ { type: 'text', text: JSON.stringify(report, null, 2), }, ], }; }
- src/server.ts:94-101 (registration)Registration of the greptile_env_check tool in the ListTools response, including name, description, and empty input schema (no parameters required).{ name: 'greptile_env_check', description: 'Check environment variable configuration and setup status', inputSchema: { type: 'object', properties: {}, }, },
- src/server.ts:228-229 (registration)Dispatch case in the CallToolRequestSchema handler that routes greptile_env_check calls to the handleEnvironmentCheck method.case 'greptile_env_check': return await this.handleEnvironmentCheck();
- src/server.ts:97-100 (schema)Input schema definition for greptile_env_check tool (empty object, no input parameters required).inputSchema: { type: 'object', properties: {}, },