Repository navigation
0.9.7
Added
- Test on past mail. An agent's page has Test: it runs the agent on the latest 25 received messages for its addresses, or what a search finds, 50 at most, and lists for each whether it took the message and the reply it would have written. Nothing is sent and no draft is saved. The run shows its tokens and cost when it finishes. Each agent keeps its latest run.
GETandPOST /api/v1/agents/:id/test,POST /api/v1/agents/:id/test/nextand/stop. New D1 migration:0016_agent_tests.sql. - Approval queue. Each agent and each MCP client has a Hold for approval switch in Console > Approvals. While it is on, its sends and its bulk changes (one call that moves, trashes, labels or marks more than 25 messages) wait in Console > Approvals, each with Approve and Drop. An agent's switch is on by default for its first 7 days in Send; an MCP client's is off. A queued item waits 24 hours, then is dropped and logged. A queued send counts toward the daily limit when it is approved. A held MCP call returns
status: "queued"with anapprovalId(docs/mcp.md).GET /api/v1/approvals,POST /api/v1/approvals/:id/approve,POST /api/v1/approvals/:id/drop,PUT /api/v1/approvals/holds/:kind/:id. - MCP grants limited to chosen addresses. The consent page lists the deployment's addresses, none ticked, and Connect needs at least one. The server limits every tool to the grant's addresses:
list_mailboxes,search_all_mailandlabel_matchingsee only them, and a tool given another address answers "not found", including tools that take an email, thread or draft id.list_labelscounts only the grant's mail, andrename_labelanddelete_labelare refused for a label on mail at another address. docs/mcp.md, Addresses. - Console > MCP shows each connected app's addresses. Click them to narrow an app to fewer; its next tool call sees only those.
PUT /api/v1/mcp/apps/:id/addressestakes{ "addresses": [...] }, a non-empty subset of the app's current addresses.
Changed
- Apps connected before this version keep every address, including ones added later, until narrowed in Console > MCP.
- An MCP session belongs to one grant. A client with a session from before this version gets
404 Session not foundonce and starts a new session. - Mail to
name+tag@example.comgoes to thename@example.commailbox when only the base address is inEMAIL_ADDRESSES. The To header keeps the tag. An address configured with a plus still gets its own mailbox. Email Routing must also send the tagged address to the Worker: turn on subaddressing for the zone.
D1 migrations: 0016_agent_tests.sql, 0017_approval_queue.sql and 0018_mcp_grant_addresses.sql. npm run deploy applies them.