From 9a6e61cf36f5908f82fa8368a8a91d694dc68407 Mon Sep 17 00:00:00 2001 From: Dotta <34892728+cryppadotta@users.noreply.github.com> Date: Mon, 23 Nov 2026 10:00:00 -0600 Subject: [PATCH] fix(connectors): show Anthropic as "Anthropic (Claude)" so a Claude search finds it (#22631) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Thinking Path > - Paperclip is the open source app people use to manage AI agents for work > - The Connectors catalog shows each provider as a card with a name and a short description. > - The Anthropic card shows the name "Anthropic". People who search for "Claude" do not find it. > - The card description says "Use Anthropic APIs with a restricted key." This text describes an obsolete REST setup. The connector now offers only a Claude subscription or a Claude API key. > - This pull request changes the card name to "Anthropic (Claude)" and the description to "Connect to Claude with Anthropic." > - The benefit is that a search for "Claude" finds the connector, and the description matches what the connector does. ## Linked Issues or Issue Description No public issue exists. This is an enhancement. **What existing behavior does this improve?** The Anthropic card in the Connectors catalog. The card name and the card description change. **Subsystem affected** UI: the Connectors catalog (Apps). Shared: the Anthropic app definition. **Current behavior** The Connectors catalog shows the Anthropic connector as "Anthropic" with the description "Use Anthropic APIs with a restricted key." A search for "claude" in the Connectors search box does not show the Anthropic card. **Proposed behavior** The card shows the name "Anthropic (Claude)" and the description "Connect to Claude with Anthropic." The slug stays `anthropic`. **Reason and benefit** Most people know the product as Claude. They search for "Claude" and do not find the connector. The old description refers to a "restricted key", which the connector does not use. After this change, a search for "Claude" finds the connector, and the description is correct. **Breaking changes** None. The slug, the setup links, the saved connections, and the AI provider bindings do not change. ## What Changed - `packages/shared/src/app-definitions/anthropic.json`: Change `name` to "Anthropic (Claude)". Change `description` to "Connect to Claude with Anthropic." - `scripts/ingest-app-definitions.mjs`: Make the same change in the generator source. A regeneration now gives the same `anthropic.json`. - `ui/src/pages/apps/Browse.test.tsx`: Add a test. The test searches the Connectors catalog for "claude". It checks that the Anthropic card shows the new name and description, and that the "Connect Anthropic (Claude)" button is present. - `tests/ai-connections-app/app.spec.ts`: Update the opt-in browser test to find the "Connect Anthropic (Claude)" button. The test now escapes the provider name for the regular expression. - `tests/runner-e2e/source-sdk-public-inputs.json`: Refresh the pinned hash of `anthropic.json` with `node tests/runner-e2e/source-sdk-public-inputs.mjs --write`. ## Verification - `cd ui && npx vitest run src/pages/apps/Browse.test.tsx`: 118 passed. The new test fails on the old definition and passes on the new definition. - `cd ui && npx vitest run src/pages/apps/AppsConnect.test.tsx src/pages/apps/AppDetail.test.tsx src/pages/apps/app-connect-policy.test.ts src/pages/apps/app-detail/AdvancedPanel.render.test.tsx`: 369 passed. - `npx vitest run packages/shared/src/app-definitions.test.ts packages/shared/src/connection-instructions.test.ts packages/shared/src/app-definitions-url.test.ts`: 59 passed. - `node --test scripts/app-definition-overrides.test.mjs`: 3 passed. - `cd server && npx vitest run src/__tests__/connection-intents-service.test.ts -t "obsolete Anthropic tool requests"`: 1 passed. Agent connection search for "Anthropic" still finds the connector through the `anthropic` slug. - `node scripts/ingest-app-definitions.mjs --definitions-only` in a temporary copy: the generated `anthropic.json` is the same as the committed file. - `pnpm verify` asks for broad CI coverage because `scripts/ingest-app-definitions.mjs` is a global CI input. CI supplies that coverage. ## Risks - Low risk. The change is display text only. - The slug stays `anthropic`. Saved connections, setup links, and AI provider bindings do not change. - Connection request cards and setup headers that use the connector name now show "Anthropic (Claude)". This is the intended result. - The AI method labels ("Claude subscription", "Claude API key") do not change. ## Model Used - Claude Opus 5.5 (`claude-opus-5-5`), Anthropic, used through Claude Code with tool use (shell, file edit, test execution). ## Checklist - [x] I have included a thinking path that traces from project context to this change - [x] I have specified the model used (with version and capability details) - [x] I have checked ROADMAP.md and confirmed this PR does not duplicate planned core work - [x] I have searched GitHub for duplicate or related PRs and linked them above - [x] I have either (a) linked existing issues with `Fixes: #` / `Closes #` / `Refs #` OR (b) described the issue in-PR following the relevant issue template - [x] I have not referenced internal/instance-local Paperclip issues or links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip` URLs) - [x] My branch name describes the change (e.g. `docs/...`, `fix/...`) and contains no internal Paperclip ticket id or instance-derived details - [x] I have run tests locally and they pass - [x] I have added or updated tests where applicable - [x] I have updated relevant documentation to reflect my changes - [x] I have considered and documented any risks above - [ ] All Paperclip CI gates are green - [ ] Greptile is 5/5 with no open P2s, recommendations, or follow-ups - [ ] I will address all Greptile and reviewer comments before requesting merge 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 --- packages/shared/src/app-definitions/anthropic.json | 4 ++-- scripts/ingest-app-definitions.mjs | 4 ++-- tests/ai-connections-app/app.spec.ts | 5 +++-- tests/runner-e2e/source-sdk-public-inputs.json | 2 +- ui/src/pages/apps/Browse.test.tsx | 12 ++++++++++++ 5 files changed, 20 insertions(+), 7 deletions(-) diff --git a/packages/shared/src/app-definitions/anthropic.json b/packages/shared/src/app-definitions/anthropic.json index 52eb85f3600..6c7cd96eefb 100644 --- a/packages/shared/src/app-definitions/anthropic.json +++ b/packages/shared/src/app-definitions/anthropic.json @@ -1,8 +1,8 @@ { "schemaVersion": 1, "slug": "anthropic", - "name": "Anthropic", - "description": "Use Anthropic APIs with a restricted key.", + "name": "Anthropic (Claude)", + "description": "Connect to Claude with Anthropic.", "categories": [ "ai" ], diff --git a/scripts/ingest-app-definitions.mjs b/scripts/ingest-app-definitions.mjs index 2529060fadb..05d997338f1 100644 --- a/scripts/ingest-app-definitions.mjs +++ b/scripts/ingest-app-definitions.mjs @@ -926,8 +926,8 @@ const apps = [ ], [ "anthropic", - "Anthropic", - "Use Anthropic APIs with a restricted key.", + "Anthropic (Claude)", + "Connect to Claude with Anthropic.", "ai", "anthropic.com", ["https://api.anthropic.com/*"], diff --git a/tests/ai-connections-app/app.spec.ts b/tests/ai-connections-app/app.spec.ts index 0acea3c9752..a9ad160b434 100644 --- a/tests/ai-connections-app/app.spec.ts +++ b/tests/ai-connections-app/app.spec.ts @@ -13,8 +13,9 @@ test.beforeAll(async ({ request }) => { test("existing Connections lists AI providers and keeps account management compact", async ({ page, request }, testInfo) => { await page.goto(`/${prefix}/apps`); - for (const provider of ["Anthropic", "OpenAI", "OpenRouter", "Grok"]) { - await expect(page.getByRole("button", { name: new RegExp(`^(Add account|Connect) ${provider}$`) })).toBeVisible(); + for (const provider of ["Anthropic (Claude)", "OpenAI", "OpenRouter", "Grok"]) { + const escaped = provider.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); + await expect(page.getByRole("button", { name: new RegExp(`^(Add account|Connect) ${escaped}$`) })).toBeVisible(); } const { connections } = await (await request.get(`/api/companies/${companyId}/ai-connections`)).json(); const account = connections.find((entry: { ownership: string; isDefault: boolean }) => entry.ownership === "personal" && entry.isDefault); diff --git a/tests/runner-e2e/source-sdk-public-inputs.json b/tests/runner-e2e/source-sdk-public-inputs.json index aefc53d7242..7017340875f 100644 --- a/tests/runner-e2e/source-sdk-public-inputs.json +++ b/tests/runner-e2e/source-sdk-public-inputs.json @@ -82,7 +82,7 @@ "packages/shared/src/app-definitions/1password.json": "c11a4777de2c78805b2d391da5eb075a9511e0f8", "packages/shared/src/app-definitions/agentmail.json": "edd0799b1980d0f5f43b89c8f7a1173dc623f7fa", "packages/shared/src/app-definitions/airtable.json": "c9b216a2bbe693bc6167413255d41c33512d418d", - "packages/shared/src/app-definitions/anthropic.json": "52eb85f36005f031cf83e2f92e4e53cec9966d50", + "packages/shared/src/app-definitions/anthropic.json": "6c7cd96eefb4db6dca244fcddeb1c4a585a2af14", "packages/shared/src/app-definitions/api-key-generic.json": "09e6d4295513ac9f1002eaf37c34e7c2d00a3c05", "packages/shared/src/app-definitions/arcade.json": "c8379450055d4ea226d229b1cbf99c7ed2e52beb", "packages/shared/src/app-definitions/asana.json": "4cc2859043a30037fd5cdc3ebd0909938b9344a8", diff --git a/ui/src/pages/apps/Browse.test.tsx b/ui/src/pages/apps/Browse.test.tsx index 1c6d21308e6..800140377fd 100644 --- a/ui/src/pages/apps/Browse.test.tsx +++ b/ui/src/pages/apps/Browse.test.tsx @@ -320,6 +320,18 @@ describe("Connectors landing page", () => { expect(container.textContent).not.toContain("No connectors match"); }); + it("finds the Anthropic connector when people search for Claude", async () => { + listGalleryMock.mockResolvedValue({ apps: ["anthropic", "openai"].map(slug => getAppStoreDefinition(slug)) }); + await renderBrowse(false); + await search("claude"); + const anthropic = container.querySelector('[data-app-slug="anthropic"]'); + expect(anthropic?.textContent).toContain("Anthropic (Claude)"); + expect(anthropic?.textContent).toContain("Connect to Claude with Anthropic."); + expect(anthropic?.textContent).not.toContain("restricted key"); + expect(container.querySelector('[aria-label="Connect Anthropic (Claude)"]')).not.toBeNull(); + expect(container.querySelector('[data-app-slug="openai"]')).toBeNull(); + }); + it("does not advertise Tailscale setup or request tailnets for non-instance-admin members", async () => { boardAccessMock.mockResolvedValue({ source: "session", isInstanceAdmin: false }); await renderBrowse(false);