serpkin 0.2.22 → 0.2.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -11,10 +11,10 @@ npx serpkin
11
11
  ## Quick start
12
12
 
13
13
  1. In your website's repository, run `npx serpkin`. It signs you in, connects your agent, registers the site and waits for its automatically queued initial audit.
14
- 2. Ask your agent: _"What should I do for SEO?"_
14
+ 2. Ask your agent: _"What should I do for SEO?"_ Without a plan yet, setup shows the preview's first mission and offers the 7-day trial's checkout; after you start it, ask _"Do the next Serpkin mission"_.
15
15
  3. Your agent implements the mission. Before you merge, run `npx serpkin check <preview-url>` to catch SEO regressions.
16
16
 
17
- Requires Node 22 or newer. No dependencies. Builder and Pro start with a 7-day free trial (card required, no charge until day 8); see [pricing](https://serpkin.com/#pricing). Without a plan you can add one site and see its 6-page preview audit; missions, scans and monitoring return `TRIAL_REQUIRED` with a checkout link. The [free SEO checker](https://serpkin.com/tools/seo-check) needs no account.
17
+ Requires Node 22 or newer. No dependencies. Builder and Pro start with a 7-day free trial (card required, no charge until day 8); see [pricing](https://serpkin.com/#pricing). Without a plan you can add one site and see its 6-page preview audit and the first mission it found; missions, scans and monitoring return `TRIAL_REQUIRED` with a checkout link. The [free SEO checker](https://serpkin.com/tools/seo-check) needs no account.
18
18
 
19
19
  ## What you get
20
20
 
@@ -32,14 +32,14 @@ Requires Node 22 or newer. No dependencies. Builder and Pro start with a 7-day f
32
32
 
33
33
  ## What `npx serpkin` does
34
34
 
35
- 1. **Signs you in.** Opens `https://serpkin.com/cli` with a code like `BCDF-GHJK`. Confirm it matches your terminal and approve. That creates an agent key named "Serpkin CLI on <your machine>". You can revoke it in Agents.
35
+ 1. **Signs you in.** Opens `https://serpkin.com/cli` with a code like `BCDF-GHJK`. Confirm it matches your terminal and approve. That creates an agent key named "Serpkin CLI on <your machine>". You can revoke it in Settings → Agents.
36
36
  2. **Detects your framework.** Next.js (app and pages router) fully, plus Astro, SvelteKit, Nuxt and Remix as best effort. In a monorepo it asks which app under `apps/*` or `packages/*` is the website.
37
37
  3. **Connects your agent.**
38
38
  - **Claude Code**: offers to install the **Serpkin plugin** (see below). Alternatively it merges `serpkin` into `.mcp.json` (other servers are kept) or runs `claude mcp add`. Without a terminal it writes `.mcp.json` and prints the plugin command. Pass `--plugin` to install the plugin without asking.
39
39
  - **Cursor**: merges into `.cursor/mcp.json` and writes the project rule `.cursor/rules/serpkin.mdc` with the SEO loop.
40
40
  - **Codex**: appends `[mcp_servers.serpkin]` to `~/.codex/config.toml` once and adds a short "Serpkin SEO" section to the project's `AGENTS.md` (it asks first, and creates the file if it's missing).
41
41
 
42
- All three configs run a small local MCP bridge, `npx -y serpkin@0.2.22 mcp`, which reads the key saved at sign-in and forwards requests to `https://serpkin.com/api/mcp` (a self-hosted server adds `--server <origin>` to the args). The configs hold no key and no environment variable, so there is nothing to export.
42
+ All three configs run a small local MCP bridge, `npx -y serpkin@0.2.24 mcp`, which reads the key saved at sign-in and forwards requests to `https://serpkin.com/api/mcp` (a self-hosted server adds `--server <origin>` to the args). The configs hold no key and no environment variable, so there is nothing to export.
43
43
 
44
44
  The rule and the `AGENTS.md` section sit between `<!-- serpkin:start -->` and `<!-- serpkin:end -->`. Re-running init refreshes only that block and keeps everything else.
45
45
  4. **Registers the site**, which queues its initial audit on the server, and uploads a route map (URL path → source file), so missions can name the files to change.
@@ -47,7 +47,23 @@ Requires Node 22 or newer. No dependencies. Builder and Pro start with a 7-day f
47
47
 
48
48
  The CLI waits up to 75 seconds and shows the first mission when one is ready. `--no-wait` skips the terminal wait; `--no-scan` is a compatibility alias. Neither cancels the initial audit queued by registration. If an audit is already queued or running, another scan request reuses it. Failed scans are reported separately from running scans; a finished scan may correctly produce no missions.
49
49
 
50
- Under **Site → Site audit**, review the business brief, source pages and existing-page inventory. Unverified sites get a bounded preview; verify ownership and run a full audit before expecting content missions. Content recommendations require complete coverage, a clear business fit and supporting demand. An empty queue is valid, and started work is preserved through incomplete scans.
50
+ **Without a plan**, setup ends with what the 6-page preview scan found and one way forward:
51
+
52
+ ```text
53
+ ✓ Preview scan: 6 pages read
54
+
55
+ Your first mission Make /pricing win "project tracker pricing" (#9 today)
56
+ Your agent can ship it today. The 7-day trial unlocks the brief, the full scan and verification.
57
+
58
+ Builder: 7-day free trial, card required. $29/month from Dec 7 unless you cancel before.
59
+ ? Open checkout in your browser? [Y/n]
60
+
61
+ After you start the trial, ask your agent: "Do the next Serpkin mission"
62
+ ```
63
+
64
+ The position appears only when Serpkin has measured one. A preview with nothing to fix says so ("Clean. That's the floor."), with the checks that passed, the pages not checked yet and, when your business brief supports one, an opportunity. Press Enter to open checkout in your browser, or `n` to print its address. Without a terminal, with `--yes` or with `--no-browser`, the CLI prints the address and doesn't wait. Only the mission's title is shown from your site, with control characters removed. `npx serpkin status` shows the same preview mission and a Checkout row until a plan is active.
65
+
66
+ Under **Insights → Site health**, review the business brief, source pages and existing-page inventory. Unverified sites get a bounded preview; verify ownership and run a full audit before expecting content missions. Content recommendations require complete coverage, a clear business fit and supporting demand. An empty queue is valid, and started work is preserved through incomplete scans.
51
67
 
52
68
  Then ask your agent: _"What should I do for SEO?"_
53
69
 
@@ -61,10 +77,10 @@ Inside a session you can run `/plugin marketplace add apwn/serpkin`, then `/plug
61
77
 
62
78
  - the **`serpkin-seo` skill**, which runs the loop: next mission → implement → run checks → check the preview → submit → verify the preview → verify production after you deploy. It treats page text and search data as untrusted and never deploys.
63
79
  - **commands**: `/serpkin:next` gets the next mission and implements it. `/serpkin:ship <preview-url>` submits it, checks the preview and verifies. `/serpkin:check <preview-url>` runs `serpkin check` (the pinned CLI version from the public npm registry). `/serpkin:status` shows the site status. `/serpkin:manager` sets up a weekly SEO manager for one site, or `/serpkin:manager all` for one check-in across every site, and runs the first check-in.
64
- - the **Serpkin MCP server**, run as the same stdio bridge (`npx -y serpkin@0.2.22 mcp`). It uses the key saved at sign-in, so there is nothing to export. `SERPKIN_API_KEY` is an optional override, and `SERPKIN_SERVER` picks a self-hosted or local server (default `https://serpkin.com`).
80
+ - the **Serpkin MCP server**, run as the same stdio bridge (`npx -y serpkin@0.2.24 mcp`). It uses the key saved at sign-in, so there is nothing to export. `SERPKIN_API_KEY` is an optional override, and `SERPKIN_SERVER` picks a self-hosted or local server (default `https://serpkin.com`).
65
81
 
66
82
  - **hooks** (quiet by design, only in repositories with `.serpkin.json`):
67
- - **Session start**: one line with the next mission and "run /serpkin:next". It is fetched with a 2.5-second timeout and cached for 6 hours per site (failures for 30 minutes), and it says nothing when you are offline, signed out or the project isn't linked.
83
+ - **Session start**: one line with the next mission and "run /serpkin:next". It is fetched with a 2.5-second timeout and cached for an hour per site (failures for 30 minutes); submitting, verifying, starting, dismissing or creating a mission through the Serpkin tools clears the cache, so the line never names a mission you just shipped. It says nothing when you are offline, signed out or the project isn't linked.
68
84
  - **After a push or deploy** (`git push`, `vercel deploy`/`--prod`, `netlify deploy`, `wrangler deploy`, `fly deploy`, `firebase deploy`, `railway up`, `npm|pnpm|yarn|bun run deploy`): one reminder per session to run `/serpkin:check <preview-url>`.
69
85
  - **Turn them off** with `SERPKIN_HOOKS=off` in your shell or in Claude Code's `settings.json` `env`. Keep just one with `SERPKIN_HOOKS=session` or `SERPKIN_HOOKS=deploy`.
70
86
  - **Safety**: the hooks run only the plugin's own scripts (never a binary or script from the repository), never print or cache your key, and follow the same server rules as the CLI: a server named only in `.serpkin.json` is used only when it is `https://serpkin.com` or a server you already signed in to, and the key is only sent to `SERPKIN_SERVER` (or `https://serpkin.com`). The command text of a push or deploy is never echoed.
@@ -77,23 +93,50 @@ Clients without plugins get the same loop as MCP prompts: `next_mission`, `ship_
77
93
 
78
94
  ### Where the key goes
79
95
 
80
- The key is **never written into your repository.** It is stored in `~/.config/serpkin/credentials.json` (mode 600, keyed by server). Agent configs run `npx -y serpkin@0.2.22 mcp`, which reads it from there, so they hold no key and no environment variable, and you don't need to export anything.
96
+ The key is **never written into your repository.** It is stored in `~/.config/serpkin/credentials.json` (mode 600, keyed by server). Agent configs run `npx -y serpkin@0.2.24 mcp`, which reads it from there, so they hold no key and no environment variable, and you don't need to export anything.
81
97
 
82
98
  `SERPKIN_API_KEY` still works and takes precedence over the saved key: use it in CI and GitHub Actions, or if you prefer it. Configs written by older versions (`${SERPKIN_API_KEY}` / `${env:SERPKIN_API_KEY}` / `bearer_token_env_var`) keep working while the variable is set. Re-running `npx serpkin` switches `.mcp.json` and `.cursor/mcp.json` to the bridge; an existing Codex table that reads the variable is left alone and the CLI prints the new block to replace it. A Codex bridge entry pinned to an older CLI version gets just that version updated.
83
99
 
84
- To connect by hand without Node (or an agent on another machine), point an HTTP MCP client at `https://serpkin.com/api/mcp` with `Authorization: Bearer <key>`, using a key from Agents.
100
+ To connect by hand without Node (or an agent on another machine), point an HTTP MCP client at `https://serpkin.com/api/mcp` with `Authorization: Bearer <key>`, using a key from Settings → Agents.
101
+
102
+ ### Lanes
103
+
104
+ Every mission has a lane: `code`, `content`, `outreach`, `research`, or `owner` (Search Console, hosting, accounts: only you). The key `npx serpkin` creates takes missions from every lane. To give this agent one kind of work, pass the lanes at sign-in (CLI 0.2.23 or newer):
105
+
106
+ ```bash
107
+ npx serpkin --lanes code,content
108
+ ```
109
+
110
+ `--lanes` applies only when a new key is created. If this machine already has one, add `--login`, or change the key's lanes in Settings → Agents. Owner missions are never given to an agent, whatever the key says. Agents can also pass `lanes` to `serpkin_next_mission`, `serpkin_get_missions` and `serpkin_get_handoff`; asking for a lane the key doesn't have returns `LANE_NOT_ALLOWED`.
85
111
 
86
112
  `.serpkin.json` (server and site id, no secrets) is written to the repo root. Commit it so CI knows which site to check.
87
113
 
88
114
  ### Sites that aren't live yet
89
115
 
90
- Serpkin can't reach `localhost`. Deploy a preview (for example a `vercel.app` URL) and run `npx serpkin init --url <preview-url>`. Foundation checks work on the preview; production verification comes once the domain is live. Run `init --url https://your-domain` then.
116
+ Serpkin can't scan `localhost`. Deploy a preview (for example a `vercel.app` URL) and run `npx serpkin init --url <preview-url>`. (Once the site is registered, `npx serpkin check http://localhost:3000` compares a local build with production before a deploy; see below.) Foundation checks work on the preview; production verification comes once the domain is live. Run `init --url https://your-domain` then.
117
+
118
+ ### Sites without preview deployments
119
+
120
+ If the site deploys straight to production (for example `wrangler deploy` to Cloudflare Workers), check a local production build before deploying:
121
+
122
+ ```sh
123
+ npm run build && npm start # or your framework's production server
124
+ npx serpkin check http://localhost:3000
125
+ ```
126
+
127
+ Serpkin's server never fetches `localhost`. The CLI reads the local pages on your machine (the homepage and known pages Serpkin plans, plus `robots.txt` and the sitemap), drops inline scripts and styles, and uploads them; Serpkin fetches production itself and runs the same comparison as a preview check. `localhost`, `127.0.0.1`, `[::1]` and `*.local` addresses work. This is a **pre-deploy check, not production verification**: after the deploy, check the production URL and verify the mission with environment `production`. Missions for sites known to deploy straight to production list it first in `implementation.verify` (`when: "before_deploy"`).
128
+
129
+ ### Monorepos
130
+
131
+ `npx serpkin` and `npx serpkin routes` find the website app at the root, in workspace folders (`package.json` workspaces, `pnpm-workspace.yaml`), in `apps/*`, `packages/*`, `sites/*`, and in any top-level folder with its own `package.json` (`web/`, `frontend/`). A folder counts when it depends on Next.js, Astro, SvelteKit, Nuxt or Remix, or has that framework's config file. With several apps the CLI asks; without a terminal it takes the one in a website-named folder (`web`, `www`, `site`, …) when that is clear and says so, else it stops and asks for `--app <dir>`. The choice is saved in `.serpkin.json` as `app`. Route-map paths are repository-relative (`web/src/app/page.tsx`), even from a subfolder.
132
+
133
+ Without a route map, missions don't know your files: `serpkin_next_mission` warns "Routes not uploaded" and steps leave `file` empty, naming usual locations to confirm. Run `npx serpkin routes --upload` (with `--app <dir>` in a monorepo). In a repository without `.serpkin.json`, it finds the registered site (the only one, or the one matching the app's `homepage`) and writes `.serpkin.json`; pass `--site <id>` otherwise.
91
134
 
