Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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-notion-hosted-mcp-through-the-broker.md
2026-11-24-notion-hosted-mcp-through-the-broker.md: 52c3e62c955e2e4a12a3398d030f073ab5d1995b
2026-11-24-notion-hosted-mcp-through-the-broker.zh.md: cfcc8db0a360119065cec2ce1d317cc8fad83410
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Agent Note: Notion mounts its hosted MCP server through the connector broker

Status: implemented

English | [中文](2026-11-24-notion-hosted-mcp-through-the-broker.zh.md)

## Problem

Notion is the first connector whose provider publishes no ordinary OAuth application to register. Its hosted MCP server at `https://mcp.notion.com/mcp` accepts only tokens from its own authorization server, which registers clients dynamically (RFC 7591) and requires the MCP resource on the authorization and token requests (RFC 8707). Notion's classic public integration works with the REST API and the open-source local MCP server instead, whose tools mirror raw API calls rather than the Markdown page tools of the hosted server.

## Decision

The connector uses the hosted server, and the Aeven API stays the only holder of its credentials, as for Google, Microsoft, and GitHub ([connector secrets](2026-10-07-connector-secrets-on-aeven-api.md)).

- **Registration.** On the first Notion consent the API registers itself at Notion's registration endpoint as a confidential client (`client_secret_post`) with its connector callback as the only redirect URI, and stores the result in `connector_clients`, the secret encrypted. The row is keyed by provider and redirect URI, so development and production register separately and a changed callback registers again. Concurrent first consents share one registration; a registration Notion later refuses with `invalid_client` is deleted, so the next consent registers again and existing grants ask to reconnect.
- **Grant.** Consent, code exchange, refresh, and revocation run through the existing broker routes with the stored registration's credentials and `resource=https://mcp.notion.com/mcp`. The Host treats Notion as one more brokered provider: it fetches short-lived access tokens with `broker.token()` and mounts the hosted server over Streamable HTTP.
- **Approvals.** Notion's tool names (`notion-search`, `notion-create-pages`) do not match the shared read-name pattern, so `notion.ts` lists the read tools from Notion's published reference. Every other tool, including one Notion adds later, asks first.

## Alternatives considered

- **Classic Notion public integration with the local server** — needs a Notion developer application and its secret, runs a stdio process per conversation, and exposes API-shaped tools instead of Notion's maintained hosted ones.
- **Client ID metadata documents** — Notion supports a URL as `client_id`, which would remove the stored registration, but the document must be served from a public origin, so a development API could not sign in without depending on production.
- **Registering on the Host** — the Host would hold the client secret and refresh tokens, which the connector secrets decision keeps on the API.
- **Reusing the MCP SDK's `auth()` helper on the API** — it would duplicate the broker's existing state, PKCE, exchange, and refresh handling; registration and the resource parameter were the only missing pieces.

## Consequences

- The deployment configures no Notion credential; `connectors.notion` in the API configuration only names the client on Notion's consent screen.
- A Notion grant reaches only the pages the user shared on Notion's consent screen.
- A Notion connection row is named after the provider, as GitHub's is; the workspace name is not recorded.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Agent Note:Notion 通过连接器代理挂载其托管 MCP 服务器

Status: implemented

[English](2026-11-24-notion-hosted-mcp-through-the-broker.md) | 中文

## 问题

Notion 是第一个其提供商不发布可注册普通 OAuth 应用的连接器。其托管 MCP 服务器 `https://mcp.notion.com/mcp` 只接受自身授权服务器签发的令牌;该授权服务器动态注册客户端(RFC 7591),并要求在授权及令牌请求中携带 MCP 资源(RFC 8707)。Notion 的经典公开集成则对接 REST API 及开源的本地 MCP 服务器,其工具对应原始 API 调用,而非托管服务器的 Markdown 页面工具。

## 决定

连接器使用托管服务器,Aeven API 仍是其凭据的唯一持有者,与 Google、Microsoft 和 GitHub 相同([连接器密钥](2026-10-07-connector-secrets-on-aeven-api.zh.md))。

- **注册。** 首次 Notion 授权时,API 以机密客户端(`client_secret_post`)身份在 Notion 的注册端点注册自身,以其连接器回调作为唯一重定向 URI,并将结果保存在 `connector_clients` 中,密钥加密存储。该行以提供商和重定向 URI 为键,因此开发与生产环境分别注册,回调变更后会重新注册。并发的首次授权共享同一注册;Notion 之后以 `invalid_client` 拒绝的注册会被删除,下次授权重新注册,已有授权则提示重新连接。
- **授权。** 授权、授权码兑换、刷新及撤销都经由现有代理路由,使用所存注册的凭据及 `resource=https://mcp.notion.com/mcp`。宿主将 Notion 视为又一个代理提供商:通过 `broker.token()` 获取短期访问令牌,并以 Streamable HTTP 挂载托管服务器。
- **批准。** Notion 的工具名称(`notion-search`、`notion-create-pages`)不符合共享的读取名称模式,因此 `notion.ts` 按 Notion 发布的参考列出读取工具。其他所有工具(包括 Notion 日后新增的工具)都会先征求批准。

