Apps have always been built around human interaction. Good UI and UX is essential to giving people a great experience.
Now agents are using your apps more and more. They can't click through a pop-up login or a 4-step wizard. They guess from screenshots, burn tokens, and give up for a tool that just works.
Agent experience (AX) is UX where the user happens to be an agent. Give agents a front door - a CLI, an MCP server, or WebMCP tools - and they can finish the job without scraping your UI.
AX is designing your product so an AI agent can understand it and use it on its own. Agents don't see your layout. They read command names, tool descriptions, schemas and error messages.
AI tools are bad at inferring context or reading between the lines. They need clear, straightforward documentation and definitions, and discoverability should be a priority.
Humans are the opposite. A person can scan a screen, guess what an icon means, and ask a colleague when stuck. An agent has none of that.
There are three ways to give agents a front door. They are not exclusive.
| Surface | Best for | Where it runs | Maturity |
|---|---|---|---|
| CLI | Dev tools and anything scriptable | The agent's shell | Stable - agents already write shell commands well |
| MCP server | Exposing your system or data to any agent | Your server or a local process | Open standard |
| WebMCP | Actions inside the user's open browser tab | The user's browser | Early - draft spec, browser origin trials |
Pick by where the agent runs: a CLI for agents in a shell, an MCP server for agents reaching your system remotely, and WebMCP for agents acting inside the user's open browser tab.
A CLI needs no hosting, and agents already know how to run one. Make it agent-friendly:
--json or similar, and print an explicit message when there are zero resultsUse an MCP server when agents need to reach your system from anywhere, not just a machine with your CLI installed. The tool name and description are the only UI the agent sees, so write them for an agent.
See Do you have an MCP server to let AI agents plug into your app? for how to build one.
WebMCP lets a web page register JavaScript tools that an in-browser agent can call, using document.modelContext.registerTool(). The agent reuses the user's session instead of re-authenticating.
WebMCP is a Draft Community Group Report from the W3C Web Machine Learning Community Group. It is not a W3C Standard and not on the Standards Track.
At the time of writing, Chrome and Edge offer it through origin trials (Chrome 149, Edge 150), and Chrome also has a flag. The API name has changed before, so check the spec before you build on it.
Give Claude Code your top 3 user tasks and only your CLI or MCP server to do them. Wherever it stalls, fix that spot. That is your AX backlog.