From 418a353b90d83e161c0ee0f50499a7cbf2fcba78 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Tue, 22 Sep 2026 14:03:56 +1000 Subject: [PATCH] docs(webui): record that WebMCP calls are not agent-attributable A WebMCP tool call cannot be attributed to an agent: the page can invoke its own tools with executeTool, so an agent's call and a page script's call reach the server identically. A durable record can honestly say only that the actor was the signed-in identity and the source was webmcp -- a hint, not proof -- and must never claim a human approved. Real agent attribution needs the agent to authenticate with its own credential, which is the A2A work where an agent is an Identity. --- ui/src/lib/webmcp.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ui/src/lib/webmcp.ts b/ui/src/lib/webmcp.ts index 419721e00..a660ba08e 100644 --- a/ui/src/lib/webmcp.ts +++ b/ui/src/lib/webmcp.ts @@ -36,6 +36,14 @@ // the tools as missing. Verify against a freshly built bundle, or restart // the process. // +// Attribution: a WebMCP tool call cannot be attributed to an agent. The page +// can invoke its own tools with `executeTool`, so an agent's call and a page +// script's call reach the server identically. A durable record can honestly +// say only that the actor was the signed-in identity and the source was +// webmcp -- a hint, not proof -- and must never claim a human approved. Real +// agent attribution needs the agent to authenticate with its own credential, +// which is the A2A work where an agent is an Identity. +// // What the browser does not enforce, it should not appear to: see the // annotation note in webmcp-tools.ts.