Agents
Expose your queries to agents with record-level grants.
Claude Code, Cursor and remote agents connect straight to your project URL over MCP and A2A. Expiring grants scope each session to chosen rows, and dry runs preview changes before commit.
Read the agent access docsMCP and A2A
Connect coding tools and remote agents to your project URL.
Projects serve Streamable HTTP MCP, local stdio and A2A 1.0 directly. Each caller sees only the deployed queries and actions allowed by that caller’s credentials.
MCP server referenceclaude mcp add --transport http napalm https://<label>.napalmdata.com/mcp \ --header "Authorization: Bearer $NAPALM_KEY"Expiring grants
Pin an agent session to specific records and a deadline.
Delegate temporary access through an AgentGrant row or OAuth 2.1 consent. PostgreSQL checks both the target record link and the expiration timestamp against datetime_of_statement() on every call.
insert AgentGrant { person := (select Person filter .identity = global caller), agent := identity_by_id(<uuid>$agent), notes := (select Note filter .id in array_unpack(<array<uuid>>$notes)), expires := datetime_of_statement() + <duration>'168 hours',}Instant revocation
Cut off an active agent on the next commit.
Delete the grant row or run napalm keys revoke. Ongoing MCP tool calls, A2A tasks and open live streams lose access immediately because permissions are never cached outside the database.
delete AgentGrantfilter .agent.id = <uuid>$agentDry-run previews
Inspect exact row diffs before letting an agent write.
Pass is_dry_run: true on any mutation over HTTP, MCP or A2A. Napalm runs the write and its triggers inside a rolled-back transaction and returns before-and-after diffs and per-type counts for approval.
Dry-run mutation previews{ "changes": [ { "id": "8f2c1e64-0b7a-4f4e-9d2b-3a6c5e1f7d90", "type": "default::Note", "action": "update", "before": { "id": "8f2c1e64-0b7a-4f4e-9d2b-3a6c5e1f7d90", "title": "Q3 pricing draft" }, "after": { "id": "8f2c1e64-0b7a-4f4e-9d2b-3a6c5e1f7d90", "title": "Q3 enterprise pricing" } } ], "rows": [ { "type": "default::Note", "inserted": 0, "updated": 1, "deleted": 0 } ], "position": "nbm_0192c3f4_8k2p9v4m1x"}Natural-language queries
Compile plain-English questions into typechecked EdgeQL.
POST /ask translates a user question into EdgeQL, validates types against your schema and runs reads under the caller’s session. Write questions return an unexecuted query proposal or dry-run diff.
curl https://notes.napalmdata.com/ask \ -H "Authorization: Bearer $SESSION" \ -H "Content-Type: application/json" \ -d '{ "question": "Which of my notes mention the launch?" }'Permission reach
Count the rows a key can touch before you create it.
napalm keys reach counts the records per type an active or proposed key can read, update or delete without reading field values, so you can catch broad policies before issuing a secret.
napalm keys reach notes --new --read-only