Skip to main content
Glama
Arize-ai

@arizeai/phoenix-mcp

Official
by Arize-ai
register.test.ts1.1 kB
import { ensureCollectorEndpoint, register } from "../src/register"; import { describe, expect, test } from "vitest"; describe("register", () => { test("should register a provider", () => { const provider = register({ url: "http://localhost:6006/v1/traces", apiKey: "test", }); expect(provider).toBeDefined(); expect(provider["_registeredSpanProcessors"].length).toBe(1); expect(Object.keys(provider["_registeredSpanProcessors"]).length).toBe(1); }); }); test.each([ ["http://localhost:6006", "http://localhost:6006/v1/traces"], ["http://localhost:6006/v1/traces", "http://localhost:6006/v1/traces"], ["http://localhost:6006/v1/traces/", "http://localhost:6006/v1/traces/"], [ "https://app.phoenix.arize.com/s/my-space", "https://app.phoenix.arize.com/s/my-space/v1/traces", ], [ "https://app.phoenix.arize.com/s/my-space/v1/traces", "https://app.phoenix.arize.com/s/my-space/v1/traces", ], ])("ensureCollectorEndpoint(%0) should return %1", (url, collectorURL) => { expect(ensureCollectorEndpoint(url)).toBe(collectorURL); });

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/Arize-ai/phoenix'

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