Integrate Copilot production candidate with current master

This commit is contained in:
Dotta committed 2026-10-09 10:37:48 -05:00
commit 9f14069246
700 files changed
+76916 -19908

No files matched your search

@@ -14,6 +14,12 @@ describe("agent appearance", () => {
expect(legacyAgentAppearance("agent-1")).toEqual(legacyAgentAppearance("agent-1"));
expect(agentAvatarUrl(appearance, 24, 2)).toBe("/api/agent-avatars/cap-v1/deep-tide/rest.png?size=24&scale=2");
});
it("uses a private asset URL for custom avatars while retaining the fallback palette", () => {
const appearance = { ...appearanceForPalette("deep-tide"), customAvatarAssetId: "22222222-2222-4222-8222-222222222222" };
expect(resolveAgentAppearance(appearance)).toEqual(appearance);
expect(agentAvatarUrl(appearance, 128, 2)).toBe("/api/assets/22222222-2222-4222-8222-222222222222/content");
expect(agentAppearanceSchema.safeParse({ ...appearance, customAvatarAssetId: "https://example.test/image" }).success).toBe(false);
});
it("renders without a browser and preserves logical-size detail at high density", () => {
const appearance = appearanceForPalette("bubblegum-sky");
// ClipLab v0.2.0 draws an enlarged compact face from 16px; only 12px and
+3
View File
@@ -14,6 +14,8 @@ export const agentAppearanceSchema = z.object({
schemaVersion: z.literal(1),
characterVersion: z.literal("cap-v1"),
paletteId: z.enum(AGENT_PALETTE_IDS),
/** Company-scoped normalized image, set through the avatar upload service. */
customAvatarAssetId: z.uuid().optional(),
}).strict();
export type AgentAppearance = z.infer<typeof agentAppearanceSchema>;
@@ -39,6 +41,7 @@ export function resolveAgentAppearance(appearance: unknown, id = "agent"): Agent
return parsed.success ? parsed.data : legacyAgentAppearance(id);
}
export function agentAvatarUrl(appearance: AgentAppearance, size: AgentAvatarSize = 512, scale: 1 | 2 = 1, pose: CharacterState = "rest", muted = false, background: AgentAvatarBackground = "transparent"): string {
if (appearance.customAvatarAssetId) return `/api/assets/${appearance.customAvatarAssetId}/content`;
return `/api/agent-avatars/${appearance.characterVersion}/${muted ? "muted-dream" : appearance.paletteId}/${pose}.png?size=${size}&scale=${scale}${background === "paperclip-dark" ? "&background=paperclip-dark" : ""}`;
}
export function characterStateForAgent(status: string): CharacterState {
@@ -0,0 +1,10 @@
import { z } from "zod";
export const MAX_AGENT_AVATAR_BYTES = 512 * 1024;
/** Raw PNG/JPEG/WebP bytes, not a URL or a data URL. Null restores the Paperclip character. */
export const setAgentAvatarSchema = z.object({
imageBase64: z.string().min(4).max(4 * Math.ceil(MAX_AGENT_AVATAR_BYTES / 3))
.regex(/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/)
.nullable(),
}).strict();
export type SetAgentAvatarInput = z.infer<typeof setAgentAvatarSchema>;
@@ -12,6 +12,7 @@ describe("tool app gallery URL matching", () => {
expect(getAppDefinitionForUrl("https://docs.google.com/spreadsheets/d/sheet_123/edit")?.slug).toBe("google-sheets");
expect(getAppDefinitionForUrl("https://gmailmcp.googleapis.com/mcp/v1")?.slug).toBe("gmail");
expect(getAppDefinitionForUrl("https://mcp.neon.tech/mcp")?.slug).toBe("neon");
expect(getAppDefinitionForUrl("https://app.withgauge.com/mcp")?.slug).toBe("gauge");
expect(getAppDefinitionForUrl("https://www.superagent.sh/mcp")?.slug).toBe("superagent");
});
@@ -71,23 +71,31 @@ import a69 from "./app-definitions/honcho.json" with { type: "json" };
import a70 from "./app-definitions/neon.json" with { type: "json" };
import a71 from "./app-definitions/superagent.json" with { type: "json" };
import a72 from "./app-definitions/telem.json" with { type: "json" };
import a73 from "./app-definitions/gmail.json" with { type: "json" };
import a74 from "./app-definitions/google-drive.json" with { type: "json" };
import a75 from "./app-definitions/google-docs.json" with { type: "json" };
import a76 from "./app-definitions/google-sheets.json" with { type: "json" };
import a77 from "./app-definitions/google-slides.json" with { type: "json" };
import a78 from "./app-definitions/google-calendar.json" with { type: "json" };
import a79 from "./app-definitions/google-chat.json" with { type: "json" };
import a80 from "./app-definitions/google-people.json" with { type: "json" };
import a81 from "./app-definitions/google-workspace-search.json" with { type: "json" };
import a82 from "./app-definitions/openai.json" with { type: "json" };
import a83 from "./app-definitions/openrouter.json" with { type: "json" };
import a84 from "./app-definitions/xai.json" with { type: "json" };
import a85 from "./app-definitions/google.json" with { type: "json" };
import a86 from "./app-definitions/bedrock.json" with { type: "json" };
import a87 from "./app-definitions/responses-api.json" with { type: "json" };
import a88 from "./app-definitions/messages-api.json" with { type: "json" };
import a89 from "./app-definitions/chat-completions-api.json" with { type: "json" };
import a90 from "./app-definitions/local.json" with { type: "json" };
import a73 from "./app-definitions/gauge.json" with { type: "json" };
import a74 from "./app-definitions/tavily.json" with { type: "json" };
import a75 from "./app-definitions/calendly.json" with { type: "json" };
import a76 from "./app-definitions/exa.json" with { type: "json" };
import a77 from "./app-definitions/firecrawl.json" with { type: "json" };
import a78 from "./app-definitions/parallel-search.json" with { type: "json" };
import a79 from "./app-definitions/windsor-ai.json" with { type: "json" };
import a80 from "./app-definitions/gsc-wizard.json" with { type: "json" };
import a81 from "./app-definitions/gmail.json" with { type: "json" };
import a82 from "./app-definitions/google-drive.json" with { type: "json" };
import a83 from "./app-definitions/google-docs.json" with { type: "json" };
import a84 from "./app-definitions/google-sheets.json" with { type: "json" };
import a85 from "./app-definitions/google-slides.json" with { type: "json" };
import a86 from "./app-definitions/google-calendar.json" with { type: "json" };
import a87 from "./app-definitions/google-chat.json" with { type: "json" };
import a88 from "./app-definitions/google-people.json" with { type: "json" };
import a89 from "./app-definitions/google-workspace-search.json" with { type: "json" };
import a90 from "./app-definitions/openai.json" with { type: "json" };
import a91 from "./app-definitions/openrouter.json" with { type: "json" };
import a92 from "./app-definitions/xai.json" with { type: "json" };
import a93 from "./app-definitions/google.json" with { type: "json" };
import a94 from "./app-definitions/bedrock.json" with { type: "json" };
import a95 from "./app-definitions/responses-api.json" with { type: "json" };
import a96 from "./app-definitions/messages-api.json" with { type: "json" };
import a97 from "./app-definitions/chat-completions-api.json" with { type: "json" };
import a98 from "./app-definitions/local.json" with { type: "json" };
import type { AppDefinition } from "./types/app-definition.js";
export const APP_DEFINITIONS=[a0,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33,a34,a35,a36,a37,a38,a39,a40,a41,a42,a43,a44,a45,a46,a47,a48,a49,a50,a51,a52,a53,a54,a55,a56,a57,a58,a59,a60,a61,a62,a63,a64,a65,a66,a67,a68,a69,a70,a71,a72,a73,a74,a75,a76,a77,a78,a79,a80,a81,a82,a83,a84,a85,a86,a87,a88,a89,a90] as AppDefinition[];
export const APP_DEFINITIONS=[a0,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33,a34,a35,a36,a37,a38,a39,a40,a41,a42,a43,a44,a45,a46,a47,a48,a49,a50,a51,a52,a53,a54,a55,a56,a57,a58,a59,a60,a61,a62,a63,a64,a65,a66,a67,a68,a69,a70,a71,a72,a73,a74,a75,a76,a77,a78,a79,a80,a81,a82,a83,a84,a85,a86,a87,a88,a89,a90,a91,a92,a93,a94,a95,a96,a97,a98] as AppDefinition[];
+98 -6
View File
@@ -273,7 +273,7 @@ describe("AppDefinition catalog", () => {
"google-workspace-search",
]),
);
expect(SELF_SERVE_MCP_CANDIDATES).toHaveLength(52);
expect(SELF_SERVE_MCP_CANDIDATES).toHaveLength(60);
expect(BLOCKED_MCP_PROVIDERS.map((entry) => entry.slug)).toEqual([
"g2",
"vercel",
@@ -438,15 +438,15 @@ describe("AppDefinition catalog", () => {
expect(channel("slack")?.guidanceMd).toContain("reactions");
expect(channel("slack")?.guidanceMd).toContain("direct messages");
});
it("keeps a complete, unique, dated evidence ledger for all 55 researched MCP providers", () => {
it("keeps a complete, unique, dated evidence ledger for all 63 researched MCP providers", () => {
// Ledger-wide date reflects the last full re-verification (2026-08-26);
// later provider additions carry their own research evidence, but
// bumping the shared date would overstate freshness for the other providers.
expect(SELF_SERVE_MCP_RESEARCH.verifiedAt).toBe("2026-08-26");
expect(SELF_SERVE_MCP_RESEARCH.entries).toHaveLength(55);
expect(SELF_SERVE_MCP_RESEARCH.entries).toHaveLength(63);
expect(
new Set(SELF_SERVE_MCP_RESEARCH.entries.map((entry) => entry.slug)),
).toHaveProperty("size", 55);
).toHaveProperty("size", 63);
for (const entry of SELF_SERVE_MCP_RESEARCH.entries) {
expect(new URL(entry.docsUrl).protocol).toBe("https:");
expect(new URL(entry.serverUrl).protocol).toBe("https:");
@@ -540,6 +540,30 @@ describe("AppDefinition catalog", () => {
expect(credentialField).not.toHaveProperty("defaultValue");
});
it("exposes Make with its reviewed browser OAuth and MCP token alternatives", () => {
const app = APP_STORE_DEFINITIONS.find((entry) => entry.slug === "make");
expect(app).toBeTruthy();
expect(APP_STORE_HIDDEN_SLUGS.has("make")).toBe(false);
expect(CONNECTABLE_APP_DEFINITIONS.some((entry) => entry.slug === "make")).toBe(true);
expect(getAvailableConnectionMethods(app!).map((method) => method.key)).toEqual([
"mcp-oauth",
"mcp-api-token",
]);
expect(app!.methods[0]).toMatchObject({
transport: "mcp_remote",
auth: "oauth",
ownershipModes: ["dcr"],
defaults: { serverUrl: "https://mcp.make.com" },
});
expect(app!.methods[1]).toMatchObject({
transport: "mcp_remote",
auth: "api_key",
ownershipModes: ["customer"],
defaults: { serverUrlTemplate: "https://{zone}/mcp" },
keyPlacement: { location: "header", name: "Authorization", prefix: "Bearer " },
});
});
it("uses the reviewed current endpoints and configuration modes", () => {
const method = (slug: string, key?: string) =>
APP_DEFINITIONS.find((app) => app.slug === slug)?.methods.find(
@@ -835,7 +859,6 @@ describe("AppDefinition catalog", () => {
"embat",
"kernel",
"local-falcon",
"make",
"manufact",
"oreilly",
"planetscale",
@@ -846,7 +869,7 @@ describe("AppDefinition catalog", () => {
"ticktick",
"xero",
]);
expect(APP_STORE_DEFINITIONS).toHaveLength(68);
expect(APP_STORE_DEFINITIONS).toHaveLength(77);
const connectableSlugs = new Set(
CONNECTABLE_APP_DEFINITIONS.map((entry) => entry.slug),
);
@@ -1131,6 +1154,56 @@ describe("AppDefinition catalog", () => {
expect(method.warnings?.length).toBe(2);
}
});
it("connects Gauge's hosted server with browser sign-in or an organization API key", () => {
const gauge = APP_DEFINITIONS.find((app) => app.slug === "gauge")!;
expect(gauge).toMatchObject({
name: "Gauge",
categories: ["analytics"],
urlPatterns: ["https://app.withgauge.com/*"],
docsUrl: "https://docs.withgauge.com/help/mcp",
branding: { logoUrl: "/brands/apps/gauge.png" },
redirectConstraints: "https-or-loopback-http",
});
expect(APP_STORE_DEFINITIONS.some((app) => app.slug === "gauge")).toBe(true);
expect(gauge.methods.map((method) => method.key)).toEqual(["mcp-oauth", "mcp-api-key"]);
const [oauth, apiKey] = gauge.methods;
expect(oauth).toMatchObject({
transport: "mcp_remote",
auth: "oauth",
ownershipModes: ["dcr"],
riskTier: "S3",
// Gauge advertises identity scopes too; only the reviewed MCP scope is
// requested, and the organization is chosen on Gauge's consent screen.
defaults: { serverUrl: "https://app.withgauge.com/mcp", scopesHint: ["mcp"] },
});
expect(apiKey).toMatchObject({
transport: "mcp_remote",
auth: "api_key",
ownershipModes: ["customer"],
riskTier: "S3",
defaults: { serverUrl: "https://app.withgauge.com/mcp" },
keyPlacement: { location: "header", name: "Authorization", prefix: "Bearer " },
});
expect(apiKey!.credentialFields).toEqual([
expect.objectContaining({ key: "authorization", type: "password", secret: true, required: true }),
]);
// The key form renders credential helper text, not method warnings, so the
// publish advice must live in the helper.
expect(apiKey!.credentialFields?.[0]?.helperMd).toContain("set publish actions to Ask first");
for (const method of gauge.methods) {
// One shared profile: no capability picker, but the access step shows
// its description (with the publish warning) before sign-in.
expect(method.capabilityProfile).toMatchObject({
key: "write",
description: expect.stringContaining("publish to your connected CMS"),
});
expect(method.tenantFields ?? []).toEqual([]);
expect(method.warnings).toEqual([
expect.stringContaining("one Gauge organization"),
expect.stringContaining("publish to your connected CMS"),
]);
}
});
it("connects Superagent's hosted server with an organization API key only", () => {
const superagent = APP_DEFINITIONS.find((app) => app.slug === "superagent")!;
expect(superagent).toMatchObject({
@@ -1195,6 +1268,7 @@ describe("AppDefinition catalog", () => {
expect(required).toEqual([
"clickhouse:mcp-oauth:serviceId",
"honcho:mcp-api-key:workspaceId",
"make:mcp-api-token:zone",
"shopify:storefront-mcp:storeDomain",
"shopify:ucp-commerce:storeDomain",
"supabase:mcp-api-key:projectRef",
@@ -1317,3 +1391,21 @@ it("validates native pool catalog entries without inventing an authentication me
expect(appDefinitionSchema.safeParse({ ...entry, methods: APP_STORE_DEFINITIONS[0]!.methods }).success).toBe(false);
expect(appDefinitionSchema.safeParse({ ...entry, categories: ["developer"] }).success).toBe(false);
});
it("limits explicit DCR registration preference to remote MCP OAuth methods with DCR ownership", () => {
const entry = structuredClone(APP_DEFINITIONS.find((app) => app.slug === "airtable")!);
entry.methods[0]!.oauthClientRegistration = "dcr";
expect(appDefinitionSchema.parse(entry).methods[0]!.oauthClientRegistration).toBe("dcr");
const customerOwned = structuredClone(entry);
customerOwned.methods[0]!.ownershipModes = ["customer"];
expect(appDefinitionSchema.safeParse(customerOwned).success).toBe(false);
const apiKey = structuredClone(entry);
apiKey.methods[0]!.auth = "api_key";
expect(appDefinitionSchema.safeParse(apiKey).success).toBe(false);
const nonMcp = structuredClone(entry);
nonMcp.methods[0]!.transport = "rest_api";
expect(appDefinitionSchema.safeParse(nonMcp).success).toBe(false);
});
-1
View File
@@ -60,7 +60,6 @@ export const APP_STORE_HIDDEN_SLUGS = new Set([
"embat",
"kernel",
"local-falcon",
"make",
"manufact",
"oreilly",
"planetscale",
@@ -20,6 +20,7 @@
"key": "mcp-oauth",
"transport": "mcp_remote",
"auth": "oauth",
"oauthClientRegistration": "dcr",
"ownershipModes": [
"dcr"
],
@@ -45,6 +46,44 @@
"warnings": [
"An Airtable account; enterprise administrators may need to allowlist the client."
]
},
{
"key": "mcp-pat",
"transport": "mcp_remote",
"auth": "api_key",
"ownershipModes": [
"customer"
],
"whenToUse": "Use a personal access token when browser sign-in is not suitable.",
"defaults": {
"serverUrl": "https://mcp.airtable.com/mcp"
},
"guidanceMd": "Create an Airtable personal access token with the scopes and base resources required for the actions you intend to allow. MCP calls inherit your Airtable role and base permissions; organization allowlisting may still apply.",
"riskTier": "S3",
"label": "Use a personal access token",
"credentialFields": [
{
"key": "authorization",
"label": "Airtable personal access token",
"type": "password",
"required": true,
"placeholder": "pat...",
"secret": true,
"helperMd": "Choose provider scopes and resource bases for intended actions; token and user/base role permissions both restrict access."
}
],
"keyPlacement": {
"location": "header",
"name": "Authorization",
"prefix": "Bearer "
},
"consoleLinks": {
"docs": "https://support.airtable.com/articles/9897799762-using-the-airtable-mcp-server",
"keys": "https://airtable.com/create/tokens"
},
"warnings": [
"Use a disposable or development base for initial write qualification. Enterprise admins may need to allowlist MCP access."
]
}
]
}
@@ -0,0 +1,46 @@
{
"schemaVersion": 1,
"slug": "calendly",
"name": "Calendly",
"description": "Review Calendly event types and availability, and use supported scheduling actions.",
"categories": [
"productivity"
],
"featured": false,
"branding": {
"logoUrl": "/brands/apps/calendly.png"
},
"urlPatterns": [
"https://mcp.calendly.com/*"
],
"docsUrl": "https://developer.calendly.com/docs/mcp/calendly-mcp-server",
"redirectConstraints": "https-or-loopback-http",
"methods": [
{
"key": "mcp-oauth",
"label": "Sign in with Calendly",
"transport": "mcp_remote",
"auth": "oauth",
"ownershipModes": [
"dcr"
],
"whenToUse": "Connect the provider-hosted Calendly MCP server with browser sign-in.",
"defaults": {
"serverUrl": "https://mcp.calendly.com",
"scopesHint": [
"mcp:scheduling:read",
"mcp:scheduling:write"
]
},
"guidanceMd": "Check the connected account, event type, timezone, availability, and attendee details before using a scheduling write. Use a test scheduling artifact only when the discovered tool explicitly supports it.",
"warnings": [
"Calendly MCP requires DCR and OAuth 2.1 authorization-code with PKCE S256. It does not support personal access tokens or manually provisioned static OAuth clients.",
"The provider advertises both scheduling read and write scopes for full access; verify the live tool catalog before enabling booking or link creation."
],
"consoleLinks": {
"docs": "https://developer.calendly.com/docs/mcp/calendly-mcp-server"
},
"riskTier": "S3"
}
]
}
@@ -0,0 +1,34 @@
{
"schemaVersion": 1,
"slug": "exa",
"name": "Exa",
"description": "Search the public web and read source pages with Exa.",
"categories": [
"data"
],
"featured": false,
"branding": {
"logoUrl": "/brands/apps/exa.svg"
},
"urlPatterns": [
"https://mcp.exa.ai/*"
],
"docsUrl": "https://exa.ai/docs/get-started/exa-mcp",
"methods": [
{
"key": "public-search",
"label": "Use public Exa search",
"transport": "mcp_remote",
"auth": "none",
"ownershipModes": [
"customer"
],
"whenToUse": "Use Exa’s public, keyless search MCP.",
"defaults": {
"serverUrl": "https://mcp.exa.ai/mcp"
},
"guidanceMd": "The public MCP route provides web search and page fetching. Keep citations with results. Account-authenticated Agent and advanced tools are not included in this method.",
"riskTier": "S2"
}
]
}
@@ -0,0 +1,93 @@
{
"schemaVersion": 1,
"slug": "firecrawl",
"name": "Firecrawl",
"description": "Search, scrape, and parse public web pages with Firecrawl.",
"categories": [
"data"
],
"featured": false,
"branding": {
"logoUrl": "/brands/apps/firecrawl.svg"
},
"urlPatterns": [
"https://mcp.firecrawl.dev/*"
],
"docsUrl": "https://docs.firecrawl.dev/mcp-server",
"redirectConstraints": "https-or-loopback-http",
"methods": [
{
"key": "mcp-oauth",
"label": "Sign in with Firecrawl",
"transport": "mcp_remote",
"auth": "oauth",
"ownershipModes": [
"dcr"
],
"whenToUse": "Use interactive Firecrawl account authorization for the full hosted MCP tool surface.",
"defaults": {
"serverUrl": "https://mcp.firecrawl.dev/v2/mcp-oauth",
"scopesHint": [
"firecrawl:global",
"offline_access"
]
},
"guidanceMd": "Sign in and choose the Firecrawl team whose usage should apply. This route exposes the account-authorized tool surface; review paid jobs and action policies before execution.",
"riskTier": "S4",
"warnings": [
"Account authorization exposes Firecrawl’s broader hosted MCP surface, including job-based research tools that may use account credits.",
"Crawls and research jobs can use provider credits; review their tool actions and limits before execution."
]
},
{
"key": "mcp-api-key",
"label": "Use a Firecrawl API key",
"transport": "mcp_remote",
"auth": "api_key",
"ownershipModes": [
"customer"
],
"whenToUse": "Use a customer-created Firecrawl API key in a Bearer header for unattended or higher-limit access.",
"defaults": {
"serverUrl": "https://mcp.firecrawl.dev/v2/mcp"
},
"guidanceMd": "Create a Firecrawl API key for the intended team, then connect it with a Bearer header. The authenticated server may expose additional job tools and spend team credits.",
"riskTier": "S4",
"credentialFields": [
{
"key": "authorization",
"label": "Use a Firecrawl API key",
"type": "password",
"required": true,
"placeholder": "Enter provider credential",
"secret": true,
"helperMd": "Create an API key for the intended Firecrawl team with access to the search, scrape, parse, and any job tools you intend to use. Jobs can consume credits; Paperclip cannot increase an existing key’s permissions."
}
],
"keyPlacement": {
"location": "header",
"name": "Authorization",
"prefix": "Bearer "
},
"consoleLinks": {
"keys": "https://docs.firecrawl.dev/mcp-server",
"docs": "https://docs.firecrawl.dev/mcp-server"
}
},
{
"key": "keyless",
"label": "Try keyless access",
"transport": "mcp_remote",
"auth": "none",
"ownershipModes": [
"customer"
],
"whenToUse": "Use the rate-limited keyless public web-search route without a Firecrawl credential.",
"defaults": {
"serverUrl": "https://mcp.firecrawl.dev/v2/mcp"
},
"guidanceMd": "The keyless route currently exposes Search, Scrape, and Parse. Keep requests bounded; these calls can consume the provider’s keyless allowance.",
"riskTier": "S2"
}
]
}
@@ -0,0 +1,94 @@
{
"schemaVersion": 1,
"slug": "gauge",
"name": "Gauge",
"description": "Track how AI answers mention your brand, research keywords and traffic, and run content workflows.",
"categories": [
"analytics"
],
"featured": false,
"branding": {
"logoUrl": "/brands/apps/gauge.png"
},
"urlPatterns": [
"https://app.withgauge.com/*"
],
"docsUrl": "https://docs.withgauge.com/help/mcp",
"redirectConstraints": "https-or-loopback-http",
"methods": [
{
"key": "mcp-oauth",
"transport": "mcp_remote",
"auth": "oauth",
"ownershipModes": [
"dcr"
],
"whenToUse": "Use browser sign-in for the provider-hosted MCP server.",
"defaults": {
"serverUrl": "https://app.withgauge.com/mcp",
"scopesHint": [
"mcp"
]
},
"guidanceMd": "Connect Gauge in the browser and choose the organization this connection may use. Write tools start enabled and remain governed by Paperclip's action policies.",
"riskTier": "S3",
"label": "Sign in with Gauge",
"consoleLinks": {
"docs": "https://docs.withgauge.com/help/mcp"
},
"warnings": [
"A Gauge account. Each connection reaches one Gauge organization: sign-in uses the organization chosen during consent, and an API key uses the organization that created it.",
"Gauge content tools can publish to your connected CMS, including live. Set publish actions to Ask first before agents run unattended."
],
"capabilityProfile": {
"key": "write",
"label": "Read and write",
"description": "Read AI visibility, SEO and traffic data, and run content workflows. Gauge content tools can publish to your connected CMS, including live. Set publish actions to Ask first before agents run unattended."
}
},
{
"key": "mcp-api-key",
"transport": "mcp_remote",
"auth": "api_key",
"ownershipModes": [
"customer"
],
"whenToUse": "Use a Gauge organization API key when browser sign-in is not suitable.",
"defaults": {
"serverUrl": "https://app.withgauge.com/mcp"
},
"guidanceMd": "In Gauge, open Settings → Integrations → API Keys, generate a key for Paperclip, and paste it below.",
"riskTier": "S3",
"label": "Use an API key",
"credentialFields": [
{
"key": "authorization",
"label": "Gauge API key",
"type": "password",
"required": true,
"placeholder": "Paste your Gauge API key",
"secret": true,
"helperMd": "Gauge API keys are not scoped: a key reaches every MCP tool in the organization that created it, including publishing to a connected CMS, and requests are attributed to the organization rather than a user. Generate a separate key for Paperclip so it can be deleted independently, and set publish actions to Ask first before agents run unattended. Paperclip cannot narrow an existing key."
}
],
"keyPlacement": {
"location": "header",
"name": "Authorization",
"prefix": "Bearer "
},
"consoleLinks": {
"keys": "https://docs.withgauge.com/help/mcp",
"docs": "https://docs.withgauge.com/help/mcp"
},
"warnings": [
"A Gauge account. Each connection reaches one Gauge organization: sign-in uses the organization chosen during consent, and an API key uses the organization that created it.",
"Gauge content tools can publish to your connected CMS, including live. Set publish actions to Ask first before agents run unattended."
],
"capabilityProfile": {
"key": "write",
"label": "Read and write",
"description": "Read AI visibility, SEO and traffic data, and run content workflows. Gauge content tools can publish to your connected CMS, including live. Set publish actions to Ask first before agents run unattended."
}
}
]
}
@@ -0,0 +1,78 @@
{
"schemaVersion": 1,
"slug": "gsc-wizard",
"name": "GSC Wizard",
"description": "Read Google Search Console, Bing Webmaster, and analytics data for connected properties.",
"categories": [
"analytics"
],
"featured": false,
"branding": {
"logoUrl": "/brands/apps/gsc-wizard.png"
},
"urlPatterns": [
"https://mcp.gscwizard.com/*"
],
"docsUrl": "https://www.gscwizard.com/claude-search-console-mcp.html",
"redirectConstraints": "https-or-loopback-http",
"methods": [
{
"key": "mcp-oauth",
"label": "Sign in with GSC Wizard",
"transport": "mcp_remote",
"auth": "oauth",
"ownershipModes": [
"dcr"
],
"whenToUse": "Use remote OAuth authorization for the GSC Wizard MCP.",
"defaults": {
"serverUrl": "https://mcp.gscwizard.com/mcp",
"scopesHint": [
"mcp:read",
"mcp:write"
]
},
"guidanceMd": "Connect the GSC Wizard account and its authorized properties. Check site identity and date bounds before querying; review any URL submission or property-changing action separately.",
"riskTier": "S3",
"warnings": [
"Some tools may submit URLs or otherwise change external indexing state; review action details before use.",
"GSC Wizard connects multiple search and analytics providers; confirm the authorized property and action policy for each tool."
]
},
{
"key": "mcp-api-key",
"label": "Use a GSC Wizard MCP key",
"transport": "mcp_remote",
"auth": "api_key",
"ownershipModes": [
"customer"
],
"whenToUse": "Use a customer-created GSC Wizard MCP key in a Bearer header.",
"defaults": {
"serverUrl": "https://mcp.gscwizard.com/mcp"
},
"guidanceMd": "Create a key for the intended account and select the appropriate read or write permission during key creation. Verify each connected property before querying; review URL submission actions separately.",
"riskTier": "S3",
"credentialFields": [
{
"key": "authorization",
"label": "Use a GSC Wizard MCP key",
"type": "password",
"required": true,
"placeholder": "Enter provider credential",
"secret": true,
"helperMd": "At key creation, choose read-only or read/write according to the approved task. Read/write keys can reach URL-submission and related provider actions; Paperclip cannot increase an existing key’s permissions."
}
],
"keyPlacement": {
"location": "header",
"name": "Authorization",
"prefix": "Bearer "
},
"consoleLinks": {
"keys": "https://www.gscwizard.com/claude-search-console-mcp.html",
"docs": "https://www.gscwizard.com/claude-search-console-mcp.html"
}
}
]
}
@@ -33,7 +33,7 @@
"write"
]
},
"guidanceMd": "Connect Linear for issues and projects. Paperclip registers its own OAuth client with Linear's MCP server, so no developer-console setup is needed.",
"guidanceMd": "Connect Linear for issues and projects. Paperclip registers its own OAuth client with Linear MCP; no developer-console setup is needed.",
"riskTier": "S2",
"requiredResourceFilters": [
"workspace",
@@ -57,7 +57,50 @@
"prefix": "Bearer "
}
}
},
"label": "Sign in with Linear",
"consoleLinks": {
"docs": "https://linear.app/docs/mcp"
}
},
{
"key": "mcp-api-key",
"transport": "mcp_remote",
"auth": "api_key",
"ownershipModes": [
"customer"
],
"whenToUse": "Use a Linear API key when browser sign-in is not suitable.",
"defaults": {
"serverUrl": "https://mcp.linear.app/mcp"
},
"guidanceMd": "Create a Linear API key with the permissions needed for the actions you intend to allow. A key restricted to Read is supported for read-only use; workspace and role access still apply.",
"riskTier": "S2",
"label": "Use an API key",
"credentialFields": [
{
"key": "authorization",
"label": "Linear API key",
"type": "password",
"required": true,
"secret": true,
"helperMd": "Choose intended permissions and teams when creating the personal API key. Read-only is supported with Read permission only.",
"placeholder": "Paste your Linear API key"
}
],
"keyPlacement": {
"location": "header",
"name": "Authorization",
"prefix": "Bearer "
},
"consoleLinks": {
"docs": "https://linear.app/docs/api-and-webhooks"
},
"warnings": [
"Linear’s standard MCP endpoint exposes read and write tools; review the discovered catalog and Paperclip action policies."
]
}
]
],
"docsUrl": "https://linear.app/docs/mcp",
"redirectConstraints": "https-or-loopback-http"
}
+53 -1
View File
@@ -12,7 +12,8 @@
"darkLogoUrl": "/brands/apps/make-dark.svg"
},
"urlPatterns": [
"https://mcp.make.com/*"
"https://mcp.make.com/*",
"https://*.make.com/mcp"
],
"docsUrl": "https://developers.make.com/mcp-server",
"redirectConstraints": "https-or-loopback-http",
@@ -37,6 +38,57 @@
"warnings": [
"A Make account and access to the scenarios exposed to MCP."
]
},
{
"key": "mcp-api-token",
"transport": "mcp_remote",
"auth": "api_key",
"ownershipModes": [
"customer"
],
"whenToUse": "Use a Make MCP token when browser sign-in is not suitable.",
"defaults": {
"serverUrlTemplate": "https://{zone}/mcp"
},
"guidanceMd": "Create a Make API token with the mcp:use scope and any additional scopes required by the selected scenarios. Enter the zone host from your Make organization. The token is sent as a Bearer header and remains a secret.",
"riskTier": "S3",
"label": "Use an MCP token",
"tenantFields": [
{
"key": "zone",
"label": "Make zone host",
"type": "text",
"required": true,
"placeholder": "eu2.make.com",
"helperMd": "Enter the zone host for your Make organization exactly as shown in the Make MCP client setup instructions. The server URL is https://<zone>/mcp.",
"validation": {
"pattern": "^[A-Za-z0-9-]+\\.make\\.com$",
"maxLength": 253
}
}
],
"credentialFields": [
{
"key": "authorization",
"label": "Make MCP token",
"type": "password",
"required": true,
"placeholder": "Paste your MCP token",
"secret": true,
"helperMd": "Provider-issued Make token. Include documented mcp:use and only additional scopes required by selected scenarios; exact scopes are user selected."
}
],
"keyPlacement": {
"location": "header",
"name": "Authorization",
"prefix": "Bearer "
},
"consoleLinks": {
"docs": "https://developers.make.com/mcp-server/connect-using-mcp-token"
},
"warnings": [
"A token is a secret; do not place it in the server URL. Scenario availability depends on token scopes and scenario access controls."
]
}
]
}
@@ -0,0 +1,35 @@
{
"schemaVersion": 1,
"slug": "parallel-search",
"name": "Parallel Search",
"description": "Search the public web and extract source pages with Parallel.",
"categories": [
"data"
],
"featured": false,
"branding": {
"logoUrl": "/brands/apps/parallel.svg",
"darkLogoUrl": "/brands/apps/parallel-dark.svg"
},
"urlPatterns": [
"https://search.parallel.ai/*"
],
"docsUrl": "https://docs.parallel.ai/integrations/mcp/search-mcp",
"methods": [
{
"key": "public-search",
"label": "Use public Parallel Search",
"transport": "mcp_remote",
"auth": "none",
"ownershipModes": [
"customer"
],
"whenToUse": "Use Parallel Search’s public, keyless MCP route.",
"defaults": {
"serverUrl": "https://search.parallel.ai/mcp"
},
"guidanceMd": "The public route exposes web_search and web_fetch. Keep source URLs, excerpts, and retrieval context in the result; this is separate from Parallel Task MCP.",
"riskTier": "S2"
}
]
}
@@ -0,0 +1,47 @@
{
"schemaVersion": 1,
"slug": "tavily",
"name": "Tavily",
"description": "Search the public web and extract page content with Tavily’s hosted MCP server.",
"categories": [
"analytics"
],
"featured": false,
"branding": {
"logoUrl": "/brands/apps/tavily.png"
},
"urlPatterns": [
"https://mcp.tavily.com/*"
],
"docsUrl": "https://docs.tavily.com/documentation/mcp",
"redirectConstraints": "https-or-loopback-http",
"methods": [
{
"key": "mcp-oauth",
"label": "Sign in with Tavily",
"transport": "mcp_remote",
"auth": "oauth",
"ownershipModes": [
"dcr"
],
"whenToUse": "Connect the provider-hosted Tavily MCP server with browser sign-in.",
"defaults": {
"serverUrl": "https://mcp.tavily.com/mcp",
"scopesHint": [
"openid",
"offline_access"
],
"mcpSessionRequired": true
},
"guidanceMd": "Browser sign-in requires a public HTTPS Paperclip callback; local HTTP callbacks are rejected by Tavily. Use Tavily for bounded public research. Set focused queries and relevant domains, cite the source URLs, and distinguish retrieved facts from inference. Research does not authorize contacting a company or submitting forms.",
"warnings": [
"Tavily OAuth selects the account’s `mcp_auth_default` key when configured; otherwise it may use the personal default or first available key. Review the chosen account and usage allowance.",
"Do not use the documented API-key-in-query alternative; OAuth keeps the key out of the server URL."
],
"consoleLinks": {
"docs": "https://docs.tavily.com/documentation/mcp"
},
"riskTier": "S2"
}
]
}
@@ -0,0 +1,80 @@
{
"schemaVersion": 1,
"slug": "windsor-ai",
"name": "Windsor.ai",
"description": "Query connected marketing, analytics, CRM, and warehouse data through Windsor.ai.",
"categories": [
"analytics"
],
"featured": false,
"branding": {
"logoUrl": "/brands/apps/windsor-ai.png"
},
"urlPatterns": [
"https://mcp.windsor.ai/*"
],
"docsUrl": "https://mcp.windsor.ai/",
"redirectConstraints": "https-or-loopback-http",
"methods": [
{
"key": "mcp-oauth",
"label": "Sign in with Windsor.ai",
"transport": "mcp_remote",
"auth": "oauth",
"ownershipModes": [
"dcr"
],
"whenToUse": "Use browser OAuth for Windsor.ai’s hosted data MCP.",
"defaults": {
"serverUrl": "https://mcp.windsor.ai/",
"scopesHint": [
"create",
"delete",
"offline_access"
]
},
"guidanceMd": "Browser sign-in requires a public HTTPS Paperclip callback; local HTTP callbacks are rejected by Windsor.ai. Connect Windsor.ai, then verify which advertising, analytics, CRM, or warehouse sources are linked. Keep source account and metric definitions with results. Review any action that changes campaigns, budgets, posts, or listings.",
"riskTier": "S4",
"warnings": [
"Windsor.ai requires the provider-level delete scope to establish the MCP session, including for read-only use. This scope may expose destructive actions; do not approve it unless those provider permissions are acceptable.",
"The server includes actions across connected marketing platforms. A source connection does not imply authorization to modify budgets or publish content.",
"The server exposes write actions across some connected ad and commerce platforms."
]
},
{
"key": "mcp-api-key",
"label": "Use a Windsor.ai API key",
"transport": "mcp_remote",
"auth": "api_key",
"ownershipModes": [
"customer"
],
"whenToUse": "Use a customer-created Windsor.ai API key as a Bearer credential.",
"defaults": {
"serverUrl": "https://mcp.windsor.ai/"
},
"guidanceMd": "Create a Windsor.ai key for the intended account. Verify connected source accounts and action availability before use; broad tool exposure may include advertising changes.",
"riskTier": "S4",
"credentialFields": [
{
"key": "authorization",
"label": "Use a Windsor.ai API key",
"type": "password",
"required": true,
"placeholder": "Enter provider credential",
"secret": true,
"helperMd": "Use an account key for the intended Windsor.ai organization and connect only source accounts needed for the task. Review write tools and source-specific effects; Paperclip cannot increase key permissions."
}
],
"keyPlacement": {
"location": "header",
"name": "Authorization",
"prefix": "Bearer "
},
"consoleLinks": {
"keys": "https://mcp.windsor.ai/",
"docs": "https://mcp.windsor.ai/"
}
}
]
}
@@ -52,6 +52,7 @@ describe("generic connection instructions", () => {
"packages/shared/src/self-serve-mcp-research.json",
"doc/connections/tool-method-permission-reviews.json",
"packages/shared/src/app-definitions",
"scripts/app-definition-overrides",
]) {
mkdirSync(dirname(join(fixture, source)), { recursive: true });
cpSync(join(root, source), join(fixture, source), { recursive: true });
+22
View File
@@ -0,0 +1,22 @@
/** JSON responses for the operator-owned Dot invitation flow. Pairing capabilities are transient. */
export interface DotBinding {
id: string;
status: string;
connected: boolean;
subscriptionVerified: boolean;
hasPendingChallenge: boolean;
pairingExpiresAt: string | null;
challengeExpiresAt: string | null;
}
export interface DotInvitation {
agent: { id: string; name: string; status: string };
approvalId: string | null;
binding: DotBinding | null;
}
export interface DotConnection {
enabled: boolean;
resourceUrl: string | null;
agentStatus: string;
binding: DotBinding | null;
}
export interface DotPairing { bindingId: string; pairingCode: string; expiresAt: string }
@@ -0,0 +1,70 @@
import { describe, expect, it } from "vitest";
import fs from "node:fs";
import { APP_DEFINITIONS } from "./app-definitions.generated.js";
import { appDefinitionSchema } from "./validators/app-definition.js";
const appBySlug = (slug: string) => {
const app = APP_DEFINITIONS.find((candidate) => candidate.slug === slug);
expect(app, "expected app definition for " + slug).toBeDefined();
return app!;
};
const methodFor = (slug: string, key: string) => {
const method = appBySlug(slug).methods.find((candidate) => candidate.key === key);
expect(method, "expected method " + slug + "/" + key).toBeDefined();
return method!;
};
const verifiedProviders = [
"airtable", "calendly", "exa", "firecrawl", "gsc-wizard", "linear",
"make", "parallel-search", "posthog", "tavily", "windsor-ai",
];
const newProviders = ["calendly", "exa", "firecrawl", "gsc-wizard", "parallel-search", "tavily", "windsor-ai"];
describe("verified MCP connector definitions", () => {
it("keeps the 11 qualified providers on remote MCP methods", () => {
expect(new Set(verifiedProviders).size).toBe(11);
for (const slug of verifiedProviders) {
expect(appBySlug(slug).methods.some((method) => method.transport === "mcp_remote"), slug).toBe(true);
expect(appBySlug(slug).availability?.available, slug).not.toBe(false);
}
});
it("parses the seven newly added definitions against the shared schema", () => {
for (const slug of newProviders) {
const definition = appBySlug(slug);
expect(appDefinitionSchema.parse(definition)).toEqual(definition);
}
});
it("uses reviewed DCR registration for Airtable and retains the manual key method", () => {
expect(methodFor("airtable", "mcp-oauth")).toMatchObject({
transport: "mcp_remote", auth: "oauth", ownershipModes: ["dcr"], oauthClientRegistration: "dcr",
defaults: { serverUrl: "https://mcp.airtable.com/mcp" },
});
expect(methodFor("airtable", "mcp-pat")).toMatchObject({
transport: "mcp_remote", auth: "api_key", keyPlacement: { location: "header", name: "Authorization", prefix: "Bearer " },
});
});
it("keeps keyless search endpoints credential-free", () => {
for (const [slug, key, endpoint] of [
["exa", "public-search", "https://mcp.exa.ai/mcp"],
["parallel-search", "public-search", "https://search.parallel.ai/mcp"],
]) {
const method = methodFor(slug!, key!);
expect(method).toMatchObject({ transport: "mcp_remote", auth: "none", defaults: { serverUrl: endpoint } });
expect(method.credentialFields).toBeUndefined();
expect(method.keyPlacement).toBeUndefined();
}
});
it("retains Tavily's reviewed MCP session initialization preference", () => {
const overridePath = new URL("../../../scripts/app-definition-overrides/tavily.json", import.meta.url);
const parsed = appDefinitionSchema.parse(JSON.parse(fs.readFileSync(overridePath, "utf8")));
expect(parsed.methods[0]?.defaults?.mcpSessionRequired).toBe(true);
const invalidTransport = structuredClone(parsed);
invalidTransport.methods[0]!.transport = "rest_api";
expect(appDefinitionSchema.safeParse(invalidTransport).success).toBe(false);
});
});
+4
View File
@@ -2854,3 +2854,7 @@ export * from "./connection-instructions.js";
export * from "./customer-success.js";
export * from "./decision-models.js";
export { updatePrimaryAgentSchema, type UpdatePrimaryAgent, type PrimaryAgentPreference } from "./primary-agent.js";
export * from "./agent-avatar-upload.js";
export type { DotBinding, DotInvitation, DotConnection, DotPairing } from "./dot-invitations.js";
@@ -27,7 +27,6 @@
{ "slug": "todoist", "name": "Todoist", "wave": 1, "status": "self_serve", "docsUrl": "https://developer.todoist.com/", "serverUrl": "https://ai.todoist.net/mcp", "authMode": "dcr", "prerequisite": "A Todoist account.", "riskTier": "S3" },
{ "slug": "webflow", "name": "Webflow", "wave": 1, "status": "self_serve", "docsUrl": "https://developers.webflow.com/mcp/reference/getting-started", "serverUrl": "https://mcp.webflow.com/mcp", "authMode": "dcr", "prerequisite": "A Webflow account; workspace and site roles constrain accessible sites.", "riskTier": "S3" },
{ "slug": "wix", "name": "Wix", "wave": 1, "status": "self_serve", "docsUrl": "https://www.wix.com/studio/developers/mcp-server", "serverUrl": "https://mcp.wix.com/mcp", "authMode": "dcr", "prerequisite": "A Wix account with access to the relevant sites.", "riskTier": "S3" },
{ "slug": "brex", "name": "Brex", "wave": 2, "status": "self_serve", "docsUrl": "https://www.brex.com/support/using-brex-in-ai-apps", "serverUrl": "https://api.brex.com/mcp", "authMode": "dcr", "prerequisite": "Brex early access and an administrator enabling the integration; financial actions require explicit approval.", "riskTier": "S4" },
{ "slug": "clickhouse", "name": "ClickHouse", "wave": 2, "status": "self_serve", "docsUrl": "https://clickhouse.com/blog/announcing-managed-clickstack-mcp-server", "serverUrl": "https://mcp.clickhouse.cloud/clickstack", "authMode": "dcr", "prerequisite": "A ClickHouse Cloud ClickStack service and its service ID.", "riskTier": "S4" },
{ "slug": "egnyte", "name": "Egnyte", "wave": 2, "status": "self_serve", "docsUrl": "https://developers.egnyte.com/docs/Remote_MCP_Server", "serverUrl": "https://mcp-server.egnyte.com/mcp", "authMode": "dcr", "prerequisite": "An eligible Egnyte plan and administrator approval for external LLM access.", "riskTier": "S3" },
@@ -39,7 +38,6 @@
{ "slug": "stripe", "name": "Stripe", "wave": 2, "status": "self_serve", "docsUrl": "https://docs.stripe.com/mcp", "serverUrl": "https://mcp.stripe.com", "authMode": "dcr_or_api_key", "prerequisite": "A Stripe account; the server is public preview and payment actions require explicit approval.", "riskTier": "S4" },
{ "slug": "supabase", "name": "Supabase", "wave": 2, "status": "self_serve", "docsUrl": "https://supabase.com/docs/guides/ai-tools/mcp", "serverUrl": "https://mcp.supabase.com/mcp", "authMode": "dcr_or_api_key", "prerequisite": "A Supabase account; use a development project and review write actions before connecting production data.", "riskTier": "S4" },
{ "slug": "ticket-tailor", "name": "Ticket Tailor", "wave": 2, "status": "self_serve", "docsUrl": "https://developers.tickettailor.com/docs/mcp/authentication/", "serverUrl": "https://mcp.tickettailor.ai/mcp", "authMode": "dcr", "prerequisite": "A Ticket Tailor account; the provider may request an API key during its hosted authorization prompt.", "riskTier": "S3" },
{ "slug": "asana", "name": "Asana", "wave": 3, "status": "self_serve", "docsUrl": "https://developers.asana.com/docs/integrating-with-asanas-mcp-server", "serverUrl": "https://mcp.asana.com/v2/mcp", "authMode": "dcr", "prerequisite": "An active Asana account. Re-verified 2026-09-28: mcp.asana.com advertises a registration endpoint and issues clients for http://localhost callbacks, so a local Paperclip registers its own OAuth client. Asana refuses non-localhost redirect URIs, so a hosted deployment still registers an app in Asana's developer console.", "riskTier": "S3" },
{ "slug": "linear", "name": "Linear", "wave": 3, "status": "self_serve", "docsUrl": "https://linear.app/docs/mcp", "serverUrl": "https://mcp.linear.app/mcp", "authMode": "dcr_cimd", "prerequisite": "An active Linear workspace. Verified 2026-09-28: mcp.linear.app advertises a registration endpoint and client-ID metadata documents, so Paperclip registers its own OAuth client.", "riskTier": "S2" },
{ "slug": "box", "name": "Box", "wave": 3, "status": "self_serve", "docsUrl": "https://support.box.com/hc/en-us/articles/43847256139923-Managing-Box-MCP-Servers", "serverUrl": "https://mcp.box.com", "authMode": "customer_oauth", "prerequisite": "A Box administrator creates the OAuth integration and enables AI access.", "riskTier": "S3" },
@@ -48,18 +46,24 @@
{ "slug": "similarweb", "name": "Similarweb", "wave": 3, "status": "self_serve", "docsUrl": "https://developers.similarweb.com/docs/similarweb-mcp", "serverUrl": "https://mcp.similarweb.com", "authMode": "api_key", "prerequisite": "A Similarweb subscription with API access and an API key.", "riskTier": "S2" },
{ "slug": "xero", "name": "Xero", "wave": 3, "status": "self_serve", "docsUrl": "https://developer.xero.com/ai", "serverUrl": "https://mcp.xero.com/mcp", "authMode": "customer_oauth", "prerequisite": "Create a Xero OAuth app and confirm the applicable AI and data-use terms before connecting.", "riskTier": "S4" },
{ "slug": "zapier", "name": "Zapier", "wave": 3, "status": "self_serve", "docsUrl": "https://docs.zapier.com/mcp/quickstart", "serverUrl": "https://mcp.zapier.com/", "authMode": "generated_url", "prerequisite": "Create a Zapier MCP server, choose the actions it exposes, and paste its generated connection URL.", "riskTier": "S3" },
{ "slug": "youcom", "name": "You.com", "wave": 4, "status": "self_serve", "docsUrl": "https://you.com/docs/build-with-agents/mcp-server", "serverUrl": "https://api.you.com/mcp", "authMode": "dcr_or_api_key", "prerequisite": "A You.com account for browser sign-in, or a You.com API key from you.com/platform for higher rate limits; a keyless free profile is also available.", "riskTier": "S2" },
{"slug": "fireflies", "name": "Fireflies", "wave": 4, "status": "self_serve", "docsUrl": "https://docs.fireflies.ai/getting-started/mcp-configuration", "serverUrl": "https://api.fireflies.ai/mcp", "authMode": "dcr_or_api_key", "prerequisite": "A Fireflies account with access to the meetings you want to use. API keys are available in Settings → Developer Settings.", "riskTier": "S3"},
{ "slug": "fireflies", "name": "Fireflies", "wave": 4, "status": "self_serve", "docsUrl": "https://docs.fireflies.ai/getting-started/mcp-configuration", "serverUrl": "https://api.fireflies.ai/mcp", "authMode": "dcr_or_api_key", "prerequisite": "A Fireflies account with access to the meetings you want to use. API keys are available in Settings → Developer Settings.", "riskTier": "S3" },
{ "slug": "g2", "name": "G2", "wave": "blocked", "status": "blocked", "docsUrl": "https://documentation.g2.com/docs/g2-mcp-server", "serverUrl": "https://mcp.g2.com/mcp", "authMode": "provider_approval", "prerequisite": "G2 must enable cross-application token introspection before an independently registered client can work.", "riskTier": "S3" },
{ "slug": "vercel", "name": "Vercel", "wave": "blocked", "status": "blocked", "docsUrl": "https://vercel.com/docs/agent-resources/vercel-mcp", "serverUrl": "https://mcp.vercel.com", "authMode": "provider_approval", "prerequisite": "Vercel currently reviews and approves MCP clients.", "riskTier": "S3" },
{ "slug": "zomato", "name": "Zomato", "wave": "blocked", "status": "blocked", "docsUrl": "https://github.com/Zomato/mcp-server-manifest", "serverUrl": "https://mcp-server.zomato.com/mcp", "authMode": "provider_approval", "prerequisite": "Zomato currently limits third-party clients and requires redirect-URI allowlisting.", "riskTier": "S3" },
{"slug": "zep", "name": "Zep", "wave": 3, "status": "self_serve", "docsUrl": "https://help.getzep.com/memory-mcp-server", "serverUrl": "https://api.getzep.com/mcp", "authMode": "dcr_cimd", "prerequisite": "A Zep project with Memory MCP enabled, available MCP seats, and Google Workspace or enterprise OIDC configured by its administrator. Project API keys do not authenticate Memory MCP.", "riskTier": "S3"},
{"slug": "supermemory", "name": "Supermemory", "wave": 3, "status": "self_serve", "docsUrl": "https://supermemory.ai/docs/supermemory-mcp/mcp", "serverUrl": "https://mcp.supermemory.ai/mcp", "authMode": "dcr", "prerequisite": "Sign in to Supermemory and select the spaces this connection may access. The hosted MCP uses OAuth, not a developer API key.", "riskTier": "S3"},
{"slug": "honcho", "name": "Honcho", "wave": 3, "status": "self_serve", "docsUrl": "https://honcho.dev/docs/v3/guides/integrations/mcp", "serverUrl": "https://mcp.honcho.dev", "authMode": "api_key", "prerequisite": "An API key from the Honcho dashboard. Memory is stored in your Honcho account; select workspace and peer identifiers when calling tools.", "riskTier": "S3"},
{ "slug": "zep", "name": "Zep", "wave": 3, "status": "self_serve", "docsUrl": "https://help.getzep.com/memory-mcp-server", "serverUrl": "https://api.getzep.com/mcp", "authMode": "dcr_cimd", "prerequisite": "A Zep project with Memory MCP enabled, available MCP seats, and Google Workspace or enterprise OIDC configured by its administrator. Project API keys do not authenticate Memory MCP.", "riskTier": "S3" },
{ "slug": "supermemory", "name": "Supermemory", "wave": 3, "status": "self_serve", "docsUrl": "https://supermemory.ai/docs/supermemory-mcp/mcp", "serverUrl": "https://mcp.supermemory.ai/mcp", "authMode": "dcr", "prerequisite": "Sign in to Supermemory and select the spaces this connection may access. The hosted MCP uses OAuth, not a developer API key.", "riskTier": "S3" },
{ "slug": "honcho", "name": "Honcho", "wave": 3, "status": "self_serve", "docsUrl": "https://honcho.dev/docs/v3/guides/integrations/mcp", "serverUrl": "https://mcp.honcho.dev", "authMode": "api_key", "prerequisite": "An API key from the Honcho dashboard. Memory is stored in your Honcho account; select workspace and peer identifiers when calling tools.", "riskTier": "S3" },
{ "slug": "neon", "name": "Neon", "wave": 4, "status": "self_serve", "docsUrl": "https://neon.com/docs/ai/neon-mcp-server", "serverUrl": "https://mcp.neon.tech/mcp", "authMode": "dcr_or_api_key", "prerequisite": "A Neon account. The hosted server grants broad project and database management, so use a development project and review write actions before connecting production data.", "riskTier": "S4" },
{ "slug": "superagent", "name": "Superagent", "wave": 4, "status": "self_serve", "docsUrl": "https://www.superagent.sh/docs/mcp", "serverUrl": "https://www.superagent.sh/mcp", "authMode": "api_key", "prerequisite": "Superagent report and triage tools consume organization credits, and deleting a finding is permanent. Set those actions to Ask first before agents run unattended.", "riskTier": "S4" },
{ "slug": "telem", "name": "Telem.AI", "wave": 4, "status": "self_serve", "docsUrl": "https://docs.telem.ai", "serverUrl": "https://mcp.telem.ai/mcp", "authMode": "api_key", "prerequisite": "A Telem API key. Create one in the Telem console at app.telem.ai.", "riskTier": "S2" }
{ "slug": "telem", "name": "Telem.AI", "wave": 4, "status": "self_serve", "docsUrl": "https://docs.telem.ai", "serverUrl": "https://mcp.telem.ai/mcp", "authMode": "api_key", "prerequisite": "A Telem API key. Create one in the Telem console at app.telem.ai.", "riskTier": "S2" },
{ "slug": "gauge", "name": "Gauge", "wave": 4, "status": "self_serve", "docsUrl": "https://docs.withgauge.com/help/mcp", "serverUrl": "https://app.withgauge.com/mcp", "authMode": "dcr_or_api_key", "prerequisite": "A Gauge account. Each connection reaches one Gauge organization: sign-in uses the organization chosen during consent, and an API key uses the organization that created it.", "riskTier": "S3" },
{ "slug": "tavily", "name": "Tavily", "wave": 2, "status": "self_serve", "docsUrl": "https://docs.tavily.com/documentation/mcp", "serverUrl": "https://mcp.tavily.com/mcp", "authMode": "dcr", "prerequisite": "OAuth uses the Tavily API key selected by account settings. Name a key `mcp_auth_default` to select it explicitly; otherwise Tavily uses the personal default key or first available key.", "riskTier": "S2", "verifiedAt": "2026-10-08" },
{ "slug": "calendly", "name": "Calendly", "wave": 2, "status": "self_serve", "docsUrl": "https://developer.calendly.com/docs/mcp/calendly-mcp-server", "serverUrl": "https://mcp.calendly.com", "authMode": "dcr", "prerequisite": "Connect with a Calendly account that has the desired scheduling permissions.", "riskTier": "S3", "verifiedAt": "2026-10-08" },
{ "slug": "exa", "name": "Exa", "wave": 3, "status": "self_serve", "docsUrl": "https://exa.ai/docs/get-started/exa-mcp", "serverUrl": "https://mcp.exa.ai/mcp", "authMode": "public", "prerequisite": "The public MCP route provides web search and page fetching. Keep citations with results. Account-authenticated Agent and advanced tools are not included in this method.", "riskTier": "S3", "verifiedAt": "2026-10-08" },
{ "slug": "firecrawl", "name": "Firecrawl", "wave": 3, "status": "self_serve", "docsUrl": "https://docs.firecrawl.dev/mcp-server", "serverUrl": "https://mcp.firecrawl.dev/v2/mcp-oauth", "authMode": "dcr_or_api_key", "prerequisite": "Sign in and choose the Firecrawl team whose usage should apply. This route exposes the account-authorized tool surface; review paid jobs and action policies before execution.", "riskTier": "S4", "verifiedAt": "2026-10-08" },
{ "slug": "parallel-search", "name": "Parallel Search", "wave": 3, "status": "self_serve", "docsUrl": "https://docs.parallel.ai/integrations/mcp/search-mcp", "serverUrl": "https://search.parallel.ai/mcp", "authMode": "public", "prerequisite": "The public route exposes web_search and web_fetch. Keep source URLs, excerpts, and retrieval context in the result; this is separate from Parallel Task MCP.", "riskTier": "S3", "verifiedAt": "2026-10-08" },
{ "slug": "windsor-ai", "name": "Windsor.ai", "wave": 3, "status": "self_serve", "docsUrl": "https://mcp.windsor.ai/", "serverUrl": "https://mcp.windsor.ai/", "authMode": "dcr_or_api_key", "prerequisite": "Connect Windsor.ai, then verify which advertising, analytics, CRM, or warehouse sources are linked. Keep source account and metric definitions with results. Review any action that changes campaigns, budgets, posts, or listings.", "riskTier": "S4", "verifiedAt": "2026-10-08" },
{ "slug": "gsc-wizard", "name": "GSC Wizard", "wave": 3, "status": "self_serve", "docsUrl": "https://www.gscwizard.com/claude-search-console-mcp.html", "serverUrl": "https://mcp.gscwizard.com/mcp", "authMode": "dcr_or_api_key", "prerequisite": "Connect the GSC Wizard account and its authorized properties. Check site identity and date bounds before querying; review any URL submission or property-changing action separately.", "riskTier": "S3", "verifiedAt": "2026-10-08" }
]
}
+3 -1
View File
@@ -2,7 +2,7 @@ import type { ConnectionGrantKind, ToolConnectionOwnership, ToolConnectionPurpos
export type AppCategory = "ai"|"analytics"|"commerce"|"communication"|"content"|"data"|"developer"|"productivity"|"other";
export type OAuthRedirectConstraints = "https-or-loopback-http";
export interface FieldDef { key:string; label:string; type:"text"|"password"|"textarea"|"datetime"|"select"|"checkbox"; required?:boolean; advanced?:boolean; hidden?:boolean; placeholder?:string; helperMd?:string; secret?:boolean; prefix?:string; defaultValue?:string|boolean; validation?:{pattern?:string;maxLength?:number}; options?:Array<{value:string;label:string}>; transport?:{location:"query"|"header";name:string;format?:"string"|"csv"|"boolean";omitFalse?:boolean} }
export interface ConnectionMethodDef { ai?: import("../ai-connections.js").AiConnectionMetadata; key:string; label?:string; purpose?:ToolConnectionPurpose; provider?:"slack"|"github"|"discord"|"microsoft-teams"|"telegram"|"agentmail"|"imessage-photon"; transport:ToolConnectionTransport; auth:"oauth"|"api_key"|"none"; oauthStrategy?:"paperclip_cloud_connector"|"paperclip_id_connector"; connectorProfile?:string; oauthClientSecretRequired?:boolean; capabilityProfile?:{key:string;label:string;description?:string}; grantKinds?:ConnectionGrantKind[]; ownershipModes:ToolConnectionOwnership[]; whenToUse:string; defaults?:{serverUrl?:string;serverUrlTemplate?:string;discoveryUrl?:string|null;serviceHost?:string;templateKey?:string;authorizationEndpoint?:string;tokenEndpoint?:string;metadataUrl?:string;scopesHint?:string[];oauthAuthorizationParams?:{access_type?:"offline";prompt?:"consent"};toolArgumentDefaults?:Record<string,unknown>}; tenantFields?:FieldDef[]; extensionFields?:FieldDef[]; configRequirements?:{atLeastOneOf?:string[]}; credentialFields?:FieldDef[]; keyPlacement?:{location:"header"|"query"|"body_json"|"env";name:string;prefix?:string|null}; credentialSources?:{vercelConnect?:{services:string[];principalModes:VercelConnectPrincipalMode[];scopes:string[];header:{name:string;prefix?:string|null}}}; guidanceMd:string; consoleLinks?:{register?:string;keys?:string;settings?:string;docs?:string}; warnings?:string[]; variants?:Array<{key:string;label:string;whenToUse:string;tenantFields?:FieldDef[]}>; riskTier:"S1"|"S2"|"S3"|"S4"; requiredResourceFilters?:string[] }
export interface ConnectionMethodDef { ai?: import("../ai-connections.js").AiConnectionMetadata; key:string; label?:string; purpose?:ToolConnectionPurpose; provider?:"slack"|"github"|"discord"|"microsoft-teams"|"telegram"|"agentmail"|"imessage-photon"; transport:ToolConnectionTransport; auth:"oauth"|"api_key"|"none"; oauthStrategy?:"paperclip_cloud_connector"|"paperclip_id_connector"; connectorProfile?:string; oauthClientSecretRequired?:boolean; oauthClientRegistration?:"dcr"; capabilityProfile?:{key:string;label:string;description?:string}; grantKinds?:ConnectionGrantKind[]; ownershipModes:ToolConnectionOwnership[]; whenToUse:string; defaults?:{serverUrl?:string;serverUrlTemplate?:string;discoveryUrl?:string|null;serviceHost?:string;templateKey?:string;authorizationEndpoint?:string;tokenEndpoint?:string;metadataUrl?:string;scopesHint?:string[];oauthAuthorizationParams?:{access_type?:"offline";prompt?:"consent"};toolArgumentDefaults?:Record<string,unknown>;mcpSessionRequired?:boolean}; tenantFields?:FieldDef[]; extensionFields?:FieldDef[]; configRequirements?:{atLeastOneOf?:string[]}; credentialFields?:FieldDef[]; keyPlacement?:{location:"header"|"query"|"body_json"|"env";name:string;prefix?:string|null}; credentialSources?:{vercelConnect?:{services:string[];principalModes:VercelConnectPrincipalMode[];scopes:string[];header:{name:string;prefix?:string|null}}}; guidanceMd:string; consoleLinks?:{register?:string;keys?:string;settings?:string;docs?:string}; warnings?:string[]; variants?:Array<{key:string;label:string;whenToUse:string;tenantFields?:FieldDef[]}>; riskTier:"S1"|"S2"|"S3"|"S4"; requiredResourceFilters?:string[] }
export interface AppDefinition { aiConnectionRouter?: { pluginKey: string }; agentInstructions?: import("../connection-instructions.js").ConnectionInstructionTemplate; schemaVersion:1; slug:string; name:string; description:string; categories:AppCategory[]; tags?:string[]; featured?:boolean; branding:{logoUrl:string;darkLogoUrl?:string;backgroundColor?:string;accentColor?:string}; urlPatterns:string[]; docsUrl?:string; setupPrerequisite?:{title:string;description:string;steps?:string[];actionLabel:string;actionUrl:string}; redirectConstraints?:OAuthRedirectConstraints; methods:ConnectionMethodDef[]; suggestable?:boolean; availability?:{available:boolean;reason?:string;robotEmail?:string}; ownershipAvailability?:Partial<Record<ToolConnectionOwnership,boolean>> }
export type SelfServeMcpAuthMode =
@@ -12,6 +12,7 @@ export type SelfServeMcpAuthMode =
| "customer_oauth"
| "api_key"
| "generated_url"
| "public"
| "provider_approval";
export interface SelfServeMcpResearchEntry {
@@ -24,6 +25,7 @@ export interface SelfServeMcpResearchEntry {
authMode: SelfServeMcpAuthMode;
prerequisite: string;
riskTier: "S1" | "S2" | "S3" | "S4";
verifiedAt?: string;
}
export interface SelfServeMcpResearchManifest {
+2
View File
@@ -1242,6 +1242,8 @@ export interface PaperclipQuestionSetQuestion {
helpText?: string;
required: boolean;
answerMode: "single_select" | "multi_select" | "text";
/** Editable starting text, never an implicit or submitted answer. Text mode only. */
initialText?: string;
options?: PaperclipQuestionSetOption[];
customAnswer?: {
enabled: true;
@@ -7,7 +7,7 @@ const appBrandAssetUrlSchema=z.string().refine((value)=>{
try{return new URL(value).protocol==="https:";}catch{return false;}
},{message:"Brand assets must be HTTPS URLs or local /brands/apps SVG/PNG paths"});
const field=z.object({key:z.string().min(1),label:z.string().min(1),type:z.enum(["text","password","textarea","datetime","select","checkbox"]),required:z.boolean().optional(),advanced:z.boolean().optional(),hidden:z.boolean().optional(),placeholder:z.string().optional(),helperMd:z.string().optional(),secret:z.boolean().optional(),prefix:z.string().optional(),defaultValue:z.union([z.string(),z.boolean()]).optional(),validation:z.object({pattern:z.string().optional(),maxLength:z.number().int().positive().optional()}).optional(),options:z.array(z.object({value:z.string(),label:z.string()})).optional(),transport:z.object({location:z.enum(["query","header"]),name:z.string().min(1),format:z.enum(["string","csv","boolean"]).optional(),omitFalse:z.boolean().optional()}).optional()}).superRefine((v,c)=>{if(v.required&&v.type!=="checkbox"&&!v.placeholder)c.addIssue({code:"custom",message:"Required fields need placeholders",path:["placeholder"]});if(v.type==="select"&&(!v.options||v.options.length===0))c.addIssue({code:"custom",message:"Select fields need options",path:["options"]});if(v.hidden&&v.defaultValue===undefined)c.addIssue({code:"custom",message:"Hidden fields need defaults",path:["defaultValue"]})});
export const connectionMethodDefSchema=z.object({key:z.string().min(1),label:z.string().min(1).optional(),purpose:z.union([toolConnectionPurposeSchema,z.literal("ai")]).optional(),provider:z.enum(["slack","github","discord","microsoft-teams","telegram","agentmail","imessage-photon"]).optional(),transport:z.union([toolConnectionTransportSchema,z.literal("runtime_auth")]),ai:aiConnectionMetadataSchema.optional(),auth:z.enum(["oauth","api_key","none"]),oauthStrategy:z.enum(["paperclip_cloud_connector","paperclip_id_connector"]).optional(),connectorProfile:z.string().regex(/^[a-z0-9]+(?:[.-][a-z0-9]+)*$/).optional(),oauthClientSecretRequired:z.boolean().optional(),capabilityProfile:z.object({key:z.string().min(1),label:z.string().min(1),description:z.string().min(1).optional()}).optional(),grantKinds:z.array(connectionGrantKindSchema).min(1).optional(),ownershipModes:z.array(toolConnectionOwnershipSchema).min(1),whenToUse:z.string().min(1),defaults:z.object({serverUrl:z.string().url().optional(),serverUrlTemplate:z.string().regex(/^https:\/\//).optional(),discoveryUrl:z.string().url().nullable().optional(),serviceHost:z.string().optional(),templateKey:z.string().optional(),authorizationEndpoint:z.string().url().optional(),tokenEndpoint:z.string().url().optional(),metadataUrl:z.string().url().optional(),scopesHint:z.array(z.string()).optional(),oauthAuthorizationParams:z.object({access_type:z.literal("offline").optional(),prompt:z.literal("consent").optional()}).optional(),toolArgumentDefaults:z.record(z.string(),z.unknown()).optional()}).optional(),tenantFields:z.array(field).optional(),extensionFields:z.array(field).optional(),configRequirements:z.object({atLeastOneOf:z.array(z.string().min(1)).min(1).optional()}).optional(),credentialFields:z.array(field).optional(),keyPlacement:z.object({location:z.enum(["header","query","body_json","env"]),name:z.string().min(1),prefix:z.string().nullable().optional()}).optional(),credentialSources:z.object({vercelConnect:z.object({services:z.array(z.string().min(1)).min(1),principalModes:z.array(z.enum(["app","user"])).min(1),scopes:z.array(z.string().min(1)).min(1),header:z.object({name:z.string().min(1),prefix:z.string().nullable().optional()})}).optional()}).optional(),guidanceMd:z.string().min(1),consoleLinks:z.object({register:z.string().url().optional(),keys:z.string().url().optional(),settings:z.string().url().optional(),docs:z.string().url().optional()}).optional(),warnings:z.array(z.string()).optional(),variants:z.array(z.object({key:z.string(),label:z.string(),whenToUse:z.string(),tenantFields:z.array(field).optional()})).optional(),riskTier:z.enum(["S1","S2","S3","S4"]),requiredResourceFilters:z.array(z.string()).optional()}).superRefine((v,c)=>{if((v.transport==="runtime_auth")!==Boolean(v.ai))c.addIssue({code:"custom",message:"Runtime authentication requires AI metadata and AI metadata requires runtime_auth",path:["ai"]});if(v.ai&&!AI_CONNECTION_CAPABILITIES[v.ai.provider].methods[v.ai.method])c.addIssue({code:"custom",message:"Unsupported AI sign-in method",path:["ai","method"]});if(v.ai&&v.auth!==(v.ai.method==="subscription"?"oauth":"api_key"))c.addIssue({code:"custom",message:"AI sign-in method must match authentication",path:["auth"]});const purpose=v.purpose??"tool";if((purpose==="ai")!==(v.transport==="runtime_auth"))c.addIssue({code:"custom",message:"AI methods require runtime_auth and runtime_auth requires AI purpose",path:["purpose"]});if(v.transport==="chat_sdk"&&purpose!=="channel")c.addIssue({code:"custom",message:"Chat SDK methods must be channel connections",path:["purpose"]});if(purpose==="channel"&&v.transport!=="chat_sdk"&&!(v.provider==="agentmail"&&v.transport==="rest_api"))c.addIssue({code:"custom",message:"Channel connections must use the Chat SDK transport",path:["transport"]});if(purpose==="channel"&&!v.provider)c.addIssue({code:"custom",message:"Channel connections require a chat provider",path:["provider"]});if(v.auth==="api_key"&&!v.keyPlacement&&purpose!=="channel")c.addIssue({code:"custom",message:"API-key tool methods require keyPlacement",path:["keyPlacement"]});if(v.oauthStrategy&&v.auth!=="oauth")c.addIssue({code:"custom",message:"OAuth strategies require OAuth auth",path:["oauthStrategy"]});if(v.oauthStrategy&&!v.connectorProfile)c.addIssue({code:"custom",message:"Paperclip Cloud connector methods require connectorProfile",path:["connectorProfile"]});if(v.connectorProfile&&!v.oauthStrategy)c.addIssue({code:"custom",message:"connectorProfile requires a Paperclip Cloud OAuth strategy",path:["connectorProfile"]});if(v.credentialSources?.vercelConnect&&(v.transport!=="mcp_remote"||v.auth==="none"))c.addIssue({code:"custom",message:"Vercel Connect requires an authenticated remote MCP method",path:["credentialSources","vercelConnect"]});const keys=new Set([...(v.tenantFields??[]),...(v.extensionFields??[])].map((entry)=>entry.key));for(const key of v.configRequirements?.atLeastOneOf??[])if(!keys.has(key))c.addIssue({code:"custom",mLine truncated
export const connectionMethodDefSchema=z.object({key:z.string().min(1),label:z.string().min(1).optional(),purpose:z.union([toolConnectionPurposeSchema,z.literal("ai")]).optional(),provider:z.enum(["slack","github","discord","microsoft-teams","telegram","agentmail","imessage-photon"]).optional(),transport:z.union([toolConnectionTransportSchema,z.literal("runtime_auth")]),ai:aiConnectionMetadataSchema.optional(),auth:z.enum(["oauth","api_key","none"]),oauthStrategy:z.enum(["paperclip_cloud_connector","paperclip_id_connector"]).optional(),connectorProfile:z.string().regex(/^[a-z0-9]+(?:[.-][a-z0-9]+)*$/).optional(),oauthClientSecretRequired:z.boolean().optional(),oauthClientRegistration:z.literal("dcr").optional(),capabilityProfile:z.object({key:z.string().min(1),label:z.string().min(1),description:z.string().min(1).optional()}).optional(),grantKinds:z.array(connectionGrantKindSchema).min(1).optional(),ownershipModes:z.array(toolConnectionOwnershipSchema).min(1),whenToUse:z.string().min(1),defaults:z.object({serverUrl:z.string().url().optional(),serverUrlTemplate:z.string().regex(/^https:\/\//).optional(),discoveryUrl:z.string().url().nullable().optional(),serviceHost:z.string().optional(),templateKey:z.string().optional(),authorizationEndpoint:z.string().url().optional(),tokenEndpoint:z.string().url().optional(),metadataUrl:z.string().url().optional(),scopesHint:z.array(z.string()).optional(),oauthAuthorizationParams:z.object({access_type:z.literal("offline").optional(),prompt:z.literal("consent").optional()}).optional(),toolArgumentDefaults:z.record(z.string(),z.unknown()).optional(),mcpSessionRequired:z.boolean().optional()}).optional(),tenantFields:z.array(field).optional(),extensionFields:z.array(field).optional(),configRequirements:z.object({atLeastOneOf:z.array(z.string().min(1)).min(1).optional()}).optional(),credentialFields:z.array(field).optional(),keyPlacement:z.object({location:z.enum(["header","query","body_json","env"]),name:z.string().min(1),prefix:z.string().nullable().optional()}).optional(),credentialSources:z.object({vercelConnect:z.object({services:z.array(z.string().min(1)).min(1),principalModes:z.array(z.enum(["app","user"])).min(1),scopes:z.array(z.string().min(1)).min(1),header:z.object({name:z.string().min(1),prefix:z.string().nullable().optional()})}).optional()}).optional(),guidanceMd:z.string().min(1),consoleLinks:z.object({register:z.string().url().optional(),keys:z.string().url().optional(),settings:z.string().url().optional(),docs:z.string().url().optional()}).optional(),warnings:z.array(z.string()).optional(),variants:z.array(z.object({key:z.string(),label:z.string(),whenToUse:z.string(),tenantFields:z.array(field).optional()})).optional(),riskTier:z.enum(["S1","S2","S3","S4"]),requiredResourceFilters:z.array(z.string()).optional()}).superRefine((v,c)=>{if((v.transport==="runtime_auth")!==Boolean(v.ai))c.addIssue({code:"custom",message:"Runtime authentication requires AI metadata and AI metadata requires runtime_auth",path:["ai"]});if(v.ai&&!AI_CONNECTION_CAPABILITIES[v.ai.provider].methods[v.ai.method])c.addIssue({code:"custom",message:"Unsupported AI sign-in method",path:["ai","method"]});if(v.ai&&v.auth!==(v.ai.method==="subscription"?"oauth":"api_key"))c.addIssue({code:"custom",message:"AI sign-in method must match authentication",path:["auth"]});if(v.oauthClientRegistration&&(v.auth!=="oauth"||v.transport!=="mcp_remote"||!v.ownershipModes.includes("dcr")))c.addIssue({code:"custom",message:"DCR client registration requires a remote MCP OAuth method with DCR ownership",path:["oauthClientRegistration"]});if(v.defaults?.mcpSessionRequired&&v.transport!=="mcp_remote")c.addIssue({code:"custom",message:"MCP session initialization preferences require remote MCP transport",path:["defaults","mcpSessionRequired"]});const purpose=v.purpose??"tool";if((purpose==="ai")!==(v.transport==="runtime_auth"))c.addIssue({code:"custom",message:"AI methods require runtime_auth and runtime_auth requires AI purpose",path:["purpose"]});if(v.transport==="chat_sdk"&&purpose!=="channel")c.addIssue({code:"custom",message:"Chat SDK methods must be channel connections",path:["purpose"]});if(purpose==="channel"&&v.transport!=="chat_sdk"&&!(v.provider==="agentmail"&&v.transport==="rest_api"))c.addIssue({code:"custom",message:"Channel connections must use the Chat SDK transport",path:["transport"]});if(purpose==="channel"&&!v.provider)c.addIssue({code:"custom",message:"Channel connections require a chat provider",path:["provider"]});if(v.auth==="api_key"&&!v.keyPlacement&&purpose!=="channel")c.addIssue({code:"custom",message:"API-key tool methods require keyPlacement",path:["keyPlacement"]});if(v.oauthStrategy&&v.auth!=="oauth")c.addIssue({code:"custom",message:"OAuth strategies require OAuth auth",path:["oauthStrategy"]});if(v.oauthStrategy&&!v.connectorProfile)c.addIssue({code:"custom",message:"Paperclip Cloud connector methods require connectorProfile",path:["connectorProfile"]});if(v.connectorProfile&&!Line truncated
export const appDefinitionSchema=z.object({agentInstructions:connectionInstructionTemplateSchema.optional(),aiConnectionRouter:z.object({pluginKey:z.string().min(1)}).optional(),schemaVersion:z.literal(1),slug:z.string().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/),name:z.string().min(1),description:z.string().min(1),categories:z.array(z.enum(["ai","analytics","commerce","communication","content","data","developer","productivity","other"])).min(1),tags:z.array(z.string().min(1)).optional(),featured:z.boolean().optional(),branding:z.object({logoUrl:appBrandAssetUrlSchema,darkLogoUrl:appBrandAssetUrlSchema.optional(),backgroundColor:z.string().optional(),accentColor:z.string().optional()}),urlPatterns:z.array(z.string()),docsUrl:z.string().url().optional(),setupPrerequisite:z.object({title:z.string().min(1),description:z.string().min(1),steps:z.array(z.string().min(1)).min(1).optional(),actionLabel:z.string().min(1),actionUrl:z.string().url()} ).optional(),redirectConstraints:z.enum(["https-or-loopback-http"]).optional(),methods:z.array(connectionMethodDefSchema),suggestable:z.boolean().optional(),availability:z.object({available:z.boolean(),reason:z.string().optional(),robotEmail:z.string().optional()}).optional(),ownershipAvailability:z.object({platform_shared:z.boolean().optional(),platform_provisioned:z.boolean().optional(),customer:z.boolean().optional(),dcr:z.boolean().optional()}).optional()}).superRefine((value, ctx) => {
if (value.aiConnectionRouter) {
if (value.methods.length !== 0) ctx.addIssue({ code: "custom", message: "Pooled connectors use existing connections, not authentication methods", path: ["methods"] });
@@ -2,6 +2,7 @@ import { describe, expect, it } from "vitest";
import { MAX_ISSUE_REQUEST_DEPTH } from "../index.js";
import {
addIssueCommentSchema,
paperclipQuestionSetPayloadSchema,
issueCommentMetadataSchema,
createIssueSchema,
issueBlockedInboxAttentionSchema,
@@ -160,6 +161,17 @@ describe("issue validators", () => {
expect(parsed.comment).toBe("Done\n\n- Verified the route");
});
it("preserves literal escapes in multiline issue descriptions and comments", () => {
const content = `${"0123456789abcdef".repeat(2)}\n`;
const description = ["Write the exact JSON content.", "```json", JSON.stringify({ content }), "```"].join("\n");
expect(createIssueSchema.parse({ title: "Native memory", description }).description).toBe(description);
expect(updateIssueSchema.parse({ description, comment: description }).description).toBe(description);
expect(updateIssueSchema.parse({ comment: description }).comment).toBe(description);
const storedJson = createIssueSchema.parse({ title: "Native memory", description }).description!.split("\n")[2]!;
expect(JSON.parse(storedJson).content).toBe(content);
expect(Buffer.byteLength(JSON.parse(storedJson).content, "utf8")).toBe(33);
});
it("validates structured unblock descriptors", () => {
expect(
updateIssueSchema.parse({
@@ -654,3 +666,27 @@ describe("issue validators", () => {
expect(parsed.success).toBe(false);
});
});
describe("persisted canonical question initial text", () => {
const question = { id: "draft", prompt: "Edit", required: true, answerMode: "text" };
const input = (patch: Record<string, unknown>) => ({ schema: "paperclip.question_set.v1", questions: [{ ...question, ...patch }] });
it("retains exact editable content through the server payload validator", () => {
for (const initialText of ["", " Draft\n漢字\n", "x".repeat(100_000)]) {
expect(paperclipQuestionSetPayloadSchema.parse(input({ initialText }))).toEqual(input({ initialText }));
}
});
it("counts mixed BMP and astral draft text like JSON Schema", () => {
for (const codePoints of [100_000, 100_001]) {
const initialText = "a".repeat(codePoints - 1) + "😀";
expect(Buffer.byteLength(JSON.stringify(input({ initialText })))).toBeLessThan(196 * 1024);
expect(paperclipQuestionSetPayloadSchema.safeParse(input({ initialText })).success).toBe(codePoints === 100_000);
}
});
it("rejects non-text modes and unbounded or nonstring defaults", () => {
for (const initialText of [null, 1, "x".repeat(100_001), "a".repeat(100_000) + "😀"]) {
expect(paperclipQuestionSetPayloadSchema.safeParse(input({ initialText })).success).toBe(false);
}
expect(paperclipQuestionSetPayloadSchema.safeParse(input({ answerMode: "single_select", options: [{ id: "a", label: "A" }], initialText: "a" })).success).toBe(false);
});
});
+7 -2
View File
@@ -1286,6 +1286,7 @@ const paperclipQuestionSchema = z
helpText: z.string().max(4000).optional(),
required: z.boolean(),
answerMode: z.enum(["single_select", "multi_select", "text"]),
initialText: z.string().refine(value => value.length <= 200000 && Array.from(value).length <= 100000, "initial text exceeds 100000 Unicode code points").optional(),
options: z.array(paperclipQuestionOptionSchema).max(128).optional(),
customAnswer: z
.object({
@@ -1306,6 +1307,9 @@ const paperclipQuestionSchema = z
.optional(),
})
.superRefine((value, ctx) => {
if (value.initialText !== undefined && value.answerMode !== "text") {
ctx.addIssue({ code: z.ZodIssueCode.custom, message: "only text questions can define initial text", path: ["initialText"] });
}
if (
value.answerMode === "text" &&
value.options &&
@@ -1456,8 +1460,9 @@ export const askUserQuestionsPayloadSchema = z
export const askUserQuestionsAnswerSchema = z.object({
questionId: z.string().trim().min(1).max(160),
optionIds: z.array(z.string().trim().min(1).max(160)).max(129),
otherText: multilineTextSchema
.pipe(z.string().trim().max(100000))
// The persisted question determines whether this is exact editor text or a
// legacy custom answer; normalize only after that trusted context is known.
otherText: z.string().max(100000)
.nullable()
.optional(),
});
+4
View File
@@ -1,6 +1,10 @@
import { z } from "zod";
export function normalizeEscapedLineBreaks(value: string): string {
// Recover legacy single-line payloads that encoded their own line breaks.
// A real multiline body already has decoded transport newlines; decoding
// it again corrupts literal escapes in JSON, code, paths and agent prompts.
if (/[\r\n]/.test(value)) return value;
return value
.replace(/\\r\\n/g, "\n")
.replace(/\\n/g, "\n")