Skip to main content
Glama

@arizeai/phoenix-mcp

Official
by Arize-ai
test_exporter.py1.21 kB
import pytest from phoenix.config import PORT from phoenix.trace.exporter import HttpExporter def test_exporter(monkeypatch: pytest.MonkeyPatch) -> None: # Test that it defaults to local monkeypatch.delenv("PHOENIX_COLLECTOR_ENDPOINT", False) exporter = HttpExporter() assert exporter._base_url == f"http://127.0.0.1:{PORT}/" # Test that you can configure host and port host, port = "abcd", 1234 exporter = HttpExporter(host=host, port=port) assert exporter._base_url == f"http://{host}:{port}/" # Test that you can configure an endpoint endpoint = "https://my-phoenix-server.com" exporter = HttpExporter(endpoint=endpoint) assert exporter._base_url == "https://my-phoenix-server.com/" # Test that it supports environment variables monkeypatch.setenv("PHOENIX_COLLECTOR_ENDPOINT", endpoint) exporter = HttpExporter() assert exporter._base_url == "https://my-phoenix-server.com/" # Test that an endpoint with a root path prefix is interpreted correctly endpoint = "https://my-phoenix-server.com/my/root/path" exporter = HttpExporter(endpoint=endpoint) assert exporter._base_url == "https://my-phoenix-server.com/my/root/path/"

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