π OpenHands: AI-Driven Development
chore: bump @openhands/extensions to 0.34.0 (#18842)
Alona072a05d009f1
diff --git a/__tests__/components/features/mcp-page/install-server-modal.test.tsx b/__tests__/components/features/mcp-page/install-server-modal.test.tsxindex 6b918b0333..1690c974e5 100644--- a/__tests__/components/features/mcp-page/install-server-modal.test.tsx+++ b/__tests__/components/features/mcp-page/install-server-modal.test.tsx@@ -24,9 +24,6 @@ import {type IntegrationCatalogEntry as MarketplaceEntry,} from "@openhands/extensions/integrations";import { getMcpMarketplaceCatalog } from "#/utils/mcp-marketplace-utils";-// Sentry's entry from OpenHands/extensions#818, which adds the `mcp` and-// `api` options; the released catalog pinned here does not carry it yet.-import sentryWithTokenOption from "../../../fixtures/integrations/sentry.extensions-afb5930.json";function renderWith(ui: React.ReactNode) {return render(ui, {@@ -578,7 +575,7 @@ describe("InstallServerModal", () => {});describe("entries with several installable options", () => {- const sentry = sentryWithTokenOption as MarketplaceEntry;+ const sentry = MCP_MARKETPLACE.find((e) => e.id === "sentry")!;it("selects the preferred OAuth option and offers the token option", async () => {renderWith(diff --git a/__tests__/fixtures/integrations/sentry.extensions-afb5930.json b/__tests__/fixtures/integrations/sentry.extensions-afb5930.jsondeleted file mode 100644index dac140191f..0000000000--- a/__tests__/fixtures/integrations/sentry.extensions-afb5930.json+++ /dev/null@@ -1,111 +0,0 @@-{- "id": "sentry",- "name": "Sentry",- "description": "Triage issues, inspect events, and run Seer fixes against your Sentry org.",- "categories": [- "Observability",- "Engineering"- ],- "appUrl": "https://sentry.io",- "docsUrl": "https://docs.sentry.io/product/sentry-mcp/",- "notes": "Natural target for engineering support agents.",- "popularityRank": 36,- "connectionOptions": [- {- "id": "oauth-mcp",- "provider": "mcp",- "transport": {- "kind": "shttp",- "url": "https://mcp.sentry.dev/mcp"- },- "auth": {- "strategy": "oauth2",- "oauth": {- "authorizationUrl": "https://sentry.io/oauth/authorize",- "tokenUrl": "https://sentry.io/oauth/token",- "scopes": [- "project:read",- "event:read",- "org:read"- ]- }- }- },- {- "id": "oauth",- "provider": "http",- "auth": {- "strategy": "oauth2",- "oauth": {- "authorizationUrl": "https://sentry.io/oauth/authorize",- "tokenUrl": "https://sentry.io/oauth/token",- "scopes": [- "project:read",- "event:read",- "org:read"- ]- }- },- "http": {- "apiBaseUrl": "https://sentry.io/api/0",- "openApiUrl": "https://raw.githubusercontent.com/getsentry/sentry/master/api-docs/openapi.json"- }- },- {- "id": "mcp",- "provider": "mcp",- "transport": {- "kind": "shttp",- "url": "https://mcp.sentry.dev/mcp"- },- "auth": {- "strategy": "oauth2",- "oauth": {- "clientAuthentication": "none"- }- }- },- {- "id": "api",- "provider": "mcp",- "transport": {- "kind": "stdio",- "serverName": "sentry",- "command": "npx",- "args": [- "-y",- "@sentry/mcp-server"- ],- "envFields": [- {- "key": "SENTRY_ACCESS_TOKEN",- "label": "Personal auth token",- "type": "password",- "placeholder": "sntryu_...",- "required": true,- "helperText": "Create a [personal auth token](https://docs.sentry.io/account/auth-tokens/) with org:read, project:read, project:write, team:read, team:write, event:read and event:write. With read scopes only, tools that change issues or projects fail. On a self-hosted server, create it there."- },- {- "key": "SENTRY_HOST",- "label": "Self-hosted Sentry host",- "type": "text",- "placeholder": "sentry.example.com",- "required": false,- "helperText": "Leave empty for sentry.io. For a self-hosted server, enter its hostname without https://."- }- ]- },- "auth": {- "strategy": "api_key"- }- }- ],- "iconBg": "#362D59",- "logoUrl": "https://cdn.simpleicons.org/sentry/FFFFFF",- "keywords": [- "errors",- "observability",- "monitoring",- "crash"- ]-}diff --git a/__tests__/utils/mcp-marketplace-utils.test.ts b/__tests__/utils/mcp-marketplace-utils.test.tsindex b37a65ebe0..43a0ed2df5 100644--- a/__tests__/utils/mcp-marketplace-utils.test.ts+++ b/__tests__/utils/mcp-marketplace-utils.test.ts@@ -16,13 +16,7 @@ import {marketplaceEntryMatchesQuery,urlsMatch,} from "#/utils/mcp-marketplace-utils";-import {- INTEGRATION_CATALOG as MCP_MARKETPLACE,- type IntegrationCatalogEntry,-} from "@openhands/extensions/integrations";-// Sentry's entry from OpenHands/extensions#818, which adds the `mcp` and-// `api` options; the released catalog pinned here does not carry it yet.-import sentryWithTokenOption from "../fixtures/integrations/sentry.extensions-afb5930.json";+import { INTEGRATION_CATALOG as MCP_MARKETPLACE } from "@openhands/extensions/integrations";const mcpMarketplace = getMcpMarketplaceCatalog(MCP_MARKETPLACE);const slackEntry = mcpMarketplace.find((e) => e.id === "slack")!;@@ -209,32 +203,21 @@ describe("getInstallableMcpConnectionOption", () => {});describe("getInstallableMcpConnectionOptions", () => {- const sentryFixture = sentryWithTokenOption as IntegrationCatalogEntry;-it("offers Sentry's OAuth and personal-token options, OAuth first", () => {- const options = getInstallableMcpConnectionOptions(sentryFixture);-- expect(options.map((option) => option.id)).toEqual(["mcp", "api"]);- expect(options[1].transport).toMatchObject({- kind: "stdio",- command: "npx",- args: ["-y", "@sentry/mcp-server"],- });- expect(getInstallableMcpConnectionOption(sentryFixture)).toBe(options[0]);- });-- it("offers only installable options for Sentry in the real catalog", () => {const sentry = MCP_MARKETPLACE.find((e) => e.id === "sentry")!;const options = getInstallableMcpConnectionOptions(sentry);+ expect(options.map((option) => option.id)).toEqual(["mcp", "api"]);expect(options[0]).toMatchObject({transport: { kind: "shttp", url: "https://mcp.sentry.dev/mcp" },auth: { strategy: "oauth2" },});- for (const option of options) {- expect(option.auth.oauth?.authorizationUrl).toBeUndefined();- expect(option.auth.oauth?.tokenUrl).toBeUndefined();- }+ expect(options[1].transport).toMatchObject({+ kind: "stdio",+ command: "npx",+ args: ["-y", "@sentry/mcp-server"],+ });+ expect(getInstallableMcpConnectionOption(sentry)).toBe(options[0]);});it("keeps a single option for entries with one installable option", () => {diff --git a/package-lock.json b/package-lock.jsonindex 6f302fd331..654b376399 100644--- a/package-lock.json+++ b/package-lock.json@@ -13,7 +13,7 @@"@heroui/react": "2.8.10","@microlink/react-json-view": "1.31.25","@monaco-editor/react": "4.7.0",- "@openhands/extensions": "0.33.0",+ "@openhands/extensions": "0.34.0","@openhands/typescript-client": "1.57.0","@react-router/node": "7.18.2","@react-router/serve": "7.18.2",@@ -4138,9 +4138,9 @@"license": "MIT"},"node_modules/@openhands/extensions": {- "version": "0.33.0",- "resolved": "https://registry.npmjs.org/@openhands/extensions/-/extensions-0.33.0.tgz",- "integrity": "sha512-Idmbo+Z6ESCUSEc8WFa61UP06CPJAP+vusUrunM+wjE11crjcnm7BgF6ZilkQLa8i4+bUjtGMx4qk3HXjAL6cw==",+ "version": "0.34.0",+ "resolved": "https://registry.npmjs.org/@openhands/extensions/-/extensions-0.34.0.tgz",+ "integrity": "sha512-kttWMQz6kQ6IkKlenC2jtfTtmHf0G/ef64m6uCsH5a/gAreA1+TiMPg7U6wAxbFo7f2h7k+1E36i184PRdNLEA==","license": "MIT","engines": {"node": ">=18.20.0"diff --git a/package.json b/package.jsonindex 6a7dee5f2e..0ab381551b 100644--- a/package.json+++ b/package.json@@ -23,7 +23,7 @@"@heroui/react": "2.8.10","@microlink/react-json-view": "1.31.25","@monaco-editor/react": "4.7.0",- "@openhands/extensions": "0.33.0",+ "@openhands/extensions": "0.34.0","@openhands/typescript-client": "1.57.0","@react-router/node": "7.18.2","@react-router/serve": "7.18.2",