diff --git a/packages/shared/src/app-definitions.test.ts b/packages/shared/src/app-definitions.test.ts index 72d9c53b126..70168a1e8a1 100644 --- a/packages/shared/src/app-definitions.test.ts +++ b/packages/shared/src/app-definitions.test.ts @@ -607,6 +607,22 @@ describe("AppDefinition catalog", () => { scopesHint: ["default"], }); }); + it.each([ + ["arcade", "mcp", /Arcade MCP gateway URL/], + ["composio", "mcp", /Composio Connect.*MCP session URL/], + ["executor", "mcp", /Executor MCP URL/], + ["github", "mcp-key", /GitHub personal access token/], + ["linear", "mcp-oauth", /Linear through OAuth/], + ["notion", "mcp-oauth", /Sign in to Notion/], + ["sentry", "mcp-oauth", /Sign in to Sentry/], + ["slack", "mcp-oauth", /Slack app through OAuth/], + ])("explains the connection method for %s/%s", (slug, key, explanation) => { + const method = APP_DEFINITIONS.find((app) => app.slug === slug)?.methods.find( + (candidate) => candidate.key === key, + ); + expect(method?.whenToUse).toMatch(explanation); + expect(method?.whenToUse).not.toContain("quickest setup"); + }); it("preserves required Linear OAuth scopes", () => expect( APP_DEFINITIONS.find((app) => app.slug === "linear")?.methods[0]?.defaults diff --git a/packages/shared/src/app-definitions/arcade.json b/packages/shared/src/app-definitions/arcade.json index c8379450055..e06153d1603 100644 --- a/packages/shared/src/app-definitions/arcade.json +++ b/packages/shared/src/app-definitions/arcade.json @@ -22,7 +22,7 @@ "dcr", "customer" ], - "whenToUse": "Use the provider-hosted connection for the quickest setup.", + "whenToUse": "Paste your Arcade MCP gateway URL to use the tools selected for that gateway.", "defaults": {}, "guidanceMd": "Paste your Arcade MCP URL. Sign in if required, or add a token or headers under Advanced authentication.", "riskTier": "S3", diff --git a/packages/shared/src/app-definitions/composio.json b/packages/shared/src/app-definitions/composio.json index 19bc349f24e..bb2a87f63a0 100644 --- a/packages/shared/src/app-definitions/composio.json +++ b/packages/shared/src/app-definitions/composio.json @@ -26,7 +26,7 @@ "dcr", "customer" ], - "whenToUse": "Use the provider-hosted connection for the quickest setup.", + "whenToUse": "Sign in to Composio Connect, or use an MCP session URL you configured in Composio.", "defaults": { "serverUrl": "https://connect.composio.dev/mcp" }, diff --git a/packages/shared/src/app-definitions/executor.json b/packages/shared/src/app-definitions/executor.json index f01e0cd4e11..808b4d024ee 100644 --- a/packages/shared/src/app-definitions/executor.json +++ b/packages/shared/src/app-definitions/executor.json @@ -22,7 +22,7 @@ "dcr", "customer" ], - "whenToUse": "Use the provider-hosted connection for the quickest setup.", + "whenToUse": "Paste your Executor MCP URL to use the integrations configured in Executor.", "defaults": {}, "guidanceMd": "Paste your Executor MCP URL. Sign in if required, or add a token or headers under Advanced authentication.", "riskTier": "S3", diff --git a/packages/shared/src/app-definitions/github.json b/packages/shared/src/app-definitions/github.json index 9330e1f675d..09fce99b9ea 100644 --- a/packages/shared/src/app-definitions/github.json +++ b/packages/shared/src/app-definitions/github.json @@ -52,7 +52,7 @@ "ownershipModes": [ "customer" ], - "whenToUse": "Use the provider-hosted connection for the quickest setup.", + "whenToUse": "Use a fine-grained GitHub personal access token for repository tools through GitHub's MCP server.", "defaults": { "serverUrl": "https://api.githubcopilot.com/mcp/" }, diff --git a/packages/shared/src/app-definitions/linear.json b/packages/shared/src/app-definitions/linear.json index 28d77bf3700..715720354d7 100644 --- a/packages/shared/src/app-definitions/linear.json +++ b/packages/shared/src/app-definitions/linear.json @@ -22,7 +22,7 @@ "ownershipModes": [ "customer" ], - "whenToUse": "Use the provider-hosted connection for the quickest setup.", + "whenToUse": "Authorize Linear through OAuth for workspace issue tools.", "defaults": { "serverUrl": "https://mcp.linear.app/mcp", "authorizationEndpoint": "https://linear.app/oauth/authorize", diff --git a/packages/shared/src/app-definitions/notion.json b/packages/shared/src/app-definitions/notion.json index 54d07923fc2..c996c77b72c 100644 --- a/packages/shared/src/app-definitions/notion.json +++ b/packages/shared/src/app-definitions/notion.json @@ -22,7 +22,7 @@ "customer", "dcr" ], - "whenToUse": "Use the provider-hosted connection for the quickest setup.", + "whenToUse": "Sign in to Notion to read and update workspace pages through its hosted MCP server.", "defaults": { "serverUrl": "https://mcp.notion.com/mcp", "scopesHint": [ diff --git a/packages/shared/src/app-definitions/sentry.json b/packages/shared/src/app-definitions/sentry.json index b626e6e870d..1c6e25c3685 100644 --- a/packages/shared/src/app-definitions/sentry.json +++ b/packages/shared/src/app-definitions/sentry.json @@ -23,7 +23,7 @@ "customer", "dcr" ], - "whenToUse": "Use the provider-hosted connection for the quickest setup.", + "whenToUse": "Sign in to Sentry to investigate errors and issues through its hosted MCP server.", "defaults": { "serverUrl": "https://mcp.sentry.dev/mcp", "discoveryUrl": "https://sentry.io/.well-known/oauth-authorization-server", diff --git a/packages/shared/src/app-definitions/slack.json b/packages/shared/src/app-definitions/slack.json index 208c7aaccb8..7d593a07add 100644 --- a/packages/shared/src/app-definitions/slack.json +++ b/packages/shared/src/app-definitions/slack.json @@ -22,7 +22,7 @@ "ownershipModes": [ "customer" ], - "whenToUse": "Use the provider-hosted connection for the quickest setup.", + "whenToUse": "Authorize your Slack app through OAuth to give agents Slack workspace tools.", "defaults": { "serverUrl": "https://mcp.slack.com/mcp", "authorizationEndpoint": "https://slack.com/oauth/v2/authorize", diff --git a/scripts/ingest-app-definitions.mjs b/scripts/ingest-app-definitions.mjs index 7902a48008e..24282944e67 100644 --- a/scripts/ingest-app-definitions.mjs +++ b/scripts/ingest-app-definitions.mjs @@ -208,12 +208,12 @@ const apps = [ ), ], ...[ - ["arcade", "Arcade", "https://api.arcade.dev/*", "https://docs.arcade.dev/en/operate/governance/mcp-gateways"], - ["executor", "Executor", "https://executor.sh/*", "https://executor.sh/docs/mcp-proxy"], - ].map(([slug, name, pattern, docsUrl]) => [ + ["arcade", "Arcade", "https://api.arcade.dev/*", "https://docs.arcade.dev/en/operate/governance/mcp-gateways", "Paste your Arcade MCP gateway URL to use the tools selected for that gateway."], + ["executor", "Executor", "https://executor.sh/*", "https://executor.sh/docs/mcp-proxy", "Paste your Executor MCP URL to use the integrations configured in Executor."], + ].map(([slug, name, pattern, docsUrl, whenToUse]) => [ slug, name, `Use the tools exposed by your ${name} MCP connection.`, "productivity", new URL(pattern).hostname, [pattern], method("mcp", "mcp_remote", "none", {}, "S3", `Paste your ${name} MCP URL. Sign in if required, or add a token or headers under Advanced authentication.`, { - label: "Connect MCP server", ownershipModes: ["dcr", "customer"], consoleLinks: { docs: docsUrl }, + label: "Connect MCP server", whenToUse, ownershipModes: ["dcr", "customer"], consoleLinks: { docs: docsUrl }, }), { featured: true, docsUrl }, ]), @@ -294,6 +294,7 @@ const apps = [ "Create a fine-grained token limited to the repositories agents should use.", { label: "Personal access token (advanced)", + whenToUse: "Use a fine-grained GitHub personal access token for repository tools through GitHub's MCP server.", purpose: "tool", credentialFields: [ field("authorization", "GitHub token", "github_pat_..."), @@ -363,6 +364,7 @@ const apps = [ "Connect a Slack workspace and limit access to the channels agents need.", { label: "Use this connection as an agent tool", + whenToUse: "Authorize your Slack app through OAuth to give agents Slack workspace tools.", purpose: "tool", ownershipModes: ["customer"], requiredResourceFilters: ["workspace", "channel"], @@ -496,6 +498,7 @@ const apps = [ "S3", "Connect Notion for workspace content. Share only the pages and databases agents should use.", { + whenToUse: "Sign in to Notion to read and update workspace pages through its hosted MCP server.", requiredResourceFilters: ["workspace", "page", "database"], ...vercelConnect("notion", "user", ["*"]), }, @@ -561,6 +564,7 @@ const apps = [ "S2", "Register a Linear OAuth app and add Paperclip's redirect URI before connecting.", { + whenToUse: "Authorize Linear through OAuth for workspace issue tools.", ownershipModes: ["customer"], requiredResourceFilters: ["workspace", "team", "project"], ...vercelConnect("linear", "user", ["read", "write"]), @@ -716,7 +720,7 @@ const apps = [ "productivity", "composio.dev", ["https://backend.composio.dev/*", "https://connect.composio.dev/*", "https://mcp.composio.dev/*", "https://*.composio.dev/*"], - [method("mcp", "mcp_remote", "none", { serverUrl: "https://connect.composio.dev/mcp" }, "S3", "Sign in to Composio Connect, or paste an externally configured MCP session URL and headers.", { label: "Composio Connect", ownershipModes: ["dcr", "customer"] })], + [method("mcp", "mcp_remote", "none", { serverUrl: "https://connect.composio.dev/mcp" }, "S3", "Sign in to Composio Connect, or paste an externally configured MCP session URL and headers.", { label: "Composio Connect", whenToUse: "Sign in to Composio Connect, or use an MCP session URL you configured in Composio.", ownershipModes: ["dcr", "customer"] })], { featured: true, docsUrl: "https://docs.composio.dev/docs/composio-connect" }, ], [ @@ -787,7 +791,10 @@ const apps = [ }, "S2", "Connect the Sentry organization and projects agents need for incident work.", - { requiredResourceFilters: ["organization", "project", "environment"] }, + { + whenToUse: "Sign in to Sentry to investigate errors and issues through its hosted MCP server.", + requiredResourceFilters: ["organization", "project", "environment"], + }, ), ], [