Skip to content

A desktop coding agent with free access to frontier models.

TypeScript
3.7 KB
Raw Blame
/**
 * Predefined "quick add" External MCP Connections — the same real servers
 * (and URLs) the desktop app already offers as one-click Quick Connect
 * entries (apps/app/src/app/constants.ts MCP_QUICK_CONNECT), surfaced here
 * so an org admin can add them once, org-wide, in Den, instead of every
 * device connecting to them separately.
 */
import { z } from "zod"

export type ExternalMcpPreset = {
  presetId: string
  displayName: string
  description: string
  url: string
  authType: "oauth" | "apikey" | "none"
  requiresOAuthClient?: boolean
  authorizationServerIssuer?: string
  defaultOAuthScopes?: readonly string[]
}

export const externalMcpPresetResponseSchema = z.object({
  presetId: z.string(),
  displayName: z.string(),
  description: z.string(),
  url: z.string(),
  authType: z.enum(["oauth", "apikey", "none"]),
  requiresOAuthClient: z.boolean().optional(),
  authorizationServerIssuer: z.string().url().optional(),
  defaultOAuthScopes: z.array(z.string()).optional(),
}).meta({ ref: "ExternalMcpPresetResponse" })

export const externalMcpPresetListResponseSchema = z.object({
  presets: z.array(externalMcpPresetResponseSchema),
}).meta({ ref: "ExternalMcpPresetListResponse" })

export const EXTERNAL_MCP_PRESETS: ExternalMcpPreset[] = [
  {
    presetId: "notion",
    displayName: "Notion",
    description: "Pages, databases, and project docs in sync.",
    url: "https://mcp.notion.com/mcp",
    authType: "oauth",
  },
  {
    presetId: "linear",
    displayName: "Linear",
    description: "Plan sprints and ship tickets faster.",
    url: "https://mcp.linear.app/mcp",
    authType: "oauth",
  },
  {
    presetId: "stripe",
    displayName: "Stripe",
    description: "Inspect payments, invoices, and subscriptions.",
    url: "https://mcp.stripe.com",
    authType: "oauth",
  },
  {
    presetId: "sentry",
    displayName: "Sentry",
    description: "Track releases and resolve production errors.",
    url: "https://mcp.sentry.dev/mcp",
    authType: "oauth",
  },
  {
    presetId: "granola",
    displayName: "Granola",
    description: "Search your meeting notes and transcripts.",
    url: "https://mcp.granola.ai/mcp",
    authType: "oauth",
  },
  {
    presetId: "polar",
    displayName: "Polar",
    description: "Products, subscriptions, orders, and customer billing.",
    url: "https://mcp.polar.sh/mcp/polar-mcp",
    authType: "oauth",
  },
  {
    presetId: "slack",
    displayName: "Slack",
    description: "Channels, DMs, and search. Slack has no automatic app registration — paste your Slack app's OAuth client once; each person then connects their own account.",
    url: "https://mcp.slack.com/mcp",
    authType: "oauth",
    requiresOAuthClient: true,
    authorizationServerIssuer: "https://mcp.slack.com",
    defaultOAuthScopes: [
      "search:read.public",
      "search:read.private",
      "search:read.im",
      "search:read.mpim",
      "search:read.files",
      "chat:write",
      "channels:history",
      "groups:history",
      "im:history",
      "mpim:history",
      "users:read",
    ],
  },
  {
    presetId: "exa",
    displayName: "Exa",
    description: "AI web search, code search, and research for your agents. Paste your org's Exa API key from dashboard.exa.ai.",
    url: "https://mcp.exa.ai/mcp",
    authType: "apikey",
  },
  {
    presetId: "render",
    displayName: "Render",
    description: "Deploy and manage services, databases, and logs. Paste your org's Render API key from dashboard.render.com.",
    url: "https://mcp.render.com/mcp",
    authType: "apikey",
  },
  {
    presetId: "context7",
    displayName: "Context7",
    description: "Search product docs with richer context.",
    url: "https://mcp.context7.com/mcp",
    authType: "none",
  },
]