Skip to content

feat(connectors): add optional You.com search connector - #57

Open
mouse-value-add wants to merge 1 commit into
Orkas-AI:mainfrom
mouse-value-add:feat/youcom-search-integration
Open

feat(connectors): add optional You.com search connector#57
mouse-value-add wants to merge 1 commit into
Orkas-AI:mainfrom
mouse-value-add:feat/youcom-search-integration

Conversation

@mouse-value-add

Copy link
Copy Markdown

What this adds

A You.com entry in the built-in connector catalog — the first 'search'-category connector. Orkas ships research-heavy agents (DeepResearcher, ContentWriter, SeoGeoAgent) but the catalog currently has no web-search provider, so agents doing evidence-grounded research have no search backend to connect.

I used the existing mcp_dcr pathway (same as Notion / Linear / Atlassian / Cloudflare): You.com hosts an MCP-spec OAuth authorization server with RFC 7591 dynamic client registration, so the app self-registers at first connect. No Orkas-side pre-registration and no bundled secrets — the DCR client credentials and rotating refresh grant stay in the local encrypted connector registry, like the other DCR connectors.

Changes

  • src/main/features/connectors/catalog.ts — new entry: id: 'you', category: 'search', auth_mode: 'mcp_dcr', transport_template: { kind: 'streamable-http', url: 'https://api.you.com/mcp' }, inline SVG icon (simple "Y" glyph in You.com's brand purple rather than a traced logo mark — happy to swap if you have a preferred asset).
  • test/main/features/connectors/open-source-boundary.test.ts — exact-count assertions updated per the catalog contract (21→22 total, 11→12 mcp_dcr).

Fully opt-in: nothing changes for existing users until they click Connect on the You.com card.

Why mcp_dcr works here (verified)

  • https://api.you.com/mcp/.well-known/oauth-protected-resource → 200, advertises the AS and the RFC 8707 resource URI — this is the exact path-suffixed discovery _fetchWellKnown tries first.
  • AS metadata publishes a registration_endpoint (RFC 7591) and token_endpoint_auth_methods_supported including client_secret_post — matching _chooseTokenAuthMethod.
  • Grant types include authorization_code + refresh_token with PKCE S256, matching the handshake in oauth-dcr.ts.

Validation

  • npx vitest run test/main/features/connectors/ test/renderer/connector-icons.test.ts test/renderer/connectors-card.test.ts test/renderer/connectors-degraded-card.test.ts test/renderer/connectors-render-cache.test.ts18 files, 149 tests passed.
  • npm run typecheck (tsc --noEmit) — clean.
  • test/main/ipc/library-write.test.ts has 3 failures in this environment on a clean checkout too (native embedding module ERR_DLOPEN_FAILED — missing platform binary, unrelated to this change).
  • Live OAuth discovery verified with curl against the You.com endpoints above; the full Connect flow needs the desktop app + browser OAuth, which I can't drive headlessly — the DCR handshake itself is identical to the existing mcp_dcr connectors.

Tracking: youdotcom-oss/integration-tracking#233

Adds You.com (https://api.you.com/mcp) to the built-in connector catalog
as the first 'search'-category entry, using the mcp_dcr pathway: You.com
hosts an MCP-spec OAuth authorization server with RFC 7591 dynamic client
registration, so the app self-registers at first connect — no Orkas-side
pre-registration, no bundled secrets. Once connected, agents get You.com
web search / URL contents / research tools for cited web research.

Exact-count assertions in open-source-boundary.test.ts updated 21→22
total, 11→12 mcp_dcr, per catalog contract.

Signed-off-by: mouse-value-add <mouseparker123@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant