const ENV_PHOENIX_COLLECTOR_ENDPOINT = "PHOENIX_COLLECTOR_ENDPOINT";
const ENV_PHOENIX_API_KEY = "PHOENIX_API_KEY";
/**
* A utility function that gets the configured collector URL
* @returns the URL for the phoenix collector endpoint if configured
*/
export function getEnvCollectorURL(): string | undefined {
const phoenixEnvURL = process.env[ENV_PHOENIX_COLLECTOR_ENDPOINT];
// TODO: support OTEL environment variables
return phoenixEnvURL;
}
/**
* A utility function that gets the configured API key for the given phoenix.
*/
export function getEnvApiKey(): string | undefined {
const phoenixEnvApiKey = process.env[ENV_PHOENIX_API_KEY];
return phoenixEnvApiKey;
}
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/Arize-ai/phoenix'
If you have feedback or need assistance with the MCP directory API, please join our Discord server