Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

feat(desktop): Settings ▸ Connectors

bubu-dudu67e7e25d1b2a
diff --git a/cli/scripts/connector-assets.mjs b/cli/scripts/connector-assets.mjs
index 8369de086..1cd94420a 100644
--- a/cli/scripts/connector-assets.mjs
+++ b/cli/scripts/connector-assets.mjs
@@ -8,7 +8,7 @@
*
* src/lib/connectors/generated.spec.ts keeps the two in step.
*/
-import { readFileSync, readdirSync, writeFileSync, mkdirSync } from 'node:fs'
+import { readFileSync, readdirSync, writeFileSync, mkdirSync, rmSync } from 'node:fs'
import { fileURLToPath } from 'node:url'
import { join, extname, basename } from 'node:path'
@@ -33,8 +33,20 @@ export function render() {
}
}
+/** The desktop app's copy: the same icons as assets, and their names by code. */
+const desktop = fileURLToPath(new URL('../../desktop/', import.meta.url))
+export function renderDesktop() {
+ const names = readdirSync(join(assets, 'web/icons')).filter(name => ['.png', '.svg'].includes(extname(name))).sort()
+ const map = names.map(name => ` '${basename(name, extname(name))}': 'assets/connector-icons/${name}',`).join('\n')
+ return {
+ icons: Object.fromEntries(names.map(name => [name, readFileSync(join(assets, 'web/icons', name))])),
+ dart: `// Generated by cli/scripts/connector-assets.mjs from cli/src/lib/connectors/assets. Do not edit.\n\n/// Each connected service's icon, bundled with the app, by its code.\nconst connectorIcons = <String, String>{\n${map}\n};\n`,
+ }
+}
+
if (process.argv[1] === fileURLToPath(import.meta.url)) {
const files = render()
+ const app = renderDesktop()
if (process.argv.includes('--check')) {
const stale = Object.entries(files).filter(([name, body]) => {
try { return readFileSync(join(out, name), 'utf8') !== body } catch { return true }
@@ -43,5 +55,16 @@ if (process.argv[1] === fileURLToPath(import.meta.url)) {
} else {
mkdirSync(out, { recursive: true })
for (const [name, body] of Object.entries(files)) writeFileSync(join(out, name), body)
+ rmSync(join(desktop, 'assets/connector-icons'), { recursive: true, force: true })
+ mkdirSync(join(desktop, 'assets/connector-icons'), { recursive: true })
+ for (const [name, data] of Object.entries(app.icons)) writeFileSync(join(desktop, 'assets/connector-icons', name), data)
+ writeFileSync(join(desktop, 'assets/connector-icons/NOTICE.txt'), [
+ 'OpenHarness: service icons for Settings ▸ Connectors', '',
+ 'Copied by cli/scripts/connector-assets.mjs from cli/src/lib/connectors/assets/web/icons; do not edit here.', '',
+ "Sources: Autonomous's connector icons (cdn.autonomous.ai), Simple Icons (CC0) and the services' own",
+ 'favicons, resized to 64 px PNG or coloured SVG. Names and marks identify the services; they do not imply',
+ 'sponsorship or endorsement.', ''].join('\n'))
+ mkdirSync(join(desktop, 'lib/connectors'), { recursive: true })
+ writeFileSync(join(desktop, 'lib/connectors/connector_icons.dart'), app.dart)
}
}
diff --git a/desktop/assets/connector-icons/NOTICE.txt b/desktop/assets/connector-icons/NOTICE.txt
new file mode 100644
index 000000000..4f496bf9c
--- /dev/null
+++ b/desktop/assets/connector-icons/NOTICE.txt
@@ -0,0 +1,7 @@
+OpenHarness: service icons for Settings ▸ Connectors
+
+Copied by cli/scripts/connector-assets.mjs from cli/src/lib/connectors/assets/web/icons; do not edit here.
+
+Sources: Autonomous's connector icons (cdn.autonomous.ai), Simple Icons (CC0) and the services' own
+favicons, resized to 64 px PNG or coloured SVG. Names and marks identify the services; they do not imply
+sponsorship or endorsement.
diff --git a/desktop/assets/connector-icons/ahrefs.png b/desktop/assets/connector-icons/ahrefs.png
new file mode 100644
index 000000000..774de8b14
Binary files /dev/null and b/desktop/assets/connector-icons/ahrefs.png differ
diff --git a/desktop/assets/connector-icons/airtable.svg b/desktop/assets/connector-icons/airtable.svg
new file mode 100644
index 000000000..adb9cf19b
--- /dev/null
+++ b/desktop/assets/connector-icons/airtable.svg
@@ -0,0 +1 @@
+<svg fill="#18BFFF" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Airtable</title><path d="M11.992 1.966c-.434 0-.87.086-1.28.257L1.779 5.917c-.503.208-.49.908.012 1.116l8.982 3.558a3.266 3.266 0 0 0 2.454 0l8.982-3.558c.503-.196.503-.908.012-1.116l-8.957-3.694a3.255 3.255 0 0 0-1.272-.257zM23.4 8.056a.589.589 0 0 0-.222.045l-10.012 3.877a.612.612 0 0 0-.38.564v8.896a.6.6 0 0 0 .821.552L23.62 18.1a.583.583 0 0 0 .38-.551V8.653a.6.6 0 0 0-.6-.596zM.676 8.095a.644.644 0 0 0-.48.19C.086 8.396 0 8.53 0 8.69v8.355c0 .442.515.737.908.54l6.27-3.006.307-.147 2.969-1.436c.466-.22.43-.908-.061-1.092L.883 8.138a.57.57 0 0 0-.207-.044z"/></svg>
\ No newline at end of file
diff --git a/desktop/assets/connector-icons/amplitude.png b/desktop/assets/connector-icons/amplitude.png
new file mode 100644
index 000000000..973a332bb
Binary files /dev/null and b/desktop/assets/connector-icons/amplitude.png differ
diff --git a/desktop/assets/connector-icons/apollo_io.png b/desktop/assets/connector-icons/apollo_io.png
new file mode 100644
index 000000000..7d27de9d2
Binary files /dev/null and b/desktop/assets/connector-icons/apollo_io.png differ
diff --git a/desktop/assets/connector-icons/asana.png b/desktop/assets/connector-icons/asana.png
new file mode 100644
index 000000000..b633d0283
Binary files /dev/null and b/desktop/assets/connector-icons/asana.png differ
diff --git a/desktop/assets/connector-icons/atlassian.png b/desktop/assets/connector-icons/atlassian.png
new file mode 100644
index 000000000..64453108b
Binary files /dev/null and b/desktop/assets/connector-icons/atlassian.png differ
diff --git a/desktop/assets/connector-icons/attio.png b/desktop/assets/connector-icons/attio.png
new file mode 100644
index 000000000..6433b4a05
Binary files /dev/null and b/desktop/assets/connector-icons/attio.png differ
diff --git a/desktop/assets/connector-icons/brex.png b/desktop/assets/connector-icons/brex.png
new file mode 100644
index 000000000..408c182b2
Binary files /dev/null and b/desktop/assets/connector-icons/brex.png differ
diff --git a/desktop/assets/connector-icons/canva.png b/desktop/assets/connector-icons/canva.png
new file mode 100644
index 000000000..20c51d945
Binary files /dev/null and b/desktop/assets/connector-icons/canva.png differ
diff --git a/desktop/assets/connector-icons/carta.png b/desktop/assets/connector-icons/carta.png
new file mode 100644
index 000000000..d04684c75
Binary files /dev/null and b/desktop/assets/connector-icons/carta.png differ
diff --git a/desktop/assets/connector-icons/clay.png b/desktop/assets/connector-icons/clay.png
new file mode 100644
index 000000000..ddd461784
Binary files /dev/null and b/desktop/assets/connector-icons/clay.png differ
diff --git a/desktop/assets/connector-icons/clickup.png b/desktop/assets/connector-icons/clickup.png
new file mode 100644
index 000000000..9eb7d6d4f
Binary files /dev/null and b/desktop/assets/connector-icons/clickup.png differ
diff --git a/desktop/assets/connector-icons/close.png b/desktop/assets/connector-icons/close.png
new file mode 100644
index 000000000..557516d0c
Binary files /dev/null and b/desktop/assets/connector-icons/close.png differ
diff --git a/desktop/assets/connector-icons/cloudflare.png b/desktop/assets/connector-icons/cloudflare.png
new file mode 100644
index 000000000..1b0930ac1
Binary files /dev/null and b/desktop/assets/connector-icons/cloudflare.png differ
diff --git a/desktop/assets/connector-icons/cloudinary.png b/desktop/assets/connector-icons/cloudinary.png
new file mode 100644
index 000000000..3338a5787
Binary files /dev/null and b/desktop/assets/connector-icons/cloudinary.png differ
diff --git a/desktop/assets/connector-icons/coindesk.png b/desktop/assets/connector-icons/coindesk.png
new file mode 100644
index 000000000..a9d65dc04
Binary files /dev/null and b/desktop/assets/connector-icons/coindesk.png differ
diff --git a/desktop/assets/connector-icons/context7.png b/desktop/assets/connector-icons/context7.png
new file mode 100644
index 000000000..717c9f9f3
Binary files /dev/null and b/desktop/assets/connector-icons/context7.png differ
diff --git a/desktop/assets/connector-icons/craft.png b/desktop/assets/connector-icons/craft.png
new file mode 100644
index 000000000..f6f34c285
Binary files /dev/null and b/desktop/assets/connector-icons/craft.png differ
diff --git a/desktop/assets/connector-icons/crypto_com.png b/desktop/assets/connector-icons/crypto_com.png
new file mode 100644
index 000000000..7a9961f13
Binary files /dev/null and b/desktop/assets/connector-icons/crypto_com.png differ
diff --git a/desktop/assets/connector-icons/deepwiki.png b/desktop/assets/connector-icons/deepwiki.png
new file mode 100644
index 000000000..cd536093c
Binary files /dev/null and b/desktop/assets/connector-icons/deepwiki.png differ
diff --git a/desktop/assets/connector-icons/egnyte.png b/desktop/assets/connector-icons/egnyte.png
new file mode 100644
index 000000000..d4e37e722
Binary files /dev/null and b/desktop/assets/connector-icons/egnyte.png differ
diff --git a/desktop/assets/connector-icons/eraser.png b/desktop/assets/connector-icons/eraser.png
new file mode 100644
index 000000000..519e004a8
Binary files /dev/null and b/desktop/assets/connector-icons/eraser.png differ
diff --git a/desktop/assets/connector-icons/exa.png b/desktop/assets/connector-icons/exa.png
new file mode 100644
index 000000000..0a9e622f1
Binary files /dev/null and b/desktop/assets/connector-icons/exa.png differ
diff --git a/desktop/assets/connector-icons/figma-api-app.svg b/desktop/assets/connector-icons/figma-api-app.svg
new file mode 100644
index 000000000..d6042ef02
--- /dev/null
+++ b/desktop/assets/connector-icons/figma-api-app.svg
@@ -0,0 +1 @@
+<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 300" width="1667" height="2500"><style>.st0{fill:#0acf83}.st1{fill:#a259ff}.st2{fill:#f24e1e}.st3{fill:#ff7262}.st4{fill:#1abcfe}</style><title>Figma.logo</title><desc>Created using Figma</desc><path id="path0_fill" class="st0" d="M50 300c27.6 0 50-22.4 50-50v-50H50c-27.6 0-50 22.4-50 50s22.4 50 50 50z"/><path id="path1_fill" class="st1" d="M0 150c0-27.6 22.4-50 50-50h50v100H50c-27.6 0-50-22.4-50-50z"/><path id="path1_fill_1_" class="st2" d="M0 50C0 22.4 22.4 0 50 0h50v100H50C22.4 100 0 77.6 0 50z"/><path id="path2_fill" class="st3" d="M100 0h50c27.6 0 50 22.4 50 50s-22.4 50-50 50h-50V0z"/><path id="path3_fill" class="st4" d="M200 150c0 27.6-22.4 50-50 50s-50-22.4-50-50 22.4-50 50-50 50 22.4 50 50z"/></svg>
\ No newline at end of file
diff --git a/desktop/assets/connector-icons/fireflies.png b/desktop/assets/connector-icons/fireflies.png
new file mode 100644
index 000000000..906d0beea
Binary files /dev/null and b/desktop/assets/connector-icons/fireflies.png differ
diff --git a/desktop/assets/connector-icons/github.png b/desktop/assets/connector-icons/github.png
new file mode 100644
index 000000000..86c3d6d45
Binary files /dev/null and b/desktop/assets/connector-icons/github.png differ
diff --git a/desktop/assets/connector-icons/gitlab.svg b/desktop/assets/connector-icons/gitlab.svg
new file mode 100644
index 000000000..509fa7f41
--- /dev/null
+++ b/desktop/assets/connector-icons/gitlab.svg
@@ -0,0 +1 @@
+<svg fill="#FC6D26" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>GitLab</title><path d="m23.6004 9.5927-.0337-.0862L20.3.9814a.851.851 0 0 0-.3362-.405.8748.8748 0 0 0-.9997.0539.8748.8748 0 0 0-.29.4399l-2.2055 6.748H7.5375l-2.2057-6.748a.8573.8573 0 0 0-.29-.4412.8748.8748 0 0 0-.9997-.0537.8585.8585 0 0 0-.3362.4049L.4332 9.5015l-.0325.0862a6.0657 6.0657 0 0 0 2.0119 7.0105l.0113.0087.03.0213 4.976 3.7264 2.462 1.8633 1.4995 1.1321a1.0085 1.0085 0 0 0 1.2197 0l1.4995-1.1321 2.4619-1.8633 5.006-3.7489.0125-.01a6.0682 6.0682 0 0 0 2.0094-7.003z"/></svg>
\ No newline at end of file
diff --git a/desktop/assets/connector-icons/globalping.png b/desktop/assets/connector-icons/globalping.png
new file mode 100644
index 000000000..dbdf04035
Binary files /dev/null and b/desktop/assets/connector-icons/globalping.png differ
diff --git a/desktop/assets/connector-icons/gmail.png b/desktop/assets/connector-icons/gmail.png
new file mode 100644
index 000000000..c749e90c7
Binary files /dev/null and b/desktop/assets/connector-icons/gmail.png differ
diff --git a/desktop/assets/connector-icons/google_calendar.png b/desktop/assets/connector-icons/google_calendar.png
new file mode 100644
index 000000000..a62f7f5e9
Binary files /dev/null and b/desktop/assets/connector-icons/google_calendar.png differ
diff --git a/desktop/assets/connector-icons/google_drive.png b/desktop/assets/connector-icons/google_drive.png
new file mode 100644
index 000000000..67115779d
Binary files /dev/null and b/desktop/assets/connector-icons/google_drive.png differ
diff --git a/desktop/assets/connector-icons/granola.png b/desktop/assets/connector-icons/granola.png
new file mode 100644
index 000000000..93028aaf1
Binary files /dev/null and b/desktop/assets/connector-icons/granola.png differ
diff --git a/desktop/assets/connector-icons/guru.png b/desktop/assets/connector-icons/guru.png
new file mode 100644
index 000000000..22ad91ac6
Binary files /dev/null and b/desktop/assets/connector-icons/guru.png differ
diff --git a/desktop/assets/connector-icons/gusto.png b/desktop/assets/connector-icons/gusto.png
new file mode 100644
index 000000000..99ef49d8c
Binary files /dev/null and b/desktop/assets/connector-icons/gusto.png differ
diff --git a/desktop/assets/connector-icons/harmonic.png b/desktop/assets/connector-icons/harmonic.png
new file mode 100644
index 000000000..5060aadb7
Binary files /dev/null and b/desktop/assets/connector-icons/harmonic.png differ
diff --git a/desktop/assets/connector-icons/hex.png b/desktop/assets/connector-icons/hex.png
new file mode 100644
index 000000000..042cce77a
Binary files /dev/null and b/desktop/assets/connector-icons/hex.png differ
diff --git a/desktop/assets/connector-icons/honeycomb.png b/desktop/assets/connector-icons/honeycomb.png
new file mode 100644
index 000000000..251fa1c46
Binary files /dev/null and b/desktop/assets/connector-icons/honeycomb.png differ
diff --git a/desktop/assets/connector-icons/hubspot.png b/desktop/assets/connector-icons/hubspot.png
new file mode 100644
index 000000000..9230f04f0
Binary files /dev/null and b/desktop/assets/connector-icons/hubspot.png differ
diff --git a/desktop/assets/connector-icons/huggingface.png b/desktop/assets/connector-icons/huggingface.png
new file mode 100644
index 000000000..3060c1da9
Binary files /dev/null and b/desktop/assets/connector-icons/huggingface.png differ
diff --git a/desktop/assets/connector-icons/ifttt.png b/desktop/assets/connector-icons/ifttt.png
new file mode 100644
index 000000000..84f827db5
Binary files /dev/null and b/desktop/assets/connector-icons/ifttt.png differ
diff --git a/desktop/assets/connector-icons/incident_io.png b/desktop/assets/connector-icons/incident_io.png
new file mode 100644
index 000000000..10ad65a3a
Binary files /dev/null and b/desktop/assets/connector-icons/incident_io.png differ
diff --git a/desktop/assets/connector-icons/indeed.png b/desktop/assets/connector-icons/indeed.png
new file mode 100644
index 000000000..96784cdcd
Binary files /dev/null and b/desktop/assets/connector-icons/indeed.png differ
diff --git a/desktop/assets/connector-icons/jam.png b/desktop/assets/connector-icons/jam.png
new file mode 100644
index 000000000..9e81738cc
Binary files /dev/null and b/desktop/assets/connector-icons/jam.png differ
diff --git a/desktop/assets/connector-icons/klaviyo.png b/desktop/assets/connector-icons/klaviyo.png
new file mode 100644
index 000000000..8921e1df1
Binary files /dev/null and b/desktop/assets/connector-icons/klaviyo.png differ
diff --git a/desktop/assets/connector-icons/linear.png b/desktop/assets/connector-icons/linear.png
new file mode 100644
index 000000000..ffe851269
Binary files /dev/null and b/desktop/assets/connector-icons/linear.png differ
diff --git a/desktop/assets/connector-icons/mailerlite.png b/desktop/assets/connector-icons/mailerlite.png
new file mode 100644
index 000000000..ddd80fc63
Binary files /dev/null and b/desktop/assets/connector-icons/mailerlite.png differ
diff --git a/desktop/assets/connector-icons/make.png b/desktop/assets/connector-icons/make.png
new file mode 100644
index 000000000..dce99ee5d
Binary files /dev/null and b/desktop/assets/connector-icons/make.png differ
diff --git a/desktop/assets/connector-icons/mercury.png b/desktop/assets/connector-icons/mercury.png
new file mode 100644
index 000000000..3189433c3
Binary files /dev/null and b/desktop/assets/connector-icons/mercury.png differ
diff --git a/desktop/assets/connector-icons/mintlify.png b/desktop/assets/connector-icons/mintlify.png
new file mode 100644
index 000000000..334fe2d61
Binary files /dev/null and b/desktop/assets/connector-icons/mintlify.png differ
diff --git a/desktop/assets/connector-icons/miro.png b/desktop/assets/connector-icons/miro.png
new file mode 100644
index 000000000..9fbd98a0f
Binary files /dev/null and b/desktop/assets/connector-icons/miro.png differ
diff --git a/desktop/assets/connector-icons/mixpanel.png b/desktop/assets/connector-icons/mixpanel.png
new file mode 100644
index 000000000..37b30dd6d
Binary files /dev/null and b/desktop/assets/connector-icons/mixpanel.png differ
diff --git a/desktop/assets/connector-icons/mondaydotcom.png b/desktop/assets/connector-icons/mondaydotcom.png
new file mode 100644
index 000000000..574df55eb
Binary files /dev/null and b/desktop/assets/connector-icons/mondaydotcom.png differ
diff --git a/desktop/assets/connector-icons/motherduck.png b/desktop/assets/connector-icons/motherduck.png
new file mode 100644
index 000000000..d759633d6
Binary files /dev/null and b/desktop/assets/connector-icons/motherduck.png differ
diff --git a/desktop/assets/connector-icons/motion.png b/desktop/assets/connector-icons/motion.png
new file mode 100644
index 000000000..c7c9d3b0c
Binary files /dev/null and b/desktop/assets/connector-icons/motion.png differ
diff --git a/desktop/assets/connector-icons/neon.png b/desktop/assets/connector-icons/neon.png
new file mode 100644
index 000000000..58ccc9876
Binary files /dev/null and b/desktop/assets/connector-icons/neon.png differ
diff --git a/desktop/assets/connector-icons/netlify.png b/desktop/assets/connector-icons/netlify.png
new file mode 100644
index 000000000..eb59fde4c
Binary files /dev/null and b/desktop/assets/connector-icons/netlify.png differ
diff --git a/desktop/assets/connector-icons/notion.png b/desktop/assets/connector-icons/notion.png
new file mode 100644
index 000000000..a997503db
Binary files /dev/null and b/desktop/assets/connector-icons/notion.png differ
diff --git a/desktop/assets/connector-icons/openrouter.png b/desktop/assets/connector-icons/openrouter.png
new file mode 100644
index 000000000..e81ead338
Binary files /dev/null and b/desktop/assets/connector-icons/openrouter.png differ
diff --git a/desktop/assets/connector-icons/otter_ai.png b/desktop/assets/connector-icons/otter_ai.png
new file mode 100644
index 000000000..56d5b1547
Binary files /dev/null and b/desktop/assets/connector-icons/otter_ai.png differ
diff --git a/desktop/assets/connector-icons/paypal.png b/desktop/assets/connector-icons/paypal.png
new file mode 100644
index 000000000..3c9ae3ace
Binary files /dev/null and b/desktop/assets/connector-icons/paypal.png differ
diff --git a/desktop/assets/connector-icons/planetscale.png b/desktop/assets/connector-icons/planetscale.png
new file mode 100644
index 000000000..bfebf2e4d
Binary files /dev/null and b/desktop/assets/connector-icons/planetscale.png differ
diff --git a/desktop/assets/connector-icons/posthog.png b/desktop/assets/connector-icons/posthog.png
new file mode 100644
index 000000000..c30a1a981
Binary files /dev/null and b/desktop/assets/connector-icons/posthog.png differ
diff --git a/desktop/assets/connector-icons/postman.png b/desktop/assets/connector-icons/postman.png
new file mode 100644
index 000000000..480283ba1
Binary files /dev/null and b/desktop/assets/connector-icons/postman.png differ
diff --git a/desktop/assets/connector-icons/prisma.png b/desktop/assets/connector-icons/prisma.png
new file mode 100644
index 000000000..340f2738b
Binary files /dev/null and b/desktop/assets/connector-icons/prisma.png differ
diff --git a/desktop/assets/connector-icons/pylon.png b/desktop/assets/connector-icons/pylon.png
new file mode 100644
index 000000000..aa89b5b16
Binary files /dev/null and b/desktop/assets/connector-icons/pylon.png differ
diff --git a/desktop/assets/connector-icons/railway.png b/desktop/assets/connector-icons/railway.png
new file mode 100644
index 000000000..ee98ea2a8
Binary files /dev/null and b/desktop/assets/connector-icons/railway.png differ
diff --git a/desktop/assets/connector-icons/ramp.png b/desktop/assets/connector-icons/ramp.png
new file mode 100644
index 000000000..46ec5769e
Binary files /dev/null and b/desktop/assets/connector-icons/ramp.png differ
diff --git a/desktop/assets/connector-icons/razorpay.png b/desktop/assets/connector-icons/razorpay.png
new file mode 100644
index 000000000..df16919db
Binary files /dev/null and b/desktop/assets/connector-icons/razorpay.png differ
diff --git a/desktop/assets/connector-icons/sanity.png b/desktop/assets/connector-icons/sanity.png
new file mode 100644
index 000000000..0b3a02908
Binary files /dev/null and b/desktop/assets/connector-icons/sanity.png differ
diff --git a/desktop/assets/connector-icons/semrush.png b/desktop/assets/connector-icons/semrush.png
new file mode 100644
index 000000000..0360bcea7
Binary files /dev/null and b/desktop/assets/connector-icons/semrush.png differ
diff --git a/desktop/assets/connector-icons/sentry.svg b/desktop/assets/connector-icons/sentry.svg
new file mode 100644
index 000000000..0b470579c
--- /dev/null
+++ b/desktop/assets/connector-icons/sentry.svg
@@ -0,0 +1 @@
+<svg fill="#ffffff" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Sentry</title><path d="M13.91 2.505c-.873-1.448-2.972-1.448-3.844 0L6.904 7.92a15.478 15.478 0 0 1 8.53 12.811h-2.221A13.301 13.301 0 0 0 5.784 9.814l-2.926 5.06a7.65 7.65 0 0 1 4.435 5.848H2.194a.365.365 0 0 1-.298-.534l1.413-2.402a5.16 5.16 0 0 0-1.614-.913L.296 19.275a2.182 2.182 0 0 0 .812 2.999 2.24 2.24 0 0 0 1.086.288h6.983a9.322 9.322 0 0 0-3.845-8.318l1.11-1.922a11.47 11.47 0 0 1 4.95 10.24h5.915a17.242 17.242 0 0 0-7.885-15.28l2.244-3.845a.37.37 0 0 1 .504-.13c.255.14 9.75 16.708 9.928 16.9a.365.365 0 0 1-.327.543h-2.287c.029.612.029 1.223 0 1.831h2.297a2.206 2.206 0 0 0 1.922-3.31z"/></svg>
\ No newline at end of file
diff --git a/desktop/assets/connector-icons/slack.png b/desktop/assets/connector-icons/slack.png
new file mode 100644
index 000000000..6cdfbcdc5
Binary files /dev/null and b/desktop/assets/connector-icons/slack.png differ
diff --git a/desktop/assets/connector-icons/square.png b/desktop/assets/connector-icons/square.png
new file mode 100644
index 000000000..90ad6c916
Binary files /dev/null and b/desktop/assets/connector-icons/square.png differ
diff --git a/desktop/assets/connector-icons/stripe.svg b/desktop/assets/connector-icons/stripe.svg
new file mode 100644
index 000000000..48272a2c5
--- /dev/null
+++ b/desktop/assets/connector-icons/stripe.svg
@@ -0,0 +1 @@
+<svg fill="#635BFF" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Stripe</title><path d="M13.976 9.15c-2.172-.806-3.356-1.426-3.356-2.409 0-.831.683-1.305 1.901-1.305 2.227 0 4.515.858 6.09 1.631l.89-5.494C18.252.975 15.697 0 12.165 0 9.667 0 7.589.654 6.104 1.872 4.56 3.147 3.757 4.992 3.757 7.218c0 4.039 2.467 5.76 6.476 7.219 2.585.92 3.445 1.574 3.445 2.583 0 .98-.84 1.545-2.354 1.545-1.875 0-4.965-.921-6.99-2.109l-.9 5.555C5.175 22.99 8.385 24 11.714 24c2.641 0 4.843-.624 6.328-1.813 1.664-1.305 2.525-3.236 2.525-5.732 0-4.128-2.524-5.851-6.594-7.305h.003z"/></svg>
\ No newline at end of file
diff --git a/desktop/assets/connector-icons/supabase.svg b/desktop/assets/connector-icons/supabase.svg
new file mode 100644
index 000000000..03f46fa27
--- /dev/null
+++ b/desktop/assets/connector-icons/supabase.svg
@@ -0,0 +1 @@
+<svg fill="#3FCF8E" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Supabase</title><path d="M11.9 1.036c-.015-.986-1.26-1.41-1.874-.637L.764 12.05C-.33 13.427.65 15.455 2.409 15.455h9.579l.113 7.51c.014.985 1.259 1.408 1.873.636l9.262-11.653c1.093-1.375.113-3.403-1.645-3.403h-9.642z"/></svg>
\ No newline at end of file
diff --git a/desktop/assets/connector-icons/supermetrics.png b/desktop/assets/connector-icons/supermetrics.png
new file mode 100644
index 000000000..3c706c68e
Binary files /dev/null and b/desktop/assets/connector-icons/supermetrics.png differ
diff --git a/desktop/assets/connector-icons/surveymonkey.png b/desktop/assets/connector-icons/surveymonkey.png
new file mode 100644
index 000000000..607771a27
Binary files /dev/null and b/desktop/assets/connector-icons/surveymonkey.png differ
diff --git a/desktop/assets/connector-icons/tavily.png b/desktop/assets/connector-icons/tavily.png
new file mode 100644
index 000000000..304eaa556
Binary files /dev/null and b/desktop/assets/connector-icons/tavily.png differ
diff --git a/desktop/assets/connector-icons/todoist.png b/desktop/assets/connector-icons/todoist.png
new file mode 100644
index 000000000..f45c27f8e
Binary files /dev/null and b/desktop/assets/connector-icons/todoist.png differ
diff --git a/desktop/assets/connector-icons/vercel.svg b/desktop/assets/connector-icons/vercel.svg
new file mode 100644
index 000000000..ef6a708c2
--- /dev/null
+++ b/desktop/assets/connector-icons/vercel.svg
@@ -0,0 +1 @@
+<svg fill="#ffffff" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Vercel</title><path d="M24 22.525H0l12-21.05 12 21.05z"/></svg>
\ No newline at end of file
diff --git a/desktop/assets/connector-icons/webflow.png b/desktop/assets/connector-icons/webflow.png
new file mode 100644
index 000000000..b7f9b1fb3
Binary files /dev/null and b/desktop/assets/connector-icons/webflow.png differ
diff --git a/desktop/assets/connector-icons/wix.png b/desktop/assets/connector-icons/wix.png
new file mode 100644
index 000000000..721002aa1
Binary files /dev/null and b/desktop/assets/connector-icons/wix.png differ
diff --git a/desktop/assets/connector-icons/wordpress_com.png b/desktop/assets/connector-icons/wordpress_com.png
new file mode 100644
index 000000000..bd145380f
Binary files /dev/null and b/desktop/assets/connector-icons/wordpress_com.png differ
diff --git a/desktop/assets/connector-icons/workable.png b/desktop/assets/connector-icons/workable.png
new file mode 100644
index 000000000..d3c3161b1
Binary files /dev/null and b/desktop/assets/connector-icons/workable.png differ
diff --git a/desktop/assets/connector-icons/yahoo_finance.png b/desktop/assets/connector-icons/yahoo_finance.png
new file mode 100644
index 000000000..5d22c6285
Binary files /dev/null and b/desktop/assets/connector-icons/yahoo_finance.png differ
diff --git a/desktop/assets/connector-icons/zapier.png b/desktop/assets/connector-icons/zapier.png
new file mode 100644
index 000000000..0d8bc5af7
Binary files /dev/null and b/desktop/assets/connector-icons/zapier.png differ
diff --git a/desktop/lib/connectors/connector_icons.dart b/desktop/lib/connectors/connector_icons.dart
new file mode 100644
index 000000000..fde005c9f
--- /dev/null
+++ b/desktop/lib/connectors/connector_icons.dart
@@ -0,0 +1,91 @@
+// Generated by cli/scripts/connector-assets.mjs from cli/src/lib/connectors/assets. Do not edit.
+
+/// Each connected service's icon, bundled with the app, by its code.
+const connectorIcons = <String, String>{
+ 'ahrefs': 'assets/connector-icons/ahrefs.png',
+ 'airtable': 'assets/connector-icons/airtable.svg',
+ 'amplitude': 'assets/connector-icons/amplitude.png',
+ 'apollo_io': 'assets/connector-icons/apollo_io.png',
+ 'asana': 'assets/connector-icons/asana.png',
+ 'atlassian': 'assets/connector-icons/atlassian.png',
+ 'attio': 'assets/connector-icons/attio.png',
+ 'brex': 'assets/connector-icons/brex.png',
+ 'canva': 'assets/connector-icons/canva.png',
+ 'carta': 'assets/connector-icons/carta.png',
+ 'clay': 'assets/connector-icons/clay.png',
+ 'clickup': 'assets/connector-icons/clickup.png',
+ 'close': 'assets/connector-icons/close.png',
+ 'cloudflare': 'assets/connector-icons/cloudflare.png',
+ 'cloudinary': 'assets/connector-icons/cloudinary.png',
+ 'coindesk': 'assets/connector-icons/coindesk.png',
+ 'context7': 'assets/connector-icons/context7.png',
+ 'craft': 'assets/connector-icons/craft.png',
+ 'crypto_com': 'assets/connector-icons/crypto_com.png',
+ 'deepwiki': 'assets/connector-icons/deepwiki.png',
+ 'egnyte': 'assets/connector-icons/egnyte.png',
+ 'eraser': 'assets/connector-icons/eraser.png',
+ 'exa': 'assets/connector-icons/exa.png',
+ 'figma-api-app': 'assets/connector-icons/figma-api-app.svg',
+ 'fireflies': 'assets/connector-icons/fireflies.png',
+ 'github': 'assets/connector-icons/github.png',
+ 'gitlab': 'assets/connector-icons/gitlab.svg',
+ 'globalping': 'assets/connector-icons/globalping.png',
+ 'gmail': 'assets/connector-icons/gmail.png',
+ 'google_calendar': 'assets/connector-icons/google_calendar.png',
+ 'google_drive': 'assets/connector-icons/google_drive.png',
+ 'granola': 'assets/connector-icons/granola.png',
+ 'guru': 'assets/connector-icons/guru.png',
+ 'gusto': 'assets/connector-icons/gusto.png',
+ 'harmonic': 'assets/connector-icons/harmonic.png',
+ 'hex': 'assets/connector-icons/hex.png',
+ 'honeycomb': 'assets/connector-icons/honeycomb.png',
+ 'hubspot': 'assets/connector-icons/hubspot.png',
+ 'huggingface': 'assets/connector-icons/huggingface.png',
+ 'ifttt': 'assets/connector-icons/ifttt.png',
+ 'incident_io': 'assets/connector-icons/incident_io.png',
+ 'indeed': 'assets/connector-icons/indeed.png',
+ 'jam': 'assets/connector-icons/jam.png',
+ 'klaviyo': 'assets/connector-icons/klaviyo.png',
+ 'linear': 'assets/connector-icons/linear.png',
+ 'mailerlite': 'assets/connector-icons/mailerlite.png',
+ 'make': 'assets/connector-icons/make.png',
+ 'mercury': 'assets/connector-icons/mercury.png',
+ 'mintlify': 'assets/connector-icons/mintlify.png',
+ 'miro': 'assets/connector-icons/miro.png',
+ 'mixpanel': 'assets/connector-icons/mixpanel.png',
+ 'mondaydotcom': 'assets/connector-icons/mondaydotcom.png',
+ 'motherduck': 'assets/connector-icons/motherduck.png',
+ 'motion': 'assets/connector-icons/motion.png',
+ 'neon': 'assets/connector-icons/neon.png',
+ 'netlify': 'assets/connector-icons/netlify.png',
+ 'notion': 'assets/connector-icons/notion.png',
+ 'openrouter': 'assets/connector-icons/openrouter.png',
+ 'otter_ai': 'assets/connector-icons/otter_ai.png',
+ 'paypal': 'assets/connector-icons/paypal.png',
+ 'planetscale': 'assets/connector-icons/planetscale.png',
+ 'posthog': 'assets/connector-icons/posthog.png',
+ 'postman': 'assets/connector-icons/postman.png',
+ 'prisma': 'assets/connector-icons/prisma.png',
+ 'pylon': 'assets/connector-icons/pylon.png',
+ 'railway': 'assets/connector-icons/railway.png',
+ 'ramp': 'assets/connector-icons/ramp.png',
+ 'razorpay': 'assets/connector-icons/razorpay.png',
+ 'sanity': 'assets/connector-icons/sanity.png',
+ 'semrush': 'assets/connector-icons/semrush.png',
+ 'sentry': 'assets/connector-icons/sentry.svg',
+ 'slack': 'assets/connector-icons/slack.png',
+ 'square': 'assets/connector-icons/square.png',
+ 'stripe': 'assets/connector-icons/stripe.svg',
+ 'supabase': 'assets/connector-icons/supabase.svg',
+ 'supermetrics': 'assets/connector-icons/supermetrics.png',
+ 'surveymonkey': 'assets/connector-icons/surveymonkey.png',
+ 'tavily': 'assets/connector-icons/tavily.png',
+ 'todoist': 'assets/connector-icons/todoist.png',
+ 'vercel': 'assets/connector-icons/vercel.svg',
+ 'webflow': 'assets/connector-icons/webflow.png',
+ 'wix': 'assets/connector-icons/wix.png',
+ 'wordpress_com': 'assets/connector-icons/wordpress_com.png',
+ 'workable': 'assets/connector-icons/workable.png',
+ 'yahoo_finance': 'assets/connector-icons/yahoo_finance.png',
+ 'zapier': 'assets/connector-icons/zapier.png',
+};
diff --git a/desktop/lib/connectors/connectors_controller.dart b/desktop/lib/connectors/connectors_controller.dart
new file mode 100644
index 000000000..dd3613651
--- /dev/null
+++ b/desktop/lib/connectors/connectors_controller.dart
@@ -0,0 +1,208 @@
+import 'dart:async';
+
+import 'package:flutter/foundation.dart';
+
+import '../core/open_in_browser.dart';
+import '../state/app_state.dart';
+
+/// One service on Settings ▸ Connectors, as this computer's daemon reports it
+/// (`connectors` `list`, cli/src/lib/connectors/connect.ts `cards`).
+@immutable
+class ConnectorCard {
+ const ConnectorCard({
+ required this.code,
+ required this.name,
+ required this.description,
+ required this.state,
+ this.account = '',
+ this.auth = 'dcr',
+ this.custom = false,
+ this.reason = '',
+ this.tools = false,
+ });
+
+ factory ConnectorCard.fromJson(Map<String, dynamic> json) => ConnectorCard(
+ code: json['connector'] as String? ?? '',
+ name: json['name'] as String? ?? '',
+ description: json['description'] as String? ?? '',
+ state: json['state'] as String? ?? 'not_connected',
+ account: json['account'] as String? ?? '',
+ auth: json['auth'] as String? ?? 'dcr',
+ custom: json['custom'] == true,
+ reason: json['reason'] as String? ?? '',
+ tools: json['tools'] == true,
+ );
+
+ final String code;
+ final String name;
+ final String description;
+
+ /// `not_connected`, `connected` or `reconnect`.
+ final String state;
+ final String account;
+
+ /// `dcr` (signs in from this computer), `app` (through the Harness account) or `custom`.
+ final String auth;
+ final bool custom;
+
+ /// Why it cannot be connected now ("Needs harness login"), or empty.
+ final String reason;
+
+ /// Whether agents get it as MCP tools (else only `harness connections call`).
+ final bool tools;
+
+ bool get connected => state != 'not_connected';
+}
+
+/// Settings ▸ Connectors: this computer's connected services, through its
+/// daemon. A sign-in opens the service's consent page in the browser and is
+/// followed until it finishes; the list itself never leaves the app.
+class ConnectorsController extends ChangeNotifier {
+ ConnectorsController(this.app, {this.machineId});
+
+ final AppNotifier app;
+
+ /// The computer whose connections these are; this one by default.
+ final String? machineId;
+
+ /// How often a sign-in in progress is asked about, and for how long.
+ @visibleForTesting
+ static Duration pollEvery = const Duration(seconds: 1);
+ static const _signInFor = Duration(minutes: 6);
+
+ List<ConnectorCard> cards = const [];
+ bool signedIn = true;
+ bool loading = false;
+ String? error;
+ String notice = '';
+ final Set<String> pending = {};
+ bool _disposed = false;
+
+ String? get _target =>
+ machineId ?? app.localMachineState?.machine.machineId;
+
+ Future<Map<String, dynamic>> _ask(Map<String, dynamic> payload) async {
+ final target = _target;
+ if (target == null) throw StateError('This computer is not connected yet.');
+ final answer = await app.connectors(target, payload);
+ final failure = answer['error'];
+ if (failure != null) {
+ throw StateError(
+ answer['detail'] as String? ??
+ (failure == 'SERVICE_UNAVAILABLE' || failure == 'UNSUPPORTED'
+ ? 'Update Harness on this computer to use Connectors.'
+ : 'Connections are unavailable. Try again.'),
+ );
+ }
+ return answer;
+ }
+
+ void _changed() {
+ if (!_disposed) notifyListeners();
+ }
+
+ Future<void> refresh() async {
+ loading = true;
+ _changed();
+ try {
+ final answer = await _ask({'action': 'list'});
+ cards = [
+ for (final row in (answer['connections'] as List? ?? const []))
+ if (row is Map) ConnectorCard.fromJson(row.cast<String, dynamic>()),
+ ]..sort((a, b) => a.name.toLowerCase().compareTo(b.name.toLowerCase()));
+ signedIn = answer['signed_in'] != false;
+ error = null;
+ } catch (e) {
+ error = _message(e);
+ } finally {
+ loading = false;
+ _changed();
+ }
+ }
+
+ Future<void> connect(ConnectorCard card) async {
+ notice = '';
+ pending.add(card.code);
+ _changed();
+ try {
+ final started = await _ask({'action': 'connect', 'connector': card.code});
+ await _follow(card.name, started);
+ } catch (e) {
+ notice = '${card.name}: ${_message(e)}';
+ } finally {
+ pending.remove(card.code);
+ await refresh();
+ }
+ }
+
+ Future<void> _follow(String name, Map<String, dynamic> started) async {
+ final url = started['authorize_url'] as String?;
+ if (url != null && !await openInBrowser(Uri.parse(url))) {
+ notice = 'Open this address to sign in to $name: $url';
+ _changed();
+ }
+ final flow = started['flow'] as String?;
+ if (flow == null) return;
+ final deadline = DateTime.now().add(_signInFor);
+ while (!_disposed && DateTime.now().isBefore(deadline)) {
+ await Future<void>.delayed(pollEvery);
+ final status = await _ask({'action': 'flow', 'flow': flow});
+ if (status['state'] == 'connected') {
+ notice = '$name connected. Your agents can use it now.';
+ return;
+ }
+ if (status['state'] == 'failed') {
+ notice = '$name: ${status['error'] ?? 'The sign-in did not finish.'}';
+ return;
+ }
+ }
+ }
+
+ Future<void> disconnect(ConnectorCard card) async {
+ try {
+ await _ask({'action': 'disconnect', 'connector': card.code});
+ notice = '${card.name} disconnected on this computer.';
+ } catch (e) {
+ notice = _message(e);
+ }
+ await refresh();
+ }
+
+ /// Add custom: null when added (or its sign-in started), else why not.
+ Future<String?> addCustom(
+ String name,
+ String url,
+ Map<String, String> headers,
+ ) async {
+ try {
+ final started = await _ask({
+ 'action': 'custom',
+ 'name': name,
+ 'url': url,
+ 'headers': headers,
+ });
+ if (started['flow'] != null) {
+ unawaited(
+ _follow(name, started).catchError((Object e) {
+ notice = '$name: ${_message(e)}';
+ }).whenComplete(refresh),
+ );
+ } else {
+ notice = '$name added. Your agents can use it now.';
+ await refresh();
+ }
+ return null;
+ } catch (e) {
+ return _message(e);
+ }
+ }
+
+ static String _message(Object e) =>
+ e is StateError ? e.message : 'Connections are unavailable. Try again.';
+
+ @override
+ void dispose() {
+ _disposed = true;
+ super.dispose();
+ }
+}
diff --git a/desktop/lib/e2ee/envelope.dart b/desktop/lib/e2ee/envelope.dart
index 86ffd0c98..38d331bf2 100644
--- a/desktop/lib/e2ee/envelope.dart
+++ b/desktop/lib/e2ee/envelope.dart
@@ -35,6 +35,7 @@ const Set<String> encryptedDownTypes = {
'phone_pair',
'viewer_surface',
'api_connections',
+ 'connectors',
'orchestrator',
'command_bar',
'route_task',
diff --git a/desktop/lib/settings/sections/connectors_section.dart b/desktop/lib/settings/sections/connectors_section.dart
new file mode 100644
index 000000000..85a6afa01
--- /dev/null
+++ b/desktop/lib/settings/sections/connectors_section.dart
@@ -0,0 +1,429 @@
+import 'package:flutter/material.dart';
+import 'package:flutter_svg/flutter_svg.dart';
+
+import '../../connectors/connector_icons.dart';
+import '../../connectors/connectors_controller.dart';
+import '../../shared/theme/app_icons.dart';
+import '../../shared/theme/app_theme.dart';
+import '../../shared/widgets/app_dialog.dart';
+import '../../shared/widgets/app_icon_button.dart';
+import '../../shared/widgets/section_scaffold.dart';
+import '../../shared/widgets/toolbar_pill.dart';
+import '../../state/app_state.dart';
+
+/// Settings ▸ Connectors: connect a service once on this computer, and every
+/// local agent (Claude Code, Codex, OpenCode) gets it. The same list and
+/// sign-ins as `harness connections` and the Grid app's Connectors page; only
+/// the service's own consent page opens in the browser.
+class ConnectorsSection extends StatefulWidget {
+ const ConnectorsSection({super.key, required this.notifier, this.controller});
+
+ final AppNotifier notifier;
+
+ /// Injected by tests; otherwise this computer's.
+ final ConnectorsController? controller;
+
+ @override
+ State<ConnectorsSection> createState() => _ConnectorsSectionState();
+}
+
+class _ConnectorsSectionState extends State<ConnectorsSection> {
+ late final ConnectorsController _controller =
+ widget.controller ?? ConnectorsController(widget.notifier);
+ final _search = TextEditingController();
+ bool _connectedOnly = false;
+
+ @override
+ void initState() {
+ super.initState();
+ _controller.refresh();
+ }
+
+ @override
+ void dispose() {
+ if (widget.controller == null) _controller.dispose();
+ _search.dispose();
+ super.dispose();
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return SectionScaffold(
+ title: 'Connectors',
+ subtitle:
+ 'Connect your agents to tools outside this computer: a tracker, a design tool, a web service.',
+ child: ListenableBuilder(
+ listenable: Listenable.merge([_controller, _search]),
+ builder: (context, _) => _body(context),
+ ),
+ );
+ }
+
+ Widget _body(BuildContext context) {
+ final theme = Theme.of(context);
+ final query = _search.text.trim().toLowerCase();
+ bool matches(ConnectorCard card) =>
+ query.isEmpty ||
+ '${card.name} ${card.description}'.toLowerCase().contains(query);
+ final on = _controller.cards.where((c) => c.connected && matches(c)).toList();
+ final off = _controller.cards.where((c) => !c.connected && matches(c)).toList();
+ return Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Row(
+ children: [
+ Expanded(
+ child: TextField(
+ key: const ValueKey('connectors-search'),
+ controller: _search,
+ decoration: const InputDecoration(
+ hintText: 'Search connectors',
+ prefixIcon: Icon(AppIcons.search, size: AppIcons.inlineSize),
+ isDense: true,
+ ),
+ ),
+ ),
+ const SizedBox(width: 8),
+ AppIconButton(
+ icon: AppIcons.refreshCw,
+ tooltip: 'Refresh',
+ spinning: _controller.loading,
+ onPressed: _controller.refresh,
+ ),
+ const SizedBox(width: 8),
+ FilledButton.icon(
+ key: const ValueKey('connectors-add-custom'),
+ onPressed: () => _addCustom(context),
+ icon: const Icon(AppIcons.plus, size: AppIcons.inlineSize),
+ label: const Text('Add custom'),
+ ),
+ ],
+ ),
+ const SizedBox(height: 12),
+ Row(
+ children: [
+ ToolbarPill(
+ active: !_connectedOnly,
+ onTap: () => setState(() => _connectedOnly = false),
+ child: const Text('Browse'),
+ ),
+ const SizedBox(width: 8),
+ ToolbarPill(
+ active: _connectedOnly,
+ onTap: () => setState(() => _connectedOnly = true),
+ child: const Text('Connected'),
+ ),
+ ],
+ ),
+ if (!_controller.signedIn) ...[
+ const SizedBox(height: 12),
+ Text(
+ 'GitHub, Slack, Google and a few more sign in through your Harness account. Run harness login, then refresh to connect them.',
+ style: theme.textTheme.bodySmall?.copyWith(color: theme.colorScheme.onSurfaceVariant),
+ ),
+ ],
+ if (_controller.error != null || _controller.notice.isNotEmpty) ...[
+ const SizedBox(height: 12),
+ Text(
+ _controller.error ?? _controller.notice,
+ key: const ValueKey('connectors-notice'),
+ style: theme.textTheme.bodySmall?.copyWith(
+ color: _controller.error != null ? theme.colorScheme.error : theme.colorScheme.primary,
+ ),
+ ),
+ ],
+ const SizedBox(height: 8),
+ Expanded(
+ child: _controller.cards.isEmpty && _controller.loading
+ ? const Center(child: Text('Loading connectors…'))
+ : ListView(
+ children: [
+ _group(context, 'Connected', on,
+ query.isEmpty ? 'Nothing connected yet. Choose a service below.' : 'No connected service matches.'),
+ if (!_connectedOnly) _group(context, 'Available', off, 'No service matches.'),
+ ],
+ ),
+ ),
+ ],
+ );
+ }
+
+ Widget _group(BuildContext context, String title, List<ConnectorCard> cards, String empty) {
+ final theme = Theme.of(context);
+ return Padding(
+ padding: const EdgeInsets.only(top: 16),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(
+ '${title.toUpperCase()} ${cards.length}',
+ style: theme.textTheme.labelSmall?.copyWith(
+ color: theme.colorScheme.onSurfaceVariant,
+ letterSpacing: 1,
+ fontWeight: FontWeight.w600,
+ ),
+ ),
+ const SizedBox(height: 10),
+ if (cards.isEmpty)
+ Text(empty, style: theme.textTheme.bodySmall?.copyWith(color: theme.colorScheme.onSurfaceVariant))
+ else
+ LayoutBuilder(
+ builder: (context, box) {
+ final columns = (box.maxWidth / 300).floor().clamp(1, 4);
+ final width = (box.maxWidth - (columns - 1) * 12) / columns;
+ return Wrap(
+ spacing: 12,
+ runSpacing: 12,
+ children: [
+ for (final card in cards)
+ SizedBox(width: width, child: _ConnectorTile(
+ card: card,
+ waiting: _controller.pending.contains(card.code),
+ onConnect: () => _controller.connect(card),
+ onDisconnect: () => _confirmDisconnect(context, card),
+ )),
+ ],
+ );
+ },
+ ),
+ ],
+ ),
+ );
+ }
+
+ Future<void> _confirmDisconnect(BuildContext context, ConnectorCard card) async {
+ final yes = await showAppDialog<bool>(
+ context: context,
+ builder: (context) => AlertDialog(
+ title: Text('Disconnect ${card.name}?'),
+ content: const Text(
+ 'Agents on this computer stop using this account. To revoke it everywhere, use the service\'s settings.',
+ ),
+ actions: [
+ TextButton(onPressed: () => Navigator.of(context).pop(false), child: const Text('Cancel')),
+ FilledButton(onPressed: () => Navigator.of(context).pop(true), child: const Text('Disconnect')),
+ ],
+ ),
+ );
+ if (yes == true) await _controller.disconnect(card);
+ }
+
+ Future<void> _addCustom(BuildContext context) => showAppDialog<void>(
+ context: context,
+ builder: (context) => _AddCustomDialog(controller: _controller),
+ );
+}
+
+/// One service: its icon and name, Signed in (or Reconnect), Connect or
+/// Disconnect, and what it gives the agents.
+class _ConnectorTile extends StatelessWidget {
+ const _ConnectorTile({
+ required this.card,
+ required this.waiting,
+ required this.onConnect,
+ required this.onDisconnect,
+ });
+
+ final ConnectorCard card;
+ final bool waiting;
+ final VoidCallback onConnect;
+ final VoidCallback onDisconnect;
+
+ @override
+ Widget build(BuildContext context) {
+ final theme = Theme.of(context);
+ final muted = theme.colorScheme.onSurfaceVariant;
+ final connected = card.state == 'connected';
+ Widget badge(String text, Color color) => Container(
+ padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 1),
+ decoration: BoxDecoration(color: color.withValues(alpha: 0.16), borderRadius: BorderRadius.circular(6)),
+ child: Text(text, overflow: TextOverflow.ellipsis, style: theme.textTheme.labelSmall?.copyWith(color: color)),
+ );
+ final about = connected && !card.tools
+ ? '${card.description} Agents use it with harness connections call.'
+ : card.description;
+ return Container(
+ key: ValueKey('connector-${card.code}'),
+ constraints: const BoxConstraints(minHeight: 112),
+ padding: const EdgeInsets.all(14),
+ decoration: BoxDecoration(
+ color: AppPalette.cardBg,
+ borderRadius: BorderRadius.circular(12),
+ border: Border.all(color: AppPalette.divider),
+ ),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Row(
+ children: [
+ ConnectorMark(code: card.code, name: card.name),
+ const SizedBox(width: 10),
+ Flexible(
+ child: Text(card.name, overflow: TextOverflow.ellipsis,
+ style: theme.textTheme.titleSmall?.copyWith(fontWeight: FontWeight.w700)),
+ ),
+ if (connected) ...[
+ const SizedBox(width: 8),
+ Flexible(child: badge(card.account.isEmpty ? 'Signed in' : card.account, theme.colorScheme.primary)),
+ ],
+ if (card.state == 'reconnect') ...[
+ const SizedBox(width: 8),
+ badge('Reconnect', Colors.amber),
+ ],
+ const Spacer(),
+ if (waiting)
+ Text('Waiting for sign-in…', style: theme.textTheme.labelSmall?.copyWith(color: muted))
+ else if (card.connected) ...[
+ if (card.state == 'reconnect' && !card.custom)
+ TextButton(onPressed: onConnect, child: const Text('Reconnect')),
+ AppIconButton(icon: AppIcons.unplug, tooltip: 'Disconnect ${card.name}', onPressed: onDisconnect),
+ ] else if (card.reason.isNotEmpty) ...[
+ Flexible(child: Text(card.reason, textAlign: TextAlign.right,
+ style: theme.textTheme.labelSmall?.copyWith(color: muted))),
+ const SizedBox(width: 6),
+ AppIconButton(icon: AppIcons.plus, tooltip: card.reason, onPressed: null),
+ ] else
+ AppIconButton(icon: AppIcons.plus, tooltip: 'Connect ${card.name}', onPressed: onConnect),
+ ],
+ ),
+ const SizedBox(height: 10),
+ Text(about, maxLines: 2, overflow: TextOverflow.ellipsis,
+ style: theme.textTheme.bodySmall?.copyWith(color: muted)),
+ ],
+ ),
+ );
+ }
+}
+
+/// A service's icon, bundled with the app (assets/connector-icons), or its
+/// initial when it has none (a custom server).
+class ConnectorMark extends StatelessWidget {
+ const ConnectorMark({super.key, required this.code, required this.name, this.size = 26});
+
+ final String code;
+ final String name;
+ final double size;
+
+ @override
+ Widget build(BuildContext context) {
+ final path = connectorIcons[code];
+ final Widget mark;
+ if (path == null) {
+ mark = Center(
+ child: Text(name.isEmpty ? '?' : name.characters.first.toUpperCase(),
+ style: TextStyle(fontWeight: FontWeight.w800, fontSize: size * 0.5, color: Colors.white)),
+ );
+ } else if (path.endsWith('.svg')) {
+ mark = SvgPicture.asset(path, fit: BoxFit.contain);
+ } else {
+ mark = Image.asset(path, fit: BoxFit.contain);
+ }
+ return Container(
+ width: size,
+ height: size,
+ padding: const EdgeInsets.all(2),
+ decoration: BoxDecoration(
+ color: path == null ? AppPalette.accentMuted : AppPalette.cardBgHover,
+ borderRadius: BorderRadius.circular(6),
+ ),
+ child: mark,
+ );
+ }
+}
+
+class _AddCustomDialog extends StatefulWidget {
+ const _AddCustomDialog({required this.controller});
+ final ConnectorsController controller;
+
+ @override
+ State<_AddCustomDialog> createState() => _AddCustomDialogState();
+}
+
+class _AddCustomDialogState extends State<_AddCustomDialog> {
+ final _name = TextEditingController();
+ final _url = TextEditingController();
+ final _headers = TextEditingController();
+ String? _error;
+ bool _saving = false;
+
+ @override
+ void dispose() {
+ _name.dispose();
+ _url.dispose();
+ _headers.dispose();
+ super.dispose();
+ }
+
+ Map<String, String>? _parsedHeaders() {
+ final result = <String, String>{};
+ for (final line in _headers.text.split('\n').map((l) => l.trim()).where((l) => l.isNotEmpty)) {
+ final at = line.indexOf(':');
+ if (at < 1) return null;
+ result[line.substring(0, at).trim()] = line.substring(at + 1).trim();
+ }
+ return result;
+ }
+
+ Future<void> _save() async {
+ final headers = _parsedHeaders();
+ if (headers == null) {
+ setState(() => _error = 'Write each header as Name: value.');
+ return;
+ }
+ setState(() { _saving = true; _error = null; });
+ final error = await widget.controller.addCustom(_name.text.trim(), _url.text.trim(), headers);
+ if (!mounted) return;
+ if (error == null) {
+ Navigator.of(context).pop();
+ } else {
+ setState(() { _saving = false; _error = error; });
+ }
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ final theme = Theme.of(context);
+ return AlertDialog(
+ title: const Text('Add custom'),
+ content: SizedBox(
+ width: 460,
+ child: Column(
+ mainAxisSize: MainAxisSize.min,
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text('A remote MCP server. If it asks you to sign in, Harness opens its sign-in page.',
+ style: theme.textTheme.bodySmall?.copyWith(color: theme.colorScheme.onSurfaceVariant)),
+ const SizedBox(height: 16),
+ TextField(key: const ValueKey('custom-name'), controller: _name, decoration: const InputDecoration(labelText: 'Name')),
+ const SizedBox(height: 12),
+ TextField(
+ key: const ValueKey('custom-url'),
+ controller: _url,
+ decoration: const InputDecoration(labelText: 'Remote MCP server URL', hintText: 'https://example.com/mcp'),
+ ),
+ ExpansionTile(
+ tilePadding: EdgeInsets.zero,
+ title: Text('Advanced', style: theme.textTheme.bodySmall),
+ children: [
+ TextField(
+ controller: _headers,
+ minLines: 2,
+ maxLines: 4,
+ decoration: const InputDecoration(
+ labelText: 'Headers (Name: value, one per line)',
+ hintText: 'Authorization: Bearer …',
+ ),
+ ),
+ ],
+ ),
+ if (_error != null) Text(_error!, style: theme.textTheme.bodySmall?.copyWith(color: theme.colorScheme.error)),
+ ],
+ ),
+ ),
+ actions: [
+ TextButton(onPressed: _saving ? null : () => Navigator.of(context).pop(), child: const Text('Cancel')),
+ FilledButton(onPressed: _saving ? null : _save, child: const Text('Continue')),
+ ],
+ );
+ }
+}
diff --git a/desktop/lib/settings/settings_body.dart b/desktop/lib/settings/settings_body.dart
index 2aef8073c..8af8e677c 100644
--- a/desktop/lib/settings/settings_body.dart
+++ b/desktop/lib/settings/settings_body.dart
@@ -5,6 +5,7 @@ import 'experimental_features.dart';
import 'sections/about_section.dart';
import 'sections/account_devices_section.dart';
import 'sections/account_section.dart';
+import 'sections/connectors_section.dart';
import 'sections/profiles_section.dart';
import 'sections/debug_section.dart';
import 'sections/devices_section.dart';
@@ -39,6 +40,7 @@ class SettingsBody extends StatelessWidget {
),
SettingsSection.profiles => ProfilesSection(notifier: notifier),
SettingsSection.usage => const UsageSection(),
+ SettingsSection.connectors => ConnectorsSection(notifier: notifier),
SettingsSection.customize => throw StateError(
'Customization opens over the workspace.',
),
diff --git a/desktop/lib/settings/settings_section.dart b/desktop/lib/settings/settings_section.dart
index 44e85c1b2..0d7aa26ca 100644
--- a/desktop/lib/settings/settings_section.dart
+++ b/desktop/lib/settings/settings_section.dart
@@ -15,6 +15,7 @@ enum SettingsSection {
accountDevices(AppIcons.shieldCheck, 'Your devices'),
profiles(AppIcons.monitor, 'Profiles'),
usage(AppIcons.chartNoAxesColumn, 'Usage'),
+ connectors(AppIcons.plug, 'Connectors'),
customize(AppIcons.palette, 'Customize'),
notifications(AppIcons.bell, 'Notifications'),
experimental(AppIcons.flaskConical, 'Experimental'),
@@ -64,7 +65,8 @@ List<SettingsGroup> get settingsGroups =>
@visibleForTesting
List<SettingsGroup> settingsGroupsFor({required bool debugSurface}) {
bool visible(SettingsSection section) =>
- (!kIsWeb || section != SettingsSection.devices) &&
+ // This computer's own: the Autonomous robots and the services its agents use.
+ (!kIsWeb || (section != SettingsSection.devices && section != SettingsSection.connectors)) &&
(debugSurface || !_kDeveloperSections.contains(section));
return [
for (final group in _kSettingsGroups)
@@ -96,6 +98,8 @@ const _kSettingsGroups = [
SettingsSection.notifications,
SettingsSection.experimental,
SettingsSection.devices,
+ // The services this computer's agents use (Linear, Notion, GitHub…), connected once for all of them.
+ SettingsSection.connectors,
SettingsSection.account,
// Beside Account: the devices signed in to it, each trusted by the others because of that.
SettingsSection.accountDevices,
diff --git a/desktop/lib/state/app_state.dart b/desktop/lib/state/app_state.dart
index b2c718620..fe7fb9df6 100644
--- a/desktop/lib/state/app_state.dart
+++ b/desktop/lib/state/app_state.dart
@@ -8591,6 +8591,28 @@ class AppNotifier extends ChangeNotifier {
);
}
+ /// The `connectors` request to [machineId]'s daemon: its connected services
+ /// (Settings → Connectors). Never carries a token either way.
+ Future<Map<String, dynamic>> connectors(
+ String machineId,
+ Map<String, dynamic> payload, {
+ Duration timeout = const Duration(seconds: 20),
+ }) async {
+ final machine = stateOf(machineId);
+ if (machine == null ||
+ machine.machine.isShared ||
+ machine.needsLink ||
+ machine.nodeOnline == false ||
+ machine.connectionStatus != ConnectionStatus.connected) {
+ throw StateError('Reconnect this computer to manage its connections.');
+ }
+ final connection = _conn(machineId);
+ if (!connection.isReady) {
+ throw StateError('Reconnect this computer to manage its connections.');
+ }
+ return connection.request('connectors', payload: payload, timeout: timeout);
+ }
+
Future<Map<String, dynamic>> controlLocalModel(
String machineId,
String modelId, {
diff --git a/desktop/lib/ws/ws_conn.dart b/desktop/lib/ws/ws_conn.dart
index f0f5c3bce..118937e34 100644
--- a/desktop/lib/ws/ws_conn.dart
+++ b/desktop/lib/ws/ws_conn.dart
@@ -631,6 +631,7 @@ class WsConn {
!type.startsWith('phone_pair') &&
!type.startsWith('viewer_surface') &&
!type.startsWith('api_connections') &&
+ !type.startsWith('connectors') &&
!type.startsWith('orchestrator') &&
!type.startsWith('command_bar') &&
!type.startsWith('route_') &&
diff --git a/desktop/pubspec.yaml b/desktop/pubspec.yaml
index d2d6ca096..5a8c8425c 100644
--- a/desktop/pubspec.yaml
+++ b/desktop/pubspec.yaml
@@ -135,6 +135,9 @@ flutter:
- assets/models.svg
- assets/harnesses.svg
- assets/engine-icons/
+ # Settings ▸ Connectors' service icons, copied from the CLI's
+ # (cli/scripts/connector-assets.mjs, with lib/connectors/connector_icons.dart).
+ - assets/connector-icons/
- assets/store/
- assets/store/projects/
- assets/store/covers/
diff --git a/desktop/test/connectors_section_test.dart b/desktop/test/connectors_section_test.dart
new file mode 100644
index 000000000..f2f9420b2
--- /dev/null
+++ b/desktop/test/connectors_section_test.dart
@@ -0,0 +1,147 @@
+import 'package:flutter/material.dart';
+import 'package:flutter_test/flutter_test.dart';
+import 'package:harness/connectors/connector_icons.dart';
+import 'package:harness/connectors/connectors_controller.dart';
+import 'package:harness/core/open_in_browser.dart';
+import 'package:harness/settings/sections/connectors_section.dart';
+
+import 'support/model_manager.dart';
+
+/// This computer's daemon, as Settings ▸ Connectors sees it over `connectors`
+/// (cli/src/services/connectors.ts): a list, a sign-in followed to the end,
+/// a disconnect and Add custom, never a token.
+class _ConnectorsApp extends ModelManagerTestApp {
+ _ConnectorsApp() : super(ModelManagerConnection());
+ final requests = <Map<String, dynamic>>[];
+ bool gridSignedIn = false;
+ final connected = <String>{};
+
+ Map<String, dynamic> _card(String code, String name, String auth) => {
+ 'connector': code,
+ 'name': name,
+ 'description': '$name description',
+ 'state': connected.contains(code) ? 'connected' : 'not_connected',
+ 'auth': auth,
+ 'custom': false,
+ 'tools': true,
+ 'reason': auth == 'app' && !gridSignedIn ? 'Needs harness login' : '',
+ };
+
+ @override
+ Future<Map<String, dynamic>> connectors(
+ String machineId,
+ Map<String, dynamic> payload, {
+ Duration timeout = const Duration(seconds: 20),
+ }) async {
+ expect(machineId, 'm');
+ requests.add(payload);
+ switch (payload['action']) {
+ case 'list':
+ return {
+ 'signed_in': gridSignedIn,
+ 'connections': [
+ _card('linear', 'Linear', 'dcr'),
+ _card('github', 'GitHub', 'app'),
+ _card('notion', 'Notion', 'dcr'),
+ ],
+ };
+ case 'connect':
+ return {'flow': 'flow-1', 'authorize_url': 'https://linear.app/oauth/authorize?x=1'};
+ case 'flow':
+ connected.add('linear');
+ return {'connector': 'linear', 'state': 'connected', 'error': ''};
+ case 'disconnect':
+ connected.remove(payload['connector']);
+ return {'connector': payload['connector'], 'state': 'not_connected'};
+ case 'custom':
+ return {'connector': 'mine', 'state': 'connected'};
+ }
+ return {'error': 'CONNECTORS_FAILED', 'detail': 'Unknown action.'};
+ }
+}
+
+void main() {
+ late List<Uri> opened;
+ setUp(() {
+ opened = [];
+ browserOpener = (url) async { opened.add(url); return true; };
+ ConnectorsController.pollEvery = Duration.zero;
+ });
+
+ Future<_ConnectorsApp> pump(WidgetTester tester) async {
+ final app = _ConnectorsApp();
+ tester.view.physicalSize = const Size(1200, 900);
+ tester.view.devicePixelRatio = 1;
+ addTearDown(tester.view.reset);
+ await tester.pumpWidget(MaterialApp(home: Scaffold(body: ConnectorsSection(notifier: app))));
+ await tester.pumpAndSettle();
+ return app;
+ }
+
+ testWidgets('lists every service; signed out, the Harness account ones wait for harness login', (tester) async {
+ await pump(tester);
+ expect(find.text('Connectors'), findsOneWidget);
+ for (final name in ['Linear', 'GitHub', 'Notion']) {
+ expect(find.text(name), findsOneWidget);
+ }
+ expect(find.text('Needs harness login'), findsOneWidget);
+ expect(find.textContaining('Run harness login'), findsOneWidget);
+ expect(find.text('AVAILABLE 3'), findsOneWidget);
+ });
+
+ testWidgets('a sign-in opens the service in the browser and is followed until it is connected', (tester) async {
+ final app = await pump(tester);
+ await tester.tap(find.byTooltip('Connect Linear'));
+ await tester.pumpAndSettle();
+ expect(opened.single.host, 'linear.app');
+ expect(app.requests.map((r) => r['action']), containsAllInOrder(['connect', 'flow', 'list']));
+ expect(find.text('CONNECTED 1'), findsOneWidget);
+ expect(find.text('Signed in'), findsOneWidget);
+ expect(find.text('Linear connected. Your agents can use it now.'), findsOneWidget);
+ });
+
+ testWidgets('disconnect asks first', (tester) async {
+ final app = await pump(tester);
+ app.connected.add('notion');
+ await tester.tap(find.byTooltip('Refresh'));
+ await tester.pumpAndSettle();
+ await tester.tap(find.byTooltip('Disconnect Notion'));
+ await tester.pumpAndSettle();
+ expect(find.text('Disconnect Notion?'), findsOneWidget);
+ await tester.tap(find.widgetWithText(FilledButton, 'Disconnect'));
+ await tester.pumpAndSettle();
+ expect(app.requests.last['action'], 'list');
+ expect(app.requests.any((r) => r['action'] == 'disconnect' && r['connector'] == 'notion'), isTrue);
+ expect(find.text('CONNECTED 0'), findsOneWidget);
+ });
+
+ testWidgets('search and the Connected pill narrow the list', (tester) async {
+ await pump(tester);
+ await tester.enterText(find.byKey(const ValueKey('connectors-search')), 'notion');
+ await tester.pumpAndSettle();
+ expect(find.text('Linear'), findsNothing);
+ expect(find.text('Notion'), findsOneWidget);
+ await tester.tap(find.text('Connected'));
+ await tester.pumpAndSettle();
+ expect(find.text('Notion'), findsNothing);
+ });
+
+ testWidgets('Add custom sends a remote server with its headers', (tester) async {
+ final app = await pump(tester);
+ await tester.tap(find.byKey(const ValueKey('connectors-add-custom')));
+ await tester.pumpAndSettle();
+ await tester.enterText(find.byKey(const ValueKey('custom-name')), 'Mine');
+ await tester.enterText(find.byKey(const ValueKey('custom-url')), 'https://mine.example/mcp');
+ await tester.tap(find.text('Continue'));
+ await tester.pumpAndSettle();
+ expect(app.requests.firstWhere((r) => r['action'] == 'custom'), {
+ 'action': 'custom', 'name': 'Mine', 'url': 'https://mine.example/mcp', 'headers': <String, String>{},
+ });
+ expect(find.text('Mine added. Your agents can use it now.'), findsOneWidget);
+ });
+
+ test('bundles an icon for the services', () {
+ expect(connectorIcons['linear'], 'assets/connector-icons/linear.png');
+ expect(connectorIcons.length, greaterThan(80));
+ });
+}
diff --git a/desktop/test/settings_section_test.dart b/desktop/test/settings_section_test.dart
index ce605cd82..2a7882550 100644
--- a/desktop/test/settings_section_test.dart
+++ b/desktop/test/settings_section_test.dart
@@ -37,6 +37,7 @@ void main() {
SettingsSection.notifications,
SettingsSection.experimental,
if (!kIsWeb) SettingsSection.devices,
+ if (!kIsWeb) SettingsSection.connectors,
SettingsSection.account,
SettingsSection.accountDevices,
SettingsSection.profiles,