Skip to content

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.

  • 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.
  1. In the repo, build the server and its docs index:

    Terminal window
    pnpm turbo run index --filter=@authtempo/mcp

    The command builds @authtempo/mcp and the site, and copies the docs index next to the server. Without the index, the server stops at its start.

  2. In the folder of your app, run authtempo mcp with the flag of your editor:

    Terminal window
    authtempo mcp --claude-code

    The other flags are --cursor, --codex, --opencode, and --vscode. With --manual, the command prints each entry and writes no file.

  3. Set DATABASE_URL in 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.

  4. Open the project in the editor, and approve the authtempo server. Claude Code asks for approval before it uses a server from .mcp.json. Codex reads .codex/config.toml only in a trusted project.

  5. Ask the agent to call the version tool. 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 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.

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.

  • “build @authtempo/mcp first”: authtempo mcp found no built server. Run the command of step 1 in the repo, then run authtempo mcp again. 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 authtempo entry: the config file of the editor has an authtempo entry 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.