Guides
Tutorials you can run top to bottom.
Each guide is a complete program. The code was built and run against the published packages on the date shown, and the expected output is on the page. If a step does not match what you see, tell us in a GitHub discussion.
Start here
- Secure an MCP server with theAuth in 10 minutesTypeScript. Discovery, dynamic registration, PKCE and a protected route, with a client script that walks the flow.
- Add human login plus agent auth to a Hono appTypeScript. Magic-link sessions for people, scoped tokens for agents, and the line between them.
- Build an MCP authorization server in GoGo. An OAuth 2.1 server and a token-checked MCP route in one program, then a curl walkthrough.
Install for TypeScript or Go Reference documentation Use cases DPoP, device flow and passkeys theauth-go
Get started
Give your first agent an identity.
Install the package, create an agent with scoped permissions, and read its first audit record. The core runs on Postgres, SQLite, MySQL or D1, and the Go module needs a single go get.
npm install @glinr/theauthgo get github.com/glincker/theauth-go/v2