The Open Framework for Building Agents
Remove the Neon connector name flag from integration setup (#2847)
vercel-gh-bot-5[bot]883416f472e1
diff --git a/apps/docs/lib/integrations/connection-setup.test.ts b/apps/docs/lib/integrations/connection-setup.test.tsindex 40cefd93d..c0ab28a1a 100644--- a/apps/docs/lib/integrations/connection-setup.test.ts+++ b/apps/docs/lib/integrations/connection-setup.test.ts@@ -51,7 +51,8 @@ describe("Neon connection setup", () => {expect(buildConnectionInstall(integration)).toContain("eve add connection/neon");expect(quickStart).toContain('url: "https://mcp.neon.tech/mcp"');expect(quickStart).toContain('auth: connect({ connector: "neon/neon", principalType: "app" })');- expect(setup.configureVariants["mcp:app"]).toContain("vercel connect create neon --name neon");+ expect(setup.configureVariants["mcp:app"]).toContain("vercel connect create neon");+ expect(setup.configureVariants["mcp:app"]).not.toContain("--name");});});diff --git a/apps/docs/lib/integrations/connection-setup.ts b/apps/docs/lib/integrations/connection-setup.tsindex 26e4f47e0..1bb0d28e0 100644--- a/apps/docs/lib/integrations/connection-setup.ts+++ b/apps/docs/lib/integrations/connection-setup.ts@@ -140,7 +140,9 @@ const buildConfigureVariant = (integration: Integration, auth: AuthMode): stringconst connector = connectorOf(integration.slug, spec, auth);const modeService = spec.connectorServices?.[auth];const connectorService = modeService ?? spec.connectorService ?? connector;- const namedConnector = modeService !== undefined || spec.connectorService !== undefined;+ const namedConnector =+ !spec.defaultConnectorName &&+ (modeService !== undefined || spec.connectorService !== undefined);sections.push(["Link your project, create the connector, and pull OIDC locally:",diff --git a/apps/docs/lib/integrations/data.ts b/apps/docs/lib/integrations/data.tsindex 24a218fdb..58c601aab 100644--- a/apps/docs/lib/integrations/data.ts+++ b/apps/docs/lib/integrations/data.ts@@ -53,6 +53,8 @@ export interface ConnectionSpec {connectorService?: string;/** Auth-mode-specific services passed to `vercel connect create`. */connectorServices?: Partial<Record<AuthMode, string>>;+ /** Whether `vercel connect create` should use the service's default name. */+ defaultConnectorName?: boolean;/** Supported auth modes in display order; the first is the default. */authModes: AuthMode[];/** API-key wiring when `authModes` includes `apiKey`. */@@ -131,6 +133,7 @@ interface ConnectionPresentation extends Presentation {connectors?: Partial<Record<AuthMode, string>>;connectorService?: string;connectorServices?: Partial<Record<AuthMode, string>>;+ defaultConnectorName?: boolean;configureNote?: string;configureNotes?: Partial<Record<AuthMode, string>>;}@@ -1933,6 +1936,7 @@ const connectionPresentations: Record<string, ConnectionPresentation> = {authModes: ["app"],connector: "neon/neon",connectorService: "neon",+ defaultConnectorName: true,configureNote:"Neon's MCP server can modify projects and databases. Use a development or test project, review tool calls, and append `?readonly=true` or `?projectId=<project-id>` to scope access.",},@@ -2441,6 +2445,9 @@ function buildConnection(entry: IntegrationEntry): Integration {if (presentation.connectorServices !== undefined) {spec.connectorServices = presentation.connectorServices;}+ if (presentation.defaultConnectorName !== undefined) {+ spec.defaultConnectorName = presentation.defaultConnectorName;+ }if (identity.mcp !== undefined) spec.mcp = identity.mcp;if (identity.openapi !== undefined) spec.openapi = identity.openapi;if (presentation.configureNote !== undefined) spec.configureNote = presentation.configureNote;