Repository navigation
Description
Problem
On macOS, Auto mode currently cannot use several capabilities provided by Maka Desktop.
ToolRuntime rejects every tool classified as client_capability unless the Session execution boundary is bypass. However, Maka Desktop publishes the following features through the Client Capability protocol:
- Browser
- Computer Use
- Client settings
- MCP tools connected through the Desktop client
As a result, these tools cannot be used in Auto mode, even when their effects are already constrained by a client-side broker, macOS system permissions, visible-session ownership, confirmation dialogs, or tool-specific hard limits.
This makes Full Access act as a feature-unlock switch. A user must disable the Host filesystem and network sandbox to use client-side capabilities that do not require broader Host access.
The problem is especially visible for read-oriented operations such as browser_snapshot, Computer Use observation, and MakaClientSettingsGet: they still require Full Access solely because they travel through the Client Capability path.
This issue is limited to interactive macOS Desktop sessions and the Client Capabilities listed above. Windows sandbox support and Plan mode semantics are out of scope.
中文翻译
在 macOS 上,Auto 模式目前无法使用 Maka Desktop 提供的部分能力。
只要工具被分类为 client_capability,ToolRuntime 就会要求 Session 的执行边界必须是 bypass。但 Maka Desktop 正是通过 Client Capability 协议提供以下功能:
- Browser
- Computer Use
- 客户端设置
- Desktop 客户端连接的 MCP 工具
因此,即使这些工具已经受到客户端 broker、macOS 系统权限、可见 Session 所有权、确认弹窗或工具自身硬限制的保护,它们仍然不能在 Auto 模式下使用。
这导致完全权限实际上变成了一个“功能解锁开关”。用户为了使用不需要扩大 Host 权限的客户端能力,却必须同时关闭 Host 的文件系统和网络 sandbox。
这个问题在只读操作上尤其明显,例如 browser_snapshot、Computer Use 的观察操作和 MakaClientSettingsGet。它们仅仅因为走了 Client Capability 通道,就必须使用完全权限。
本 Issue 只处理交互式 macOS Desktop Session,以及上面列出的 Client Capability。Windows sandbox 和 Plan 模式语义不在本次范围内。
Desired outcome
In interactive managed Auto sessions:
- Allow the listed Client Capability calls without requiring a
bypassboundary. - When no matching Session Grant exists, ask the user whether to allow the requested
capability + scopefor the current Session. - After approval, reuse the Grant for later calls with the same
capability + scopein that Session without asking again. - Bind Browser grants to a normalized Web Origin, Computer Use grants to a macOS application bundle ID, and Desktop MCP grants to
serverId + toolName. - Keep the existing Client Settings behavior: safe reads execute directly, while updates retain their current Desktop confirmation.
- Do not convert the Session to Full Access or weaken its Host filesystem or network sandbox.
- Keep all existing Browser, Computer Use, MCP, client broker, confirmation-dialog, visible-session, and macOS privacy-permission checks unchanged.
- Invalidate a Grant when its Session is deleted or the relevant provider, capability contract, schema, or MCP server configuration changes. Allow the user to revoke Grants.
- Keep Full Access as an explicit user-selected escape hatch, not a prerequisite for these Desktop capabilities.
中文翻译
在交互式 managed Auto Session 中:
- 允许调用上面列出的 Client Capability,不再直接要求
bypass。 - 不存在匹配的 Session Grant 时,询问用户是否允许在当前 Session 中使用这次请求对应的
capability + scope。 - 用户批准后,同一 Session 内后续相同
capability + scope的调用直接复用 Grant,不再重复询问。 - Browser Grant 绑定标准化 Web Origin,Computer Use Grant 绑定 macOS 应用 bundle ID,Desktop MCP Grant 绑定
serverId + toolName。 - Client Settings 保持现有行为:安全读取直接执行,修改设置继续使用当前 Desktop 确认。
- 不把 Session 切换成完全权限,也不削弱 Host 的文件系统或网络 sandbox。
- 保留现有 Browser、Computer Use、MCP、客户端 broker、确认弹窗、可见 Session 和 macOS 隐私权限检查。
- Session 删除,或相关 Provider、Capability Contract、schema、MCP Server 配置变化时,使旧 Grant 失效;用户可以主动撤销 Grant。
- 完全权限仍然作为用户主动选择的逃生通道,但不应成为使用这些 Desktop 能力的前提。
Alternatives or workarounds
No response
Activity
YayoiNanoka commentedon Aug 27, 2026
I’ll take this.
YayoiNanoka commentedon Aug 29, 2026
Implementation plan
We will implement #4012 as a session-scoped user grant for interactive macOS Desktop sessions.
The implementation will let Auto mode use Browser, Computer Use, Desktop MCP, and the safe Desktop Settings path without weakening the existing execution boundary or turning Auto into Full Access.
Admission flow
We will reuse the existing
accepted → admittedClient Capability handshake:toolCallId.accepted(scopeEvidence), and waits without executing the tool.serverId/toolNamebinding;admitted.PreparedInvocationwill remain an internal Broker abstraction. We will not add a publicpreparedprotocol frame.Grant scopes
app_catalogscopeserverId + toolNameFor Desktop Settings, safe reads will continue directly, while updates will retain the existing Desktop confirmation.
For Desktop MCP, the user-visible scope will remain
serverId + toolName. Internally, the contract will also include a non-secret server binding fingerprint so that endpoint, local command, relevant configuration, or credential-identity changes invalidate the old Grant.The client will only supply constrained scope evidence. Runtime Host will compute and validate the final scope.
Grant lifetime
An approved Grant applies only to later calls with the same:
Grants will survive Desktop or Runtime Host restarts and Session archive/restore. They will not be inherited by forks, copies, child Sessions, or new Sessions.
A Grant will stop matching when the Session is deleted or when the Provider identity, capability contract, schema, tool version, or MCP binding changes.
The first version will not add a Grant management or revocation UI.
Boundaries
This will not change the Session filesystem, network, or sandbox boundary. Every admitted call will still cross T1 before real execution and retain the existing T1/T2 recovery semantics.
Unknown or third-party Client Capabilities will remain fail-closed unless the Host has an explicit trusted admission policy for their exact frozen binding.
The initial implementation will cover interactive macOS Desktop sessions only. It will not introduce an LLM reviewer, restore the old PermissionEngine, or include Rive, PTY, unattended runs, or scheduled work.
点击展开中文
实施方案
我们会将 #4012 实现为交互式 macOS Desktop Session 内的用户授权。
该实现会让 Auto 模式能够使用 Browser、Computer Use、Desktop MCP 和安全的 Desktop Settings 路径,同时保留现有执行边界,不把 Auto 变成完全权限模式。
授权流程
我们会复用现有 Client Capability 的
accepted → admitted握手:toolCallId发起工具调用。accepted(scopeEvidence),然后等待,不执行真实工具。serverId/toolNamebinding;admitted。PreparedInvocation只作为 Broker 内部抽象,不增加公开的prepared协议帧。授权粒度
app_catalogserverId + toolNameDesktop Settings 的安全读取会直接执行,修改设置继续使用现有 Desktop 确认弹窗。
Desktop MCP 对用户展示的 scope 仍然是
serverId + toolName。内部 Contract 还会包含不含密钥的 Server binding fingerprint;endpoint、本地命令、相关配置或凭据身份变化后,旧 Grant 自动失效。Client 只提供受限制的 scope evidence,最终 scope 始终由 Runtime Host 计算和校验。
Grant 生命周期
授权只适用于以下条件都相同的后续调用:
Grant 在 Desktop 或 Runtime Host 重启以及 Session 归档恢复后继续有效,但 Fork、复制、子 Session 和新 Session 均不继承。
Session 删除,或者 Provider 身份、Capability Contract、schema、工具版本、MCP binding 发生变化时,旧 Grant 不再匹配。
第一版不增加 Grant 管理或撤销界面。
边界
该方案不会改变 Session 的文件系统、网络或 sandbox 边界。所有被允许的调用仍然必须在真实执行前跨过 T1,并保留现有 T1/T2 恢复语义。
未知或第三方 Client Capability 默认拒绝,除非 Host 针对其精确冻结 binding 配置了明确的可信策略。
第一版只处理交互式 macOS Desktop Session,不引入 LLM reviewer,不恢复旧 PermissionEngine,也不包含 Rive、PTY、无人值守执行或 scheduled work。
Astro-Han commentedon Sep 17, 2026
Delivered by #4143 (
409c71a53), which implemented the session-grant plan from this thread: persisted Client Capability session grants, an approval interaction, and admission that no longer requires Full Access.packages/runtime/src/tool-runtime.tsnow refuses aclient_capabilitycall only when the boundary is non-bypass and the live permission mode is notask.