// tests/utils/test-helpers.ts
/**
* Helper functions for tests
*/
/**
* Check if we can run authenticated tests
* @returns boolean True if the environment variables needed for authenticated tests are set
*/
export function canRunAuthenticatedTests(): boolean {
return Boolean(process.env.HIVE_USERNAME);
}
/**
* Get a test username - either from env vars or a known account
* @returns string A username to use for testing
*/
export function getTestUsername(): string {
return process.env.HIVE_USERNAME || 'helo';
}
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/gluneau/hive-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server