Skip to content

Account → 安全: list my authorized AI assistants with revoke, so a user can still withdraw a grant when the MCP server is switched off #39905

Backlog

Description

@objectstack-fleet

repo:objectstack@hotlong · hotlong · session_2d709547c1624199b93584a53fbaaca2

维护者速读

  • 做什么:管理员关掉 MCP 后,连接页和它的授权列表一起消失,普通用户没处撤销自己授权的助手。在账户「安全」组加「已授权的 AI 助手」(和活动会话并列),并让连接页在读不到地址时也显示授权列表。
  • 第二阶段(p2),约 3.5–4 人日。维护者 2026-12-06 确认 Fable 推荐的方案 B + C。

Parent: #39900

Facts

  • Withdrawing an assistant does not need MCP: POST /api/v1/auth/authorized-clients/withdraw (packages/plugins/plugin-auth/src/auth-plugin.ts:5956) deletes the grant (authorized-clients-withdraw.ts:164). API keys revoke through the data API (AuthorizedAccessList.tsx:21-24) and already have 开发者 → API 密钥 (packages/platform-objects/src/apps/account.app.ts:236-239, row actions sys-api-key.object.ts:143-188). Admins already revoke anyone's grants on the user page (ManagedPersonAssistants.tsx:3-20).
  • The connect page lives and dies with the capability by design (packages/mcp/src/plugin.ts:1030, packages/mcp/src/connect-ui.ts:10-13); that principle stays.
  • The gap: a member's own assistant grants once MCP is off. 安全 holds only 已关联账户 and 活动会话 (account.app.ts:207-219).

What to build

  1. Verify first (½ day): the OAuth provider toggle follows the MCP toggle (auth-manager-plugin-list.ts:235-237). Confirm the withdraw route still answers with MCP off; if not, decouple withdraw from the provider toggle.
  2. B: a 「已授权的 AI 助手」 entry in the account app's 安全 group, provided from the plugin-auth side (it owns grants), reusing the authorized-clients list component; register the component type in the spec vocabulary, nav, i18n. The connect page rail stays the primary entry while MCP is on.
  3. C: ConnectAgentWidget.tsx:377 returns an explanation card when there is no connect URL and skips the list (:644); render the list in that branch too.

Acceptance

  • With OS_MCP_SERVER_ENABLED=false a member opens 账户 → 安全 → 已授权的 AI 助手 and withdraws a grant; the grant is gone server-side.
  • With MCP on, both places list the same grants.
  • Connect page with an unreadable URL still lists and revokes.

Activity

  1. added
    enhancement
    priority:p2
    domain:ui
    area:identity
    on Dec 6, 2026
  2. objectstack-fleet commented on Dec 6, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:data · domain:ui · Feature · p2 · pm:on-hold, touched 2026-12-06T12:16Z. Rationale: area:identity is not on the North Star list. Revoking a granted assistant is sign-in and sessions under area:data. Phase 2 of epic #39900.
    Restart-when: the maintainer releases phase 2 of #39900 on that epic

  3. added
    pm:on-hold
    and removed
    area:identity
    on Dec 6, 2026
  4. objectstack-fleet commented on Dec 6, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:cloud@hotlong · hotlong · session_01Q4EjjQzFqHGjUAXt8kBQhV

    Hold lifted: the maintainer asked (2026-12-06 19:23Z) whether phase 2 of #39900 must wait for phase 1. It does not. This card has no dependency on phase 1: in the epic's order only #39902 waits on #39901, and cloud#5495 waits on #39907. Back to pm:queue for repo:objectstack@os-steve (phase 2 owner since the hand-over 7460286975).

  5. added
    pm:queue
    and removed
    pm:on-hold
    on Dec 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:datadomain:uienhancementpm:queuepriority:p2

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions