Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
fix(marketplace): connect Shopify via PKCE loopback, not DCR
rubenluetke10-beep2d6914add08c
diff --git a/docs/marketplace/plugin-auth-audit.md b/docs/marketplace/plugin-auth-audit.mdindex 367f26673b..1f89352282 100644--- a/docs/marketplace/plugin-auth-audit.md+++ b/docs/marketplace/plugin-auth-audit.md@@ -16,7 +16,7 @@ The real runtime was exercised on Windows. Linux/macOS behavior and clean instal“Not verified” and “Not run” are BLOCKED stages, never implied successes. Each blocker names its owner and next action. The machine-readable artifact records all seven stages: UI, browser, callback, connected, smoke, reconnect and restart. Restart is unverified for all 46 plugins.-Shopify (added 2026-09-21, after the RUB-94 observation) has no UI attempt yet; its row records the implemented browser-primary configuration and the pending first journey. The historical counts above still describe the 2026-09-12 observation.+Shopify (added 2026-09-21, after the RUB-94 observation) has one observed UI attempt: the card renders and Connect was clicked, but the initial DCR configuration failed before any browser page opened. Its row records the corrected browser-primary configuration and the pending publisher/app journey. The historical counts above still describe the 2026-09-12 observation.| Plugin | Add works | Browser auth | Callback | Connected state | Real smoke test | Reconnect | OS/provider limitations | Result | Remaining blocker ||---|---|---|---|---|---|---|---|---|---|@@ -66,7 +66,7 @@ Shopify (added 2026-09-21, after the RUB-94 observation) has no UI attempt yet;| `zoom` (Zoom) | Connect entry observed; completion blocked | Not reached | Not verified | Not verified | Not run | Not completed | Windows UI only; other OSes not exercised | **BLOCKED** | Publisher OAuth client is missing; the real UI displays publisher setup pending. **Owner:** Project publisher. **Next:** Provision the official shared OAuth registration and any required review, then repeat the full clean browser journey. Observation: Connect Zoom Browser sign-in is not available yet. Browser sign-in is pending publisher setup. No developer account or client registration is required from you. Use your own OAuth client (advanced) Cancel Continue || `figma` (Figma) | Connect entry observed; completion blocked | Not reached | Not verified | Not verified | Not run | Not completed | Windows UI only; other OSes not exercised | **BLOCKED** | Publisher OAuth client is missing; the real UI displays publisher setup pending. **Owner:** Project publisher. **Next:** Provision the official shared OAuth registration and any required review, then repeat the full clean browser journey. Observation: Connect Figma Browser sign-in is not available yet. Browser sign-in is pending publisher setup. No developer account or client registration is required from you. Use your own OAuth client (advanced) Expert token alternative Cancel Continue || `amd_gpu` (AMD GPU Status) | Connect entry observed; completion blocked | Not reached | Not verified | Not verified | Not run | Not completed | Supported Linux AMD host required | **BLOCKED** | Real UI reports unsupported OS: this connector needs a compatible Linux AMD host with AMD SMI. **Owner:** Hardware test operator. **Next:** Run the no-login connection and real telemetry read on a supported Linux AMD host, then verify lifecycle. Observation: Plugins Skills Plugins MCPs Plugins AMD GPU Status Unsupported on this device · Home & Devices Connect AMD GPU telemetry is unavailable on this operating system. This connector requires a compatible Linux AMD host with AMD SMI. Read AMD GPU utilization, temperature and driver data through AMD SMI... |-| `shopify` (Shopify) | Not yet attempted; entry added 2026-09-21 | Not verified | Not verified | Not verified | Not run | Not completed | Windows UI only; other OSes not exercised | **BLOCKED** | The official hosted MCP with browser OAuth (Dynamic Client Registration, no static client) is implemented, so no publisher or developer setup is needed. The first real Connect journey still awaits a store-owner sign-in. **Owner:** Provider account holder. **Next:** Click Connect on the Shopify card, sign in with the Shopify account that owns the store, then verify all seven stages with a real read-only plugin action. Observation: DCR protected-resource metadata at setup.shopify.com verified live (resource https://setup.shopify.com/mcp). No grant, callback or action observed yet. |+| `shopify` (Shopify) | Connect entry observed; card renders with logo, Connect fails honestly | Provider page not reached (wrong flow, now corrected) | Not verified | Not verified | Not run | Not completed | Windows UI only; other OSes not exercised | **BLOCKED** | The first configuration used Dynamic Client Registration, but Shopify publishes no DCR registration_endpoint, so Connect failed before any browser page opened ("provider request failed"). The entry now uses Authorization Code + PKCE loopback against the publisher-shared app (loopback http://127.0.0.1:3130/oauth/callback, RFC 8707 resource https://setup.shopify.com/mcp, comma-joined read scopes). The shared app is not provisioned yet, so the dialog reports browser sign-in pending; no store-owner sign-in has been completed either. **Owner:** Project publisher. **Next:** Register the official shared Shopify app (redirect URI above, read scopes for products, orders, customers and discounts), provision publisher_shopify_oauth_client_id/secret, then repeat the full clean browser journey with a real read-only plugin action. Until then an expert can connect with their own Shopify app client through the dialog's advanced option. Observation: Connect on the Shopify card returned the generic failure dialog on 2026-09-21; live metadata at setup.shopify.com serves OAuth discovery but no registration endpoint. |## Provider-specific interpretation and primary sources@@ -77,7 +77,7 @@ Shopify (added 2026-09-21, after the RUB-94 observation) has no UI attempt yet;- Meta supports OAuth. The current connector's token-paste path does not meet the browser standard. The remaining publisher work is a confidential HTTPS callback/broker and required app review. The [archived official OAuth client implementation](https://raw.githubusercontent.com/facebookarchive/php-graph-sdk/5.x/src/Facebook/Authentication/OAuth2Client.php) demonstrates OAuth token exchange; it is historical evidence, not current approval of this project's app. Current Meta documentation could not be retrieved during investigation (HTTP 429), so unsupported-provider claims are not justified.- Notion, Linear and Cloudflare reached official consent pages. Workspace/cloud-resource grants remain pending account-holder approval. Their pre-existing connections were preserved.- Higgsfield initially returned `invalid_scope`. The scope-selection fix uses protected-resource scopes instead of the issuer-wide scope set. A new real UI Connect run reached the official [Higgsfield sign-in page](https://higgsfield.ai/de/auth/sign-in), inspected in the browser DOM, with `openid email offline_access`; the earlier error did not recur. This verifies the repaired sign-in entry, not successful authorization or a usable plugin. Account sign-in remains BLOCKED.-- Shopify connects through the official hosted MCP at `https://setup.shopify.com/mcp` with browser OAuth via Dynamic Client Registration (no static client, no publisher or developer setup). The DCR protected-resource metadata was verified live and names that MCP URL as its resource. The merchant consent journey still needs a store-owner sign-in. See [Shopify authentication](https://shopify.dev/docs/apps/build/authentication-authorization) and the [Storefront MCP](https://shopify.dev/docs/apps/build/storefront-mcp) family.+- Shopify connects through the official hosted MCP at `https://setup.shopify.com/mcp`. Shopify publishes OAuth discovery but NO Dynamic Client Registration endpoint, so the plugin uses Authorization Code + PKCE loopback against the publisher-shared app (loopback redirect, RFC 8707 resource indicator, comma-joined scopes) — the same shape as the other PKCE-loopback plugins. The remaining publisher work is registering that shared app with the loopback redirect URI and the four read scopes, then completing a store-owner sign-in. An expert can meanwhile connect with their own Shopify app client through the dialog's advanced option. See [Shopify authentication](https://shopify.dev/docs/apps/build/authentication-authorization) and the [Storefront MCP](https://shopify.dev/docs/apps/build/storefront-mcp) family.## Release and maintenance gatediff --git a/docs/marketplace/plugin-e2e-audit.json b/docs/marketplace/plugin-e2e-audit.jsonindex 0ef10625ce..cecafac376 100644--- a/docs/marketplace/plugin-e2e-audit.json+++ b/docs/marketplace/plugin-e2e-audit.json@@ -2279,50 +2279,50 @@{"plugin_id": "shopify","result": "BLOCKED",- "config_fingerprint": "fef79e6ed1eb84a93f0e23536302e7dab4ee4862b329947889e5f8549c069fdb",+ "config_fingerprint": "1d590b64b18618a2e164f2fd1718edc3e125c1baad9fa3b0d0bf5fdff4ed6324","initial_state": "connect_attempt","evidence": {"ui": {- "status": "BLOCKED",- "detail": "Entry added 2026-09-21; no Plugins UI run has been observed yet. The catalog entry is browser-primary (official hosted MCP with Dynamic Client Registration), so the first run is expected to open the official Shopify sign-in with no publisher or developer setup.",+ "status": "PASS",+ "detail": "Shopify card renders in the Plugins dialog (47th entry) with its logo; Connect attempted 2026-09-21 and failed with the generic dialog (see blocker).","reference": "docs/marketplace/plugin-auth-audit.md#audit-matrix"},"browser": {"status": "BLOCKED",- "detail": "Browser completion was not verified in this audit. A store-owner sign-in at the official Shopify authorization page has not been completed.",+ "detail": "Browser completion was not verified in this audit. The first configuration (hosted MCP with Dynamic Client Registration) was wrong: Shopify publishes no DCR registration_endpoint, so the flow failed before any browser page opened. The entry now uses Authorization Code + PKCE loopback against the publisher-shared app; the shared app registration and the store-owner sign-in are both still pending.","reference": "docs/marketplace/plugin-auth-audit.md#audit-matrix"},"callback": {"status": "BLOCKED",- "detail": "Callback completion was not verified in this audit. A store-owner sign-in at the official Shopify authorization page has not been completed.",+ "detail": "Callback completion was not verified in this audit. No authorization code has been issued yet; the shared app registration and the store-owner sign-in are still pending.","reference": "docs/marketplace/plugin-auth-audit.md#audit-matrix"},"connected": {"status": "BLOCKED",- "detail": "Connected completion was not verified in this audit. A store-owner sign-in at the official Shopify authorization page has not been completed.",+ "detail": "Connected completion was not verified in this audit. No grant exists yet; the shared app registration and the store-owner sign-in are still pending.","reference": "docs/marketplace/plugin-auth-audit.md#audit-matrix"},"smoke": {"status": "BLOCKED",- "detail": "Smoke completion was not verified in this audit. No live read-only Shopify action has been attested with a real grant; the DCR protected-resource metadata (resource https://setup.shopify.com/mcp) was verified over the network, which is endpoint evidence, not a grant.",+ "detail": "Smoke completion was not verified in this audit. No live read-only Shopify action has been attested with a real grant.","reference": "docs/marketplace/plugin-auth-audit.md#audit-matrix"},"reconnect": {"status": "BLOCKED",- "detail": "Reconnect completion was not verified in this audit. A store-owner sign-in at the official Shopify authorization page has not been completed.",+ "detail": "Reconnect completion was not verified in this audit. No grant exists yet; the shared app registration and the store-owner sign-in are still pending.","reference": "docs/marketplace/plugin-auth-audit.md#audit-matrix"},"restart": {"status": "BLOCKED",- "detail": "Restart completion was not verified in this audit. A store-owner sign-in at the official Shopify authorization page has not been completed.",+ "detail": "Restart completion was not verified in this audit. No grant exists yet; the shared app registration and the store-owner sign-in are still pending.","reference": "docs/marketplace/plugin-auth-audit.md#audit-matrix"}},"blocker": {- "reason": "No store-owner sign-in has been completed; the official hosted MCP with browser OAuth is implemented and needs no publisher or developer setup.",- "owner": "Provider account holder",- "next_action": "Click Connect on the Shopify card, sign in with the Shopify account that owns the store, then verify all seven stages with a real read-only plugin action.",- "evidence": "Entry added 2026-09-21 with DCR discovery https://setup.shopify.com/.well-known/oauth-protected-resource verified live; no grant, callback or action observed yet."+ "reason": "No publisher-shared Shopify OAuth app is provisioned yet, so the browser flow reports its honest pending state; no store-owner sign-in has been completed either.",+ "owner": "Project publisher",+ "next_action": "Register the official shared Shopify app (redirect http://127.0.0.1:3130/oauth/callback, read scopes for products, orders, customers and discounts), provision publisher_shopify_oauth_client_id/secret, then repeat the full clean browser journey with a real read-only action.",+ "evidence": "Connect on the Shopify card returned the generic failure dialog on 2026-09-21; live metadata shows setup.shopify.com serves OAuth discovery but no DCR registration endpoint."}}]diff --git a/jarvis/marketplace/plugins/shopify/plugin.json b/jarvis/marketplace/plugins/shopify/plugin.jsonindex 70d621c0ef..cc3ac15f45 100644--- a/jarvis/marketplace/plugins/shopify/plugin.json+++ b/jarvis/marketplace/plugins/shopify/plugin.json@@ -12,11 +12,23 @@"logo_color": "95BF47","featured": false,"longevity": "self_renewing",+ "oauth_client_family": "shopify","auth": {- "mode": "hosted_mcp_oauth_dcr",- "discovery_url": "https://setup.shopify.com/.well-known/oauth-protected-resource",- "mcp_url": "https://setup.shopify.com/mcp",- "refresh_supported": true+ "mode": "oauth_pkce_loopback",+ "authorization_url": "https://setup.shopify.com/oauth/authorize",+ "token_url": "https://setup.shopify.com/oauth/token",+ "client_id": "REPLACE_WITH_JARVIS_SHOPIFY_CLIENT_ID",+ "callback_port": 3130,+ "callback_path": "/oauth/callback",+ "scopes": [+ "read_products",+ "read_orders",+ "read_customers",+ "read_discounts"+ ],+ "scope_separator": "comma",+ "refresh_supported": true,+ "resource": "https://setup.shopify.com/mcp"},"mcp_server": {"transport": "http",@@ -24,7 +36,7 @@"auth_header_template": "Authorization: Bearer $plugin_shopify_access_token","risk_tier": "ask"},- "post_install_hint_md": "Sign in with the Shopify account that owns the store. Jarvis captures the callback and verifies the connection automatically. Available products, orders and customers follow your staff permissions and Shopify plan."+ "post_install_hint_md": "Connect signs you in at Shopify in the browser with read access to products, orders, customers and discounts. If the shared sign-in is not provisioned yet, register your own Shopify app and enter its client ID through the dialog's expert option instead."}}}diff --git a/jarvis/marketplace/seed_catalog.json b/jarvis/marketplace/seed_catalog.jsonindex 8b6dbca0dc..e68cabb92f 100644--- a/jarvis/marketplace/seed_catalog.json+++ b/jarvis/marketplace/seed_catalog.json@@ -1537,11 +1537,23 @@"logo_color": "95BF47","featured": false,"longevity": "self_renewing",+ "oauth_client_family": "shopify","auth": {- "mode": "hosted_mcp_oauth_dcr",- "discovery_url": "https://setup.shopify.com/.well-known/oauth-protected-resource",- "mcp_url": "https://setup.shopify.com/mcp",- "refresh_supported": true+ "mode": "oauth_pkce_loopback",+ "authorization_url": "https://setup.shopify.com/oauth/authorize",+ "token_url": "https://setup.shopify.com/oauth/token",+ "client_id": "REPLACE_WITH_JARVIS_SHOPIFY_CLIENT_ID",+ "callback_port": 3130,+ "callback_path": "/oauth/callback",+ "scopes": [+ "read_products",+ "read_orders",+ "read_customers",+ "read_discounts"+ ],+ "scope_separator": "comma",+ "refresh_supported": true,+ "resource": "https://setup.shopify.com/mcp"},"mcp_server": {"transport": "http",@@ -1549,7 +1561,7 @@"auth_header_template": "Authorization: Bearer $plugin_shopify_access_token","risk_tier": "ask"},- "post_install_hint_md": "Sign in with the Shopify account that owns the store. Jarvis captures the callback and verifies the connection automatically. Available products, orders and customers follow your staff permissions and Shopify plan."+ "post_install_hint_md": "Connect signs you in at Shopify in the browser with read access to products, orders, customers and discounts. If the shared sign-in is not provisioned yet, register your own Shopify app and enter its client ID through the dialog's expert option instead."}]}diff --git a/jarvis/setup/wizard.py b/jarvis/setup/wizard.pyindex 6ceaac3eb4..ff3db7f2dd 100644--- a/jarvis/setup/wizard.py+++ b/jarvis/setup/wizard.py@@ -586,6 +586,7 @@ SECRETS: list[SecretSpec] = [("figma", "Figma", "https://www.figma.com/developers/apps"),("hubspot", "HubSpot", "https://app.hubspot.com/"),("discord", "Discord", "https://discord.com/developers/applications"),+ ("shopify", "Shopify", "https://partners.shopify.com/"),)for prefix, env_prefix, kind in (("", "", "your own"),diff --git a/tests/unit/marketplace/test_catalog_seed.py b/tests/unit/marketplace/test_catalog_seed.pyindex a043c943eb..420cd87525 100644--- a/tests/unit/marketplace/test_catalog_seed.py+++ b/tests/unit/marketplace/test_catalog_seed.py@@ -433,17 +433,30 @@ def test_higgsfield_is_dcr_one_click_with_http_mcp() -> None:assert spec.native_tool is None-def test_shopify_is_dcr_one_click_with_http_mcp() -> None:+def test_shopify_is_pkce_loopback_with_resource_and_http_mcp() -> None:+ # 2026-09-21: Shopify publishes no DCR registration_endpoint, so the+ # first (DCR) attempt failed at connect with "provider request failed".+ # The plugin uses Authorization Code + PKCE loopback against the+ # publisher-shared app, with the RFC 8707 resource indicator the MCP+ # server requires.spec = _seed().by_id("shopify")assert spec is not Noneassert spec.display_name == "Shopify"assert spec.category == "Knowledge & Reading"- assert spec.auth.mode == "hosted_mcp_oauth_dcr"- assert spec.auth.discovery_url == (- "https://setup.shopify.com/.well-known/oauth-protected-resource"- )- assert spec.auth.mcp_url == "https://setup.shopify.com/mcp"+ assert spec.oauth_client_family == "shopify"+ assert spec.auth.mode == "oauth_pkce_loopback"+ assert spec.auth.authorization_url == "https://setup.shopify.com/oauth/authorize"+ assert spec.auth.token_url == "https://setup.shopify.com/oauth/token"+ assert spec.auth.callback_port == 3130+ assert spec.auth.scopes == [+ "read_products",+ "read_orders",+ "read_customers",+ "read_discounts",+ ]+ assert spec.auth.resource == "https://setup.shopify.com/mcp"assert spec.auth.refresh_supported is True+ assert spec.fallback_auth is Noneassert spec.mcp_server is not Noneassert spec.mcp_server["transport"] == "http"assert spec.mcp_server["url"] == "https://setup.shopify.com/mcp"diff --git a/tests/unit/marketplace/test_pkce_resource.py b/tests/unit/marketplace/test_pkce_resource.pyindex db13acc85b..e87b54d7bd 100644--- a/tests/unit/marketplace/test_pkce_resource.py+++ b/tests/unit/marketplace/test_pkce_resource.py@@ -80,6 +80,28 @@ def test_core_pkce_params_always_present():assert p["code_challenge_method"] == "S256"+def test_shopify_authorize_params_carry_resource_and_comma_scopes():+ """Regression: Shopify publishes no DCR registration_endpoint, so the+ plugin must go through PKCE loopback with the RFC 8707 resource+ indicator and comma-joined read scopes — never back to DCR."""+ from jarvis.marketplace.auth.oauth_pkce_loopback import PkceLoopbackHandler+ from jarvis.marketplace.connect_helpers import build_handler_from_catalog++ handler = build_handler_from_catalog("shopify")+ assert isinstance(handler, PkceLoopbackHandler)+ params = handler._authorize_params( # noqa: SLF001+ redirect_uri="http://127.0.0.1:3130/oauth/callback",+ state="s",+ challenge="c",+ )+ assert params["resource"] == "https://setup.shopify.com/mcp"+ assert params["scope"] == (+ "read_products,read_orders,read_customers,read_discounts"+ )+ assert params["code_challenge_method"] == "S256"+ assert params["redirect_uri"] == "http://127.0.0.1:3130/oauth/callback"++@pytest.mark.asyncioasync def test_exchange_includes_client_secret_when_configured(monkeypatch: pytest.MonkeyPatch,