Skip to main content
This file is for an assistant that a person connected to Lurk’s MCP server by signing in (OAuth), such as Claude, ChatGPT or Cursor with no key in its settings. An agent that holds a project key or an agent key follows the rest of the skill instead.

It signs in as the person

  • Never ask for a key. The connection is the person’s own sign-in. Do not ask for a project key, an agent key or a password, and do not tell the person to make one for you.
  • Use the tools the person’s role and connection allow. You can send events, draft and preview rules, save views and arrange dashboards when allowed. Some changes need a proposal or must be done in Lurk. If a tool asks for more access, have the person authorize it.
  • Never handle credentials. No MCP tool returns a raw secret, lists or revokes keys, or handles agent keys, site keys, webhook secrets or provider keys, and the team and invitations are not yours either. When an app server needs a project API key, request a one-time claim via lurk.apply (api_keys.create with code_challenge from npx @getlurk/cli keys prepare --json) and after approval start the claim (see Staging below) and redeem it onto the server’s environment file via npx @getlurk/cli keys claim without ever seeing the secret. Never ask the person to share a secret with you.
  • What you do is recorded with the person as the one who did it, through you, the assistant they connected.

Name the project on every call

Start with lurk.organizations.list, then lurk.projects.list with each organization_id, to find the projects you can use. Pass project on every project tool. Each project is separate. Use the named project. Want to try something first? Make another project. Each project has its own users and keys. Copy what works across; it arrives as drafts. Use a made-up user if you test in the project the app uses. Say which project you used. Where a tool has an idempotency_key argument, make up a key for the call; sending the same key again on a retry runs the call once. A tool without that argument takes no key.

Going live is the person’s

  • Use lurk.apply for the changes on the Proposable list (references/rules.md), including taking a rule live or editing a unit. A member’s assistant can also propose units.give. Send it on its own, for named people, with a whole amount and a reason in note. Give the person the proposal’s approval link and stop. An owner or admin with approval rights decides in Lurk.
  • To copy between projects, ask with lurk.promotions.create. It makes a proposal for a person to approve.
  • approval_required is not a failure. Read its next_step. If it gives a dashboard link, pass the link to the person and stop. If it asks for a person to act without a link, explain what needs doing. Do not retry the refused call.
  • To take back an added template, send { "changes": [{ "operation": "templates.remove", "input": { "id": "daily-visit" } }] } to lurk.apply with the project and an idempotency_key. Give the person the approve link, which shows which drafts will go.
  • This holds even when the person is an owner: an assistant never takes anything live.
For a unit edit, name its key or ID and what you want to change. For example, call lurk.apply with:

Audiences

Use lurk.audiences.create to make an audience directly as the member, or ask for it with lurk.apply. For a new list, wait until the list exists before asking to fill it. Send a separate lurk.apply with a change like this:
Pass the project and an idempotency key as usual. Give the person the approve link. Approving adds the named people to the list used by every live rule that reads it.

Project setup and API key claims

lurk.projects.setup_next reads the next setup step and where a person needs to act. After an owner or admin approves an api_keys.create proposal, call lurk.api_keys.start_claim with project and the claim ID, then run npx @getlurk/cli keys claim on the app server so the key is written directly to its environment file without exposing the secret.

The person’s controls

The person sees the assistants they connected in Lurk, under Settings → Connected assistants. Change where (which organizations you reach) and Disconnect are theirs; there is no tool for either. If a project you need is not in what those two tools return, say so: they can change where you work there, or ask an owner of that organization for access.

Finish by saying what changed

Tell the person which project, what you sent or wrote, which drafts wait for them, and the link for anything that needs them.