- The authorizing client needs
vms:editto grant or revoke andvms:readto check its grants. It must also have the scopes it delegates. Some tools that discover provider connections additionally needintegrations:read. Use the authorized provider connection’s ID, not a provider credential. - Call
grant_vm_permissionswith a stable enrollment request key, the existing Machine target, and explicitpermissions.scopes: onlytriggers:readhere. This example is an isolated Fly.io fixture; substitute the actual provider connection, Machine ID, and app name. Use the live tool schema for other target fields. - From inside the test VM, authenticate using the returned audience, the
provider’s identity proof, and the enrolled guest key. See VM
authentication for the
signed Fly.io example. Do not copy the private key out of the guest or
substitute the human’s token. Call
list_eventsfrom the VM orGET /api/v1/events; an empty list is valid. Uselist_vmsfrom the authorizing client to confirm the exact grant. - Call
revoke_vm_permissionswith that grant ID and check that it no longer appears in the active list. This does not stop or delete the VM.
grant_vm_permissions
kind: "existing", the grant ID, and
expectedRevision from list_vms. Do not add provider APIs to a VM grant
unless the owner also approves the required API and integration scopes.
See MCP tools and REST reference.