/mcp. MCP clients can authenticate, discover tools, and call the same domain services used by the REST API and CLI.
This page covers connecting and using MCP. For every tool and its input schema, see the MCP reference.
Endpoint
When running locally:/mcp to the Hono API, so MCP clients use the same public origin as browser OAuth.
Discovery metadata
- Resource:
PUBLIC_APP_URL - Authorization server:
BETTER_AUTH_URL - Supported scopes:
openid,profile,email - Bearer method:
header
How a client connects
MCP auth is powered by Better Auth’s MCP plugin:Tools
Every tool takes structured JSON and returns domain objects, validated with the same Zod schemas as the REST and CLI paths.Examples
Which surface should an agent use?
| Use | When |
|---|---|
| MCP | The client keeps a long-lived authenticated connection and benefits from structured tool discovery |
| CLI | The agent is shell-first or running in a CI job |
| REST | You’re integrating from your own backend |
MCP reference
Endpoint metadata, the full tool list, and input schemas.