mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-01 18:07:00 +01:00
fix(connections): explain eight connector setup methods
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
0d3e7bf6ac
commit
cee9c51852
10 files changed
+37
-14
No files matched your search
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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"
|
||||
},
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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/"
|
||||
},
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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": [
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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"],
|
||||
},
|
||||
),
|
||||
],
|
||||
[
|
||||
|
||||
Reference in new issue
Block a user