import { config } from '../config';
/**
* Validates that the Air API token is set and not empty
* @throws Error if the token is missing or empty
*/
export function validateAirApiToken(): void {
if (!config.airApiToken || config.airApiToken.trim() === '') {
throw new Error('AIR_API_TOKEN not provided. Please configure the MCP server with a valid airApiToken to execute tools.');
}
}
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/binalyze/air-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server