Agents

Every project serves MCP and A2A.

Connect Claude Code, Cursor or remote agents straight to your project URL. Record grants expire at a set deadline, and dry runs preview every row change without committing.

Read the agent access docs

MCP and A2A

Every project is an MCP and A2A server.

Point Claude Code, Cursor or a remote agent straight at your project URL. Every project serves Streamable HTTP MCP, local stdio and A2A 1.0 directly, and each caller sees only permitted tools and deployed queries.

MCP server reference
Terminal
claude mcp add --transport http napalm https://<label>.napalmdata.com/mcp \  --header "Authorization: Bearer $NAPALM_KEY"

Expiring grants

Grants name records and a deadline.

Model an AgentGrant row in your schema or delegate access through OAuth 2.1 consent. Access rules tie the agent to chosen records, and every query checks the deadline against datetime_of_statement().

dbschema/queries/grantAgent.edgeql
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',}
Agent access and grants

Instant revocation

Deleting a grant ends access at once.

Delete the grant row or run napalm keys revoke. Active MCP calls, A2A tasks and open live streams lose access on the same commit because Napalm never caches permissions.

dbschema/queries/revokeAgent.edgeql
delete AgentGrantfilter .agent.id = <uuid>$agent
Agent access and grants

Dry-run previews

Dry runs show every change first.

Pass is_dry_run: true on a mutation over HTTP, MCP or A2A. Napalm runs the write under the caller’s access rules and rolls the transaction back. The preview returns before-and-after rows and per-type counts across the write and any triggers.

Dry-run mutation previews
POST /query
{  "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"}

Plain-English questions

Plain-English questions compile to EdgeQL.

POST /ask compiles a question to EdgeQL, typechecks the statement against your schema and fixes compiler errors before running. Reads run as the caller, and write questions return an unexecuted proposal or a dry-run preview.

POST /ask
curl https://notes.napalmdata.com/ask \  -H "Authorization: Bearer $SESSION" \  -H "Content-Type: application/json" \  -d '{ "question": "Which of my notes mention the launch?" }'
POST /ask reference

Key reach

Check a key’s reach before creation.

napalm keys reach counts the rows per type an active or prospective key can read, update or delete without reading field values. Catch broad access rules before creating a secret.

Terminal
napalm keys reach notes --new --read-only
Keys and credentials