diff --git a/.agents/notes/implemented/architecture/2026-11-24-more-connectors-grouped-by-category.i18n.yaml b/.agents/notes/implemented/architecture/2026-11-24-more-connectors-grouped-by-category.i18n.yaml new file mode 100644 index 0000000000..73aeefba59 --- /dev/null +++ b/.agents/notes/implemented/architecture/2026-11-24-more-connectors-grouped-by-category.i18n.yaml @@ -0,0 +1,6 @@ +# Bilingual-pair consistency record (docs/i18n/README.md): the git blob hash of each +# side as of the last confirmed-consistent state. Both languages carry equal authority; +# after editing either side, bring the other along and re-record with: +# pnpm run verify-translation-pairing --write .agents/notes/implemented/architecture/2026-11-24-more-connectors-grouped-by-category.md +2026-11-24-more-connectors-grouped-by-category.md: 6488d657088bf7cb55bd5b04634065552023f0b0 +2026-11-24-more-connectors-grouped-by-category.zh.md: 42e7ca350d713a6978589547fa51deb247efbc80 diff --git a/.agents/notes/implemented/architecture/2026-11-24-more-connectors-grouped-by-category.md b/.agents/notes/implemented/architecture/2026-11-24-more-connectors-grouped-by-category.md new file mode 100644 index 0000000000..6488d65708 --- /dev/null +++ b/.agents/notes/implemented/architecture/2026-11-24-more-connectors-grouped-by-category.md @@ -0,0 +1,31 @@ +# Agent Note: Cloudflare, AWS, Supabase, Calendly, Google Cloud, Azure DevOps, Oracle Cloud, and Google Tasks, Contacts, and Meet connectors, listed by category + +Status: implemented + +English | [中文](2026-11-24-more-connectors-grouped-by-category.zh.md) + +## Problem + +Users asked for Spotify, Cloudflare, AWS, Supabase, Calendly, the other major clouds, and every Google service Æven can reach without a restricted scope. With 34 providers, the flat Connectors list no longer let a reader find a connector by what it is for. + +## Decision + +- **Vendor-hosted servers.** Cloudflare (`https://mcp.cloudflare.com/mcp`), AWS (`https://aws-mcp.us-east-1.api.aws/mcp`), Supabase (`https://mcp.supabase.com/mcp`, authorized at `api.supabase.com`), and Calendly (`https://mcp.calendly.com/`, authorized at `calendly.com`) register clients dynamically, so each is one `HOSTED_MCP` entry on the Aeven API and one `hosted-mcp.ts` endpoint on the Host ([hosted MCP connectors](2026-11-24-hosted-mcp-connectors-trust-vendor-read-hints.md)). AWS and Calendly accept only public clients; AWS, Supabase, and Calendly publish no revocation endpoint. Cloudflare, AWS, and Supabase request no scope parameter, which leaves the server's default grant; Calendly requests the three scopes its protected-resource metadata lists. +- **Google Cloud through Google sign-in.** BigQuery (`https://bigquery.googleapis.com/mcp`) and Compute Engine (`https://compute.googleapis.com/mcp`) are Google's own hosted MCP servers; their authorization server is `accounts.google.com`, so each is a `GOOGLE_SCOPES` entry (`bigquery`, `compute`) on the API and a hosted-MCP endpoint on the Host. Google serves one MCP server per product, so each product is its own connector. +- **Azure DevOps through the Microsoft application.** Its hosted server lives at `mcp.dev.azure.com/` and authorizes through Entra work and school accounts, so the API's Microsoft application requests `https://mcp.dev.azure.com/.default` at `organizations`. That token is not for Graph, so the API reads the account from the ID token instead of Graph's `/me`. Settings collects the organization before the consent and the Host stores the server with the row. Azure resources have no hosted MCP server and are not offered. +- **Oracle Cloud like Salesforce.** Oracle's managed MCP server runs inside each tenancy and authorizes through the tenancy's own Identity Domain, without dynamic registration, so the user brings the server URL, the Identity Domain, and its application's client id and secret. The API's bring-your-own path, until now Salesforce's alone, selects validation rules and endpoints by provider; it accepts only `identity.oraclecloud.com` hosts and requests `openid offline_access`, and the Host accepts only an HTTPS `oraclecloud.com` server URL. +- **Google beyond Gmail, Drive, and Calendar.** `google-tasks` (`tasks`), `google-contacts` (`contacts`), and `google-meet` (`meetings.space.created`, `meetings.space.readonly`) run through the same Workspace bridge with `GWS_SERVICES` set to `tasks`, `people`, and `meet`. All four scopes are sensitive, not restricted, so verification needs no CASA assessment. The bridge has no Meet tools of its own; its `workspace_raw` tool reaches the Meet API and verifies the grant with `conferenceRecords.list`. Chat and Keep need a Workspace administrator and YouTube is outside the bridge, so they are not offered. +- **Categories in the client.** `connector-categories.ts` maps every provider to one heading — Communication, Productivity, Development tools, Sales and marketing, Commerce and shopping, Financial services, the vocabulary of Claude's connector directory, with custom MCP servers last under Custom because they can be anything — and the Connectors page lists each non-empty heading above its rows. The map is a `Record`, so adding a provider without a category fails the typecheck. Search narrows the rows inside each heading and hides headings left empty. + +## Alternatives considered + +- **Spotify** — its hosted MCP server authorizes through Spotify accounts, which registers no clients dynamically, and Spotify grants an app more than five allowlisted users only for registered organizations with at least 250,000 monthly active users, so Æven offers no Spotify connector. +- **Category on the Host's provider view** — the heading is presentation only; keeping it in the client avoids a wire field no other consumer reads. +- **One Google group** — readers look for Gmail beside the other mail connectors and Drive beside OneDrive, so Google providers sit under the headings their purpose names. +- **Full Gmail and Drive scopes** — restricted scopes need a yearly paid CASA assessment ([connector secrets](2026-10-07-connector-secrets-on-aeven-api.md)). + +## Consequences + +- The Host and the Aeven API ship together: a Host offering a provider the API does not know fails at sign-in. +- The four Google scopes must be added to the `aeven-connectors` consent screen and verified; until then a grant shows Google's unverified-app screen. +- Azure DevOps needs the Azure DevOps permission on the Aeven Microsoft application, and an organization whose policy blocks third-party applications refuses it. Oracle's documentation names neither the server host pattern nor required scopes, so both rules are checked at the first real tenancy. diff --git a/.agents/notes/implemented/architecture/2026-11-24-more-connectors-grouped-by-category.zh.md b/.agents/notes/implemented/architecture/2026-11-24-more-connectors-grouped-by-category.zh.md new file mode 100644 index 0000000000..42e7ca350d --- /dev/null +++ b/.agents/notes/implemented/architecture/2026-11-24-more-connectors-grouped-by-category.zh.md @@ -0,0 +1,31 @@ +# Agent Note:Cloudflare、AWS、Supabase、Calendly、Google Cloud、Azure DevOps、Oracle Cloud 及 Google 任务、通讯录、Meet 连接器,按类别列出 + +Status: implemented + +[English](2026-11-24-more-connectors-grouped-by-category.md) | 中文 + +## 问题 + +用户要求接入 Spotify、Cloudflare、AWS、Supabase、Calendly、其他主要云平台,以及 Æven 无需受限范围即可访问的所有 Google 服务。提供商增至 34 个后,平铺的连接器列表已无法让读者按用途找到连接器。 + +## 决定 + +- **供应商托管的服务器。** Cloudflare(`https://mcp.cloudflare.com/mcp`)、AWS(`https://aws-mcp.us-east-1.api.aws/mcp`)、Supabase(`https://mcp.supabase.com/mcp`,在 `api.supabase.com` 授权)和 Calendly(`https://mcp.calendly.com/`,在 `calendly.com` 授权)动态注册客户端,因此各自只是 Aeven API 上的一个 `HOSTED_MCP` 条目及宿主 `hosted-mcp.ts` 中的一个端点([托管 MCP 连接器](2026-11-24-hosted-mcp-connectors-trust-vendor-read-hints.zh.md))。AWS 和 Calendly 只接受公开客户端;AWS、Supabase 和 Calendly 不发布撤销端点。Cloudflare、AWS 和 Supabase 不发送 scope 参数,沿用服务器的默认授权;Calendly 请求其受保护资源元数据列出的三个范围。 +- **通过 Google 登录接入 Google Cloud。** BigQuery(`https://bigquery.googleapis.com/mcp`)和 Compute Engine(`https://compute.googleapis.com/mcp`)是 Google 自己的托管 MCP 服务器,其授权服务器为 `accounts.google.com`,因此各自是 API 上的一个 `GOOGLE_SCOPES` 条目(`bigquery`、`compute`)及宿主上的一个托管 MCP 端点。Google 每个产品提供一个 MCP 服务器,因此每个产品各为一个连接器。 +- **通过 Microsoft 应用接入 Azure DevOps。** 其托管服务器位于 `mcp.dev.azure.com/`,经由 Entra 工作或学校账户授权,因此 API 的 Microsoft 应用在 `organizations` 请求 `https://mcp.dev.azure.com/.default`。该令牌并非针对 Graph,因此 API 从 ID 令牌而非 Graph 的 `/me` 读取账户。设置页面在授权前收集组织,宿主将服务器与连接行一同保存。Azure 资源没有托管 MCP 服务器,因此不提供。 +- **Oracle Cloud 沿用 Salesforce 的方式。** Oracle 的托管 MCP 服务器运行在各租户内部,经由租户自己的身份域授权,且不支持动态注册,因此用户提供服务器 URL、身份域及其应用的客户端 ID 和密钥。API 的自带应用路径此前仅供 Salesforce 使用,现按提供商选择校验规则和端点;它只接受 `identity.oraclecloud.com` 主机,并请求 `openid offline_access`,宿主只接受 `oraclecloud.com` 上的 HTTPS 服务器 URL。 +- **Gmail、云端硬盘和日历之外的 Google 服务。** `google-tasks`(`tasks`)、`google-contacts`(`contacts`)和 `google-meet`(`meetings.space.created`、`meetings.space.readonly`)通过同一 Workspace 桥接运行,`GWS_SERVICES` 分别设为 `tasks`、`people` 和 `meet`。这四个范围均为敏感而非受限范围,因此验证无需 CASA 评估。桥接本身没有 Meet 工具;其 `workspace_raw` 工具访问 Meet API,并以 `conferenceRecords.list` 验证授权。Chat 和 Keep 需要 Workspace 管理员,YouTube 不在桥接范围内,因此不提供。 +- **类别在客户端。** `connector-categories.ts` 将每个提供商映射到一个标题——沟通、效率、开发工具、销售与营销、电商与购物或金融服务,沿用 Claude 连接器目录的用语,自定义 MCP 服务器可以是任何服务,因此排在最后的“自定义”标题下——连接器页面在各行上方列出每个非空标题。该映射为 `Record`,新增提供商而未指定类别会导致类型检查失败。搜索会缩小每个标题下的行,并隐藏变空的标题。 + +## 考虑过的替代方案 + +- **Spotify** —— 其托管 MCP 服务器经由 Spotify 账户服务授权,后者不动态注册客户端,且 Spotify 只为月活跃用户至少 25 万的注册组织开放超过五个白名单用户的权限,因此 Æven 不提供 Spotify 连接器。 +- **在宿主的提供商视图中携带类别** —— 标题只关乎展示;放在客户端可避免一个没有其他使用方读取的传输字段。 +- **单独的 Google 分组** —— 读者会在其他邮件连接器旁寻找 Gmail,在 OneDrive 旁寻找云端硬盘,因此 Google 提供商归入其用途对应的标题。 +- **完整的 Gmail 和云端硬盘范围** —— 受限范围需要每年付费的 CASA 评估([连接器密钥](2026-10-07-connector-secrets-on-aeven-api.zh.md))。 + +## 影响 + +- 宿主与 Aeven API 须一同发布:宿主提供 API 不认识的提供商时,登录会失败。 +- 这四个 Google 范围须添加到 `aeven-connectors` 的同意屏幕并通过验证;在此之前,授权会显示 Google 的未验证应用页面。 +- Azure DevOps 需要 Aeven Microsoft 应用具备 Azure DevOps 权限,策略禁止第三方应用的组织会拒绝它。Oracle 的文档既未给出服务器主机格式也未给出所需范围,因此这两条规则须在首个真实租户上核实。 diff --git a/docs/subsystems/credentials.i18n.yaml b/docs/subsystems/credentials.i18n.yaml index 66633202ba..63fccdecf9 100644 --- a/docs/subsystems/credentials.i18n.yaml +++ b/docs/subsystems/credentials.i18n.yaml @@ -2,5 +2,5 @@ # side as of the last confirmed-consistent state. Both languages carry equal authority; # after editing either side, bring the other along and re-record with: # pnpm run verify-translation-pairing --write docs/subsystems/credentials.md -credentials.md: 75157cf9b41cab0bfa4438be74ad706289692d99 -credentials.zh.md: 08efd5d4a020c338e775d72fdc885276f10a9955 +credentials.md: 2b6788cb194f9f4268ced2a255b5c4562e6afc94 +credentials.zh.md: 251954e27e3f523f5ca68a88882290f5487e3139 diff --git a/docs/subsystems/credentials.md b/docs/subsystems/credentials.md index 75157cf9b4..2b6788cb19 100644 --- a/docs/subsystems/credentials.md +++ b/docs/subsystems/credentials.md @@ -253,6 +253,20 @@ Signed-in users manage their own integrations; each agent mounts only its owner' */ @Remote async authorize(provider: ConnectorProvider): Promise +/** + * Start the consent for one Azure DevOps organization with a Microsoft work or school account. + * @param request - the organization, as its name, `dev.azure.com` URL, or `visualstudio.com` host. + * @returns the Microsoft consent URL. + */ +@Remote async authorizeAzureDevOps(request: AzureDevOpsAuthorizationRequest): Promise + +/** + * Start the consent for an Oracle Cloud tenancy's managed MCP server through its Identity Domain application. + * @param request - the server URL, the Identity Domain, and the application's client id and optional secret; the secret is write-only. + * @returns the Identity Domain's consent URL. + */ +@Remote async authorizeOracle(request: OracleAuthorizationRequest): Promise + /** * Start installing the Aeven Shopify app into one store. Each store is its own connector row, so * connecting a store again re-consents that row. diff --git a/docs/subsystems/credentials.zh.md b/docs/subsystems/credentials.zh.md index 08efd5d4a0..251954e27e 100644 --- a/docs/subsystems/credentials.zh.md +++ b/docs/subsystems/credentials.zh.md @@ -253,6 +253,20 @@ Signed-in users manage their own integrations; each agent mounts only its owner' */ @Remote async authorize(provider: ConnectorProvider): Promise +/** + * Start the consent for one Azure DevOps organization with a Microsoft work or school account. + * @param request - the organization, as its name, `dev.azure.com` URL, or `visualstudio.com` host. + * @returns the Microsoft consent URL. + */ +@Remote async authorizeAzureDevOps(request: AzureDevOpsAuthorizationRequest): Promise + +/** + * Start the consent for an Oracle Cloud tenancy's managed MCP server through its Identity Domain application. + * @param request - the server URL, the Identity Domain, and the application's client id and optional secret; the secret is write-only. + * @returns the Identity Domain's consent URL. + */ +@Remote async authorizeOracle(request: OracleAuthorizationRequest): Promise + /** * Start installing the Aeven Shopify app into one store. Each store is its own connector row, so * connecting a store again re-consents that row. diff --git a/packages/api/remotes/src/client/index.ts b/packages/api/remotes/src/client/index.ts index 1002a20f1f..5003fa2f1f 100644 --- a/packages/api/remotes/src/client/index.ts +++ b/packages/api/remotes/src/client/index.ts @@ -34,7 +34,7 @@ export type { EmailConnectionResult, EmailConnectionUpdate, EmailConnectorSettings, EmailProbeStep, EmailReceiveSettings, EmailSecurity, EmailServerSettings, PersonalSkillView, PersonalConnectorView, SalesforceAuthorizationRequest, SalesforceConnectorSettings, - ShopifyAuthorizationRequest, ShopifyConnectorSettings, + ShopifyAuthorizationRequest, ShopifyConnectorSettings, AzureDevOpsAuthorizationRequest, OracleAuthorizationRequest, SkillCatalogView, SkillReferenceImport, SkillUploadFile, SystemSkillAgent, SystemSkillView, TelegramConnectorSettings, TelegramLoginFailure, TelegramPairingState, TelegramPairingView, WhatsAppConnectorSettings, diff --git a/packages/client/ui-approval/src/client/ApprovalPanel.tsx b/packages/client/ui-approval/src/client/ApprovalPanel.tsx index 4d1561dcd7..4b82ab74eb 100644 --- a/packages/client/ui-approval/src/client/ApprovalPanel.tsx +++ b/packages/client/ui-approval/src/client/ApprovalPanel.tsx @@ -62,10 +62,11 @@ function ApprovalFlow({ pending, detail, t }: { const connector = /^mcp__([a-z-]+)_([a-f0-9]{8})__(.+)$/.exec(pending.toolName) const providers: Record = { whatsapp: 'WhatsApp', telegram: 'Telegram', discord: 'Discord', slack: 'Slack', - gmail: 'Gmail', 'google-drive': 'Google Drive', 'google-calendar': 'Google Calendar', + gmail: 'Gmail', 'google-drive': 'Google Drive', 'google-calendar': 'Google Calendar', 'google-tasks': 'Google Tasks', 'google-contacts': 'Google Contacts', 'google-meet': 'Google Meet', outlook: 'Outlook', 'outlook-calendar': 'Outlook Calendar', onedrive: 'OneDrive', sharepoint: 'SharePoint', teams: 'Microsoft Teams', github: 'GitHub', notion: 'Notion', vercel: 'Vercel', atlassian: 'Atlassian', monday: 'Monday', stripe: 'Stripe', salesforce: 'Salesforce', shopify: 'Shopify', 'microsoft-365': 'Microsoft 365', + cloudflare: 'Cloudflare', aws: 'AWS', supabase: 'Supabase', calendly: 'Calendly', bigquery: 'BigQuery', 'compute-engine': 'Compute Engine', 'azure-devops': 'Azure DevOps', oracle: 'Oracle Cloud', } const connectorId = connector?.[1] const provider = connectorId === undefined ? undefined : providers[connectorId] ?? connectorId diff --git a/packages/client/ui-settings-integrations/src/client/IntegrationsSection.module.css b/packages/client/ui-settings-integrations/src/client/IntegrationsSection.module.css index ef10159af4..c5062e2a32 100644 --- a/packages/client/ui-settings-integrations/src/client/IntegrationsSection.module.css +++ b/packages/client/ui-settings-integrations/src/client/IntegrationsSection.module.css @@ -142,6 +142,11 @@ .section .importBody .primaryAction { color: var(--dsw-alias-label-primary-foreground); background: var(--dsw-alias-button-primary-fill); } .section .importBody .primaryAction:disabled { opacity: 1; color: var(--dsw-alias-label-primary-foreground); background: var(--dsw-alias-button-primary-fill); } .agentGroups { display: flex; flex-direction: column; gap: 24px; } +/* The Connectors page lists its providers under category headings; each heading rides its group and keeps the copy's own case. */ +.connectorGroups { display: flex; flex-direction: column; gap: 24px; } +.connectorGroups .categoryHeader { position: static; text-transform: none; } +/* The compact section sets every heading's type with !important; category titles read smaller and lighter than page headings. */ +.section.compact .connectorGroups .categoryHeader { font-size: 0.875rem !important; line-height: 1.25rem !important; font-weight: 400 !important; } /* The group labels ride the page rather than pinning to the popup's edge, and name each agent with its count. */ .agentGroups .category { gap: 10px; } .agentGroups .categoryHeader { position: static; font-size: 0.875rem; line-height: 1.375rem; font-weight: 500; } diff --git a/packages/client/ui-settings-integrations/src/client/IntegrationsSection.tsx b/packages/client/ui-settings-integrations/src/client/IntegrationsSection.tsx index b488337ca7..7eb2d3a8c3 100644 --- a/packages/client/ui-settings-integrations/src/client/IntegrationsSection.tsx +++ b/packages/client/ui-settings-integrations/src/client/IntegrationsSection.tsx @@ -1,10 +1,11 @@ /** Personal skill import and connector account management. */ import { useCallback, useEffect, useRef, useState } from 'react' -import type { AccountIntegrationsView, CatalogPackInstall, ConnectorAuthorization, ConnectorCreateRequest, ConnectorId, ConnectorProvider, SalesforceAuthorizationRequest, ShopifyAuthorizationRequest, EmailConnectionRequest, EmailConnectionResult, EmailConnectionUpdate, SkillCatalogView, SkillReferenceImport, SkillUploadFile, SystemSkillView, WhatsAppPairingView, WhatsAppPhoneCodeView } from '@aeven/api-remotes/client' +import type { AccountIntegrationsView, CatalogPackInstall, ConnectorAuthorization, ConnectorCreateRequest, ConnectorId, ConnectorProvider, SalesforceAuthorizationRequest, ShopifyAuthorizationRequest, AzureDevOpsAuthorizationRequest, OracleAuthorizationRequest, EmailConnectionRequest, EmailConnectionResult, EmailConnectionUpdate, SkillCatalogView, SkillReferenceImport, SkillUploadFile, SystemSkillView, WhatsAppPairingView, WhatsAppPhoneCodeView } from '@aeven/api-remotes/client' import { Button, LoadingBlock, SectionHeader, MarkdownText, Menu, Modal, Spinner, Switch, Tabs, IconWarningOutline16, IconChevronLeftOutline14, IconCloseOutline16, IconLucideSettings2 } from '@aeven/client-ui-primitives' import type { HostObservable, InjectFace, PropsLocale, PropsRuntime } from '@aeven/client-ui-slots' import css from './IntegrationsSection.module.css' +import { CONNECTOR_CATEGORIES, connectorCategory } from './connector-categories.ts' import { connectorIcons } from './connector-icons.ts' import type { TelegramPairingOperations } from './connector-page.ts' import { DiscordAccounts } from './DiscordAccounts.tsx' @@ -99,6 +100,8 @@ export interface IntegrationsSectionInjected extends TelegramPairingOperations { authorize: (provider: ConnectorProvider) => Promise authorizeSalesforce: (request: SalesforceAuthorizationRequest) => Promise authorizeShopify: (request: ShopifyAuthorizationRequest) => Promise + authorizeAzureDevOps: (request: AzureDevOpsAuthorizationRequest) => Promise + authorizeOracle: (request: OracleAuthorizationRequest) => Promise setConnectorEnabled: (id: ConnectorId, enabled: boolean) => Promise disconnect: (id: ConnectorId) => Promise startWhatsAppPairing: () => Promise @@ -114,7 +117,7 @@ type Connection = AccountIntegrationsView['connectors'][number] type Provider = AccountIntegrationsView['providers'][number] /** Marks drawn in a single dark color, which the black badge shows inverted. */ -const MONOCHROME_ICONS: ReadonlySet = new Set(['github', 'email', 'notion', 'vercel']) +const MONOCHROME_ICONS: ReadonlySet = new Set(['github', 'email', 'notion', 'vercel', 'aws']) /** Read one uploaded file as browser-safe base64. */ function upload(file: File): Promise { @@ -201,6 +204,15 @@ export function IntegrationsSection(props: IntegrationsSectionProps) { /** The Shopify store form: open, and the store typed into it. */ const [shopifyForm, setShopifyForm] = useState(false) const [shopifyShop, setShopifyShop] = useState('') + /** The Azure DevOps form: open, and the organization typed into it. */ + const [azureDevOpsForm, setAzureDevOpsForm] = useState(false) + const [azureDevOpsOrganization, setAzureDevOpsOrganization] = useState('') + /** The Oracle Cloud form: open, and the server and Identity Domain application typed into it; the secret is never echoed back. */ + const [oracleForm, setOracleForm] = useState(false) + const [oracleServer, setOracleServer] = useState('') + const [oracleDomain, setOracleDomain] = useState('') + const [oracleClientId, setOracleClientId] = useState('') + const [oracleSecret, setOracleSecret] = useState('') const [name, setName] = useState('') const [url, setUrl] = useState('') const [token, setToken] = useState('') @@ -553,6 +565,9 @@ export function IntegrationsSection(props: IntegrationsSectionProps) { if (provider.provider === 'salesforce' && provider.configured) { openDetail(provider.provider); setSalesforceForm(true); return } // A Shopify connection installs into one store, which the form names first. if (provider.provider === 'shopify' && provider.configured) { openDetail(provider.provider); setShopifyForm(true); return } + // An Azure DevOps connection reaches one organization, and an Oracle Cloud one a tenancy's server, which their forms name first. + if (provider.provider === 'azure-devops' && provider.configured) { openDetail(provider.provider); setAzureDevOpsForm(true); return } + if (provider.provider === 'oracle' && provider.configured) { openDetail(provider.provider); setOracleForm(true); return } if (provider.provider !== 'mcp' && provider.configured) { startSignIn(provider.provider); return } // Without sign-in or a token form there is nothing to turn on; the page says what setup is missing. openDetail(provider.provider) @@ -575,8 +590,8 @@ export function IntegrationsSection(props: IntegrationsSectionProps) { if (provider.provider === 'telegram') return t('telegramUnavailable') if (provider.provider === 'discord') return t('discordUnavailable') if (provider.provider === 'slack') return t('slackUnavailable') - return t(['gmail', 'google-drive', 'google-calendar'].includes(provider.provider) ? 'googleSetupRequired' - : ['microsoft-365', 'outlook', 'outlook-calendar', 'onedrive', 'sharepoint', 'teams'].includes(provider.provider) ? 'microsoftSetupRequired' : 'setupRequired') + return t(['gmail', 'google-drive', 'google-calendar', 'google-tasks', 'google-contacts', 'google-meet'].includes(provider.provider) ? 'googleSetupRequired' + : ['microsoft-365', 'outlook', 'outlook-calendar', 'onedrive', 'sharepoint', 'teams', 'azure-devops'].includes(provider.provider) ? 'microsoftSetupRequired' : 'setupRequired') } const connectForm = (provider: 'mcp' | 'github') =>
{ event.preventDefault() @@ -615,6 +630,31 @@ export function IntegrationsSection(props: IntegrationsSectionProps) {

{t('shopifyHint')}

+ const azureDevOpsConnectForm =
{ + event.preventDefault() + const request = { organization: azureDevOpsOrganization } + setAzureDevOpsForm(false) + startSignIn('azure-devops', () => props.authorizeAzureDevOps(request)) + }}> + +

{t('azureDevOpsHint')}

+
+
+ const closeOracleForm = (): void => { setOracleSecret(''); setOracleForm(false) } + const oracleConnectForm =
{ + event.preventDefault() + const request = { server: oracleServer, domain: oracleDomain, clientId: oracleClientId, ...oracleSecret === '' ? {} : { clientSecret: oracleSecret } } + closeOracleForm() + startSignIn('oracle', () => props.authorizeOracle(request)) + }}> +

