The Open Framework for Building Agents
import { describe, expect, it } from "vitest";
import {
INTEGRATIONS,
channelEntries,
connectionEntries,
connectionProtocols,
extensionEntries,
getIntegrationEntry,
instrumentationEntries,
memoryEntries,
} from "./index.js";
describe("integration catalog", () => {
it("has unique slugs", () => {
const slugs = INTEGRATIONS.map((entry) => entry.slug);
expect(new Set(slugs).size).toBe(slugs.length);
});
it("partitions cleanly into every integration kind", () => {
expect(
channelEntries().length +
connectionEntries().length +
extensionEntries().length +
instrumentationEntries().length +
memoryEntries().length,
).toBe(INTEGRATIONS.length);
});
it("makes every scaffoldable integration available through the registry", () => {
for (const entry of INTEGRATIONS.filter((candidate) => candidate.surfaces.scaffoldable)) {
expect(entry.surfaces.registry).toBe(true);
}
});
it("gives every connection a transport and description", () => {
for (const entry of connectionEntries()) {
expect(entry.connection).toBeDefined();
expect(entry.connection?.description).toBeTruthy();
expect(connectionProtocols(entry.connection!).length).toBeGreaterThan(0);
}
});
it("catalogs Neon with its official MCP endpoint", () => {
expect(getIntegrationEntry("neon")).toMatchObject({
name: "Neon",
kind: "connection",
surfaces: { scaffoldable: false, registry: true, gallery: true },
connection: {
description: "Neon: manage projects, run queries, and make schema changes.",
mcp: { url: "https://mcp.neon.tech/mcp" },
},
});
});
it("keeps channels free of connection identity", () => {
for (const entry of channelEntries()) {
expect(entry.connection).toBeUndefined();
}
});
it("keeps extensions free of connection identity", () => {
expect(extensionEntries().length).toBeGreaterThan(0);
for (const entry of extensionEntries()) {
expect(entry.connection).toBeUndefined();
}
});
it("keeps instrumentation providers free of connection identity", () => {
expect(instrumentationEntries().length).toBeGreaterThan(0);
for (const entry of instrumentationEntries()) {
expect(entry.connection).toBeUndefined();
}
});
it("keeps memory providers free of connection identity", () => {
expect(memoryEntries().length).toBeGreaterThan(0);
for (const entry of memoryEntries()) {
expect(entry.connection).toBeUndefined();
}
});
it("looks up entries by slug", () => {
expect(getIntegrationEntry("linear")?.name).toBe("Linear");
expect(getIntegrationEntry("nope")).toBeUndefined();
});
it("derives protocols from declared transports", () => {
expect(connectionProtocols(getIntegrationEntry("notion")!.connection!)).toEqual([
"mcp",
"openapi",
]);
expect(connectionProtocols(getIntegrationEntry("linear")!.connection!)).toEqual(["mcp"]);
});
it("uses Vercel's streamable HTTP MCP endpoint", () => {
expect(getIntegrationEntry("vercel")!.connection!.mcp!.url).toBe("https://mcp.vercel.com");
});
it("uses Agentcard's streamable HTTP MCP endpoint", () => {
const agentcard = getIntegrationEntry("agentcard")!;
expect(agentcard.tagline).toBe("let agents buy online");
expect(agentcard.connection!.mcp!.url).toBe("https://mcp.agentcard.sh/mcp");
});
it("uses Linear's streamable HTTP MCP endpoint", () => {
expect(getIntegrationEntry("linear")!.connection!.mcp!.url).toBe("https://mcp.linear.app/mcp");
});
it("uses FLORA's streamable HTTP MCP endpoint", () => {
expect(getIntegrationEntry("flora")).toMatchObject({
name: "FLORA",
kind: "connection",
surfaces: { scaffoldable: false, registry: true, gallery: true },
connection: {
description: "FLORA: generate image, video, audio, text, and 3D assets on a canvas.",
mcp: { url: "https://agents.flora.ai/mcp" },
},
});
});
it("exposes Mux Video as a gallery-only extension", () => {
expect(getIntegrationEntry("mux-video")).toMatchObject({
kind: "extension",
surfaces: { scaffoldable: false, registry: false, gallery: true },
});
});
it("uses Browser Use's streamable HTTP MCP endpoint", () => {
expect(getIntegrationEntry("browser-use")!.connection!.mcp!.url).toBe(
"https://api.browser-use.com/v3/mcp",
);
});
it("uses Waydock's streamable HTTP MCP endpoint", () => {
expect(getIntegrationEntry("waydock")!.connection!.mcp!.url).toBe("https://mcp.waydock.ai/mcp");
});
it("uses Natural's streamable HTTP MCP endpoint", () => {
expect(getIntegrationEntry("natural")!.connection!.mcp!.url).toBe(
"https://mcp.natural.com/mcp",
);
});
});