Guides
How to wire Affordances into a Next.js app, a React tree, an MCP client, and your lint setup, and how to keep them secure.
Each guide covers one package or one surface. New to Affordances? Start with Getting started.
- Next.js: set up an existing app with an agent or by hand, then how files, routing, route handlers, plugins, and sessions work.
- React and WebMCP:
AffordancesProviderturns the current page's actions into WebMCP tools for browser agents.Affordancemarks the controls in the DOM. - MCP:
@affordances/mcpturns any Affordances site into two MCP tools, for Claude, Cursor, and other MCP clients. - Lint: two rules that keep the manifest buildable and every server-action control visible to agents.
- Security: default deny, explicit confirmation, Origin checks for cookies, and a fixed order of checks on every agent call.