Repository navigation
fix(antigravity): pre-approve direct Threadlines MCP calls and add session approvals - #1076
Merged
Merged
Conversation
…ssion approvals Antigravity CLI 1.5 invokes attached HTTP MCP tools directly as kind "other" with "Run mcp_<server>_<tool>" titles rather than through the legacy call_mcp_tool wrapper, so Threadlines' built-in room, page, command, and device tools still prompted for approval in Auto and Supervised modes. Its ACP server also sends only allow_once and reject_once options on permission requests, so users had no way to allow a tool or command for the session. Recognized direct Threadlines MCP tool calls against the exact registered tool inventory in AntigravityToolCalls (preserving wrapper and conflict checks) so pre-approved Threadlines MCP servers auto-approve once while browser, external, and conflicting calls still prompt. Added client-side in-memory session approval grants in AcpAdapter and AcpSessionApprovals for descriptors with clientSessionApprovals enabled (Antigravity), scoped to exact MCP tools, working-directory-bound commands (with read-only prefix matching only for reviewed git/gh subcommands on POSIX), and symlink-verified workspace edits, with Plan mode pause and security warning propagation.
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Antigravity CLI 1.5 invokes attached HTTP MCP tools directly as
kind: "other"withRun mcp_<server>_<tool>titles instead of the legacycall_mcp_toolwrapper, so Threadlines' built-in room, page, command, and device tools still prompted for approval in Auto and Supervised modes. Its ACP server also sends onlyallow_onceandreject_oncepermission options, leaving users with only "Approve once" on every prompt.This PR:
AntigravityToolCalls(tracking established wire mode and checking merged edit/terminal/command evidence), so room, pages, commands, and device tools auto-approve once whilethreadlines_browser, external MCP servers, and spoofed or conflicting updates still prompt.AcpAdapterandAcpSessionApprovalsfor ACP descriptors withclientSessionApprovals: true(enabled on Antigravity) when an explicitallow_onceis offered withoutallow_always. Grants resolve matching future and concurrently pending cards withallow_once, propagateallow_oncesecurity warnings to the session button, pause in Plan mode, and clear when the session ends.gitandghsubcommands, exact match for everything else), and symlink-verified workspace edits.