{t('oracleSetup')}

+ + + + +

{t('tokenHint')}

+
+
/** Search and its action, on the title row so the field's centre rides the heading's optical centre. */ const searchBar = page === 'skills' && selectedSkillId === undefined ?
: <> {providerDetail === undefined && snapshot !== undefined && connectorSearch} {providerDetail === undefined && snapshot !== undefined && matchingProviders.length === 0 &&

{t('noConnectorMatches')}

} - {providerDetail === undefined ?
{matchingProviders.map(provider =>
- - {providerSwitch(provider)} -
)}
:
+ {providerDetail === undefined ?
{CONNECTOR_CATEGORIES.map((category) => { + const rows = matchingProviders.filter(provider => connectorCategory[provider.provider] === category) + return rows.length === 0 ? null :
+

{t(category)}

+
{rows.map(provider =>
+ + {providerSwitch(provider)} +
)}
+
+ })}
:
{connectorIcon(providerDetail.provider, true)}

{t(providerDetail.provider)}

@@ -912,10 +958,14 @@ export function IntegrationsSection(props: IntegrationsSectionProps) {
{providerDetail.provider === 'github' && stateOf(providerDetail).live.length === 0 && form === undefined && } {providerDetail.provider === 'salesforce' && providerDetail.configured && stateOf(providerDetail).live.length === 0 && !salesforceForm && } + {providerDetail.provider === 'azure-devops' && providerDetail.configured && stateOf(providerDetail).live.length === 0 && !azureDevOpsForm && } + {providerDetail.provider === 'oracle' && providerDetail.configured && stateOf(providerDetail).live.length === 0 && !oracleForm && } {providerDetail.provider === 'shopify' && providerDetail.configured && !shopifyForm && }
{providerDetail.provider === 'salesforce' && salesforceForm && salesforceConnectForm} {providerDetail.provider === 'shopify' && shopifyForm && shopifyConnectForm} + {providerDetail.provider === 'azure-devops' && azureDevOpsForm && azureDevOpsConnectForm} + {providerDetail.provider === 'oracle' && oracleForm && oracleConnectForm} } {form !== undefined && connectForm(form)} {providerDetail.skills.length > 0 && <> diff --git a/packages/client/ui-settings-integrations/src/client/connector-categories.ts b/packages/client/ui-settings-integrations/src/client/connector-categories.ts new file mode 100644 index 0000000000..b3a550e789 --- /dev/null +++ b/packages/client/ui-settings-integrations/src/client/connector-categories.ts @@ -0,0 +1,32 @@ +/** + * The category each connector is listed under on the Connectors page, and the order of those categories. + * @module + */ +import type { ConnectorProvider } from '@aeven/api-remotes/client' + +/** A heading on the Connectors page; each names the locale key of its title. */ +export type ConnectorCategory = + | 'categoryCommunication' | 'categoryProductivity' | 'categoryDevelopment' | 'categorySales' + | 'categoryCommerce' | 'categoryFinance' | 'categoryCustom' + +/** Category headings, top to bottom; Custom comes last because its servers can be anything, any number of them. */ +export const CONNECTOR_CATEGORIES: readonly ConnectorCategory[] = [ + 'categoryCommunication', 'categoryProductivity', 'categoryDevelopment', 'categorySales', + 'categoryCommerce', 'categoryFinance', 'categoryCustom', +] + +/** The heading every provider is listed under; a provider keeps the Host's list order inside its category. */ +export const connectorCategory: Readonly> = { + email: 'categoryCommunication', gmail: 'categoryCommunication', outlook: 'categoryCommunication', teams: 'categoryCommunication', + slack: 'categoryCommunication', discord: 'categoryCommunication', whatsapp: 'categoryCommunication', telegram: 'categoryCommunication', + 'google-drive': 'categoryProductivity', 'google-calendar': 'categoryProductivity', 'google-tasks': 'categoryProductivity', + 'google-contacts': 'categoryProductivity', 'google-meet': 'categoryProductivity', 'microsoft-365': 'categoryProductivity', + 'outlook-calendar': 'categoryProductivity', onedrive: 'categoryProductivity', sharepoint: 'categoryProductivity', + notion: 'categoryProductivity', calendly: 'categoryProductivity', atlassian: 'categoryProductivity', monday: 'categoryProductivity', + github: 'categoryDevelopment', vercel: 'categoryDevelopment', cloudflare: 'categoryDevelopment', aws: 'categoryDevelopment', supabase: 'categoryDevelopment', bigquery: 'categoryDevelopment', 'compute-engine': 'categoryDevelopment', + 'azure-devops': 'categoryDevelopment', oracle: 'categoryDevelopment', + salesforce: 'categorySales', + shopify: 'categoryCommerce', + stripe: 'categoryFinance', + mcp: 'categoryCustom', +} diff --git a/packages/client/ui-settings-integrations/src/client/connector-icons.ts b/packages/client/ui-settings-integrations/src/client/connector-icons.ts index 35d07ff0d3..f74b5b7653 100644 --- a/packages/client/ui-settings-integrations/src/client/connector-icons.ts +++ b/packages/client/ui-settings-integrations/src/client/connector-icons.ts @@ -37,4 +37,26 @@ export const connectorIcons: Partial> = { 'microsoft-365': 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iY3VycmVudENvbG9yIj48cGF0aC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cuN3ptMTMuNTc3IDguMUg2LjAwOHY1LjYyYzMuODY0LS4wMDYgNy43MzcuMDExIDExLjU4LS4wMDkgMS4wMi0uMDcgMS42MTgtMS4xMiAxLjQ2OC0yLjA3di0yLjUxbC01LjQ3LTQuNjh2My42NXptLTEzLjU3NyAwYy4wMiAxLjQ0LS4wNDEgMi44OC4wMzMgNC4zMS4xNjIuOTQ4IDEuMTU4IDEuNDMgMi4wNDcgMS4zMWgzLjQ2NHYtNS42MnoiLz48L3N2Zz4=', + // A generic person drawn for the Google Contacts connector in Google blue; it represents no brand mark. + 'google-contacts': 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0iIzFBNzNFOCIgZD0iTTEyIDEyYTQuNSA0LjUgMCAxIDAgMC05IDQuNSA0LjUgMCAwIDAgMCA5Wm0wIDIuMjVjLTQuMTQgMC04LjI1IDIuMDctOC4yNSA1LjA2VjIxaDE2LjV2LTEuNjljMC0yLjk5LTQuMTEtNS4wNi04LjI1LTUuMDZaIi8+PC9zdmc+', + // Cloudflare mark from Simple Icons (CC0 1.0) in the brand orange. + 'cloudflare': 'data:image/svg+xml;base64,PHN2ZyByb2xlPSJpbWciIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjRjM4MDIwIiBkPSJNMTYuNTA4OCAxNi44NDQ3Yy4xNDc1LS41MDY4LjA5MDgtLjk3MDctLjE1NTMtMS4zMTU0LS4yMjQ2LS4zMTY0LS42MDQ1LS40OTktMS4wNjE1LS41MjA1bC04LjY1OTItLjExMjNhLjE1NTkuMTU1OSAwIDAgMS0uMTMzMy0uMDcxM2MtLjAyODMtLjA0Mi0uMDM1MS0uMDk4Ni0uMDIxLS4xNTUzLjAyNzgtLjA4NC4xMTIzLS4xNDg0Lj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TMuMDc0LS4xMDMtLjI1NS4wMzItLjI5NS0uMTkyLS4wNjMtLjM2IDEuNS0xLjA1MyAzLjk2Ny0uNzUgNC4yNTQtLjM5OS4yODcuMzYtLjA4IDIuODI2LTEuNDg1IDQuMDA3LS4yMTUuMTg0LS40MjMuMDg4LS4zMjctLjE1MS4zMi0uNzkgMS4wMy0yLjU3LjY5NS0yLjk5NHoiLz48L3N2Zz4=', + // Supabase mark from Simple Icons (CC0 1.0) in the brand green. + 'supabase': 'data:image/svg+xml;base64,PHN2ZyByb2xlPSJpbWciIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjM0ZDRjhFIiBkPSJNMTEuOSAxLjAzNmMtLjAxNS0uOTg2LTEuMjYtMS40MS0xLjg3NC0uNjM3TC43NjQgMTIuMDVDLS4zMyAxMy40MjcuNjUgMTUuNDU1IDIuNDA5IDE1LjQ1NWg5LjU3OWwuMTEzIDcuNTFjLjAxNC45ODUgMS4yNTkgMS40MDggMS44NzMuNjM2bDkuMjYyLTExLjY1M2MxLjA5My0xLjM3NS4xMTMtMy40MDMtMS42NDUtMy40MDNoLTkuNjQyeiIvPjwvc3ZnPg==', + // Calendly mark from Simple Icons (CC0 1.0) in the brand blue. + 'calendly': 'data:image/svg+xml;base64,PHN2ZyByb2xlPSJpbWciIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDA2QkZGIiBkPSJNMTkuNjU1IDE0LjI2MmMuMjgxIDAgLjU1Ny4wMjMuODI4LjA2NCAwIC4wMDUtLjAwNS4wMS0uMDA1LjAxNC0uMTA1LjI2Ny0uMjM0LjUzNC0uMzgxLjc4NmwtMS4yMTkgMi4xMDZjLTEuMTEyIDEuOTM2LTMuMTc3IDMuMTI3LTUuNDExIDMuMTI3aC0yLjQzMm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gxLjAzNGMyLjc2OCAwIDIuNTUyIDIuODIzIDYuNzMxIDIuODI3WiIvPjwvc3ZnPg==', + // BigQuery mark from Simple Icons (CC0 1.0) in the brand blue. + 'bigquery': 'data:image/svg+xml;base64,PHN2ZyByb2xlPSJpbWciIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjNjY5REY2IiBkPSJNNS42NzYgMTAuNTk1aDIuMDUydjUuMjQ0YTUuODkyIDUuODkyIDAgMCAxLTIuMDUyLTIuMDg4di0zLjE1NnptMTguMTc5IDEwLjgzNmEuNTA0LjUwNCAwIDAgMSAwIC43MDhsLTEuNzE2IDEuNzE2YS41MDQuNTA0IDAgMCAxLS43MDggMGwtNC4yNDgtNC4yNDhhLjIwNi4yMDYgMCAwIDEtLjAwNy0uMDA3Yy0uMDItLjAyLS4wMjgtLjA0NS0uMDQzLS4wNjZhMTAuNzM2IDEwLjczNiAwIDAgMS02LjMzNCAyLjA2NUM0LjgzNSAyMS41OTkgMCAxNi43NjQgMCAxMC43OTlTNC44MzUgMCAxMC44IDBzMTAuNzk5IDQuODM1IDEwLjc5OSAxMC44YzAgMi4zNjktLjc3MiA0LjU1My0yLjA2NiA2LjMzMy4wMjUuMDE3LjA1Mi4wMjguMDc0LjA1bDQuMjQ4IDQuMjQ4em0tNS4wMjgtMTAuNjMyYTguMDE1IDguMDE1IDAgMSAwLTguMDI4IDguMDI4aC4wMjRhOC4wMTYgOC4wMTYgMCAwIDAgOC4wMDQtOC4wMjh6bS00Ljg2IDQuOThhNi4wMDIgNi4wMDIgMCAwIDAgMi4wNC0yLjE4NHYtMS43NjRoLTIuMDR2My45NDh6bS00LjUuOTQ4Yy40NDIuMDU3Ljg4Ny4wOCAxLjMzMi4wNzIuNC4wMjUuOC4wMjUgMS4yIDBWNy42OTJIOS40Njh2OS4wMzV6Ii8+PC9zdmc+', + // Google Cloud mark from Simple Icons (CC0 1.0) in Google blue, for Compute Engine. + 'compute-engine': 'data:image/svg+xml;base64,PHN2ZyByb2xlPSJpbWciIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjNDI4NUY0IiBkPSJNMTIuMTkgMi4zOGE5LjM0NCA5LjM0NCAwIDAgMC05LjIzNCA2Ljg5M2MuMDUzLS4wMi0uMDU1LjAxMyAwIDAtMy44NzUgMi41NTEtMy45MjIgOC4xMS0uMjQ3IDEwLjk0MWwuMDA2LS4wMDctLjAwNy4wM2E2LjcxNyA2LjcxNyAwIDAgMCA0LjA3NyAxLjM1Nmg1LjE3M2wuMDMuMDNoNS4xOTJjNi42ODcuMDUzIDkuMzc2LTguNjA1IDMuODM1LTEyLjM1YTkuMzY1IDkuMzY1IDAgMCAwLTIuODIxLTQuNTUybC0uMDQzLjA0My4wMDYtLjA1QTkuMzQ0IDkuMzQ0IDAgMCAwIDEyLjE5IDIuMzh6bS0uMzU4IDQuMTQ2YzEuMjQ0LS4wNCAyLjUxOC4zNjggMy40ODYgMS4xNWE1LjE4NiA1LjE4NiAwIDAgMSAxLjg2MiA0LjA3OHYuNTE4YzMuNTMtLjA3IDMuNTMgNS4yNjIgMCA1LjE5M2gtNS4xOTNsLS4wMDguMDA5di0uMDRINi43ODVhMi41OSAyLjU5IDAgMCAxLTEuMDY3LS4yM2guMDAxYTIuNTk3IDIuNTk3IDAgMSAxIDMuNDM3LTMuNDM3bDMuMDEzLTMuMDEyQTYuNzQ3IDYuNzQ3IDAgMCAwIDguMTEgOC4yNGMuMDE4LS4wMS4wNC0uMDI2LjA1NC0uMDIzYTUuMTg2IDUuMTg2IDAgMCAxIDMuNjctMS42OXoiLz48L3N2Zz4=', + // Azure DevOps mark from Simple Icons 11.0.0 (CC0 1.0) in the brand blue. + 'azure-devops': 'data:image/svg+xml;base64,PHN2ZyByb2xlPSJpbWciIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDA3OEQ3IiBkPSJNMCA4Ljg3N0wyLjI0NyA1LjkxbDguNDA1LTMuNDE2Vi4wMjJsNy4zNyA1LjM5M0wyLjk2NiA4LjMzOHY4LjIyNUwwIDE1LjcwN3ptMjQtNC40NXYxNC42NTFsLTUuNzUzIDQuOS05LjMwMy0zLjA1N3YzLjA1NmwtNS45NzgtNy40MTYgMTUuMDU3IDEuNzk4VjUuNDE1eiIvPjwvc3ZnPg==', + // Oracle mark from Simple Icons 13.0.0 (CC0 1.0) in the brand red. + 'oracle': 'data:image/svg+xml;base64,PHN2ZyByb2xlPSJpbWciIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjRjgwMDAwIiBkPSJNMTYuNDEyIDQuNDEyaC04LjgyYTcuNTg4IDcuNTg4IDAgMCAwLS4wMDggMTUuMTc2aDguODI4YTcuNTg4IDcuNTg4IDAgMCAwIDAtMTUuMTc2em0tLjE5MyAxMi41MDJINy43ODZhNC45MTUgNC45MTUgMCAwIDEgMC05LjgyOGg4LjQzM2E0LjkxNCA0LjkxNCAwIDEgMSAwIDkuODI4eiIvPjwvc3ZnPg==', } diff --git a/packages/client/ui-settings-integrations/src/client/index.ts b/packages/client/ui-settings-integrations/src/client/index.ts index de2c4c357d..d24e91d268 100644 --- a/packages/client/ui-settings-integrations/src/client/index.ts +++ b/packages/client/ui-settings-integrations/src/client/index.ts @@ -79,6 +79,8 @@ export function apply(ctx: Context): void { authorize: provider => value(remote.authorize(provider)), authorizeSalesforce: request => value(remote.authorizeSalesforce(request)), authorizeShopify: request => value(remote.authorizeShopify(request)), + authorizeAzureDevOps: request => value(remote.authorizeAzureDevOps(request)), + authorizeOracle: request => value(remote.authorizeOracle(request)), setConnectorEnabled: (id, enabled) => value(remote.setConnectorEnabled(id, enabled)), disconnect: id => value(remote.disconnect(id)), startWhatsAppPairing: () => value(remote.startWhatsAppPairing()), diff --git a/packages/client/ui-settings-integrations/src/client/locales.ts b/packages/client/ui-settings-integrations/src/client/locales.ts index 4b85d47b85..629f3acebe 100644 --- a/packages/client/ui-settings-integrations/src/client/locales.ts +++ b/packages/client/ui-settings-integrations/src/client/locales.ts @@ -123,6 +123,26 @@ export const en = { mondayDescription: 'Read and update boards, items, and updates in your Monday account.', stripeDescription: 'Look up customers, payments, invoices, and subscriptions, and create or change them in your Stripe account.', 'microsoft-365Description': 'Mail, calendar, OneDrive, SharePoint, and Teams with one sign-in. Requires a work or school account.', + 'google-tasks': 'Google Tasks', 'google-contacts': 'Google Contacts', 'google-meet': 'Google Meet', cloudflare: 'Cloudflare', aws: 'AWS', supabase: 'Supabase', calendly: 'Calendly', bigquery: 'BigQuery', 'compute-engine': 'Compute Engine', 'azure-devops': 'Azure DevOps', oracle: 'Oracle Cloud', + 'google-tasksDescription': 'Read, add, and complete tasks in your Google Tasks lists.', + 'google-contactsDescription': 'Search, read, and update the people in your Google Contacts.', + 'google-meetDescription': 'Create Meet links and read the conference records of your meetings.', + cloudflareDescription: 'Inspect and manage your Cloudflare accounts, zones, DNS, and Workers.', + awsDescription: 'Look up AWS documentation and work with the resources in your AWS account.', + bigqueryDescription: 'Explore datasets and tables and run SQL queries in your Google Cloud projects.', + 'compute-engineDescription': 'Inspect and manage virtual machines, disks, and instance groups in your Google Cloud projects.', + 'azure-devopsDescription': 'Work with repositories, pull requests, work items, pipelines, and wikis in your Azure DevOps organization. Requires a work or school account.', + oracleDescription: 'Query your Autonomous AI Database through your tenancy\'s managed MCP server.', + azureDevOpsOrganization: 'Organization', azureDevOpsHint: 'Enter your organization\'s name or its dev.azure.com address. Microsoft then asks you to sign in with a work or school account.', + azureDevOpsConnect: 'Connect an organization', + azureDevOpsPlaceholder: 'https://dev.azure.com/contoso', oracleDomainPlaceholder: 'https://idcs-….identity.oraclecloud.com', + oracleSetup: 'Your OCI administrator first creates a confidential application in an Identity Domain with the callback URL https://aeven.io/connectors/oauth/callback, the authorization code and refresh token grants, and your access to the MCP server\'s roles. Copy the server URL from the MCP server\'s Clients tab.', + oracleServer: 'MCP server URL', oracleDomain: 'Identity Domain URL', oracleClientId: 'Client ID', oracleClientSecret: 'Client secret', + oracleConnect: 'Connect a tenancy', + calendlyDescription: 'See your scheduled meetings and event types, share booking links, and book or cancel meetings in Calendly.', + supabaseDescription: 'Query databases, run migrations, and manage projects, edge functions, and storage in your Supabase organizations.', + categoryCommunication: 'Communication', categoryProductivity: 'Productivity', categoryDevelopment: 'Development tools', categorySales: 'Sales and marketing', + categoryCommerce: 'Commerce and shopping', categoryFinance: 'Financial services', categoryCustom: 'Custom', salesforceDescription: 'Search, read, create, and update records in your Salesforce org through its hosted MCP server.', salesforceSetup: 'Your Salesforce administrator first creates an External Client App with the callback URL https://aeven.io/connectors/oauth/callback, the mcp_api and refresh_token scopes, and PKCE, then turns on the MCP server under Setup → API Catalog → MCP Servers.', salesforceDomain: 'My Domain', salesforceClientId: 'Consumer key', salesforceClientSecret: 'Consumer secret (if the app requires one)', @@ -276,6 +296,26 @@ export const zh: Record = { mondayDescription: '阅读及更新您 Monday 账户中的看板、条目与动态。', stripeDescription: '在您的 Stripe 账户中查询客户、付款、发票及订阅,并创建或修改它们。', 'microsoft-365Description': '一次登录即可使用邮件、日历、OneDrive、SharePoint 及 Teams,需要工作或学校账户。', + 'google-tasks': 'Google 任务', 'google-contacts': 'Google 通讯录', 'google-meet': 'Google Meet', cloudflare: 'Cloudflare', aws: 'AWS', supabase: 'Supabase', calendly: 'Calendly', bigquery: 'BigQuery', 'compute-engine': 'Compute Engine', 'azure-devops': 'Azure DevOps', oracle: 'Oracle Cloud', + 'google-tasksDescription': '阅读、添加及完成 Google 任务列表中的任务。', + 'google-contactsDescription': '搜索、阅读及更新 Google 通讯录中的联系人。', + 'google-meetDescription': '创建 Meet 会议链接,并读取您会议的会议记录。', + cloudflareDescription: '查看及管理您的 Cloudflare 账户、域名区域、DNS 及 Workers。', + awsDescription: '查阅 AWS 文档,并操作您 AWS 账户中的资源。', + bigqueryDescription: '在您的 Google Cloud 项目中浏览数据集和表并运行 SQL 查询。', + 'compute-engineDescription': '查看及管理您 Google Cloud 项目中的虚拟机、磁盘及实例组。', + 'azure-devopsDescription': '在您的 Azure DevOps 组织中处理代码仓库、拉取请求、工作项、流水线及 Wiki,需要工作或学校账户。', + oracleDescription: '通过您租户的托管 MCP 服务器查询 Autonomous AI Database。', + azureDevOpsOrganization: '组织', azureDevOpsHint: '输入组织名称或其 dev.azure.com 地址。随后 Microsoft 会要求您使用工作或学校账户登录。', + azureDevOpsConnect: '连接组织', + azureDevOpsPlaceholder: 'https://dev.azure.com/contoso', oracleDomainPlaceholder: 'https://idcs-….identity.oraclecloud.com', + oracleSetup: '您的 OCI 管理员须先在身份域中创建一个机密应用,回调 URL 为 https://aeven.io/connectors/oauth/callback,启用授权码及刷新令牌授权,并授予您 MCP 服务器的角色。请从 MCP 服务器的“客户端”选项卡复制服务器 URL。', + oracleServer: 'MCP 服务器 URL', oracleDomain: '身份域 URL', oracleClientId: '客户端 ID', oracleClientSecret: '客户端密钥', + oracleConnect: '连接租户', + calendlyDescription: '在 Calendly 中查看已安排的会议及活动类型、分享预约链接,并预约或取消会议。', + supabaseDescription: '在您的 Supabase 组织中查询数据库、运行迁移,并管理项目、边缘函数及存储。', + categoryCommunication: '沟通', categoryProductivity: '效率', categoryDevelopment: '开发工具', categorySales: '销售与营销', + categoryCommerce: '电商与购物', categoryFinance: '金融服务', categoryCustom: '自定义', salesforceDescription: '通过 Salesforce 组织的托管 MCP 服务器搜索、阅读、创建及更新记录。', salesforceSetup: '您的 Salesforce 管理员需先创建一个外部客户端应用:回调 URL 为 https://aeven.io/connectors/oauth/callback,权限范围为 mcp_api 和 refresh_token,并启用 PKCE;然后在“设置 → API 目录 → MCP 服务器”中启用 MCP 服务器。', salesforceDomain: '我的域', salesforceClientId: '使用者密钥', salesforceClientSecret: '使用者密码(如应用要求)', @@ -428,6 +468,26 @@ export const es = { mondayDescription: 'Lee y actualiza tableros, elementos y actualizaciones en tu cuenta de Monday.', stripeDescription: 'Consulta clientes, pagos, facturas y suscripciones, y créalos o modifícalos en tu cuenta de Stripe.', 'microsoft-365Description': 'Correo, calendario, OneDrive, SharePoint y Teams con un solo inicio de sesión. Requiere una cuenta profesional o educativa.', + 'google-tasks': 'Google Tasks', 'google-contacts': 'Google Contacts', 'google-meet': 'Google Meet', cloudflare: 'Cloudflare', aws: 'AWS', supabase: 'Supabase', calendly: 'Calendly', bigquery: 'BigQuery', 'compute-engine': 'Compute Engine', 'azure-devops': 'Azure DevOps', oracle: 'Oracle Cloud', + 'google-tasksDescription': 'Lee, agrega y completa tareas en tus listas de Google Tasks.', + 'google-contactsDescription': 'Busca, lee y actualiza las personas de tus contactos de Google.', + 'google-meetDescription': 'Crea enlaces de Meet y consulta los registros de tus reuniones.', + cloudflareDescription: 'Consulta y administra tus cuentas, zonas, DNS y Workers de Cloudflare.', + awsDescription: 'Consulta la documentación de AWS y trabaja con los recursos de tu cuenta de AWS.', + bigqueryDescription: 'Explora conjuntos de datos y tablas y ejecuta consultas SQL en tus proyectos de Google Cloud.', + 'compute-engineDescription': 'Consulta y administra máquinas virtuales, discos y grupos de instancias en tus proyectos de Google Cloud.', + 'azure-devopsDescription': 'Trabaja con repositorios, pull requests, elementos de trabajo, pipelines y wikis en tu organización de Azure DevOps. Requiere una cuenta profesional o educativa.', + oracleDescription: 'Consulta tu Autonomous AI Database mediante el servidor MCP administrado de tu tenancy.', + azureDevOpsOrganization: 'Organización', azureDevOpsHint: 'Escribe el nombre de tu organización o su dirección de dev.azure.com. Después, Microsoft te pide iniciar sesión con una cuenta profesional o educativa.', + azureDevOpsConnect: 'Conectar una organización', + azureDevOpsPlaceholder: 'https://dev.azure.com/contoso', oracleDomainPlaceholder: 'https://idcs-….identity.oraclecloud.com', + oracleSetup: 'Tu administrador de OCI primero crea una aplicación confidencial en un Identity Domain con la URL de retorno https://aeven.io/connectors/oauth/callback, las concesiones de código de autorización y token de actualización, y tu acceso a los roles del servidor MCP. Copia la URL del servidor desde la pestaña Clientes del servidor MCP.', + oracleServer: 'URL del servidor MCP', oracleDomain: 'URL del Identity Domain', oracleClientId: 'ID de cliente', oracleClientSecret: 'Secreto de cliente', + oracleConnect: 'Conectar una tenancy', + calendlyDescription: 'Consulta tus reuniones programadas y tipos de evento, comparte enlaces de reserva y reserva o cancela reuniones en Calendly.', + supabaseDescription: 'Consulta bases de datos, ejecuta migraciones y administra proyectos, edge functions y almacenamiento en tus organizaciones de Supabase.', + categoryCommunication: 'Comunicación', categoryProductivity: 'Productividad', categoryDevelopment: 'Herramientas de desarrollo', categorySales: 'Ventas y marketing', + categoryCommerce: 'Comercio y compras', categoryFinance: 'Servicios financieros', categoryCustom: 'Personalizado', salesforceDescription: 'Busca, lee, crea y actualiza registros en tu organización de Salesforce mediante su servidor MCP alojado.', salesforceSetup: 'Primero, tu administrador de Salesforce crea una External Client App con la URL de devolución de llamada https://aeven.io/connectors/oauth/callback, los ámbitos mcp_api y refresh_token y PKCE, y activa el servidor MCP en Configuración → API Catalog → MCP Servers.', salesforceDomain: 'Mi dominio', salesforceClientId: 'Clave de consumidor', salesforceClientSecret: 'Secreto de consumidor (si la app lo requiere)', diff --git a/packages/client/ui-settings-integrations/tests/skills-library.client.spec.tsx b/packages/client/ui-settings-integrations/tests/skills-library.client.spec.tsx index edb55813af..12099d3f51 100644 --- a/packages/client/ui-settings-integrations/tests/skills-library.client.spec.tsx +++ b/packages/client/ui-settings-integrations/tests/skills-library.client.spec.tsx @@ -79,7 +79,7 @@ function mount(view: AccountIntegrationsView, detail?: string, catalog?: SkillCa retryReverseEngineering, importSkillReference: vi.fn(), systemSkills: vi.fn(), installSystemSkill: vi.fn(), connect: vi.fn(), connectEmail: vi.fn(), updateEmail: vi.fn(), authorize: vi.fn(), - authorizeSalesforce: vi.fn(), authorizeShopify: vi.fn(), + authorizeSalesforce: vi.fn(), authorizeShopify: vi.fn(), authorizeAzureDevOps: vi.fn(), authorizeOracle: vi.fn(), setConnectorEnabled: vi.fn().mockResolvedValue(undefined), disconnect: vi.fn().mockResolvedValue(undefined), startWhatsAppPairing: vi.fn(), whatsAppPairing: vi.fn(), cancelWhatsAppPairing: vi.fn(), whatsAppPhoneCode: vi.fn(), startTelegramPairing: vi.fn(), startTelegramQrPairing: vi.fn(), telegramPairing: vi.fn(), diff --git a/packages/core/automations/src/domain.ts b/packages/core/automations/src/domain.ts index 1ba1d95359..a3a01bdcb7 100644 --- a/packages/core/automations/src/domain.ts +++ b/packages/core/automations/src/domain.ts @@ -33,8 +33,8 @@ const runOn = z.enum(['auto', 'cloud', 'device']) const automationId = text.transform(value => brandString(value)) /** Connector ids a bot may be bound to. */ export const CONNECTOR_IDS = [ - 'email', 'gmail', 'google-drive', 'google-calendar', 'github', 'notion', 'vercel', 'atlassian', 'monday', 'stripe', 'salesforce', 'shopify', 'slack', 'discord', 'telegram', 'whatsapp', - 'microsoft-365', 'outlook', 'outlook-calendar', 'onedrive', 'sharepoint', 'teams', 'mcp', + 'email', 'gmail', 'google-drive', 'google-calendar', 'google-tasks', 'google-contacts', 'google-meet', 'github', 'notion', 'vercel', 'atlassian', 'monday', 'stripe', 'salesforce', 'shopify', 'slack', 'discord', 'telegram', 'whatsapp', + 'microsoft-365', 'outlook', 'outlook-calendar', 'onedrive', 'sharepoint', 'teams', 'cloudflare', 'aws', 'supabase', 'calendly', 'bigquery', 'compute-engine', 'azure-devops', 'oracle', 'mcp', ] as const /** A connector binding: `all`, or a list stored without repeats in a fixed order. */ export const connectorsSchema = z.union([ diff --git a/packages/core/automations/src/types.ts b/packages/core/automations/src/types.ts index f3c2170f4b..64929b5e23 100644 --- a/packages/core/automations/src/types.ts +++ b/packages/core/automations/src/types.ts @@ -55,8 +55,8 @@ export type HandoffId = Branded<'HandoffId'> * IMAP/POP3 mail connector and `mcp` for a custom MCP server connection. */ export type ConnectorId = - | 'email' | 'gmail' | 'google-drive' | 'google-calendar' | 'github' | 'notion' | 'vercel' | 'atlassian' | 'monday' | 'stripe' | 'salesforce' | 'shopify' | 'slack' | 'discord' | 'telegram' | 'whatsapp' - | 'microsoft-365' | 'outlook' | 'outlook-calendar' | 'onedrive' | 'sharepoint' | 'teams' | 'mcp' + | 'email' | 'gmail' | 'google-drive' | 'google-calendar' | 'google-tasks' | 'google-contacts' | 'google-meet' | 'github' | 'notion' | 'vercel' | 'atlassian' | 'monday' | 'stripe' | 'salesforce' | 'shopify' | 'slack' | 'discord' | 'telegram' | 'whatsapp' + | 'microsoft-365' | 'outlook' | 'outlook-calendar' | 'onedrive' | 'sharepoint' | 'teams' | 'cloudflare' | 'aws' | 'supabase' | 'calendly' | 'bigquery' | 'compute-engine' | 'azure-devops' | 'oracle' | 'mcp' /** `all` lets a run use every connector its owner has connected; a list lets it use only those. */ export type ConnectorBinding = 'all' | readonly ConnectorId[] /** diff --git a/packages/extensions/tool-cordis/src/api-catalog.ts b/packages/extensions/tool-cordis/src/api-catalog.ts index 50084973f0..b546c16165 100644 --- a/packages/extensions/tool-cordis/src/api-catalog.ts +++ b/packages/extensions/tool-cordis/src/api-catalog.ts @@ -223,6 +223,18 @@ export const SERVICE_API: readonly ServiceApiEntry[] = [ parameters: [{ name: 'provider', description: 'registered provider to connect.' }], returns: 'the provider consent URL.', }, + { + signature: '@Remote async authorizeAzureDevOps(request: AzureDevOpsAuthorizationRequest): Promise', + description: 'Start the consent for one Azure DevOps organization with a Microsoft work or school account.', + parameters: [{ name: 'request', description: 'the organization, as its name, `dev.azure.com` URL, or `visualstudio.com` host.' }], + returns: 'the Microsoft consent URL.', + }, + { + signature: '@Remote async authorizeOracle(request: OracleAuthorizationRequest): Promise', + description: 'Start the consent for an Oracle Cloud tenancy\'s managed MCP server through its Identity Domain application.', + parameters: [{ name: 'request', description: 'the server URL, the Identity Domain, and the application\'s client id and optional secret; the secret is write-only.' }], + returns: 'the Identity Domain\'s consent URL.', + }, { signature: '@Remote async authorizeShopify(request: ShopifyAuthorizationRequest): Promise', description: 'Start installing the Aeven Shopify app into one store. Each store is its own connector row, so connecting a store again re-consents that row.', @@ -6627,6 +6639,10 @@ export const TYPE_API: readonly TypeApiEntry[] = [ name: 'AvnEnvironmentKey', declaration: 'export type AvnEnvironmentKey = `${typeof AVN_ENV_PREFIX}${string}`;', }, + { + name: 'AzureDevOpsAuthorizationRequest', + declaration: 'export interface AzureDevOpsAuthorizationRequest {\n organization: string;\n}', + }, { name: 'BackendRegistry', declaration: 'export class BackendRegistry {\n register(name: string, backend: StorageBackend): () => void;\n get(name: string): StorageBackend;\n names(): string[];\n}', @@ -6921,7 +6937,7 @@ export const TYPE_API: readonly TypeApiEntry[] = [ }, { name: 'ConnectorProvider', - declaration: 'export type ConnectorProvider = \'github\' | \'notion\' | \'vercel\' | \'atlassian\' | \'monday\' | \'stripe\' | \'salesforce\' | \'shopify\' | \'microsoft-365\' | \'gmail\' | \'google-drive\' | \'google-calendar\' | \'outlook\' | \'outlook-calendar\' | \'onedrive\' | \'sharepoint\' | \'teams\' | \'mcp\' | \'email\' | \'whatsapp\' | \'telegram\' | \'discord\' | \'slack\';', + declaration: 'export type ConnectorProvider = \'github\' | \'notion\' | \'vercel\' | \'atlassian\' | \'monday\' | \'stripe\' | \'salesforce\' | \'shopify\' | \'microsoft-365\' | \'gmail\' | \'google-drive\' | \'google-calendar\' | \'google-tasks\' | \'google-contacts\' | \'google-meet\' | \'cloudflare\' | \'aws\' | \'supabase\' | \'calendly\' | \'bigquery\' | \'compute-engine\' | \'azure-devops\' | \'oracle\' | \'outlook\' | \'outlook-calendar\' | \'onedrive\' | \'sharepoint\' | \'teams\' | \'mcp\' | \'email\' | \'whatsapp\' | \'telegram\' | \'discord\' | \'slack\';', }, { name: 'ConnectorProviderView', @@ -8667,6 +8683,10 @@ export const TYPE_API: readonly TypeApiEntry[] = [ name: 'OptionalSessionSeq', declaration: 'export type OptionalSessionSeq = SessionSeq | null;', }, + { + name: 'OracleAuthorizationRequest', + declaration: 'export interface OracleAuthorizationRequest {\n server: string;\n domain: string;\n clientId: string;\n clientSecret?: string;\n}', + }, { name: 'OverlapPolicy', declaration: 'export type OverlapPolicy = \'skip\' | \'queue\' | \'parallel\';', diff --git a/packages/host/account-integrations/README.i18n.yaml b/packages/host/account-integrations/README.i18n.yaml index 2f92689b4b..a08db68120 100644 --- a/packages/host/account-integrations/README.i18n.yaml +++ b/packages/host/account-integrations/README.i18n.yaml @@ -2,5 +2,5 @@ # side as of the last confirmed-consistent state. Both languages carry equal authority; # after editing either side, bring the other along and re-record with: # pnpm run verify-translation-pairing --write packages/host/account-integrations/README.md -README.md: 51a0f6dd05dab2f379072f2cd9c94d696e6a0a90 -README.zh.md: e529c92fba456275593fecbb909793ad66c98778 +README.md: e20b735bef2f173f5f11e3516c1892255d431fc1 +README.zh.md: 55214012f3f14d4629cafddc408e2d3a8320ff98 diff --git a/packages/host/account-integrations/README.md b/packages/host/account-integrations/README.md index 51a0f6dd05..e20b735bef 100644 --- a/packages/host/account-integrations/README.md +++ b/packages/host/account-integrations/README.md @@ -31,16 +31,18 @@ When an account enables the installed `reverse-engineering` skill, that activati Custom connections accept Streamable HTTP MCP endpoints and optional bearer tokens; GitHub also accepts a personal access token for its official remote endpoint. Connection creation verifies MCP discovery before saving. Tokens are write-only and stored through the credential provider under an account-derived key. Disablement and disconnection deny subsequent calls even when a conversation still holds an older tool catalog. On a Host whose [process jail](../../sandbox/sandbox-jail/README.md) forwards Git requests, an enabled, signed-in GitHub connection is also the credential of the account's own `git` commands for `github.com`: the jail's egress proxy sends it, and no command receives it. -Gmail, Google Drive, and Google Calendar use the maintained Google Workspace MCP bridge with service-specific Google OAuth scopes. The scopes are the widest that Google classes as sensitive or non-sensitive, never restricted, so verification needs no CASA security assessment: Gmail can send and manage labels but not read mail, which the IMAP `email` connector reads instead; Drive uses `drive.file`, so Drive operations see only files the user created or opened with Aeven, while the Docs, Sheets, Slides, and Forms scopes open any document, spreadsheet, presentation, or form the user can access, by id; Calendar is full `calendar`. A grant counts as connected only when it holds the first scope of its connector's list. The OAuth application, its scopes, and every grant live on the Aeven API named by `apiUrl`; the Host holds no client secret or refresh token. Consent verifies API access before saving. Drive includes Docs, Sheets, Slides, Forms, and comments. Enable the Drive, Docs, Sheets, Slides, and Forms APIs for those skills; comments use the Drive API. Form creation and question edits follow ordinary document-edit permission handling; other raw Google writes retain the explicit approval gate. The discovered MCP tools determine available operations; skill instructions do not add tools. +Gmail, Google Drive, Google Calendar, Google Tasks, Google Contacts, and Google Meet use the maintained Google Workspace MCP bridge with service-specific Google OAuth scopes. The scopes are the widest that Google classes as sensitive or non-sensitive, never restricted, so verification needs no CASA security assessment: Gmail can send and manage labels but not read mail, which the IMAP `email` connector reads instead; Drive uses `drive.file`, so Drive operations see only files the user created or opened with Aeven, while the Docs, Sheets, Slides, and Forms scopes open any document, spreadsheet, presentation, or form the user can access, by id; Calendar, Tasks, and Contacts are full `calendar`, `tasks`, and `contacts`; Meet holds `meetings.space.created` and `meetings.space.readonly`, and reaches the Meet API through the bridge's generic Workspace method tool because the bridge has no Meet tools of its own. A grant counts as connected only when it holds the first scope of its connector's list. The OAuth application, its scopes, and every grant live on the Aeven API named by `apiUrl`; the Host holds no client secret or refresh token. Consent verifies API access before saving. Drive includes Docs, Sheets, Slides, Forms, and comments. Enable the Drive, Docs, Sheets, Slides, and Forms APIs for those skills; comments use the Drive API. The Tasks, People, and Meet APIs serve their connectors. Form creation and question edits follow ordinary document-edit permission handling; other raw Google writes retain the explicit approval gate. The discovered MCP tools determine available operations; skill instructions do not add tools. Connector details list installed skill definitions from the existing registry: Drive owns its six Google document and file skills; Gmail, Calendar, GitHub, Microsoft 365, and each hosted MCP provider own their corresponding skill. Connector skills appear once by name only in connector details and require an enabled, authorized connection. Individual skill preferences do not control connector skills. Management keeps instructions visible when invocation is disabled. Disabling or disconnecting invalidates skill discovery and removes mounted tools; the executor also rejects stale calls. Disconnect cancels pending consent and waits for any in-flight callback before deleting the connection and credential. Google, Microsoft, GitHub, and the hosted MCP providers sign in through the Aeven API's connector broker, authenticated with the signed-in user's own Aeven session. The API starts the consent with account-bound, expiring state and PKCE, receives the provider's redirect, spends the code with the application's secret, and stores the grant encrypted; its callback page tells the user to close the window and return to Aeven, naming a failed step without provider responses. When Settings is read again after the reader returns, the Host fetches an access token, verifies access to the selected API or MCP resource, and saves the connector, or removes the grant when verification fails. Before conversation steps the Host asks the API for a current access token, which the API refreshes; a grant the provider revoked marks the connector for reconnection. Microsoft 365 has no application on the Aeven API and is reported as not configured. -Notion, Vercel, Atlassian, monday.com, and Stripe each mount their vendor's hosted MCP server over Streamable HTTP with a grant the Aeven API holds; `hosted-mcp.ts` lists their endpoints. Their authorization servers register OAuth clients dynamically, so the API registers itself on each provider's first consent, keeps that registration, and requests every grant for the vendor's MCP server as its resource; the deployment configures no credential for them. A grant reaches only what the user allowed on the vendor's consent screen. A tool the vendor's own server annotates `readOnlyHint: true` runs directly, and every other tool asks first; Notion's reads instead come from Notion's published tool reference — search, fetch, page lists, people and teamspaces, data-source queries, comments, suggested edits, version history, and attachment downloads. Each approval may cover the same tool for the rest of the session. +Notion, Vercel, Atlassian, monday.com, Stripe, Cloudflare, AWS, Supabase, Calendly, BigQuery, and Compute Engine each mount their vendor's hosted MCP server over Streamable HTTP with a grant the Aeven API holds; `hosted-mcp.ts` lists their endpoints. Their authorization servers register OAuth clients dynamically, so the API registers itself on each provider's first consent, keeps that registration, and requests every grant for the vendor's MCP server as its resource; the deployment configures no credential for them. BigQuery and Compute Engine are Google's own servers, which sign in through the Aeven API's Google application with the `bigquery` and `compute` scopes. A grant reaches only what the user allowed on the vendor's consent screen. A tool the vendor's own server annotates `readOnlyHint: true` runs directly, and every other tool asks first; Notion's reads instead come from Notion's published tool reference — search, fetch, page lists, people and teamspaces, data-source queries, comments, suggested edits, version history, and attachment downloads. Each approval may cover the same tool for the rest of the session. Salesforce mounts an org's hosted MCP server at `api.salesforce.com`, the `salesforceMcpServer` server under `platform` for production and Developer Edition orgs and under `sandbox` for sandbox and scratch orgs. Salesforce has no shared application and no dynamic registration: the org's administrator creates an External Client App with the API's connector callback, the `mcp_api` and `refresh_token` scopes, and PKCE, and enables the server in Setup → API Catalog → MCP Servers. Settings then collects the org's My Domain and the app's consumer key, and its secret when the app requires one, and `authorizeSalesforce` starts the consent with them. The Aeven API accepts only a Salesforce My Domain host, keeps the app's credentials encrypted with the grant, and refreshes the access token every 15 minutes because Salesforce reports no lifetime. The row records the org's My Domain, org id, and the consenting user's id. Tools the server marks `readOnlyHint: true` run directly; every other tool asks first. +Azure DevOps mounts one organization's hosted MCP server at `mcp.dev.azure.com/`. Settings collects the organization as its name, its `dev.azure.com` URL, or its `visualstudio.com` host, and `authorizeAzureDevOps` starts a consent through the Aeven API's Microsoft application for work and school accounts with the `https://mcp.dev.azure.com/.default` permission; the API reads the account from the ID token, because the access token is for Azure DevOps rather than Graph. Oracle Cloud follows Salesforce: Oracle has no shared application and no dynamic registration, so the tenancy's administrator creates a confidential application in an OCI Identity Domain, and Settings collects the managed MCP server's URL (an `oraclecloud.com` HTTPS address), the Identity Domain, and the application's client id and optional secret for `authorizeOracle`. The Aeven API accepts only an `identity.oraclecloud.com` host, keeps the application's credentials encrypted with the grant, and requests `openid offline_access`; the roles the user holds in the application travel in the token. Both rows record the server they mount, and their tools follow the vendor `readOnlyHint` rule. + Shopify holds one connector row per store, each served by its own [`@aeven/shopify-mcp`](../../../native/shopify-mcp/README.md) stdio process over the store's Admin GraphQL API: `get_shop`, `describe_type`, and `graphql_query` read, and `graphql_mutation` changes the live store and asks first. Settings collects the store as a `myshopify.com` domain, a URL on it, an admin URL, or its handle, and `authorizeShopify` starts the install of the deployment's Shopify app into that store; connecting a store again re-consents its row. The Aeven API holds the app's credentials, checks Shopify's signature on the redirect and that it names the same store, and keeps an expiring offline token it refreshes. Consent completes once the store's Admin API answers with the store's name, which names the row. The child receives the store and a short-lived token in its environment, so a refreshed token restarts it. Uninstalling the app or Shopify's shop redaction deletes the store's grant on the Aeven API, and the row then asks to reconnect. WhatsApp and Telegram hold one connector row per account, and each row owns one supervised daemon process bound to a loopback port the operating system chooses. The Host starts and restarts that process with backoff, holds its standard input open so a crashed Host leaves no process holding a session, logs the warning and error lines the daemon writes to stderr, and mounts its tools at `mcp_____`. Every connector is mounted before each conversation step; one that cannot connect is logged and left out of steps for `connectorRetryMs`, or until its token, endpoint, or server entry changes, so a broken account never ends a turn and does not delay every step. Settings links a WhatsApp number by scanning a QR code, or, from the phone being linked, by typing the eight-character code `whatsAppPhoneCode` gets from the daemon's `/pair/phone` route for that number, typed with its country code, a `+`, `00`, or `(0)` allowed (the daemon opens a fresh login session for each code, because a code lives only as long as its session's 160-second QR window; when the phone was given a code that did not match, WhatsApp sends `refresh_code` and the daemon issues a new code that the pairing view's `phoneCode` carries, and WhatsApp's `429 rate-overlimit` after many attempts answers `rate-limited`), and signs in a Telegram account by typing its phone number, the code Telegram sends, and the account's 2FA password when Telegram asks for one. A WhatsApp linking attempt belongs to the Host, not the page: leaving the page to scan, or a phone browser discarding the tab, keeps it, and an unscanned attempt expires after the consent lifetime. A WhatsApp number is saved once the phone scans the code; a Telegram account is saved once Telegram authorizes it, and an account already signed in is rejected instead of added twice. Unlinking ends the session at the provider and deletes the connector's data directory. Each account keeps its own process and namespace, so a conversation can reach several accounts without mixing them. `whatsAppMessageMedia` serves a WhatsApp card the media of one message, base64-encoded, by the listing call's tool name: it answers only for a number the acting user linked, asking the named connector first and then the user's other linked numbers, because a listing made on another device names a connector this Host does not hold while every device linked to the phone knows the message by the same ID, through the daemon's token-protected `/media` route, which re-encodes a voice note as AAC so every browser plays it, and returns nothing for a file over `whatsappMediaMaxBytes`. diff --git a/packages/host/account-integrations/README.zh.md b/packages/host/account-integrations/README.zh.md index e529c92fba..55214012f3 100644 --- a/packages/host/account-integrations/README.zh.md +++ b/packages/host/account-integrations/README.zh.md @@ -31,16 +31,18 @@ Web bundle 将此插件与[技能和连接器页面](../../client/ui-settings-in 自定义连接接受 Streamable HTTP MCP 地址和可选 bearer token;GitHub 还接受用于其官方远程地址的个人访问令牌。创建连接会先验证 MCP 发现,再保存。令牌仅可写入,并由凭据提供方按账户派生的键保存。即使对话仍持有旧工具目录,禁用或断开连接也会拒绝后续调用。在[进程监狱](../../sandbox/sandbox-jail/README.zh.md)转发 Git 请求的 Host 上,已启用且已登录的 GitHub 连接同时是该账户自己的 `git` 命令访问 `github.com` 的凭据:由监狱的出站代理发送,任何命令都拿不到它。 -Gmail、Google 云端硬盘和 Google 日历使用维护中的 Google Workspace MCP 桥接及各服务的 Google OAuth 权限。这些权限是 Google 归为敏感或非敏感、从不属于受限的最宽范围,因此验证无需 CASA 安全评估:Gmail 可以发送邮件和管理标签,但不能读取邮件,读取由 IMAP `email` 连接器负责;Drive 使用 `drive.file`,Drive 操作只能看到用户用 Aeven 创建或打开的文件,而 Docs、Sheets、Slides 和 Forms 权限可按 ID 打开用户有权访问的任何文档、表格、幻灯片或表单;Calendar 使用完整的 `calendar`。只有持有连接器列表中第一个权限的授权才算已连接。OAuth 应用、其权限范围和所有授权都保存在 `apiUrl` 指定的 Aeven API 上;宿主不持有任何客户端密钥或刷新令牌。授权在保存前验证 API 访问。Drive 包含文档、表格、幻灯片、表单及评论。为这些技能启用 Drive、Docs、Sheets、Slides 和 Forms API;评论使用 Drive API。表单创建和问题编辑遵循普通文档编辑的权限处理;其他原始 Google 写入仍须显式批准。发现的 MCP 工具决定可用操作;技能指令不会添加工具。 +Gmail、Google 云端硬盘、Google 日历、Google 任务、Google 通讯录和 Google Meet 使用维护中的 Google Workspace MCP 桥接及各服务的 Google OAuth 权限。这些权限是 Google 归为敏感或非敏感、从不属于受限的最宽范围,因此验证无需 CASA 安全评估:Gmail 可以发送邮件和管理标签,但不能读取邮件,读取由 IMAP `email` 连接器负责;Drive 使用 `drive.file`,Drive 操作只能看到用户用 Aeven 创建或打开的文件,而 Docs、Sheets、Slides 和 Forms 权限可按 ID 打开用户有权访问的任何文档、表格、幻灯片或表单;Calendar、Tasks 和 Contacts 分别使用完整的 `calendar`、`tasks` 和 `contacts`;Meet 持有 `meetings.space.created` 和 `meetings.space.readonly`,由于桥接本身没有 Meet 工具,它通过桥接的通用 Workspace 方法工具访问 Meet API。只有持有连接器列表中第一个权限的授权才算已连接。OAuth 应用、其权限范围和所有授权都保存在 `apiUrl` 指定的 Aeven API 上;宿主不持有任何客户端密钥或刷新令牌。授权在保存前验证 API 访问。Drive 包含文档、表格、幻灯片、表单及评论。为这些技能启用 Drive、Docs、Sheets、Slides 和 Forms API;评论使用 Drive API。Tasks、People 和 Meet API 服务于各自的连接器。表单创建和问题编辑遵循普通文档编辑的权限处理;其他原始 Google 写入仍须显式批准。发现的 MCP 工具决定可用操作;技能指令不会添加工具。 连接器详情从现有注册表列出已安装的技能定义:Drive 拥有六项 Google 文档及文件技能;Gmail、日历、GitHub、Microsoft 365 及每个托管 MCP 提供方各拥有对应技能。连接器技能按名称仅在连接器详情中显示一次,需要已启用且已授权的连接。单独的技能偏好不控制连接器技能。禁用调用后仍可在管理页面查看指令。禁用或断开连接会使技能发现缓存失效并移除挂载工具;执行器也会拒绝过期调用。断开连接会取消待处理授权,并等待正在执行的回调结束后删除连接及凭据。 Google、Microsoft、GitHub 及托管 MCP 提供方通过 Aeven API 的连接器代理登录,并以已登录用户自己的 Aeven 会话认证。API 使用绑定账户且有时限的 state 和 PKCE 发起授权,接收提供商的重定向,用应用密钥兑换授权码,并加密保存授权;其回调页面提示用户关闭窗口并返回 Aeven,失败时只说明失败的步骤,不显示提供商响应。读者返回后再次读取设置时,宿主获取访问令牌、验证对所选 API 或 MCP 资源的访问并保存连接器;验证失败时删除该授权。对话步骤前宿主向 API 请求当前访问令牌,由 API 负责刷新;被提供商撤销的授权会将连接器标记为需重新连接。Microsoft 365 在 Aeven API 上没有应用,显示为未配置。 -Notion、Vercel、Atlassian、monday.com 和 Stripe 各自以 Aeven API 持有的授权,通过 Streamable HTTP 挂载其供应商托管的 MCP 服务器;`hosted-mcp.ts` 列出这些端点。它们的授权服务器动态注册 OAuth 客户端,因此 API 在每个提供方首次授权时自行注册并保存该注册,且每项授权都以该供应商的 MCP 服务器作为资源请求;部署无需为它们配置任何凭据。授权只能访问用户在供应商授权页面上允许的内容。供应商自己的服务器标注为 `readOnlyHint: true` 的工具直接执行,其他所有工具都会先征求批准;Notion 的读取工具则来自 Notion 发布的工具参考——搜索、获取、页面列表、成员与团队空间、数据源查询、评论、建议编辑、版本历史及附件下载。每项批准都可覆盖本会话剩余部分中的同一工具。 +Notion、Vercel、Atlassian、monday.com、Stripe、Cloudflare、AWS、Supabase、Calendly、BigQuery 和 Compute Engine 各自以 Aeven API 持有的授权,通过 Streamable HTTP 挂载其供应商托管的 MCP 服务器;`hosted-mcp.ts` 列出这些端点。它们的授权服务器动态注册 OAuth 客户端,因此 API 在每个提供方首次授权时自行注册并保存该注册,且每项授权都以该供应商的 MCP 服务器作为资源请求;部署无需为它们配置任何凭据。BigQuery 和 Compute Engine 是 Google 自己的服务器,通过 Aeven API 的 Google 应用以 `bigquery` 和 `compute` 范围登录。授权只能访问用户在供应商授权页面上允许的内容。供应商自己的服务器标注为 `readOnlyHint: true` 的工具直接执行,其他所有工具都会先征求批准;Notion 的读取工具则来自 Notion 发布的工具参考——搜索、获取、页面列表、成员与团队空间、数据源查询、评论、建议编辑、版本历史及附件下载。每项批准都可覆盖本会话剩余部分中的同一工具。 Salesforce 挂载组织在 `api.salesforce.com` 上托管的 MCP 服务器:生产组织和 Developer Edition 组织使用 `platform` 下的 `salesforceMcpServer` 服务器,沙盒和临时组织使用 `sandbox` 下的同名服务器。Salesforce 没有共享应用,也不支持动态注册:组织管理员需创建一个外部客户端应用,使用 API 的连接器回调、`mcp_api` 和 `refresh_token` 权限范围及 PKCE,并在“设置 → API 目录 → MCP 服务器”中启用该服务器。随后,设置页面收集组织的“我的域”和应用的使用者密钥(应用要求时还有使用者密码),`authorizeSalesforce` 以此发起授权。Aeven API 只接受 Salesforce“我的域”主机,将应用凭据与授权一起加密保存,并且由于 Salesforce 不报告令牌有效期,每 15 分钟刷新一次访问令牌。连接行记录组织的“我的域”、组织 ID 及授权用户的 ID。服务器标注为 `readOnlyHint: true` 的工具直接执行,其他所有工具都会先征求批准。 +Azure DevOps 挂载某个组织位于 `mcp.dev.azure.com/` 的托管 MCP 服务器。设置页面以组织名称、其 `dev.azure.com` URL 或其 `visualstudio.com` 主机收集组织,`authorizeAzureDevOps` 通过 Aeven API 的 Microsoft 应用为工作或学校账户发起授权,权限为 `https://mcp.dev.azure.com/.default`;由于访问令牌针对 Azure DevOps 而非 Graph,API 从 ID 令牌读取账户。Oracle Cloud 沿用 Salesforce 的方式:Oracle 没有共享应用,也不支持动态注册,因此由租户管理员在 OCI 身份域中创建机密应用,设置页面为 `authorizeOracle` 收集托管 MCP 服务器的 URL(`oraclecloud.com` 上的 HTTPS 地址)、身份域,以及该应用的客户端 ID 和可选密钥。Aeven API 只接受 `identity.oraclecloud.com` 主机,将应用凭据与授权一同加密保存,并请求 `openid offline_access`;用户在该应用中持有的角色随令牌传递。两类行都记录其挂载的服务器,其工具遵循供应商的 `readOnlyHint` 规则。 + Shopify 为每个店铺保存一个连接器行,每行由各自的 [`@aeven/shopify-mcp`](../../../native/shopify-mcp/README.zh.md) stdio 进程通过店铺的 Admin GraphQL API 提供服务:`get_shop`、`describe_type` 和 `graphql_query` 只读,`graphql_mutation` 会修改线上店铺并先征求批准。设置页面以 `myshopify.com` 域名、该域名下的 URL、后台 URL 或店铺句柄收集店铺,`authorizeShopify` 随即开始将部署的 Shopify 应用安装到该店铺;再次连接同一店铺会对其行重新授权。Aeven API 持有该应用的凭据,校验 Shopify 在重定向上的签名以及其是否指向同一店铺,并保存一个由其刷新的可过期离线令牌。店铺的 Admin API 返回店铺名称后授权才算完成,该名称即为连接行的名称。子进程通过环境变量接收店铺及短期令牌,因此令牌刷新会重启子进程。卸载应用或 Shopify 的店铺数据删除请求会删除 Aeven API 上该店铺的授权,之后该行会提示重新连接。 WhatsApp 和 Telegram 每个账户各自占一行连接器,每行拥有一个受监管的守护进程,其绑定的回环端口由操作系统分配。宿主启动该进程并在异常退出后按退避策略重启,保持其标准输入打开,因此宿主崩溃后不会遗留持有会话的进程,并把守护进程写到 stderr 的警告与错误行记入日志;其工具挂载为 `mcp_____`。每个对话步骤开始前都会挂载所有连接器;无法连接的连接器会被记录,并在 `connectorRetryMs` 内或其令牌、端点或服务器入口改变之前从步骤中略过,因此出问题的账户绝不会终止一个轮次,也不会拖慢每个步骤。设置中扫描二维码即可关联 WhatsApp 号码;在要关联的手机上,也可以输入 `whatsAppPhoneCode` 从守护进程 `/pair/phone` 路由为该号码取得的八位代码来关联,号码需带国家代码,可写 `+`、`00` 或 `(0)`(守护进程为每个代码开启新的登录会话,因为代码只在其会话 160 秒的二维码窗口内有效;手机收到的代码不匹配时,WhatsApp 发送 `refresh_code`,守护进程发放新代码并由关联视图的 `phoneCode` 携带;多次尝试后 WhatsApp 返回 `429 rate-overlimit`,此时答复 `rate-limited`);Telegram 账户则输入手机号、Telegram 发送的验证码,以及 Telegram 要求时的两步验证密码完成登录。WhatsApp 关联尝试属于宿主而非页面:离开页面去扫描,或手机浏览器丢弃该标签页,都会保留这次尝试,未扫描的尝试在授权有效期结束后过期。手机扫描二维码后保存该号码;Telegram 授权后保存该账户,已在列表中的账户会被拒绝而不会重复添加。取消关联会在提供商侧结束会话并删除该连接器的数据目录。每个账户各自拥有进程与命名空间,因此一个对话可以访问多个账户而不会相互混淆。`whatsAppMessageMedia` 按列出消息的调用的工具名,为 WhatsApp 卡片提供一条消息的媒体(base64 编码):它只响应当前用户自己关联的号码,先询问工具名指向的连接器,再询问该用户关联的其他号码,因为在另一台设备上列出的消息指向本 Host 没有的连接器,而关联同一手机的所有设备都以相同 ID 识别该消息;经由守护进程受令牌保护的 `/media` 路由取得,该路由会把语音消息重新编码为 AAC 以便所有浏览器播放;文件超过 `whatsappMediaMaxBytes` 时不返回内容。 diff --git a/packages/host/account-integrations/src/azure-devops.ts b/packages/host/account-integrations/src/azure-devops.ts new file mode 100644 index 0000000000..f512044f09 --- /dev/null +++ b/packages/host/account-integrations/src/azure-devops.ts @@ -0,0 +1,30 @@ +/** + * Azure DevOps connector: the hosted MCP server of one Azure DevOps organization, reached with a + * Microsoft work or school account through the Aeven API's Microsoft application. + */ + +import { z } from 'zod' + +/** An Azure DevOps organization name: letters, digits, and inner hyphens, at most 50 characters. */ +const ORGANIZATION = /^[a-z0-9](?:[a-z0-9-]{0,48}[a-z0-9])?$/ + +/** + * What Settings submits to connect an organization: its name, its `dev.azure.com` URL, or its + * legacy `.visualstudio.com` host. + */ +export const azureDevOpsRequestSchema = z.object({ + organization: z.string().trim().toLowerCase().transform(value => value + .replace(/^https?:\/\//, '') + .replace(/^dev\.azure\.com\//, '') + .replace(/\.visualstudio\.com(?:\/.*)?$/, '') + .replace(/\/.*$/, '')).pipe(z.string().regex(ORGANIZATION)), +}) + +/** + * The hosted MCP server one organization's connector mounts. + * @param organization - the organization name, as {@link azureDevOpsRequestSchema} normalizes it. + * @returns the server's Streamable HTTP endpoint. + */ +export function azureDevOpsMcpEndpoint(organization: string): string { + return `https://mcp.dev.azure.com/${encodeURIComponent(organization)}` +} diff --git a/packages/host/account-integrations/src/google.ts b/packages/host/account-integrations/src/google.ts index 38cbb1443d..629cceb272 100644 --- a/packages/host/account-integrations/src/google.ts +++ b/packages/host/account-integrations/src/google.ts @@ -1,7 +1,8 @@ /** * Account-scoped Workspace MCP bridge. Delegated scopes are the widest that Google classes as sensitive or non-sensitive, never * restricted, so verification needs no security assessment: Gmail sends and labels (mail is read through an email account), - * Drive opens only files the user created or opened with Aeven plus any Doc, Sheet, Slide or Form by id, and Calendar is full. + * Drive opens only files the user created or opened with Aeven plus any Doc, Sheet, Slide or Form by id, and Calendar, Tasks and + * Contacts are full. Meet manages the meeting spaces Aeven creates and reads the conference records of any space the user can open. * The first scope of each list is the one a grant must hold for its connector to count as connected. */ @@ -48,6 +49,31 @@ const googleConnectors = { 'arguments': {}, 'scopes': ['https://www.googleapis.com/auth/calendar'], }, + 'google-tasks': { + 'endpoint': 'https://tasks.googleapis.com/tasks/v1/', + 'services': 'tasks', + 'check': 'tasks_lists', + 'arguments': {}, + 'scopes': ['https://www.googleapis.com/auth/tasks'], + }, + 'google-contacts': { + 'endpoint': 'https://people.googleapis.com/v1/', + 'services': 'people', + 'check': 'contacts_list', + 'arguments': { 'max': 1 }, + 'scopes': ['https://www.googleapis.com/auth/contacts'], + }, + // The bridge has no Meet tools of its own; its generic Workspace method tool reaches the Meet API. + 'google-meet': { + 'endpoint': 'https://meet.googleapis.com/v2/', + 'services': 'meet', + 'check': 'workspace_raw', + 'arguments': { 'service': 'meet', 'path': ['conferenceRecords', 'list'], 'params': { 'pageSize': 1 } }, + 'scopes': [ + 'https://www.googleapis.com/auth/meetings.space.created', + 'https://www.googleapis.com/auth/meetings.space.readonly', + ], + }, } as const /** @@ -60,6 +86,9 @@ export function googleService(provider: ConnectorProvider): typeof googleConnect case 'gmail': return googleConnectors.gmail case 'google-drive': return googleConnectors['google-drive'] case 'google-calendar': return googleConnectors['google-calendar'] + case 'google-tasks': return googleConnectors['google-tasks'] + case 'google-contacts': return googleConnectors['google-contacts'] + case 'google-meet': return googleConnectors['google-meet'] default: return undefined // Other providers use deployment-configured MCP resources. } } diff --git a/packages/host/account-integrations/src/hosted-mcp.ts b/packages/host/account-integrations/src/hosted-mcp.ts index fb55fbb34c..74ea7fc344 100644 --- a/packages/host/account-integrations/src/hosted-mcp.ts +++ b/packages/host/account-integrations/src/hosted-mcp.ts @@ -1,12 +1,14 @@ /** - * Vendor-hosted MCP connectors: Notion, Vercel, Atlassian, monday.com, and Stripe. Each mounts - * its vendor's own MCP server over Streamable HTTP with a grant the Aeven API holds. + * Vendor-hosted MCP connectors: Notion, Vercel, Atlassian, monday.com, Stripe, Cloudflare, + * AWS, Supabase, Calendly, BigQuery, and Compute Engine; BigQuery and Compute Engine are Google's + * and sign in through the Aeven API's Google application. Each mounts its vendor's own MCP server + * over Streamable HTTP with a grant the Aeven API holds. */ import type { ConnectorProvider } from './types.ts' /** Providers whose connector mounts the vendor's hosted MCP server. */ -export type HostedMcpProvider = 'notion' | 'vercel' | 'atlassian' | 'monday' | 'stripe' +export type HostedMcpProvider = 'notion' | 'vercel' | 'atlassian' | 'monday' | 'stripe' | 'cloudflare' | 'aws' | 'supabase' | 'calendly' | 'bigquery' | 'compute-engine' /** * Each provider's MCP endpoint. The Aeven API requests every grant for the vendor's MCP server, @@ -18,6 +20,12 @@ export const HOSTED_MCP_ENDPOINTS: Readonly> = atlassian: 'https://mcp.atlassian.com/v1/mcp', monday: 'https://mcp.monday.com/mcp', stripe: 'https://mcp.stripe.com', + cloudflare: 'https://mcp.cloudflare.com/mcp', + aws: 'https://aws-mcp.us-east-1.api.aws/mcp', + supabase: 'https://mcp.supabase.com/mcp', + calendly: 'https://mcp.calendly.com/', + bigquery: 'https://bigquery.googleapis.com/mcp', + 'compute-engine': 'https://compute.googleapis.com/mcp', } /** @@ -66,4 +74,10 @@ export const HOSTED_MCP_APPROVAL_REASONS: Readonly(['github', 'notion', 'vercel', 'atlassian', 'monday', 'stripe', 'salesforce', 'shopify', 'microsoft-365', 'gmail', 'google-drive', 'google-calendar', 'outlook', 'outlook-calendar', 'onedrive', 'sharepoint', 'teams']) +const brokeredProviders = new Set(['github', 'notion', 'vercel', 'atlassian', 'monday', 'stripe', 'salesforce', 'shopify', 'cloudflare', 'aws', 'supabase', 'calendly', 'bigquery', 'compute-engine', 'azure-devops', 'oracle', 'microsoft-365', 'gmail', 'google-drive', 'google-calendar', 'google-tasks', 'google-contacts', 'google-meet', 'outlook', 'outlook-calendar', 'onedrive', 'sharepoint', 'teams']) /** Key of the Telegram application identifiers cached after the first signed-in fetch, so linked accounts start at boot. */ const telegramAppKey = credentialKey('account-integrations', 'telegram-application') /** Time before an issued access token's expiry at which the Host asks for a new one. */ @@ -392,7 +394,7 @@ const TOKEN_MARGIN_MS = 60_000 const connectorSkills: Record = { 'google-drive': ['google-drive', 'google-docs', 'google-sheets', 'google-slides', 'google-drive-comments', 'google-forms'], gmail: ['gmail'], 'google-calendar': ['google-calendar'], github: ['github'], notion: ['notion'], vercel: ['vercel'], atlassian: ['atlassian'], monday: ['monday'], stripe: ['stripe'], salesforce: ['salesforce'], shopify: ['shopify'], 'microsoft-365': ['microsoft-365'], outlook: ['outlook'], 'outlook-calendar': ['outlook-calendar'], onedrive: ['onedrive'], sharepoint: ['sharepoint'], teams: ['teams'], mcp: [], email: [], whatsapp: ['whatsapp'], telegram: ['telegram'], - discord: ['discord'], slack: ['slack'], + discord: ['discord'], slack: ['slack'], 'google-tasks': [], 'google-contacts': [], 'google-meet': [], cloudflare: [], aws: [], supabase: [], calendly: [], bigquery: [], 'compute-engine': [], 'azure-devops': [], oracle: [], } /** Provider names the model's tool index shows beside each connector's own name. */ @@ -400,6 +402,29 @@ const providerTitles: Record = { github: 'GitHub', notion: 'Notion', vercel: 'Vercel', atlassian: 'Atlassian', monday: 'Monday', stripe: 'Stripe', salesforce: 'Salesforce', shopify: 'Shopify', 'microsoft-365': 'Microsoft 365', gmail: 'Gmail', 'google-drive': 'Google Drive', 'google-calendar': 'Google Calendar', outlook: 'Outlook mail', 'outlook-calendar': 'Outlook Calendar', onedrive: 'OneDrive', sharepoint: 'SharePoint', teams: 'Microsoft Teams', mcp: 'MCP server', email: 'Email', whatsapp: 'WhatsApp', telegram: 'Telegram', discord: 'Discord', slack: 'Slack', + 'google-tasks': 'Google Tasks', 'google-contacts': 'Google Contacts', 'google-meet': 'Google Meet', cloudflare: 'Cloudflare', aws: 'AWS', supabase: 'Supabase', calendly: 'Calendly', bigquery: 'BigQuery', 'compute-engine': 'Compute Engine', 'azure-devops': 'Azure DevOps', oracle: 'Oracle Cloud', +} + +/** + * What the approval prompt says for a provider whose server address belongs to the connection, not to + * the provider: each trusts its server's `readOnlyHint` the way the vendor-hosted servers do. + */ +const OWN_SERVER_APPROVAL_REASONS: Partial> = { + salesforce: 'Approve this change to your connected Salesforce org. It changes records other users see.', + shopify: 'Approve this change to your connected Shopify store. It changes the live store.', + 'azure-devops': 'Approve this change to your connected Azure DevOps organization. Other members can see it.', + oracle: 'Approve this action on your connected Oracle Cloud tenancy. It can change live databases.', +} + +/** + * The name Settings shows for a connection whose server came with its consent request. + * @param provider - `azure-devops` or `oracle`. + * @param endpoint - the connection's MCP server. + * @returns the Azure DevOps organization, or the Oracle server's host. + */ +function serverName(provider: ConnectorProvider, endpoint: string): string { + const url = new URL(endpoint) + return provider === 'azure-devops' ? decodeURIComponent(url.pathname.slice(1)) : url.host } /** Connector tool names: `mcp_____`. */ @@ -909,15 +934,14 @@ export default class AccountIntegrations extends TypertRemoteService { // Slack owns these names, so an unrecognized one asks rather than posting unreviewed. return { kind: 'ask', allowSession: exec.name, allowSessionCoverage: 'account', reason: 'Approve this action on your connected Slack workspace. It will appear as you.' } } - if (isHostedMcp(connector.provider) || connector.provider === 'salesforce' || connector.provider === 'shopify') { - // The vendor's own server is trusted to mark its reads; a tool it does not mark asks first. + // The vendor's own server is trusted to mark its reads; a tool it does not mark asks first. + const ownServerReason = OWN_SERVER_APPROVAL_REASONS[connector.provider] + if (ownServerReason !== undefined) { + if (this.ctx.tools.get(exec.name, exec.agent)?.readOnlyHint === true) return next() + return { kind: 'ask', allowSession: exec.name, allowSessionCoverage: 'account', reason: ownServerReason } + } + if (isHostedMcp(connector.provider)) { const readOnlyHint = this.ctx.tools.get(exec.name, exec.agent)?.readOnlyHint === true - if (connector.provider === 'salesforce' || connector.provider === 'shopify') { - if (readOnlyHint) return next() - return { kind: 'ask', allowSession: exec.name, allowSessionCoverage: 'account', reason: connector.provider === 'shopify' - ? 'Approve this change to your connected Shopify store. It changes the live store.' - : 'Approve this change to your connected Salesforce org. It changes records other users see.' } - } if (isHostedMcpReadTool(connector.provider, exec.name.slice(match[0].length), readOnlyHint)) return next() return { kind: 'ask', allowSession: exec.name, allowSessionCoverage: 'account', reason: HOSTED_MCP_APPROVAL_REASONS[connector.provider] } } @@ -1502,9 +1526,38 @@ export default class AccountIntegrations extends TypertRemoteService { if (provider === 'slack') return this.authorizeSlack(owner) if (provider === 'salesforce') throw new Error('Salesforce orgs are connected with authorizeSalesforce') if (provider === 'shopify') throw new Error('Shopify stores are connected with authorizeShopify') + if (provider === 'azure-devops') throw new Error('Azure DevOps organizations are connected with authorizeAzureDevOps') + if (provider === 'oracle') throw new Error('Oracle Cloud tenancies are connected with authorizeOracle') return this.startConsent(owner, provider) } + /** + * Start the consent for one Azure DevOps organization with a Microsoft work or school account. + * @param request - the organization, as its name, `dev.azure.com` URL, or `visualstudio.com` host. + * @returns the Microsoft consent URL. + */ + @Remote + async authorizeAzureDevOps(request: AzureDevOpsAuthorizationRequest): Promise { + const owner = this.owner() + const parsed = azureDevOpsRequestSchema.safeParse(request) + if (!parsed.success) throw new Error('enter the Azure DevOps organization name') + return this.startConsent(owner, 'azure-devops', undefined, undefined, azureDevOpsMcpEndpoint(parsed.data.organization)) + } + + /** + * Start the consent for an Oracle Cloud tenancy's managed MCP server through its Identity Domain application. + * @param request - the server URL, the Identity Domain, and the application's client id and optional secret; the secret is write-only. + * @returns the Identity Domain's consent URL. + */ + @Remote + async authorizeOracle(request: OracleAuthorizationRequest): Promise { + const owner = this.owner() + const parsed = oracleRequestSchema.safeParse(request) + if (!parsed.success) throw new Error('enter the MCP server URL, the Identity Domain, and the application\'s client id') + const { server, domain, clientId, clientSecret } = parsed.data + return this.startConsent(owner, 'oracle', { domain, clientId, ...clientSecret === undefined ? {} : { clientSecret } }, undefined, server) + } + /** * Start installing the Aeven Shopify app into one store. Each store is its own connector row, so * connecting a store again re-consents that row. @@ -1538,11 +1591,13 @@ export default class AccountIntegrations extends TypertRemoteService { * Start a consent the Aeven API runs, bound to one signed-in user. * @param owner - the signed-in user. * @param provider - a brokered provider, or `discord`. - * @param client - the user's own application, for a provider without a shared one (Salesforce). + * @param client - the user's own application, for a provider without a shared one (Salesforce, Oracle). + * @param shop - the Shopify store the consent installs into. + * @param endpoint - the MCP server the connector mounts, when the request names it (Azure DevOps, Oracle). * @returns the provider consent URL. */ private async startConsent( - owner: string, provider: ConnectorProvider, client?: SalesforceAuthorizationRequest, shop?: string, + owner: string, provider: ConnectorProvider, client?: SalesforceAuthorizationRequest, shop?: string, endpoint?: string, ): Promise { if (this.broker === undefined || (provider !== 'discord' && !brokeredProviders.has(provider))) { throw new Error('provider sign-in is not configured for this deployment') @@ -1564,7 +1619,7 @@ export default class AccountIntegrations extends TypertRemoteService { : 'provider sign-in could not start; try again') }) const expiresAt = Math.min(Date.parse(started.expiresAt), Date.now() + this.config.consentLifetimeMs) - this.consents.set(started.state, { owner, id, provider, expiresAt }) + this.consents.set(started.state, { owner, id, provider, expiresAt, ...endpoint === undefined ? {} : { endpoint } }) this.watchConsents() return { url: started.url } } @@ -2829,10 +2884,12 @@ export default class AccountIntegrations extends TypertRemoteService { const microsoft = microsoftService(consent.provider) if (consent.provider === 'salesforce' && result.salesforce === undefined) throw new Error('Salesforce org metadata is missing') if (consent.provider === 'shopify' && result.shop === undefined) throw new Error('Shopify store metadata is missing') - const endpointUrl = google?.endpoint ?? microsoft?.endpoint ?? (isHostedMcp(consent.provider) ? HOSTED_MCP_ENDPOINTS[consent.provider] - : consent.provider === 'salesforce' && result.salesforce !== undefined ? salesforceMcpEndpoint(result.salesforce.domain, this.config.salesforceMcpServer) - : consent.provider === 'shopify' && result.shop !== undefined ? `https://${result.shop}/admin` - : 'https://api.githubcopilot.com/mcp/') + if ((consent.provider === 'azure-devops' || consent.provider === 'oracle') && consent.endpoint === undefined) throw new Error('the MCP server address is missing') + const endpointUrl = google?.endpoint ?? microsoft?.endpoint ?? consent.endpoint + ?? (isHostedMcp(consent.provider) ? HOSTED_MCP_ENDPOINTS[consent.provider] + : consent.provider === 'salesforce' && result.salesforce !== undefined ? salesforceMcpEndpoint(result.salesforce.domain, this.config.salesforceMcpServer) + : consent.provider === 'shopify' && result.shop !== undefined ? `https://${result.shop}/admin` + : 'https://api.githubcopilot.com/mcp/') let shopifyRow: z.infer['shopify'] let microsoftRow: z.infer['microsoft'] try { @@ -2859,7 +2916,8 @@ export default class AccountIntegrations extends TypertRemoteService { await this.ctx.credentials.deleteRecord(connectorCredential(consent.owner, consent.id)) await this.domain.table('connectors').put(consent.id, { owner: consent.owner, id: consent.id, provider: consent.provider, - name: result.account?.username ?? result.salesforce?.domain ?? shopifyRow?.name ?? consent.provider, + name: (consent.endpoint === undefined ? undefined : serverName(consent.provider, consent.endpoint)) + ?? result.account?.username ?? result.salesforce?.domain ?? shopifyRow?.name ?? consent.provider, endpoint: endpointUrl, enabled: true, grant: { scopes: result.scopes ?? [] }, ...microsoftRow === undefined ? {} : { microsoft: microsoftRow }, ...result.salesforce === undefined ? {} : { salesforce: result.salesforce }, diff --git a/packages/host/account-integrations/src/oauth.ts b/packages/host/account-integrations/src/oauth.ts index 3ebddbc2fd..15c6336614 100644 --- a/packages/host/account-integrations/src/oauth.ts +++ b/packages/host/account-integrations/src/oauth.ts @@ -24,6 +24,8 @@ export interface PendingConsent { id: ConnectorId provider: ConnectorProvider expiresAt: number + /** MCP server the connector mounts when its address comes with the consent request (Azure DevOps, Oracle). */ + endpoint?: string /** In-flight completion whose writes must settle before disconnect removes the account. */ completion?: Promise } diff --git a/packages/host/account-integrations/src/oracle.ts b/packages/host/account-integrations/src/oracle.ts new file mode 100644 index 0000000000..e3448891a4 --- /dev/null +++ b/packages/host/account-integrations/src/oracle.ts @@ -0,0 +1,24 @@ +/** + * Oracle Cloud connector: a tenancy's managed MCP server, reached with the confidential application + * its administrator created in an OCI Identity Domain. Oracle has no shared application, so the user + * brings the server URL, the Identity Domain, and that application's client id and secret. + */ + +import { z } from 'zod' + +/** + * An OCI Identity Domain host. The Aeven API applies the same rule, since it sends codes, tokens, + * and the client secret to this host. + */ +const ORACLE_DOMAIN = /^idcs-[a-f0-9]{32}(?:\.[a-z0-9-]+)?\.identity\.oraclecloud\.com$/ + +/** A managed MCP server URL as the OCI console shows it: HTTPS on an `oraclecloud.com` host. */ +const serverUrl = z.string().trim().pipe(z.url({ protocol: /^https$/, hostname: /^(?:[a-z0-9-]+\.)+oraclecloud\.com$/ })) + +/** What Settings submits to connect a tenancy's MCP server; the secret is write-only and never returned. */ +export const oracleRequestSchema = z.object({ + server: serverUrl, + domain: z.string().trim().toLowerCase().transform(value => value.replace(/^https:\/\//, '').replace(/\/.*$/, '')).pipe(z.string().regex(ORACLE_DOMAIN)), + clientId: z.string().trim().regex(/^[A-Za-z0-9_-]{16,128}$/), + clientSecret: z.string().trim().regex(/^[A-Za-z0-9._-]{16,256}$/).optional(), +}) diff --git a/packages/host/account-integrations/src/types.ts b/packages/host/account-integrations/src/types.ts index 1563e8d41c..c27a840aa3 100644 --- a/packages/host/account-integrations/src/types.ts +++ b/packages/host/account-integrations/src/types.ts @@ -6,7 +6,7 @@ import type { Branded } from '@aeven/brand' export type ConnectorId = Branded<'account-connector-id'> /** Provider selected when creating a connector. */ -export type ConnectorProvider = 'github' | 'notion' | 'vercel' | 'atlassian' | 'monday' | 'stripe' | 'salesforce' | 'shopify' | 'microsoft-365' | 'gmail' | 'google-drive' | 'google-calendar' | 'outlook' | 'outlook-calendar' | 'onedrive' | 'sharepoint' | 'teams' | 'mcp' | 'email' | 'whatsapp' | 'telegram' | 'discord' | 'slack' +export type ConnectorProvider = 'github' | 'notion' | 'vercel' | 'atlassian' | 'monday' | 'stripe' | 'salesforce' | 'shopify' | 'microsoft-365' | 'gmail' | 'google-drive' | 'google-calendar' | 'google-tasks' | 'google-contacts' | 'google-meet' | 'cloudflare' | 'aws' | 'supabase' | 'calendly' | 'bigquery' | 'compute-engine' | 'azure-devops' | 'oracle' | 'outlook' | 'outlook-calendar' | 'onedrive' | 'sharepoint' | 'teams' | 'mcp' | 'email' | 'whatsapp' | 'telegram' | 'discord' | 'slack' /** Stable Settings identity of one skill definition. */ export type SkillViewId = Branded<'account-skill-view-id'> @@ -95,6 +95,24 @@ export interface SalesforceAuthorizationRequest { clientSecret?: string } +/** The Azure DevOps organization Settings submits to connect it. */ +export interface AzureDevOpsAuthorizationRequest { + /** The organization's name, its `dev.azure.com` URL, or its `.visualstudio.com` host. */ + organization: string +} + +/** The managed MCP server and Identity Domain application Settings submits to connect an Oracle Cloud tenancy. */ +export interface OracleAuthorizationRequest { + /** The MCP server's URL, as the OCI console shows it on the server's Clients tab. */ + server: string + /** The Identity Domain's host or URL, such as `idcs-….identity.oraclecloud.com`. */ + domain: string + /** The Identity Domain application's client id. */ + clientId: string + /** The application's client secret, when it is confidential; write-only. */ + clientSecret?: string +} + /** The Slack workspace one `slack` connector is connected to, and the account that consented. */ export interface SlackConnectorSettings { /** Slack team id; two connectors of one account may not carry the same one. */ diff --git a/packages/host/account-integrations/tests/hosted-mcp.spec.ts b/packages/host/account-integrations/tests/hosted-mcp.spec.ts index a6662cac2a..21be421e0e 100644 --- a/packages/host/account-integrations/tests/hosted-mcp.spec.ts +++ b/packages/host/account-integrations/tests/hosted-mcp.spec.ts @@ -8,7 +8,7 @@ import { HOSTED_MCP_APPROVAL_REASONS, HOSTED_MCP_ENDPOINTS, isHostedMcp, isHoste describe('hosted MCP descriptor', () => { it('mounts each vendor\'s own HTTPS endpoint and gives each an approval reason', () => { - expect(Object.keys(HOSTED_MCP_ENDPOINTS).sort()).toEqual(['atlassian', 'monday', 'notion', 'stripe', 'vercel']) + expect(Object.keys(HOSTED_MCP_ENDPOINTS).sort()).toEqual(['atlassian', 'aws', 'bigquery', 'calendly', 'cloudflare', 'compute-engine', 'monday', 'notion', 'stripe', 'supabase', 'vercel']) for (const [provider, endpoint] of Object.entries(HOSTED_MCP_ENDPOINTS)) { expect(new URL(endpoint).protocol, provider).toBe('https:') expect(HOSTED_MCP_APPROVAL_REASONS[provider as keyof typeof HOSTED_MCP_ENDPOINTS], provider).toMatch(/^Approve /) @@ -16,8 +16,8 @@ describe('hosted MCP descriptor', () => { }) it('recognises only the hosted providers', () => { - for (const provider of ['notion', 'vercel', 'atlassian', 'monday', 'stripe'] as const) expect(isHostedMcp(provider)).toBe(true) - for (const provider of ['github', 'slack', 'microsoft-365', 'mcp', 'gmail'] as const) expect(isHostedMcp(provider)).toBe(false) + for (const provider of ['notion', 'vercel', 'atlassian', 'monday', 'stripe', 'cloudflare', 'aws', 'supabase', 'calendly', 'bigquery', 'compute-engine'] as const) expect(isHostedMcp(provider)).toBe(true) + for (const provider of ['github', 'slack', 'microsoft-365', 'mcp', 'gmail', 'google-tasks', 'azure-devops', 'oracle'] as const) expect(isHostedMcp(provider)).toBe(false) }) it('decides Notion reads from its published list, whatever the server annotates', () => { @@ -30,7 +30,7 @@ describe('hosted MCP descriptor', () => { }) it('trusts every other vendor\'s readOnlyHint and asks about an unmarked tool', () => { - for (const provider of ['vercel', 'atlassian', 'monday', 'stripe'] as const) { + for (const provider of ['vercel', 'atlassian', 'monday', 'stripe', 'cloudflare', 'aws', 'supabase', 'calendly', 'bigquery', 'compute-engine'] as const) { expect(isHostedMcpReadTool(provider, 'list_things', true), provider).toBe(true) expect(isHostedMcpReadTool(provider, 'list_things', false), provider).toBe(false) } diff --git a/scripts/gen-cordis-catalog.ts b/scripts/gen-cordis-catalog.ts index 2e68d33161..b71a837b01 100644 --- a/scripts/gen-cordis-catalog.ts +++ b/scripts/gen-cordis-catalog.ts @@ -886,6 +886,8 @@ export const TYPE_LINK_EXEMPTIONS: Readonly> = { MessageShareResult: 'package-owned type is documented in packages/host/message-share/src/types.ts', SalesforceAuthorizationRequest: 'package-owned type is documented in packages/host/account-integrations/src/types.ts', ShopifyAuthorizationRequest: 'package-owned type is documented in packages/host/account-integrations/src/types.ts', + AzureDevOpsAuthorizationRequest: 'package-owned type is documented in packages/host/account-integrations/src/types.ts', + OracleAuthorizationRequest: 'package-owned type is documented in packages/host/account-integrations/src/types.ts', SyncView: 'package-owned type is documented in packages/api/sync-controller/src/types.ts', SyncDeviceView: 'package-owned type is documented in packages/api/sync-controller/src/types.ts', SyncJoinRequestView: 'package-owned type is documented in packages/api/sync-controller/src/types.ts',