diff --git a/docs/app/docs/[[...slug]]/page.tsx b/docs/app/docs/[[...slug]]/page.tsx index 5d6acbca..ff750f8c 100644 --- a/docs/app/docs/[[...slug]]/page.tsx +++ b/docs/app/docs/[[...slug]]/page.tsx @@ -29,6 +29,7 @@ import { APIMethod } from "@/components/api-method"; import { LLMCopyButton, ViewOptions } from "./page.client"; import { GenerateAppleJwt } from "@/components/generate-apple-jwt"; import { Callout } from "@/components/ui/callout"; +import { AddToCursor } from "@/components/mdx/add-to-cursor"; export default async function Page({ params, }: { @@ -129,6 +130,7 @@ export default async function Page({ TypeTable, Features, ForkButton, + AddToCursor, DatabaseTable, Accordion, Accordions, diff --git a/docs/components/mdx/add-to-cursor.tsx b/docs/components/mdx/add-to-cursor.tsx new file mode 100644 index 00000000..dd2c34e7 --- /dev/null +++ b/docs/components/mdx/add-to-cursor.tsx @@ -0,0 +1,29 @@ +import Link from "next/link"; + +export const AddToCursor = () => { + return ( +
+ + Add Better Auth MCP to Cursor + + + + Add Better Auth MCP to Cursor + +
+ ); +}; diff --git a/docs/content/docs/introduction.mdx b/docs/content/docs/introduction.mdx index 9b89e858..a718e325 100644 --- a/docs/content/docs/introduction.mdx +++ b/docs/content/docs/introduction.mdx @@ -3,11 +3,7 @@ title: Introduction description: Introduction to Better Auth. --- -Better Auth is a framework-agnostic authentication and authorization framework for TypeScript. It provides a comprehensive set of features out of the box and includes a plugin ecosystem that simplifies adding advanced functionalities. Whether you need 2FA, multi-tenancy, multi-session support, or even enterprise features like SSO, it lets you focus on building your application instead of reinventing the wheel. - -## Why Better Auth? - -*Authentication in the TypeScript ecosystem has long been a half-solved problem. Other open-source libraries often require a lot of additional code for anything beyond basic authentication features. Rather than just pushing third-party services as the solution, I believe we can do better as a community—hence, Better Auth.* +Better Auth is a framework-agnostic, universal authentication and authorization framework for TypeScript. It provides a comprehensive set of features out of the box and includes a plugin ecosystem that simplifies adding advanced functionalities. Whether you need 2FA, passkey, multi-tenancy, multi-session support, or even enterprise features like SSO, creating your own IDP, it lets you focus on building your application instead of reinventing the wheel. ## Features @@ -17,6 +13,51 @@ Better Auth aims to be the most comprehensive auth library. It provides a wide r ...and much more! -## LLMs.txt +--- -Better Auth provides an LLMs.txt file that helps AI models understand how to interact with your authentication system. You can find it at [https://better-auth.com/llms.txt](https://better-auth.com/llms.txt). +## AI tooling + +### LLMs.txt + +Better Auth exposes an `LLMs.txt` that helps AI models understand how to integrate and interact with your authentication system. See it at [https://better-auth.com/llms.txt](https://better-auth.com/llms.txt). + +### MCP + +Better Auth provides an MCP server so you can use it with any AI model that supports the Model Context Protocol (MCP). + + + + + + ```bash title="terminal" + claude mcp add --transport http better-auth https://mcp.chonkie.ai/better-auth/better-auth-builder/mcp + ``` + + + ```json title="opencode.json" + { + "$schema": "https://opencode.ai/config.json", + "mcp": { + "Better Auth": { + "type": "remote", + "url": "https://mcp.chonkie.ai/better-auth/better-auth-builder/mcp", + "enabled": true, + } + } + } + ``` + + + ```json title="mcp.json" + { + "Better Auth": { + "url": "https://mcp.chonkie.ai/better-auth/better-auth-builder/mcp" + } + } + ``` + + + + +We provide a first‑party MCP, powered by [Chonkie](https://chonkie.ai). You can alternatively use [`context7`](https://context7.com/) and other MCP providers. +