Skip to main content
Building an MCP App means answering four questions: what the model can do, what the user sees, what the model knows, and who is asking. Each page below covers one, in build order, on the same running example: a personal shopper with a product carousel and an authenticated checkout.
DefinePageCore APIs
What the model can doRegister ToolsregisterTool
What the user seesCreate ViewsuseToolInfo, useCallTool
What the model knowsManage StateuseViewState, data-llm
Who is askingAuthenticate UsersrequireBearerAuth, securitySchemes

Register Tools

Define what humans and agents can do

Create Views

Craft interactive UIs rendered in conversation

Manage State

Decide what the model sees

Authenticate Users

Know who’s behind every tool call