92
135
  ## Audit status and recovery
93
136
 
94
137
  - **Audit queued / running:** leave it running; the app refreshes automatically.
95
138
  - **Preview audit:** verify site ownership, then run the full audit.
96
- - **Review business brief:** confirm the product, audience and specific topics under Site. Problems and features are optional context; exclusions prevent unrelated ideas.
139
+ - **Review business brief:** confirm the product, audience and specific topics under Settings → About this site. Problems and features are optional context; exclusions prevent unrelated ideas.
97
140
  - **Incomplete / failed audit:** inspect the coverage note, fix the access or rendering issue, and retry. A page-limit issue may require a larger scan allowance; repeating the same limited scan will not add coverage.
98
141
  - **Audit ready, no mission:** no sufficiently supported change is ready. This is a valid outcome.
99
142
 
@@ -102,15 +145,15 @@ Serpkin can't reach `localhost`. Deploy a preview (for example a `vercel.app` UR
102
145
  | Command | |
103
146
  | ----------------------------- | ---------------------------------------------------------------------------------- |
104
147
  | `serpkin` / `serpkin init` | Setup (above). Safe to re-run; the stored key and site are reused. |
105
- | `serpkin check <preview-url>` | Compare a preview deploy with production. Exit code 1 on regressions, 2 on errors. Without `.serpkin.json` it uses `--site <id>` or the site whose origin matches the URL. |
148
+ | `serpkin check <preview-url>` | Compare a preview deploy with production. Exit code 1 on regressions, 2 on errors. Without `.serpkin.json` it uses `--site <id>` or the site whose origin matches the URL. `http://localhost:PORT` checks a local build before deploying (read on your machine). `--allow-host` allows your own preview host for the site. |
106
149
  | `serpkin verify` | Check ownership (verification file or DNS record). |
