Set up an agent
For: a developer who wants a coding agent to add authtempo to a project with the docs and the CLI.
What it does: authtempo mcp adds the authtempo MCP server to the project config of your editor. The agent then searches the docs, reads pages, and runs the CLI through tools.
Before you start
Section titled “Before you start”- Node 22.18 or newer, and pnpm 12.8.1.
- A clone of the authtempo repo with the CLI built. Run it from this repo tells how.
- One of five editors: Claude Code, Cursor, Codex, OpenCode, or VS Code. authtempo mcp lists the file of each.
-
In the repo, build the server and its docs index:
Terminal window pnpm turbo run index --filter=@authtempo/mcpThe command builds
@authtempo/mcpand the site, and copies the docs index next to the server. Without the index, the server stops at its start. -
In the folder of your app, run
authtempo mcpwith the flag of your editor:Terminal window authtempo mcp --claude-codeThe other flags are
--cursor,--codex,--opencode, and--vscode. With--manual, the command prints each entry and writes no file. -
Set
DATABASE_URLin the environment that starts the editor, if the agent must import users or migrate the schema. The entry holds the name of the variable, never its value.--url-env <NAME>names another variable. -
Open the project in the editor, and approve the
authtemposerver. Claude Code asks for approval before it uses a server from.mcp.json. Codex reads.codex/config.tomlonly in a trusted project. -
Ask the agent to call the
versiontool. The answer holds the versions of core, the CLI, the server, and the docs index.
For the docs tools only, add --remote. The entry then names the remote server at https://mcp.authtempo.com/mcp, which needs no build. It is not live before publication.
The skill pack
Section titled “The skill pack”The folder packages/mcp/skills/ holds one skill for each prompt of the server. Each skill is a folder with a SKILL.md file in the agentskills.io layout. The server serves each skill as a prompt with the same text, so an editor that shows MCP prompts needs no copy.
To give an editor the skills as files, copy each skill folder whole into a project folder of the editor. Keep the folder name, because the name of each SKILL.md must equal it. Each row comes from the page of the editor, read on 2026-10-17.
| Editor | Project folders of the skills | Source |
|---|---|---|
| Claude Code | .claude/skills/ |
code.claude.com/docs/en/skills |
| Cursor | .cursor/skills/, .agents/skills/, .claude/skills/, or .codex/skills/ |
cursor.com/docs/skills |
| Codex | .agents/skills/, in the folder that starts Codex and each folder up to the repo root |
learn.chatgpt.com/docs/build-skills |
| OpenCode | .opencode/skills/, .claude/skills/, or .agents/skills/ |
opencode.ai/docs/skills |
| VS Code | .github/skills/, .claude/skills/, or .agents/skills/ |
code.visualstudio.com/docs/copilot/customization/agent-skills |
.claude/skills/ serves Claude Code, Cursor, OpenCode, and VS Code. Codex reads .agents/skills/ only, so Codex needs its own copy there. A copy in both folders can show each skill twice in Cursor, OpenCode, and VS Code.
An agent with no MCP
Section titled “An agent with no MCP”Give the agent the URL https://authtempo.com/llms.txt. It lists every page with a link to its markdown copy. https://authtempo.com/llms-full.txt holds every page in one file. The site is not public yet, so in this repo both files are in apps/site/dist/ after a site build.
If it fails
Section titled “If it fails”- “build @authtempo/mcp first”:
authtempo mcpfound no built server. Run the command of step 1 in the repo, then runauthtempo mcpagain. A file that exists lists each stop of the command. - “the docs index … is missing”: the server stops at its start, because its docs index is not next to it. Run the command of step 1.
- Another
authtempoentry: the config file of the editor has anauthtempoentry that differs. The command prints both entries and writes nothing. Remove the old entry or edit it by hand, then run the command again. A file that exists tells the rule.