You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Challenging assumptions of Identity within WebMCP #54
I suggest that WebMCP should not assume that the agent uses the user's identity to perform actions. Instead WebMCP should leverage OAuth, like MCP itself is doing. The idea is that the clients (webpages with WebMCP tools on it) are authenticated and authorized to be called by the agent.
I would argue that the agent should have it's own identity as a client to be calling the javascript tools. The conversations around when and how to prompt the user for consent to call tools should be made by the authorization server that is managing access to the data which the WebMCP tool is taking the action on. Identity providers already have mechanisms for managing scopes, controls and consent for softwares to act on behalf of the user to access or chage data.
This issue is created just to start the conversation while at TPAC meeting.
Summarizing a hallway conversation from TPAC here.
The concern is what identity should be used by actions initiated directly by the user vs by an Agent on behalf of the user when retrieving authorization from identity providers. WebMCP by design makes this an internal detail of the site since all interaction between the Agent and any services provided by the site is being mediated by the site itself. So it's up to the web author whether an Agent initiated action uses a separate identity or takes the user's identity.
That said, the API needs to ensure that authors can use separate identities for these cases. That has the following considerations:
The site author needs to distinguish whether an action was taken by the Agent or the user. If the trigger for an action is a function associated with a WebMCP tool, it implicitly tells the author that it was an Agent.
What kind of agent identity is required by the author? There can be 2 classes: an opaque identifier (unguessable token) is provided to the site while the true agent identity (in-browser agent vs foo.com's agent) is only known to the browser. Or the origin associated agent identifier is passed through to the site.
Since we're planning to limit the first iteration of WebMCP to browser Agents, the details here can likely be deferred. But we need a plan to ensure the API can be extended to support this use-case.
@EmLauber you mentioned there's ongoing standardization for agent identifiers that we should be building upon. Can you drop a link? Also please correct/add if I missed anything. @sushraja-msft@leotlee FYI.
RESOLUTION: revisit [this] issue (likely in a different proposal) if there is a need for browser mediated interactions between browser agents and in-site agents - no clear need to address this in WebMCP atm
(We made this resolution at TPAC 2025 in context of discussion on another issue #51.)
I'd like to help with the Agent Identity explainer, specifically where it meets agent identity at the HTTP layer.
Some context: I implement Web Bot Auth (draft-ietf-webbotauth-httpsig-protocol) in a commerce platform that sells to AI agents, and I wrote an individual draft in that working group on how verifiers report their results (draft-suresh-webbotauth-verification-outcome). On the 12 November call, Web Bot Auth was described as aimed at server-side communication. That matches how it is deployed today, and it is also why I think the explainer needs a problem statement that covers both layers:
Cloud-hosted agent browsers. Some of these already sign their requests with Web Bot Auth. The site can verify "this request came from agent Foo" at the HTTP layer, but it cannot tie a particular Submit or Pay event on the page to that verified identity, or tell it apart from the person's own click.
Checkout. A merchant needs both answers: which agent, acting for whom, and which steps the person took themselves. Agent payment protocols carry their own notions of agent identity and authority (AP2 mandates, Visa's Trusted Agent Protocol signatures, ACP tokens). Without a shared model, one purchase can reach the merchant with several unrelated agent identifiers and no link to the events on the page.
What I can contribute:
use cases and requirements from commerce deployments, including what merchants actually check before accepting an agent's order;
a short section mapping event-level attribution to HTTP-level agent identity, including where the two should not be linkable, for privacy;
review of the threat model, drawing on a study I ran of manipulation and payment fraud attacks on shopping agents.
I'm glad to send a PR once the explainer repo exists. I've joined the CG, so these contributions are covered by the CLA.
Activity
khushalsagar commentedon Nov 14, 2025
Summarizing a hallway conversation from TPAC here.
The concern is what identity should be used by actions initiated directly by the user vs by an Agent on behalf of the user when retrieving authorization from identity providers. WebMCP by design makes this an internal detail of the site since all interaction between the Agent and any services provided by the site is being mediated by the site itself. So it's up to the web author whether an Agent initiated action uses a separate identity or takes the user's identity.
That said, the API needs to ensure that authors can use separate identities for these cases. That has the following considerations:
The site author needs to distinguish whether an action was taken by the Agent or the user. If the trigger for an action is a function associated with a WebMCP tool, it implicitly tells the author that it was an Agent.
What kind of agent identity is required by the author? There can be 2 classes: an opaque identifier (unguessable token) is provided to the site while the true agent identity (in-browser agent vs foo.com's agent) is only known to the browser. Or the origin associated agent identifier is passed through to the site.
Since we're planning to limit the first iteration of WebMCP to browser Agents, the details here can likely be deferred. But we need a plan to ensure the API can be extended to support this use-case.
@EmLauber you mentioned there's ongoing standardization for agent identifiers that we should be building upon. Can you drop a link? Also please correct/add if I missed anything. @sushraja-msft @leotlee FYI.
victorhuangwq commentedon Nov 15, 2025
@khushalsagar my guess regarding the ongoing agent identifier standardization that @EmLauber is talking about is: https://datatracker.ietf.org/wg/webbotauth/about/
anssiko commentedon Jan 22, 2026
(We made this resolution at TPAC 2025 in context of discussion on another issue #51.)
anssiko commentedon Nov 12, 2026
Cross-referencing from both the issues for completeness.
anssiko commentedon Nov 12, 2026
And as we discovered, this issue is referenced from both Agent Identity and Agent Delegation.
Also connected:
frostyhand commentedon Nov 21, 2026
I'd like to help with the Agent Identity explainer, specifically where it meets agent identity at the HTTP layer.
Some context: I implement Web Bot Auth (draft-ietf-webbotauth-httpsig-protocol) in a commerce platform that sells to AI agents, and I wrote an individual draft in that working group on how verifiers report their results (draft-suresh-webbotauth-verification-outcome). On the 12 November call, Web Bot Auth was described as aimed at server-side communication. That matches how it is deployed today, and it is also why I think the explainer needs a problem statement that covers both layers:
agentInvoked(Spec & generalizeagentInvoked: signal events an agent originates #365) can mark the event, but the site gets no verifiable claim about which agent produced it.What I can contribute:
I'm glad to send a PR once the explainer repo exists. I've joined the CG, so these contributions are covered by the CLA.