107
150
  | `serpkin status` | Site, ownership, data level, next mission and credits. |
108
- | `serpkin routes [--upload]` | Print the route map; `--upload` sends it. |
151
+ | `serpkin routes [--upload]` | Print the route map; `--upload` sends it (and writes `.serpkin.json` when it's missing). Monorepos: finds or asks for the app; `--app <dir>`. |
109
152
  | `serpkin next [--oneline]` | The next mission in one line (fast, cached; `--oneline` is silent when offline). |
110
153
  | `serpkin weekly [--force]` | Write the weekly mission workflow and the preview check to `.github/workflows/`. |
111
154
  | `serpkin mcp [--server <origin>]` | MCP server for your agent over stdio; uses the key saved at sign-in. Configs pin the exact version and the public npm registry, so a package inside a project can't stand in for it; run `npx serpkin` again after upgrading. |
112
155
 
113
- Options: `--url`, `--plugin`, `--server <origin>` (default `$SERPKIN_SERVER`, then `.serpkin.json`, then `https://serpkin.com`), `--agent claude,cursor,codex`, `--app apps/web`, `--ownership file|search-console|skip`, `--description`, `--audience`, `--country`, `--language`, `--login`, `--paths /,/pricing`, `--site <id>`, `--json`, `--yes`, `--no-browser`.
156
+ Options: `--url`, `--plugin`, `--allow-host`, `--server <origin>` (default `$SERPKIN_SERVER`, then `.serpkin.json`, then `https://serpkin.com`), `--agent claude,cursor,codex`, `--app apps/web`, `--ownership file|search-console|skip`, `--description`, `--audience`, `--country`, `--language`, `--login`, `--lanes code,content`, `--paths /,/pricing`, `--site <id>`, `--json`, `--yes`, `--no-browser`.
114
157
 
115
158
  Without a terminal (CI) or with `--yes`, the CLI never prompts. When it needs something it can't default, it stops and names the flag to pass.
116
159
 
@@ -126,17 +169,18 @@ For a local Serpkin server: `npx serpkin --server http://127.0.0.1:3000`.
126
169
  - `noindex` added in the page's robots meta tag
127
170
  - title, meta description or H1 removed
128
171
  - canonical removed, invalid, or pointing to another site
172
+ - unfinished draft text (`[TODO]`, lorem ipsum, an unrendered `{{ template }}`, a pasted chat reply)
129
173
  - `robots.txt` failing or removed, `sitemap.xml` no longer reachable or valid
130
174
 
131
175
  Problems that already exist in production are reported as warnings, not regressions.
132
176
 
133
177
  **Preview noindex rule.** Vercel adds `X-Robots-Tag: noindex` to every non-production deployment (other hosts do similar). Header-level noindex on the preview is therefore reported once as a warning, never as a regression. A `noindex` in the page's own `<meta name="robots">` is page code and fails the check. Likewise a preview `robots.txt` that blocks everything is a warning, since many apps do that deliberately on previews.
134
178
 
135
- Preview hosts must be the site's own domain or subdomains, or `*.vercel.app`, `*.netlify.app`, `*.pages.dev`.
179
+ Preview hosts must be the site's own domain or subdomains, or a deploy platform's preview domain: `*.vercel.app`, `*.netlify.app`, `*.pages.dev`, `*.workers.dev`, `*.onrender.com`, `*.fly.dev`, `*.up.railway.app`, `*.web.app` / `*.firebaseapp.com`, `*.amplifyapp.com`, `*.azurestaticapps.net`, `*.ondigitalocean.app`, `*.deno.dev`, Lovable, Bolt and Replit. For your own staging domain, run `npx serpkin check <url> --allow-host` once (needs the full-access key `npx serpkin` saves; up to 5 hosts per site, `*.previews.example.com` covers its subdomains). Local addresses are never fetched by the server: see "Sites without preview deployments".
136
180
 
137
181
  ### GitHub Action
138
182
 
139
- `npx serpkin weekly` writes it to `.github/workflows/serpkin.yml` when that file is missing. The template also ships in the package at `templates/github-action.yml` (`node_modules/serpkin/templates/github-action.yml`); you can copy it to `.github/workflows/serpkin.yml` yourself, then add a repository secret `SERPKIN_API_KEY` (create a key with `npx serpkin` or in Agents) and a repository variable `SERPKIN_SITE_ID` (the `site_id` from `.serpkin.json`). The workflow doesn't check out the pull request, so code or config from a PR never runs while the key is available, and it pins the CLI version. It runs on `deployment_status` events, which Vercel sends when a preview finishes deploying. It checks the deployment's `target_url` and fails the job when the preview introduces a regression. If your previews use Vercel Deployment Protection, Serpkin's requests get HTTP 401. Allow them through, or the check reports the preview as unreachable.
183
+ `npx serpkin weekly` writes it to `.github/workflows/serpkin.yml` when that file is missing. The template also ships in the package at `templates/github-action.yml` (`node_modules/serpkin/templates/github-action.yml`); you can copy it to `.github/workflows/serpkin.yml` yourself, then add a repository secret `SERPKIN_API_KEY` (create a key with `npx serpkin` or in Settings → Agents) and a repository variable `SERPKIN_SITE_ID` (the `site_id` from `.serpkin.json`). The workflow doesn't check out the pull request, so code or config from a PR never runs while the key is available, and it pins the CLI version. It runs on `deployment_status` events, which Vercel sends when a preview finishes deploying. It checks the deployment's `target_url` and fails the job when the preview introduces a regression. If your previews use Vercel Deployment Protection, Serpkin's requests get HTTP 401. Allow them through, or the check reports the preview as unreachable.
140
184
 
141
185
  ### Weekly mission pull requests
142
186
 
@@ -166,7 +210,8 @@ Details: [privacy policy](https://serpkin.com/legal/privacy).
166
210
 
167
211
  ## Troubleshooting
168
212
 
169
- - **Serpkin can't reach your site**: Serpkin needs a public URL. Use a preview deploy with `--url`, not `localhost`.
213
+ - **Serpkin can't reach your site**: Serpkin needs a public URL to scan. Use a preview deploy with `--url`, not `localhost`. To check a local build before deploying, use `npx serpkin check http://localhost:3000`.
214
+ - **Missions name `app/...` files that don't exist**: the route map isn't uploaded (monorepo?). Run `npx serpkin routes --upload --app <dir>`.
170
215
  - **Preview check returns 401**: your preview is behind deployment protection. Allow Serpkin's requests or check a public preview.
171
216
  - **The agent doesn't see Serpkin**: restart the agent after setup, and check `node --version` is 22 or newer where it runs.
172
217
  - **401 or "not signed in" from the agent**: the saved key was revoked or is missing. Run `npx serpkin --login`, then restart the agent. With an older or by-hand config, make sure `SERPKIN_API_KEY` is set in the shell your agent starts from.
@@ -179,7 +224,7 @@ Questions or bugs: [serpkin.com](https://serpkin.com) or the [plugin repository]
179
224
 
180
225
 
181
226
 
182
- Setup success means the project connection is saved, not that every audit prerequisite is complete. The receipt reports the selected market and available first recommendation, or a recovery step. New sites need a reachable public URL or preview; localhost cannot be scanned. Free full scans cover 25 pages. Hitting a crawl/render limit requires changing capacity or readability before a repeat scan can help; checked-page findings remain useful.
227
+ Setup success means the project connection is saved, not that every audit prerequisite is complete. The receipt reports the selected market and available first recommendation, or a recovery step. New sites need a reachable public URL or preview; localhost cannot be scanned. Without a plan, a site gets a 6-page preview audit; full scans come with the 7-day trial or a plan (Builder covers 300 pages, Pro 1,000). Hitting a crawl/render limit requires changing capacity or readability before a repeat scan can help; checked-page findings remain useful.
183
228
 
184
229
  Automatic initial and monthly topic research can use plan credits (2 per keyword seed and 3 for an initial ranking estimate). It is off by default. Pass `--auto-research` when registering a new site to enable it, or change future research in Settings → Automation. Already queued work continues. `--no-wait` controls the terminal wait only, not automatic research or the initial audit.
185
230
 
@@ -187,4 +232,4 @@ Automatic initial and monthly topic research can use plan credits (2 per keyword
187
232
 
188
233
  `--agent` also accepts `hermes`, `grok-bot` and `other`. Use `npx serpkin --connect-only --agent hermes` to authenticate and prepare a connection without a repository or site registration. A new Hermes profile config receives an HTTP server entry referencing `SERPKIN_API_KEY`; a nonempty existing config is preserved and the entry is printed for a deliberate merge. Honor `HERMES_HOME` when using another profile. Set the key in its private environment and reload MCP. Grok Bot and generic clients get manual URL/header instructions, not a claimed native installation. Grok Bot and Grok Build are different products.
189
234
 
190
- A saved config is not connection verification. Ask the client to call `serpkin_get_workspace`, choose a site and read its summary. The connection supplies the workspace id. CLI device-login keys retain full access; use Agents in the web app to create read-only, research or implementation keys and optional monthly credit ceilings. Never paste a key into agent chat or include it in a delegation brief.
235
+ A saved config is not connection verification. Ask the client to call `serpkin_get_workspace`, choose a site and read its summary. The connection supplies the workspace id. CLI device-login keys retain full access; use Settings → Agents in the web app to create read-only, research or implementation keys and optional monthly credit ceilings. Never paste a key into agent chat or include it in a delegation brief.
package/bin/serpkin.mjs CHANGED
@@ -16,6 +16,8 @@ const HELP = `${c.bold("serpkin")} — the SEO teammate for your coding agent
16
16
  ${c.bold("Usage")}
17
17
  npx serpkin [init] Sign in, connect your agent, register the site, upload routes
18
18
  npx serpkin check <url> Compare a preview deploy with production; exit 1 on regressions
19
+ npx serpkin check http://localhost:3000
20
+ No preview? Check a local build before deploying (read here, compared with production)
19
21
  npx serpkin verify Check site ownership (verification file or DNS)
20
22
  npx serpkin status Site, ownership, next mission and plan
21
23
  npx serpkin next [--oneline] The next mission in one line (fast, cached; silent when offline)
@@ -28,13 +30,15 @@ ${c.bold("Options")}
28
30
  --server <origin> Serpkin server (default: $SERPKIN_SERVER, .serpkin.json, https://serpkin.com)
29
31
  --agent <list> claude, cursor, codex, hermes, grok-bot, other
30
32
  --plugin Claude Code: install the Serpkin plugin without asking
31
- --app <dir> App directory in a monorepo, e.g. apps/web
33
+ --app <dir> App directory in a monorepo, e.g. apps/web or web (remembered in .serpkin.json)
32
34
  --ownership <how> file, search-console or skip
33
35
  --description, --audience, --country, --language Site details for registration
34
36
  --login Sign in again even if a key is stored
37
+ --lanes <list> New key: only take missions from these lanes (code,content,outreach,research); default all
35
38
  --paths </a,/b> check: paths to compare (max 25; default: homepage + known pages)
36
39
  --site <id> Site id (default: .serpkin.json or $SERPKIN_SITE_ID)
37
40
  --upload routes: upload the route map
41
+ --allow-host check: allow this preview host for the site (your own staging domain); needs a full-access key
38
42
  --force weekly: replace an existing weekly workflow
39
43
  --json Machine-readable output
40
44
  --yes, -y Accept defaults; never prompt
@@ -68,7 +72,9 @@ async function main(argv) {
68
72
  paths: { type: "string" },
69
73
  site: { type: "string" },
70
74
  login: { type: "boolean" },
75
+ lanes: { type: "string" },
71
76
  upload: { type: "boolean" },
77
+ "allow-host": { type: "boolean" },
72
78
  oneline: { type: "boolean" },
73
79
  refresh: { type: "boolean" },
74
80
  plugin: { type: "boolean" },
package/lib/api.mjs CHANGED
@@ -112,11 +112,12 @@ const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
112
112
  */
113
113
  export async function deviceLogin(
114
114
  api,
115
- { clientName, hostname, onCode, wait = sleep },
115
+ { clientName, hostname, lanes = null, onCode, wait = sleep },
116
116
  ) {
117
117
  const d = await api.post(
118
118
  "/api/cli/device",
119
- { client_name: clientName, hostname },
119
+ // lanes (npx serpkin --lanes): which missions the new key takes; left out = all lanes.
120
+ { client_name: clientName, hostname, ...(lanes?.length ? { lanes } : {}) },
120
121
  { auth: false },
121
122
  );
122
123
  await onCode?.(d);