authflow-cli 0.4.1 → 0.6.0

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.
Files changed (79) hide show
  1. package/README.md +62 -341
  2. package/dist/checks.d.ts +30 -0
  3. package/dist/checks.js +36 -0
  4. package/dist/checks.js.map +1 -0
  5. package/dist/client-conformance.d.ts +5 -1
  6. package/dist/client-conformance.js +9 -1
  7. package/dist/client-conformance.js.map +1 -1
  8. package/dist/commands/account.d.ts +2 -0
  9. package/dist/commands/account.js +105 -0
  10. package/dist/commands/account.js.map +1 -0
  11. package/dist/commands/doctor.js +5 -1
  12. package/dist/commands/doctor.js.map +1 -1
  13. package/dist/commands/mcp.js +11 -6
  14. package/dist/commands/mcp.js.map +1 -1
  15. package/dist/commands/plan.js +7 -7
  16. package/dist/commands/plan.js.map +1 -1
  17. package/dist/commands/register.js +30 -2
  18. package/dist/commands/register.js.map +1 -1
  19. package/dist/commands/set-domain.d.ts +34 -0
  20. package/dist/commands/set-domain.js +162 -0
  21. package/dist/commands/set-domain.js.map +1 -0
  22. package/dist/commands/signup.d.ts +1 -0
  23. package/dist/commands/signup.js +4 -50
  24. package/dist/commands/signup.js.map +1 -1
  25. package/dist/config.d.ts +36 -1
  26. package/dist/config.js +1 -1
  27. package/dist/config.js.map +1 -1
  28. package/dist/credentials.d.ts +22 -0
  29. package/dist/credentials.js +206 -0
  30. package/dist/credentials.js.map +1 -0
  31. package/dist/custom-domain.d.ts +96 -0
  32. package/dist/custom-domain.js +289 -0
  33. package/dist/custom-domain.js.map +1 -0
  34. package/dist/doctor.d.ts +31 -23
  35. package/dist/doctor.js +271 -57
  36. package/dist/doctor.js.map +1 -1
  37. package/dist/google-redirect.d.ts +5 -1
  38. package/dist/google-redirect.js +11 -5
  39. package/dist/google-redirect.js.map +1 -1
  40. package/dist/integration-plans.json +80 -0
  41. package/dist/integration.d.ts +17 -23
  42. package/dist/integration.js +29 -236
  43. package/dist/integration.js.map +1 -1
  44. package/dist/login.d.ts +11 -0
  45. package/dist/login.js +181 -0
  46. package/dist/login.js.map +1 -0
  47. package/dist/management.d.ts +17 -0
  48. package/dist/management.js +67 -0
  49. package/dist/management.js.map +1 -0
  50. package/dist/mcp/management-server.d.ts +4 -0
  51. package/dist/mcp/management-server.js +103 -0
  52. package/dist/mcp/management-server.js.map +1 -0
  53. package/dist/mcp/server.d.ts +8 -1
  54. package/dist/mcp/server.js +137 -7
  55. package/dist/mcp/server.js.map +1 -1
  56. package/dist/program.js +6 -1
  57. package/dist/program.js.map +1 -1
  58. package/dist/rail.d.ts +16 -0
  59. package/dist/rail.js +43 -0
  60. package/dist/rail.js.map +1 -1
  61. package/dist/resource-urls.d.ts +27 -0
  62. package/dist/resource-urls.js +56 -0
  63. package/dist/resource-urls.js.map +1 -0
  64. package/dist/secrets.d.ts +29 -14
  65. package/dist/secrets.js +201 -90
  66. package/dist/secrets.js.map +1 -1
  67. package/dist/status.d.ts +15 -1
  68. package/dist/status.js +68 -6
  69. package/dist/status.js.map +1 -1
  70. package/dist/surface.d.ts +1 -0
  71. package/dist/surface.js +1 -0
  72. package/dist/surface.js.map +1 -1
  73. package/dist/tenant-host.d.ts +49 -0
  74. package/dist/tenant-host.js +367 -0
  75. package/dist/tenant-host.js.map +1 -0
  76. package/dist/version.d.ts +10 -0
  77. package/dist/version.js +27 -0
  78. package/dist/version.js.map +1 -0
  79. package/package.json +6 -5
package/README.md CHANGED
@@ -1,387 +1,108 @@
1
1
  # Authflow CLI
2
2
 
