Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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();
  • Input schema definition for greptile_env_check tool (empty object, no input parameters required).
    inputSchema: { type: 'object', properties: {}, },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sosacrazy126/greptile-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server