## 考虑过的替代方案

- **经典 Notion 公开集成加本地服务器** —— 需要 Notion 开发者应用及其密钥,每个对话运行一个 stdio 进程,且提供 API 形态的工具,而非 Notion 维护的托管工具。
- **客户端 ID 元数据文档** —— Notion 支持以 URL 作为 `client_id`,可省去所存注册,但该文档必须从公开源提供,开发环境的 API 若不依赖生产环境便无法登录。
- **在宿主上注册** —— 宿主将持有客户端密钥及刷新令牌,而连接器密钥决定将其保留在 API 上。
- **在 API 上复用 MCP SDK 的 `auth()` 辅助函数** —— 会重复代理现有的 state、PKCE、兑换及刷新处理;缺少的只有注册与资源参数。

## 影响

- 部署无需配置任何 Notion 凭据;API 配置中的 `connectors.notion` 仅用于在 Notion 授权页面上显示客户端名称。
- Notion 授权只能访问用户在 Notion 授权页面上共享的页面。
- Notion 连接行以提供商命名,与 GitHub 相同;不记录工作区名称。
2 changes: 1 addition & 1 deletion packages/client/ui-approval/src/client/ApprovalPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function ApprovalFlow({ pending, detail, t }: {
whatsapp: 'WhatsApp', telegram: 'Telegram', discord: 'Discord', slack: 'Slack',
gmail: 'Gmail', 'google-drive': 'Google Drive', 'google-calendar': 'Google Calendar',
outlook: 'Outlook', 'outlook-calendar': 'Outlook Calendar', onedrive: 'OneDrive',
sharepoint: 'SharePoint', teams: 'Microsoft Teams',
sharepoint: 'SharePoint', teams: 'Microsoft Teams', github: 'GitHub', notion: 'Notion',
}
const connectorId = connector?.[1]
const provider = connectorId === undefined ? undefined : providers[connectorId] ?? connectorId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,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<string> = new Set(['github', 'email'])
const MONOCHROME_ICONS: ReadonlySet<string> = new Set(['github', 'email', 'notion'])

/** Read one uploaded file as browser-safe base64. */
function upload(file: File): Promise<SkillUploadFile> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ export const connectorIcons: Partial<Record<string, string>> = {
'discord': 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0iIzU4NjVGMiIgZD0iTTIwLjMxNyA0LjM2OThhMTkuNzkxMyAxOS43OTEzIDAgMDAtNC44ODUxLTEuNTE1Mi4wNzQxLjA3NDEgMCAwMC0uMDc4NS4wMzcxYy0uMjExLjM3NTMtLjQ0NDcuODY0OC0uNjA4MyAxLjI0OTUtMS44NDQ3LS4yNzYyLTMuNjgtLjI3NjItNS40ODY4IDAtLjE2MzYtLjM5MzMtLjQwNTgtLjg3NDItLjYxNzctMS4yNDk1YS4wNzcuMDc3IDAgMDAtLjA3ODUtLjAzNyAxOS43MzYzIDE5LjczNjMgMCAwMC00Ljg4NTIgMS41MTUuMDY5OS4wNjk5IDAgMDAtLjAzMjEuMDI3N0MuNTMzNCA5LjA0NTgtLjMxOSAxMy41Nzk5LjA5OTIgMTguMDU3OGEuMDgyNC4wODI0IDAgMDAuMDMxMi4wNTYxYzIuMDUyOCAxLjUwNzYgNC4wNDEzIDIuNDIyOCA1Ljk5MjkgMy4wMjk0YS4wNzc3L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ff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ export const en = {
slackDescription: 'Search channels, files, and people, read threads, and post in the Slack workspaces you connect.',
slackUnavailable: 'Slack is not available in this deployment.',
slackRelink: 'Slack no longer accepts this workspace’s sign-in. Disconnect it here and connect the workspace again.',
notionDescription: 'Search, read, create, and update pages, databases, and comments in your Notion workspace.',
telegramAdd: 'Sign in a Telegram account', telegramUnavailable: 'Telegram is not available on this device.',
telegramPhoneLabel: 'Phone number', telegramPhonePlaceholder: '+31 6 1234 5678',
telegramStepPhone: 'Type the number of the Telegram account you want to use.', telegramStepCode: 'Telegram sends a code to the app or by SMS.', telegramStepPassword: 'If you use two-step verification, Telegram then asks for your password.',
Expand Down Expand Up @@ -255,6 +256,7 @@ export const zh: Record<IntegrationsLocaleKey, string> = {
slackDescription: '在您连接的 Slack 工作区中搜索频道、文件与人员,阅读消息串并发布消息。',
slackUnavailable: '此部署不提供 Slack。',
slackRelink: 'Slack 不再接受该工作区的登录。请在此断开连接,然后重新连接该工作区。',
notionDescription: '在您的 Notion 工作区中搜索、阅读、创建及更新页面、数据库与评论。',
telegramAdd: '登录 Telegram 账户', telegramUnavailable: '此设备不支持 Telegram。',
telegramPhoneLabel: '手机号', telegramPhonePlaceholder: '+31 6 1234 5678',
telegramStepPhone: '输入要使用的 Telegram 账户手机号。', telegramStepCode: 'Telegram 会通过应用或短信发送验证码。', telegramStepPassword: '若已启用两步验证,Telegram 随后会要求输入密码。',
Expand Down Expand Up @@ -393,6 +395,7 @@ export const es = {
slackDescription: 'Busca canales, archivos y personas, lee hilos y publica en los espacios de trabajo de Slack que conectes.',
slackUnavailable: 'Slack no está disponible en este despliegue.',
slackRelink: 'Slack ya no acepta el inicio de sesión de este espacio de trabajo. Desconéctalo aquí y vuelve a conectar el espacio de trabajo.',
notionDescription: 'Busca, lee, crea y actualiza páginas, bases de datos y comentarios en tu espacio de trabajo de Notion.',
telegramAdd: 'Iniciar sesión en una cuenta de Telegram', telegramUnavailable: 'Telegram no está disponible en este dispositivo.',
telegramPhoneLabel: 'Número de teléfono', telegramPhonePlaceholder: '+31 6 1234 5678',
telegramStepPhone: 'Escribe el número de la cuenta de Telegram que quieres usar.', telegramStepCode: 'Telegram envía un código a la app o por SMS.', telegramStepPassword: 'Si usas verificación en dos pasos, Telegram pedirá luego tu contraseña.',
Expand Down
2 changes: 1 addition & 1 deletion packages/core/automations/src/domain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const runOn = z.enum(['auto', 'cloud', 'device'])
const automationId = text.transform(value => brandString<AutomationId>(value))
/** Connector ids a bot may be bound to. */
export const CONNECTOR_IDS = [
'email', 'gmail', 'google-drive', 'google-calendar', 'github', 'slack', 'discord', 'telegram', 'whatsapp',
'email', 'gmail', 'google-drive', 'google-calendar', 'github', 'notion', 'slack', 'discord', 'telegram', 'whatsapp',
'outlook', 'outlook-calendar', 'onedrive', 'sharepoint', 'teams', 'mcp',
] as const
/** A connector binding: `all`, or a list stored without repeats in a fixed order. */
Expand Down
2 changes: 1 addition & 1 deletion packages/core/automations/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ 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' | 'slack' | 'discord' | 'telegram' | 'whatsapp'
| 'email' | 'gmail' | 'google-drive' | 'google-calendar' | 'github' | 'notion' | 'slack' | 'discord' | 'telegram' | 'whatsapp'
| 'outlook' | 'outlook-calendar' | 'onedrive' | 'sharepoint' | 'teams' | '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[]
Expand Down
2 changes: 1 addition & 1 deletion packages/extensions/tool-cordis/src/api-catalog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6879,7 +6879,7 @@ export const TYPE_API: readonly TypeApiEntry[] = [
},
{
name: 'ConnectorProvider',
declaration: 'export type ConnectorProvider = \'github\' | \'gmail\' | \'google-drive\' | \'google-calendar\' | \'outlook\' | \'outlook-calendar\' | \'onedrive\' | \'sharepoint\' | \'teams\' | \'mcp\' | \'email\' | \'whatsapp\' | \'telegram\' | \'discord\' | \'slack\';',
declaration: 'export type ConnectorProvider = \'github\' | \'notion\' | \'gmail\' | \'google-drive\' | \'google-calendar\' | \'outlook\' | \'outlook-calendar\' | \'onedrive\' | \'sharepoint\' | \'teams\' | \'mcp\' | \'email\' | \'whatsapp\' | \'telegram\' | \'discord\' | \'slack\';',
},
{
name: 'ConnectorProviderView',
Expand Down
Loading
Loading