Repository navigation
Say Spaces in permission copy, and match the CLI login output #127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,17 +33,16 @@ sf login | |
| ``` | ||
|
|
||
| ```text | ||
| Signing in to https://api.spacefast.com. | ||
| Requesting Agent access — create and publish sites, manage domains and DNS, create teams, and use Spacefast tools. | ||
| Complete device login in your browser. | ||
| Code: XXXX-XXXX | ||
| Link: https://…/device | ||
| Opened your browser. | ||
| Sign in to Spacefast | ||
| Opened https://…/device | ||
| Code XXXX-XXXX · check it matches | ||
|
|
||
| ✓ Signed in as Ada Lovelace · Acme | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Mark the browser-flow example as abbreviated, or align it with the Output section. The example ends at the account and team line. The Output section says
|
||
| ``` | ||
|
|
||
| All of that goes to stderr. Only the approving side needs a browser, so this works over SSH and in containers. When the CLI cannot open one it says so, tells you to approve the link from any device, and waits. [Sign in and security](/authentication#log-the-cli-in) has the code lifetime, the poll cadence, and the lifetime of the credential you end up with. | ||
|
|
||
| With `--json`, one line goes to stdout before the poll blocks, so an agent can hand the code to a person: | ||
| With `--json`, one line goes to stderr before the poll blocks, so an agent can hand the code to a person: | ||
|
|
||
| ```json | ||
| {"requiresAction":{"actionType":"device_authorization","verificationUrl":"…","userCode":"…","interval":5,"expiresAt":"…"}} | ||
|
|
@@ -53,8 +52,8 @@ With `--json`, one line goes to stdout before the poll blocks, so an agent can h | |
|
|
||
| | `--access` | Grants | | ||
| | --- | --- | | ||
| | `read` | Read your teams, sites, and domains. Changes nothing. | | ||
| | `agent` (default) | Create and publish sites, manage domains and DNS, create teams, and use Spacefast tools. It cannot delete sites, manage team members, change billing, or mint credentials. | | ||
| | `read` | Read your teams, Spaces, and domains. Changes nothing. | | ||
| | `agent` (default) | Create and publish Spaces, and manage their access and domains. Invite team members, create teams, manage Sell, and act on the services your team connected. It asks you before it deletes a Space, and a team admin confirms every purchase. It can't remove team members or change roles or billing. | | ||
|
|
||
| The approval page shows the same scopes and lets you narrow them. | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚪️ Nit · API scope table contradicts the MCP page and omits new scopes
The
domains:*rows here still use the old wording, while mcp-server.mdx now has the current descriptions. The table also leaves out scopes the API resource accepts (sell:write,teams:members.write,spaces:access.write,versions:download,oauth-apps:write, and others), so an API client can't find them on this page. Sync the wording and add the missing rows, or say the table is partial.Found by Indent Review Agent