Skip to content

armgit / eve

Public Imported from GitHub
0

The Open Framework for Building Agents

655 B
Raw Blame
import { connect } from "@vercel/connect/eve";
import { defineMcpClientConnection } from "eve/connections";

export default defineMcpClientConnection({
  url: "https://mcp.honeycomb.io/mcp",
  description: "Honeycomb: explore traces, run queries, and inspect datasets.",
  auth: connect({
    connector: "honeycomb",
    principalToSubject: (principal) => {
      const email = principal.type === "user" ? principal.attributes?.email : undefined;
      if (typeof email !== "string") {
        throw new Error("JWT bearer authentication requires a user principal with an email.");
      }
      return { type: "jwt-bearer", sub: email };
    },
  }),
});