3
- License: Apache-2.0. See [LICENSE](LICENSE).
4
-
5
- Minimal TypeScript CLI for Authflow Rail onboarding. Wraps the public admin and Origin Protocol surfaces so a tenant can register a resource, connect Stripe, mint a local identity header, run the conformance probe, and scaffold the origin sidecar — without reading rail source.
6
-
7
- `authflow mcp` exposes the same operations as an MCP server, so a coding agent can onboard a server against the codebase it already has open. The tenant-facing walkthrough is [Onboard with your agent](../../docs/onboarding/agent.md). Command reference: [`authflow mcp`](#authflow-mcp).
8
-
9
- ## Install
10
-
11
- The command is `authflow`. The npm package is [`authflow-cli`](https://www.npmjs.com/package/authflow-cli) (npm blocked the unscoped name `authflow`). No repo checkout is required:
12
-
13
- ```bash
14
- npx -y -p authflow-cli authflow --help
15
- npx -y -p authflow-cli authflow init --slug video --price 900 --credits 12
16
- ```
17
-
18
- Or install globally and drop the `npx` prefix:
19
-
20
- ```bash
21
- npm install -g authflow-cli
22
- authflow --help
23
- ```
24
-
25
- ## From this repo (development)
26
-
27
- ```bash
28
- cd sdk/cli
29
- npm install
30
- npm run build
31
- npx authflow --help
32
- ```
3
+ Browser-authorized creator management and an optional local MCP adapter. The primary entry point is the hosted management MCP at `https://staging.rails.authflow.ai/management/mcp`. It includes onboarding, resource management, integration guidance, and documentation. See [Onboard with your agent](../../docs/onboarding/agent.md).
33
4
 
34
- During development (no build step):
5
+ ## Verified workspace onboarding
35
6
 
36
- ```bash
37
- npx tsx src/cli.ts --help
38
- npm run authflow -- --help
39
- ```
40
-
41
- ## Config
42
-
43
- | Env | Flag | Used by |
44
- | --- | --- | --- |
45
- | `AUTHFLOW_ISSUER` | `--issuer` | all HTTP commands |
46
- | `AUTHFLOW_ADMIN_API_KEY` | `--admin-key` | `init`, `register`, `connect`, `set-connected-account`, `set-origin`, `status`, `get`, `list`, `plan`, `rotate-origin-key` (mint with `authflow signup`) |
47
- | `AUTHFLOW_ORIGIN_API_KEY` | `--origin-key` | `mint-header`, `probe`, `set-origin` (for its probe) |
48
- | `AUTHFLOW_RESOURCE` / `AUTHFLOW_GATEWAY_URL` | `--gateway-url` / `--receipt` | curl hint on `mint-header` |
49
-
50
- Issuer is the Origin Protocol issuer origin, with no trailing slash: staging is `https://staging.rails.authflow.ai`, local is typically `https://localhost:7062`. For an already-registered resource it is the `issuer` field of the receipt. See [tenant quickstart §1](../../docs/onboarding/tenant-quickstart.md#environments-and-hostnames).
51
-
52
- ## Commands
53
-
54
- ### `authflow signup`
55
-
56
- Mints a per-tenant admin API key. This is how a creator gets `AUTHFLOW_ADMIN_API_KEY` without the rail operator handing them one.
7
+ Install the pinned adapter and sign in. First-time authorization creates your personal workspace when you approve consent; no portal setup or admin key is required.
57
8
 
58
9
  ```bash
10
+ npm install -g authflow-cli@0.6.0
59
11
  export AUTHFLOW_ISSUER=https://staging.rails.authflow.ai
60
- npx -y -p authflow-cli authflow signup --email you@example.com
61
- ```
62
-
63
- The key (`afa_test_` on staging, `afa_live_` in production) is shown once and written to `.env.local` by default. It can only register and manage slugs created with that key. The operator bearer still exists as a super-admin.
64
-
65
- ### `authflow init`
66
-
67
- The whole onboarding path in one command: register the resource, put the origin API key in a secret
68
- store, print the config to paste into your MCP server, and probe the origin if it is already up.
69
-
70
- ```bash
71
- export AUTHFLOW_ISSUER=https://staging.rails.authflow.ai
72
- export AUTHFLOW_ADMIN_API_KEY=…
73
-
74
- authflow init --slug video --price 900 --credits 12
12
+ authflow login
13
+ authflow workspace list
14
+ authflow resource create --file resource.json
15
+ authflow plan --slug my-mcp --framework typescript
16
+ authflow resource origin my-mcp --file origin.json
17
+ authflow resource verify my-mcp
18
+ authflow resource publish my-mcp
75
19
  ```
76
20
 
77
- Neither a Stripe account nor a deployed origin is required. Both are deferrable, in any order, and
78
- omitting either registers a **draft**: priced and registered, with a receipt you can build against,
79
- but not routable. That is the normal case — you rarely have a connected Stripe account or an origin
80
- URL before you have built anything.
81
-
82
- The receipt's `pending_requirements` lists what is still outstanding:
83
-
84
- | Requirement | Clear it with |
85
- | --- | --- |
86
- | `origin_base_uri` | `authflow set-origin --slug video --origin-url https://…` |
87
- | `connected_account_id` | `authflow connect --slug video` (hosted KYC) or `authflow set-connected-account --slug video --account acct_…` (you already have the id) |
88
- | `stripe_onboarding_complete` | finish Stripe's form, then `authflow connect --slug video` again |
89
-
90
- Re-running `init` against a slug this admin key already owns resumes it: `409 slug_owned_by_caller`
91
- is not a dead end. `--connected-account` and `--origin-url` then attach instead of failing. A slug
92
- owned by someone else still returns `slug_taken`.
93
-
94
- The resource goes live once the list is empty. Add `--connect` to `init` to get the Stripe
95
- onboarding link from the first command instead of running `connect` separately.
96
-
97
- Useful flags:
98
-
99
- | Flag | Default | Meaning |
100
- | --- | --- | --- |
101
- | `--integration <dotnet\|proxy>` | `dotnet` | Which origin config to print |
102
- | `--write-secrets <target>` | `user-secrets` | `user-secrets`, `env-file`, or `keyvault` |
103
- | `--secret-destination <value>` | — | Project dir, env-file path, or vault name |
104
- | `--connected-account <acct>` | — | Attach a Stripe account you already have |
105
- | `--connect` | — | Start Stripe onboarding and print the hosted link |
106
- | `--origin-url <url>` | — | Supply the origin now instead of later |
107
- | `--no-probe` | — | Skip the conformance probe |
108
-
109
- ### `authflow connect`
110
-
111
- Starts or resumes Stripe Connect Standard onboarding and prints the hosted link the creator opens to
112
- complete KYC.
113
-
114
- ```bash
115
- authflow connect --slug video
116
- authflow connect --slug video --wait # poll until Stripe reports the account can take charges
117
- authflow connect --slug video --connected-account acct_… # attach an account you already have
118
- ```
119
-
120
- Account links are single-use and expire in minutes. Re-running is the expected way to get a fresh
121
- one: it resumes the same Stripe account rather than creating another, so retrying never leaves
122
- abandoned accounts behind. Run it again after the form is submitted to confirm `charges_enabled` and
123
- promote the resource.
124
-
125
- `--connected-account` skips hosted KYC and is the same PUT as `authflow set-connected-account`.
126
-
127
- ### `authflow set-connected-account`
128
-
129
- Attach a Stripe Standard account id the platform already has. This is the CLI twin of
130
- `authflow_set_connected_account` and of `PUT /admin/resources/{slug}/connected-account`. Use it when
131
- `connect` would otherwise start a new hosted onboarding you do not need.
132
-
133
- ```bash
134
- authflow set-connected-account --slug video --account acct_…
135
- ```
136
-
137
- ### `authflow set-origin`
138
-
139
- Points a draft at its origin, promoting it to live if nothing else is pending, then runs the
140
- conformance probe.
141
-
142
- ```bash
143
- authflow set-origin --slug video --origin-url https://video-xyz.azurecontainerapps.io
144
- ```
145
-
146
- Pass the base URI without `/mcp`; the gateway appends it.
147
-
148
- The probe runs automatically because this is the moment the resource starts accepting traffic, and a
149
- closing "remember to verify" is a step that gets skipped. It needs `AUTHFLOW_ORIGIN_API_KEY` (or
150
- `--origin-key`) — the admin key cannot stand in, because the probe authenticates as the origin. If
151
- the key is not available the command says so and completes; `--no-probe` skips it deliberately.
152
-
153
- The command also prints the client MCP config for the gateway URL. Use it verbatim: an MCP client
154
- pointed at the origin's own hostname gets `403 invalid_origin_identity`, which is the origin
155
- correctly refusing an unsigned request, not an auth bug.
156
-
157
- ### `authflow status`
158
-
159
- Where onboarding actually got to, and the command that clears each remaining step.
160
-
161
- ```bash
162
- authflow status --slug video
163
- ```
164
-
165
- ```
166
- resource: video
167
- status: draft
168
- gateway: https://staging.rails.authflow.ai/video/mcp
169
-
170
- [x] resource registered
171
- [ ] origin URI set
172
- no origin — the gateway has nowhere to forward to
173
- next: authflow set-origin --slug video --origin-url https://your-origin.example
174
- [ ] Stripe connected
175
- no connected account — nothing can be charged
176
- next: authflow connect --slug video (or authflow set-connected-account --slug video --account acct_…)
177
- [ ] Stripe onboarding complete
178
- no connected account — attach one before Stripe can confirm charges
179
- next: authflow connect --slug video (or authflow set-connected-account --slug video --account acct_…)
180
- ```
181
-
182
- "Stripe onboarding complete" is ticked only when this resource has an account attached **and** Stripe
183
- has not listed `stripe_onboarding_complete` as pending. No account is not "charges enabled."
184
-
185
- Use it to resume an onboarding whose earlier steps may or may not have finished — a deploy that got
186
- backgrounded, a terminal that was closed. `doctor` answers "is the rail up", which is a different
187
- question: the rail can be perfectly healthy while a resource sits half-configured and rejects every
188
- request. Exit code is non-zero until the resource can take paid traffic, so it works as a deploy
189
- gate. `--json` emits the report for scripting.
190
-
191
- ### `authflow plan`
192
-
193
- Prints the same framework-specific origin integration plan as `authflow_integration_plan`.
194
-
195
- ```bash
196
- authflow plan --slug video --framework dotnet
197
- ```
198
-
199
- `--framework` is one of `dotnet`, `typescript`, `python`, or `proxy`.
200
-
201
- ### `authflow get` / `authflow list`
202
-
203
- ```bash
204
- authflow get --slug video # one receipt, plus the client MCP config
205
- authflow list # every resource this admin key owns
206
- ```
207
-
208
- `list` is the recovery path for a forgotten slug, which `get` cannot be — it needs the slug you are
209
- trying to remember. If a registration reported the slug was taken and it is not in `list`, another
210
- tenant owns it and you need a different name; slugs are global because they are the gateway path
211
- segment.
212
-
213
- ### `authflow rotate-origin-key`
214
-
215
- ```bash
216
- authflow rotate-origin-key --slug video --write-secrets user-secrets
217
- ```
218
-
219
- The recovery path for a lost origin API key, which is shown only once. The previous key stops working
220
- the moment the command returns, so update the origin's secret store immediately or its usage reports
221
- and probes will start failing.
222
-
223
- ### `authflow doctor`
224
-
225
- Preflights a rail deployment before you spend time debugging your own origin.
226
-
227
- ```bash
228
- authflow doctor --issuer https://staging.rails.authflow.ai --slug video
229
- ```
230
-
231
- Checks that the issuer is reachable, that the Origin Protocol keys document is served and
232
- self-consistent (issuer byte-match, protocol version, a usable Ed25519 key, no private key
233
- material), and — with `--slug` — that the resource's PRM document resolves and the gateway answers
234
- an unauthenticated connect with a `401` carrying `resource_metadata`.
235
-
236
- Run this first when anything looks broken. It separates the two failures that are indistinguishable
237
- from the outside: a hostname that is not bound to the rail returns `404` on every path including
238
- `/healthz`, which reads exactly like a broken endpoint. Exit code is non-zero on any failure.
239
-
240
- `--client cursor|claude|chatgpt|all` additionally replays that MCP client's real OAuth registration
241
- against the authorization server (the failure that presents as "this server does not work in
242
- Cursor"). `--dry-run` is discovery only and does not POST DCR. Live DCR registrations are stamped
243
- `authflow-cli doctor-connect` so a cleanup sweep can reclaim them.
244
-
245
- A `400` from the rail's DCR endpoint is the interesting result: paste `error=` and
246
- `error_description=` verbatim into a rail bug. Do not work around it client-side.
247
-
248
- ```bash
249
- authflow doctor --issuer https://staging.rails.authflow.ai --slug video --client cursor
250
- authflow doctor --client all --dry-run
251
- ```
252
-
253
- ### `authflow register`
254
-
255
- ```bash
256
- export AUTHFLOW_ISSUER=https://staging.rails.authflow.ai
257
- export AUTHFLOW_ADMIN_API_KEY=…
258
- authflow register --file resource.json --out receipt.json
259
- ```
260
-
261
- `resource.json` uses the same snake_case fields as `POST /admin/resources` (see [tenant quickstart](../../docs/onboarding/tenant-quickstart.md) §3):
21
+ `resource.json` for free authenticated access:
262
22
 
263
23
  ```json
264
- {
265
- "slug": "video",
266
- "origin_base_uri": "https://video-xyz.azurecontainerapps.io",
267
- "display_name": "Snyder Video",
268
- "connected_account_id": "acct_…",
269
- "currency": "usd",
270
- "price_amount_minor": 900,
271
- "credits_per_period": 12,
272
- "price_version": 1
273
- }
24
+ { "slug": "my-mcp", "display_name": "My MCP", "access_mode": "free" }
274
25
  ```
275
26
 
276
- `origin_base_uri` may be `null` or omitted, which registers a draft — see `authflow set-origin`.
27
+ `origin.json`:
277
28
 
278
- Writes the registration receipt to `--out` (default `receipt.json`). The one-time `origin_api_key` is
279
- **not** written to that file: receipts get committed, pasted into issues, and handed to agents, and
280
- the key is a live bearer credential for the usage endpoint. It is printed to the terminal instead, so
281
- nothing is lost. `--keep-secret-in-receipt` restores the old behaviour if you really need it.
282
-
283
- Better still, have the CLI store it for you:
284
-
285
- ```bash
286
- authflow register --file resource.json --write-secrets user-secrets --secret-destination ./src/MyMcpServer
29
+ ```json
30
+ { "origin_base_uri": "https://my-origin.example.com" }
287
31
  ```
288
32
 
289
- `env-file` writes `.env.local` (and adds it to `.gitignore`); `keyvault` calls
290
- `az keyvault secret set` and needs `--secret-destination <vault>`.
33
+ Free and gateway-metered origins verify signed identity with public keys. They do not require an origin credential. Every resource starts as a draft and requires conformance verification and explicit publication.
291
34
 
292
- Lost the key? `authflow rotate-origin-key --slug <slug>`.
35
+ For paid access, include `access_mode: "paid"`, `currency: "usd"`, `price_amount_minor: 900`, and `credits_per_period: 12`. Gateway metering is the default, with `metering_default_units: 1` and `tool_units: {}`. Configure per-tool costs by supplying a replacement map such as `{ "preview": 0, "generate": 3 }`. Use `metering_mode: "origin_reported"` when your origin must determine completion or report variable costs. Never charge one call through both mechanisms.
293
36
 
294
- Registration also prints the client MCP config and, for a draft, the remaining steps — a registered
295
- resource is not yet a reachable one, and from the outside the two are indistinguishable.
37
+ Connect Stripe with `authflow stripe onboard` or `authflow stripe connect-existing`. These return authenticated Authflow links for the owner's browser. Then refresh status; returning from Stripe alone does not prove readiness. Authflow charges a 9% fee on paid sales; monthly platform plans are not implemented.
296
38
 
297
- ### `authflow mint-header`
39
+ ## Creator commands
298
40
 
299
- Dev/staging only (`OriginProtocol:EnableDevEndpoints`). Mints a signed `X-Authflow-Identity` without OAuth.
300
-
301
- ```bash
302
- export AUTHFLOW_ORIGIN_API_KEY=afo_test_…
303
- authflow mint-header --tier standard --ttl 90 --grant-credits 3 --receipt receipt.json
304
- ```
41
+ | Command | Purpose |
42
+ | --- | --- |
43
+ | `login [--workspace <id>] [--no-browser]` | Browser authorization with PKCE and workspace consent |
44
+ | `logout` | Revoke authorization and remove the OS-stored credential |
45
+ | `logout --local-only` | Clear this device only |
46
+ | `workspace list`, `workspace overview` | Workspace and recent activity |
47
+ | `resource list`, `resource get <slug>` | Receipts, status, and requirements |
48
+ | `resource create --file <json>` | Create a draft; keys are never printed |
49
+ | `resource update <slug> --file <json>` | Patch supplied name, offer, and metering fields |
50
+ | `resource origin <slug> --file <json>` | Set the private origin base URL without `/mcp` |
51
+ | `resource domain <slug> --file <json>` | Set `public_host` and `public_path` before first publication |
52
+ | `resource domain-refresh <slug>` | Refresh DNS/certificate readiness |
53
+ | `resource verify <slug>` | Probe the exact current configuration |
54
+ | `resource publish <slug>`, `resource disable <slug>` | Explicitly change traffic availability |
55
+ | `resource rotate-key <slug> --write-secrets <target> --secret-destination <value>` | Deliver an origin-reported usage credential |
56
+ | `stripe status`, `stripe onboard`, `stripe connect-existing` | Readiness and authenticated owner actions |
57
+ | `plan --slug <slug> --framework <framework>` | Resource-specific plan from Rail's canonical templates |
58
+ | `mcp` | Local management MCP with the protected CLI login |
305
59
 
306
- Prints the header and, when a gateway URL is known, a ready-to-paste `curl` against it.
60
+ Management commands accept `--issuer`; workspace operations also accept `--workspace`. Omitted PATCH fields preserve values. A supplied `tool_units` map replaces the old map. Actual offer/access/metering changes invalidate verification and publication; re-verify and explicitly publish. A name-only update preserves the policy.
307
61
 
308
- ### `authflow probe`
62
+ ## Direct secret delivery
309
63
 
310
- Asks the rail to probe the registered origin with valid and deliberately broken identity headers.
64
+ Paid origin-reported resources need a credential for the usage endpoint. Choose an explicit destination before issuance:
311
65
 
312
66
  ```bash
313
- authflow probe
314
- authflow probe --slug video
67
+ authflow resource rotate-key my-mcp --write-secrets keyvault --secret-destination my-vault
68
+ authflow resource rotate-key my-mcp --write-secrets user-secrets --secret-destination ./MyOrigin.csproj
69
+ authflow resource rotate-key my-mcp --write-secrets env-file --secret-destination ./.env.local
315
70
  ```
316
71
 
317
- The origin API key is bound to one resource, so `--slug` is optional and ignored. It exists so a
318
- documented `authflow probe --slug …` does not fail. Renders a pass/fail table. Exit code is
319
- non-zero when any check fails or the origin is unreachable.
320
-
321
- ### `authflow scaffold`
322
-
323
- ```bash
324
- authflow scaffold --receipt receipt.json --upstream http://upstream:3000
325
- ```
72
+ Use only the command for your destination. Key Vault secret names include the resource identity, avoiding collisions across workspaces/resources/environments. Destination preflight happens before rotation. Free/gateway resources return `not_required` without rotating. For origin-reported creation, the same destination flags can store the one-time key directly.
326
73
 
327
- Writes:
74
+ Key values stay out of normal output and errors. Secret writers avoid process arguments containing values where supported. Env files are plaintext development storage: exclude them from source control. Azure delivery uses the signed-in Azure CLI identity. A bounded metadata check confirms destination reachability and catches known authentication/network failures before rotation. It cannot prove `secrets/set` permission without writing: identities with write-only permission remain supported, and actual delivery determines write access.
328
75
 
329
- - `.env` — `AUTHFLOW_ISSUER`, `AUTHFLOW_RESOURCE`, `AUTHFLOW_ORIGIN_API_KEY`, `AUTHFLOW_UPSTREAM_BASE_URI`
330
- - `docker-compose.authflow.yml` — `authflow-origin-proxy` in front of an upstream placeholder
76
+ `origin_key_stored_at` confirms storage only, and `deployment_updated: false` means application bindings and deployment still need work. If delivery fails after issuance, the old key may already be revoked. Repair access, inspect state, and explicitly rotate again; the command never retries that mutation silently.
331
77
 
332
- See [origin-proxy.md](../../docs/onboarding/origin-proxy.md) for the forwarded-header contract and the
333
- nonce-cache options.
78
+ ## Authflow MCP
334
79
 
335
- ### `authflow mcp`
336
-
337
- Runs the onboarding operations as an MCP server on stdio, so a coding agent can do the onboarding
338
- instead of a human running commands. The agent already has the creator's codebase; what it lacks is
339
- a way to talk to the rail. This supplies exactly that, and nothing more — the server never reads or
340
- writes source files. It hands back an integration plan and the agent applies it.
341
-
342
- Add it to Cursor or Claude Desktop:
80
+ For a remote client, add `https://staging.rails.authflow.ai/management/mcp` and complete browser consent. For a local adapter, run `authflow login` first, then configure:
343
81
 
344
82
  ```json
345
83
  {
346
84
  "mcpServers": {
347
85
  "authflow": {
348
86
  "command": "npx",
349
- "args": ["-y", "-p", "authflow-cli", "authflow", "mcp"],
350
- "env": {
351
- "AUTHFLOW_ISSUER": "https://staging.rails.authflow.ai",
352
- "AUTHFLOW_ADMIN_API_KEY": "…"
353
- }
87
+ "args": ["-y", "-p", "authflow-cli@0.6.0", "authflow", "mcp"],
88
+ "env": { "AUTHFLOW_ISSUER": "https://staging.rails.authflow.ai" }
354
89
  }
355
90
  }
356
91
  }
357
92
  ```
358
93
 
359
- Tools:
94
+ Both expose workspace overview/rename, resource lifecycle, usage, earnings, Stripe actions, integration plans, and docs search/read. Tools require their authorized workspace and scope; read-only consent cannot write. Personal identity/security and consumer billing are outside this creator tool surface. Tool results never include origin keys or OAuth credentials.
360
95
 
361
- | Tool | Does |
362
- | --- | --- |
363
- | `authflow_signup` | Mint a per-tenant admin API key (no existing credential) |
364
- | `authflow_doctor` | Preflight the rail; distinguishes a bad hostname from an outage |
365
- | `authflow_register_resource` | Register and price a resource; optionally store the key in a secret store |
366
- | `authflow_get_resource` | Current receipt, `status`, and `pending_requirements` |
367
- | `authflow_list_resources` | Every resource this key owns — how an agent recovers an unknown slug |
368
- | `authflow_status` | Per-step readiness with the command that clears each one; use it to resume |
369
- | `authflow_integration_plan` | Config, snippets, verification steps, and invariants for `dotnet`, `typescript`, `python`, or `proxy` |
370
- | `authflow_start_stripe_connect` | Hosted Stripe onboarding link; resumable |
371
- | `authflow_set_connected_account` | Attach an existing `acct_…` |
372
- | `authflow_set_origin` | Supply the origin and promote to live |
373
- | `authflow_probe` | Conformance probe against the origin |
374
- | `authflow_mint_test_header` | Signed identity header for local verifier testing |
375
- | `authflow_rotate_origin_key` | Rotate the origin API key (invalidates the old one immediately) |
96
+ Integration templates are versioned in `rail/docs/onboarding/integration-plans.json`. Rail's resource-specific endpoint, hosted/local MCP, and modern `plan` consume this source; generic documentation is generated from it.
97
+
98
+ ## Runtime and verification
376
99
 
377
- Every tool takes `issuer` and `admin_key` optionally, falling back to the environment, so credentials
378
- stay in the MCP client config rather than in the conversation. `write_secrets` is available on both
379
- tools that issue a key; prefer it, because a key returned in a tool result is a credential in a chat
380
- transcript.
100
+ Credentials use Windows Credential Manager, macOS Keychain, or an available unlocked Linux secret service. There is no plaintext login fallback. Browser login uses a local callback. Refresh is serialized across processes; writes are not automatically retried. Read resource/Stripe state after interruptions.
381
101
 
382
- Every receipt a tool returns carries `client_mcp_config` — the config for reaching the resource
383
- through the gateway. Hand the user that, never the origin's hostname, which rejects unsigned requests
384
- by design.
102
+ Staging issuer: `https://staging.rails.authflow.ai`. Local Compose defaults to `http://127.0.0.1:8080` (respect a configured `RAIL_PORT`). Production Rail provisioning is separate from this release.
385
103
 
386
- Authentication is a per-tenant `afa_` admin API key from `authflow signup` (or `authflow_signup`).
387
- The operator bearer still works as a super-admin. Per-creator OAuth is not required for onboarding.
104
+ Origin diagnostics such as `doctor`, `probe`, `mint-header`, and `scaffold` remain available via command help for operators. They are not prerequisites for normal creator onboarding. Use `resource verify` with your scoped login; never ask a new creator for a tenant admin credential.
105
+
106
+ Gateway metering cannot infer all failures after a streamed response begins. Use origin-reported debit/compensation when provider completion determines the charge. The [tenant quickstart](../../docs/onboarding/tenant-quickstart.md) and [Origin Protocol v1](../../docs/origin-protocol/v1.md) define the integration contract.
107
+
108
+ License: Apache-2.0. See [LICENSE](LICENSE).
@@ -0,0 +1,30 @@
1
+ /**
2
+ * What every doctor-style check produces, and the one network helper they share.
3
+ *
4
+ * These lived in doctor.ts. They moved here so doctor.ts can call the tenant-host checks without
5
+ * those checks importing doctor.ts back: that import cycle was the only reason they could not be
6
+ * their own module. doctor.ts re-exports all three, so existing imports keep working.
7
+ */
8
+ export type DoctorCheck = {
9
+ name: string;
10
+ pass: boolean;
11
+ skipped?: boolean;
12
+ detail: string;
13
+ /** What to do about it. Empty when the check passed. */
14
+ remedy?: string;
15
+ };
16
+ export type FetchOutcome = {
17
+ ok: boolean;
18
+ status?: number;
19
+ body?: string;
20
+ headers?: Headers;
21
+ location?: string;
22
+ error?: string;
23
+ };
24
+ /**
25
+ * An MCP `initialize` with no credentials: what a client sends first, and what the paywall has to
26
+ * answer with a 401. Shared so the gateway check and the tenant-host check cannot drift apart.
27
+ */
28
+ export declare function unauthenticatedInitialize(): RequestInit;
29
+ /** Network failures are a diagnosis here, not an exception — every one of them is a real finding. */
30
+ export declare function fetchOrNull(url: string, init?: RequestInit): Promise<FetchOutcome>;
package/dist/checks.js ADDED
@@ -0,0 +1,36 @@
1
+ /**
2
+ * What every doctor-style check produces, and the one network helper they share.
3
+ *
4
+ * These lived in doctor.ts. They moved here so doctor.ts can call the tenant-host checks without
5
+ * those checks importing doctor.ts back: that import cycle was the only reason they could not be
6
+ * their own module. doctor.ts re-exports all three, so existing imports keep working.
7
+ */
8
+ const timeoutMs = 15_000;
9
+ /**
10
+ * An MCP `initialize` with no credentials: what a client sends first, and what the paywall has to
11
+ * answer with a 401. Shared so the gateway check and the tenant-host check cannot drift apart.
12
+ */
13
+ export function unauthenticatedInitialize() {
14
+ return {
15
+ method: "POST",
16
+ headers: { "Content-Type": "application/json", Accept: "application/json, text/event-stream" },
17
+ body: JSON.stringify({ jsonrpc: "2.0", id: 1, method: "initialize", params: {} }),
18
+ };
19
+ }
20
+ /** Network failures are a diagnosis here, not an exception — every one of them is a real finding. */
21
+ export async function fetchOrNull(url, init = {}) {
22
+ try {
23
+ const response = await fetch(url, { ...init, signal: AbortSignal.timeout(timeoutMs) });
24
+ return {
25
+ ok: true,
26
+ status: response.status,
27
+ body: await response.text(),
28
+ headers: response.headers,
29
+ location: response.headers.get("location") ?? undefined,
30
+ };
31
+ }
32
+ catch (err) {
33
+ return { ok: false, error: err instanceof Error ? err.message : String(err) };
34
+ }
35
+ }
36
+ //# sourceMappingURL=checks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checks.js","sourceRoot":"","sources":["../src/checks.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAoBH,MAAM,SAAS,GAAG,MAAM,CAAC;AAEzB;;;GAGG;AACH,MAAM,UAAU,yBAAyB;IACvC,OAAO;QACL,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,EAAE,qCAAqC,EAAE;QAC9F,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;KAClF,CAAC;AACJ,CAAC;AAED,qGAAqG;AACrG,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,GAAW,EAAE,OAAoB,EAAE;IACnE,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,EAAE,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,WAAW,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;QACvF,OAAO;YACL,EAAE,EAAE,IAAI;YACR,MAAM,EAAE,QAAQ,CAAC,MAAM;YACvB,IAAI,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE;YAC3B,OAAO,EAAE,QAAQ,CAAC,OAAO;YACzB,QAAQ,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,SAAS;SACxD,CAAC;IACJ,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC;IAChF,CAAC;AACH,CAAC"}
@@ -12,6 +12,7 @@
12
12
  */
13
13
  import { type ClientId } from "./client-fixtures.js";
14
14
  import { type DoctorReport } from "./doctor.js";
15
+ import type { HostProbes } from "./tenant-host.js";
15
16
  export type ClientConformanceOptions = {
16
17
  issuer: string;
17
18
  clients: ClientId[];
@@ -30,5 +31,8 @@ export declare function runDoctorAndConnect(issuer: string, options?: {
30
31
  slug?: string;
31
32
  client?: string;
32
33
  dryRun?: boolean;
33
- }): Promise<DoctorReport>;
34
+ adminKey?: string;
35
+ /** A tenant's own hostname to verify end to end; see `DoctorOptions.host`. */
36
+ host?: string;
37
+ } & HostProbes): Promise<DoctorReport>;
34
38
  export declare function runClientConformance(options: ClientConformanceOptions): Promise<DoctorReport>;
@@ -31,7 +31,13 @@ const chatgptCimdFetchAdvisoryDetail = `Advisory — not proven. ChatGPT's CIMD
31
31
  const dcr400Footer = "A DCR 400 is the interesting result. Paste error= and error_description= verbatim into a rail " +
32
32
  "bug; do not work around it client-side.";
33
33
  export async function runDoctorAndConnect(issuer, options = {}) {
34
- const report = await runDoctor(issuer, options.slug);
34
+ const report = await runDoctor(issuer, options.slug, {
35
+ adminKey: options.adminKey,
36
+ host: options.host,
37
+ dns: options.dns,
38
+ tls: options.tls,
39
+ now: options.now,
40
+ });
35
41
  if (!options.client) {
36
42
  return report;
37
43
  }
@@ -48,6 +54,8 @@ export async function runDoctorAndConnect(issuer, options = {}) {
48
54
  const google = await checkGoogleRedirectUri(report.issuer, {
49
55
  slug: options.slug,
50
56
  dryRun: options.dryRun,
57
+ // Read the resource identifier from where the receipt says the PRM lives.
58
+ prmUrl: report.endpoints?.prmUrl,
51
59
  });
52
60
  const checks = [...report.checks, ...extra.checks, ...google];
53
61
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"client-conformance.js","sourceRoot":"","sources":["../src/client-conformance.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EACL,2BAA2B,EAC3B,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,GAGhB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,qBAAqB,EACrB,WAAW,EACX,SAAS,GAGV,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAkB9D,MAAM,YAAY,GAAG,yCAAyC,CAAC;AAE/D,MAAM,cAAc,GAClB,gGAAgG;IAChG,4FAA4F;IAC5F,oDAAoD,CAAC;AAEvD,MAAM,uBAAuB,GAC3B,+FAA+F;IAC/F,6FAA6F;IAC7F,wFAAwF;IACxF,uBAAuB,CAAC;AAE1B,MAAM,uBAAuB,GAC3B,gGAAgG;IAChG,+FAA+F;IAC/F,mDAAmD,CAAC;AAEtD,MAAM,8BAA8B,GAClC,sDAAsD,yBAAyB,gBAAgB;IAC/F,iDAAiD,2BAA2B,mBAAmB;IAC/F,4FAA4F;IAC5F,mDAAmD,CAAC;AAEtD,MAAM,YAAY,GAChB,gGAAgG;IAChG,yCAAyC,CAAC;AAE5C,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,MAAc,EACd,UAAgE,EAAE;IAElE,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IACrD,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;QACpB,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,MAAM,OAAO,GAAG,iBAAiB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAClD,MAAM,SAAS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