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.createwithcode_challengefromnpx @getlurk/cli keys prepare --json) and after approval start the claim (see Staging below) and redeem it onto the server’s environment file vianpx @getlurk/cli keys claimwithout 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 withlurk.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.applyfor the changes on the Proposable list (references/rules.md), including taking a rule live or editing a unit. A member’s assistant can also proposeunits.give. Send it on its own, for named people, with a whole amount and a reason innote. 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_requiredis not a failure. Read itsnext_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" } }] }tolurk.applywith theprojectand anidempotency_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.
lurk.apply with:
Audiences
Uselurk.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:
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.