Skip to main content

Runbook

Onboard a business customer by asking a coding agent: it creates the organization's application, roles and webhook through the LumoAuth MCP server.

ApplicationDraftView source
This page is a draft. The code exists, and not all of it has been run for this page yet. The page says what was checked.
Works with
lumo CLIMCP clients
Stack
Claude Code or another MCP client, the LumoAuth MCP server, agent skills

Scenario​

A developer has a checklist for each new customer: an application, three roles, a webhook, a first administrator. They give the checklist to their coding agent. The agent does the work through the LumoAuth MCP server, with exactly the access that the developer chose at sign-in, and then writes the settings into the project.

People and agents​

WhoRole in the applicationIdentity in LumoAuth
DeveloperGives the instruction and chose the access.An administrator of the organization.
Coding agentCalls the tools.An MCP client. It acts with the permissions of the developer, narrowed at the consent screen.

Flows​

FlowWhat happensWhat LumoAuth does
ConnectThe developer adds the server to the client.Sign-in, then a consent screen with one choice for each area: none, read, or read and change.
ReadThe agent calls whoami and lists the applications.Serves the tools that the access allows.
ChangeThe agent creates an application and three roles.Applies the same rules as the portal: permissions, plan limits, step-up.
RefuseThe agent tries to change sign-in settings.That area has no tool that changes it.
RecordThe developer reads the audit log.Each change names the connection.

Parts​

PartBuilt withJob
SkillThe agent skill lumoauth-mcp-managementTells the coding agent how to use the tools.
ChecklistA Markdown file in the sample projectThe instruction that the developer gives.

What the seed script creates​

  • Nothing. The application starts from an empty sandbox organization.

Walkthrough​

  1. Install the skill.
  2. Add the MCP server, and choose "read and change" for applications and roles only.
  3. Give the agent the checklist.
  4. Read the .env file that it wrote.
  5. Read the audit log.

Before you run it​

  • The server offers tools only, on the address of each region. It is not served on custom domains.
  • It cannot set a password or change an email address.

Where the code is today​

The skill is in the agent-skills repository. The sample project and the checklist are the parts to build.