@ory/antigravity 1.5.2 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -92,6 +92,8 @@ The plugin hooks into these Antigravity lifecycle events: `SessionStart` (check
92
92
 
93
93
  > **A note on how Antigravity blocks.** Antigravity blocks a tool unless the plugin explicitly says "allow" — so a crash, timeout, or missing answer *blocks* the tool. That's the opposite of most harnesses. To keep Ory from ever getting in your way, the plugin **always allows on any internal or network error**, so a transient Ory outage never wedges your tools. Native tools are allowed unless an explicit block matches.
94
94
 
95
+ > **MCP tools (unverified).** Antigravity's hook payload for MCP calls is not documented. The plugin assumes they arrive as a `call_mcp_tool` tool whose arguments name the server and tool (`server_name` / `tool_name`, or the camel- and Pascal-case forms) and then checks `McpServer:<server>` and `McpTool:<server>:<tool>`. That shape has not been confirmed against a live Antigravity build. Any other MCP call shape — and a `call_mcp_tool` call without both names — is checked as an ordinary native tool, so MCP server and tool rules do not apply to it.
96
+
95
97
  ### See what's happening
96
98
 
97
99
  Everything the plugin does is observable out of the box:
@@ -135,7 +137,7 @@ npx -y -p @ory/antigravity ory-agy configure \
135
137
 
136
138
  **Ory Network or OEL.** Either works. For an Ory Network project the URL is `https://<slug>.projects.oryapis.com`; for a self-hosted **Ory Enterprise License** deployment, point `--project-url` at that deployment's base URL and use the sign-in client id from its Agent Security configuration. Everything downstream — sign-in, checks, delegation — is identical.
137
139
 
138
- **There is nothing else for you to create.** The sign-in client, permission model, native-tool blocks, MCP grants, and observe/enforce posture are provisioned in the Console by someone with project access. At session start the plugin loads or enrolls Antigravity's Talos runtime credential in the OS credential store; tool paths only read it. Installing needs no workspace privilege.
140
+ **There is nothing else for you to create.** The sign-in client, permission model, native-tool blocks, MCP server access, and observe/enforce posture are provisioned in the Console by someone with project access. At session start the plugin loads or enrolls Antigravity's Talos runtime credential in the OS credential store; tool paths only read it. Installing needs no workspace privilege.
139
141
 
140
142
  Sign-in runs at the start of every session and never blocks — a declined, skipped, or timed-out login simply leaves that session without a user identity.
141
143
 
package/dist/handlers.js CHANGED
@@ -69,6 +69,7 @@ async function handlePreToolUse(input, client) {
69
69
  harness: HARNESS,
70
70
  toolName,
71
71
  toolArgs: input.tool_input,
72
+ mcpTool: toolName === "call_mcp_tool" ? ((0, argus_1.parseMcpToolArgs)(input.tool_input) ?? undefined) : undefined,
72
73
  subjectFallback: `session:${input.session_id}`,
73
74
  });
74
75
  if (result.blocked) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ory/antigravity",
3
- "version": "1.5.2",
3
+ "version": "1.6.0",
4
4
  "description": "Ory plugin for Google Antigravity: scaffolding skills, a local Ory instance, and authentication, authorization, and audit for every tool call",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/ory/ory-agent-plugins/tree/main/packages/antigravity",
@@ -75,10 +75,10 @@
75
75
  ],
76
76
  "dependencies": {
77
77
  "reova": "^0.7.0",
78
- "@ory/argus": "1.5.2"
78
+ "@ory/argus": "1.6.0"
79
79
  },
80
80
  "devDependencies": {
81
- "typescript": "^6.0.2"
81
+ "typescript": "^7.0.2"
82
82
  },
83
83
  "engines": {
84
84
  "node": ">=22"