Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ content/cli/reference.md
content/(reference)/errors/
content/(reference)/changelog/
content/setup/
content/connect/
content/agents/(featured)/
content/agents/(coding)/
content/agents/(personal)/
content/agents/(deprecated)/
content/agents/_sidebar.json
public/_redirects
.env
.env.*
Expand Down
44 changes: 24 additions & 20 deletions components/Sidebar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,50 +11,59 @@
* /setup/<client> pages keep this Agents sidebar instead of the Docs one.
*/
import NavTree from "blume/components/layout/NavTree.astro";
import { sidebarForRoute } from "blume/components/layout/nav-utils.ts";
import type { NavNode } from "blume/core/types.ts";
import data from "blume:data";

import setupSections from "../content/setup/_sidebar.json";
import setupSections from "../content/agents/_sidebar.json";

type Props = Record<string, unknown> & { items: NavNode[]; currentRoute: string };

const { items, ...rest } = Astro.props as Props;
// Navigation routes are base-less; Blume adds the deployment base when it renders links.
const agentsRoute = "/agents";
const setupRoute = "/setup";
const under = (route: string, root: string) => route === root || route.startsWith(`${root}/`);

const page = (label: string, route: string): NavNode => ({ kind: "page", label, route, pageId: "" });

// The generated /setup folder is the Docs "Setup" group; its header stops linking to
// the per-client index, and its rows point at the CLI and Agents tabs instead.
const withSetupLinks = (nodes: NavNode[]): NavNode[] =>
nodes.map((node) =>
node.kind === "group" && node.route === setupRoute
? { ...node, route: undefined, children: [page("CLI", "/cli"), page("Agent setup", agentsRoute)] }
: node,
);
// Add a "Setup" group to the Docs sidebar linking directly to the CLI and Agents tabs.
const withSetupLinks = (nodes: NavNode[]): NavNode[] => {
const setupGroup: NavNode = {
kind: "group",
label: "Setup",
display: "group",
collapsed: false,
children: [page("CLI", "/cli"), page("Agent setup", agentsRoute)],
};
const idx = nodes.findIndex((node) => node.kind === "page" && node.route === "/troubleshooting");
if (idx < 0) return nodes;
return [...nodes.slice(0, idx + 1), setupGroup, ...nodes.slice(idx + 1)];
};

const generatedSectionTitles = new Set(setupSections.map(({ title }) => title));

const withOtherAgents = (nodes: NavNode[]): NavNode[] => {
const authoredNodes = nodes.filter(
(node) => !(node.kind === "group" && generatedSectionTitles.has(node.label)),
);
const hasAuthored = (slug: string) =>
nodes.some((node) => node.kind === "page" && node.route === `${agentsRoute}/${slug}`);
authoredNodes.some((node) => node.kind === "page" && node.route === `${agentsRoute}/${slug}`);
const sections = setupSections.map(({ title, pages }) => ({
kind: "group" as const,
label: title,
display: "group" as const,
collapsed: true,
children: pages
.filter(({ slug }) => !hasAuthored(slug))
.map(({ slug, label }) => page(label, `${setupRoute}/${slug}`)),
.map(({ slug, label }) => page(label, `${agentsRoute}/${slug}`)),
}));
return [
{
kind: "group",
label: "Agents",
display: "flat",
route: agentsRoute,
children: nodes.filter((node) => !(node.kind === "page" && node.route === agentsRoute)),
children: authoredNodes.filter(
(node) => !(node.kind === "page" && node.route === agentsRoute),
),
},
{ kind: "group", label: "Other agents", display: "flat", children: sections },
];
Expand All @@ -63,11 +72,6 @@ const withOtherAgents = (nodes: NavNode[]): NavNode[] => {
const route = rest.currentRoute;
let sidebar = withSetupLinks(items);
if (under(route, agentsRoute)) sidebar = withOtherAgents(items);
else if (route.startsWith(`${setupRoute}/`)) {
// Outside the tab, Blume hands over the Docs tree; take the Agents tab's instead.
const { sidebar: tree, tabs, root } = data.navigation;
sidebar = withOtherAgents(sidebarForRoute(tree, tabs, agentsRoute, root));
}
---

<NavTree {...rest} items={sidebar} />
4 changes: 2 additions & 2 deletions content/(publish)/git.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ The `sf git` and `sf source` command families use different names for the same t

Keep the editable project in Git. Connect its repository or push it to the Spacefast remote below. Add and commit the source files before pushing. A Git push transfers the committed history on the branch you push; it excludes files you have not committed. Keep an independent copy of your source and history for recovery. Rolling back a deployment restores published files, not deleted source files or branches.

## Push to a Spacefast remote
## Push to a Spacefast remote (`push.fast`)

Spacefast hosts a Git endpoint. `sf git origin` mints a signed remote and installs it.
Spacefast hosts a Git endpoint (`push.fast`). `sf git origin` mints a signed remote and installs it.

<Steps>
<Step title="Install the remote">
Expand Down
2 changes: 1 addition & 1 deletion content/_llms-preamble.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ npx -y skills add spacefast/plugins --skill spacefast -g -y
The raw skill Markdown is at `https://api.spacefast.com/skill` for agents that
can only fetch and import. Hosted MCP runs at `https://mcp.spacefast.com` and
signs in through browser OAuth. Per-agent instructions live at
[agent setup](https://spacefast.com/docs/setup/).
[agent setup](https://spacefast.com/docs/agents/).

## Find and buy a domain

Expand Down
18 changes: 9 additions & 9 deletions content/agents/claude-code.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,33 @@ The Spacefast plugin lets Claude Code publish your project and manage resources

```bash
claude plugin marketplace add spacefast/plugins
claude plugin install spacefast@spacefast
claude plugin install spacefast-code@spacefast
```

The plugin does not assume the `sf` CLI is installed. You sign in the first time the hosted server is used, through your client's OAuth flow.
This installs the dedicated Claude Code plugin (`spacefast-code@spacefast`), which runs Spacefast's local stdio MCP server (`npx -y spacefast mcp`) alongside the Spacefast skills and hooks so Claude Code can publish folders directly from your machine. You sign in via the browser the first time an account tool runs.

Two other ways to install: `npx -y plugins add spacefast/plugins -t claude-code -y` installs the same plugin, and `sf setup agent --agent claude-code` writes MCP config into `~/.claude.json` and installs the skill into `~/.claude/skills/spacefast/` instead. See [sf setup agent](/agents/sf-setup).
If you prefer the hosted HTTP server (`https://mcp.spacefast.com`) instead — or want the same hosted plugin synced across Claude web, desktop, and mobile — install `claude plugin install spacefast@spacefast` or add the [official Claude connector](https://claude.ai/directory/b0989c59-00b4-40db-a6d1-1e591ce2516c).

Two other ways to install: `npx -y plugins add spacefast/plugins -t claude-code -y` installs the plugin, and `sf setup agent --agent claude-code` writes MCP config into `~/.claude.json` and installs the skill into `~/.claude/skills/spacefast/`. See [sf setup agent](/agents/sf-setup).

## What the plugin adds

### MCP server

One entry, the hosted server.
`spacefast-code@spacefast` registers Spacefast's On-Device stdio MCP server:

```json .mcp.json
{
"mcpServers": {
"spacefast": {
"type": "http",
"url": "https://mcp.spacefast.com"
"command": "npx",
"args": ["-y", "spacefast", "mcp"]
}
}
}
```

Claude Code stores the OAuth credential for it. The `"type": "http"` field is required. Claude Code rejects a bare `{ "url": ... }` entry.

The plugin doesn't add the local stdio server. If you need it to read folders on your machine, set it up separately with [sf setup agent](/agents/sf-setup).
The hosted variant (`spacefast@spacefast`) registers `"type": "http"` pointing at `https://mcp.spacefast.com`, where Claude Code stores the OAuth credential. The `"type": "http"` field is required for remote HTTP servers in Claude Code.

### Skills

Expand Down
75 changes: 33 additions & 42 deletions content/agents/claude-desktop.mdx
Original file line number Diff line number Diff line change
@@ -1,69 +1,60 @@
---
title: Claude Desktop
description: Install the Spacefast desktop extension for Claude Desktop, or paste the hosted MCP server into your config
description: Sync Spacefast into Claude Desktop from your Claude account, or configure hosted or local MCP directly
---

The Spacefast desktop extension runs the Spacefast MCP server on your computer, so Claude Desktop can publish and manage your Spaces. It needs Node.js with `npx` where Claude Desktop can find it.
Connectors and plugins you add to your Claude account sync straight into Claude Desktop. You do not need to download or install a separate desktop bundle.

## Install the extension
## Connect your Claude account (recommended)

Download `claude-desktop.mcpb` from the latest release of `github.com/spacefast/plugins` and open it. Claude Desktop installs it as a desktop extension. If the bundle doesn't open, go to **Settings → Extensions → Advanced settings → Install Extension** and select the file.
Add Spacefast once on your Claude account, and it works across Claude Desktop, Claude on the web, and mobile.

<Steps>
<Step title="Download the bundle">
Grab `claude-desktop.mcpb` from the releases page.
<Step title="Add the Spacefast connector">
Open the [Spacefast connector in the Claude directory](https://claude.ai/directory/b0989c59-00b4-40db-a6d1-1e591ce2516c) and choose **Connect**.
</Step>
<Step title="Double-click it">
Claude Desktop reads the manifest and offers to install the extension.
<Step title="Sign in and approve">
Sign in to Spacefast and approve the permissions you want Claude to have.
</Step>
<Step title="Sign in, or don't">
Ask Claude to sign you in to publish to your team. Signed out, it publishes anonymously and you claim the Space later.
<Step title="Add the Spacefast plugin (optional)">
In Claude, open **Plugins → Add → Add marketplace → Add from a repository**, enter `spacefast/plugins`, and add the Spacefast plugin so Claude also loads Spacefast skills.
</Step>
</Steps>

Then ask for something small to prove the extension is live.

<Prompt description="Publish this folder to Spacefast and give me the live URL." actions={["copy"]}>
Publish this folder to Spacefast and give me the live URL.
</Prompt>
Then ask Claude Desktop to verify the connection:

<Prompt description="List my Spacefast Spaces." actions={["copy"]}>
List my Spacefast Spaces.
</Prompt>

## What the manifest declares

The bundle is a manifest version `0.2` extension with a Node server. Its entry point is `server/index.js`, a thin spawner that runs `npx -y spacefast@<version> mcp` over stdio, so the extension itself carries no server code.

```json manifest.json
"mcp_config": {
"command": "node",
"args": ["${__dirname}/server/index.js"]
}
```
<Prompt description="Publish this page to Spacefast and give me the live URL." actions={["copy"]}>
Publish this page to Spacefast and give me the live URL.
</Prompt>

The extension publishes inline files and edits Space source without a local checkout. Because the extension runs on Node, it can't publish a local folder by path. That needs the native `sf` build on Linux or macOS. From the extension, publish inline files, or use the CLI.
## Configure MCP in `claude_desktop_config.json`

| Fact | Value |
|---|---|
| Manifest version | `0.2` |
| Server type | `node` |
| Platforms | macOS, Windows, Linux |
| Node | 20 or newer |
| License | MIT |
| Tools | Generated from the pinned CLI's tool catalog |
If you want to publish local folders directly from your computer or configure MCP without syncing from your Claude account, add Spacefast to `claude_desktop_config.json`.

## Authentication
### Local stdio MCP (for local files)

The extension has no settings. Ask Claude to sign you in: it shows a link and a code, and you approve them in the browser. That signs in both the extension and the `sf` CLI on this computer.
Runs the Spacefast MCP server on your machine so Claude Desktop can read folders on disk and access connected tools through `search_connector_tools`:

Signed in, the extension can also reach services your team connected in Spacefast through `search_connector_tools`. The hosted server can't.
```json claude_desktop_config.json
{
"mcpServers": {
"spacefast": {
"command": "npx",
"args": ["-y", "spacefast", "mcp"]
}
}
}
```

Signed out, an anonymous publish returns a claim link. Open it in the browser to take ownership of the Space. See [Publish without an account](/anonymous-and-claim).
Ask Claude to sign you in when you first use it — it shows a link and a code, and approves both the MCP server and the `sf` CLI on this computer. Signed out, an anonymous publish returns a claim link; see [Publish without an account](/anonymous-and-claim).

## Or use the hosted server
### Hosted MCP

If you would rather connect to the hosted endpoint and sign in with OAuth, add this to `claude_desktop_config.json`.
Connect directly to the hosted endpoint and sign in with OAuth:

```json claude_desktop_config.json
{
Expand All @@ -76,10 +67,10 @@ If you would rather connect to the hosted endpoint and sign in with OAuth, add t
}
```

The hosted server has no filesystem, so `publish` requires inline files. Connectors you add on claude.ai sync down to Desktop; the bundle is the desktop-only option.
The hosted server has no local filesystem access, so `publish` takes inline files.

:::note
`sf setup agent` doesn't configure Claude Desktop. Use the extension or the config file above.
`sf setup agent` does not edit `claude_desktop_config.json`. Use your Claude account connector or add one of the entries above.
:::

## Next steps
Expand Down
12 changes: 10 additions & 2 deletions content/agents/codex.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Codex
description: Install the Spacefast plugin in Codex, or add the MCP server to config.toml by hand
---

The Spacefast plugin lets Codex publish your project and manage your Spaces through the hosted MCP server.
The Spacefast plugin lets Codex publish local folders and manage your Spaces with both local and hosted MCP plus Spacefast skills.

## Install

Expand All @@ -12,7 +12,15 @@ codex plugin marketplace add spacefast/plugins
codex plugin add spacefast@spacefast
```

Two other ways to install: `npx -y plugins add spacefast/plugins -t codex -y` installs the same plugin, and `sf setup agent --agent codex` writes the MCP table into `$CODEX_HOME/config.toml` (default `~/.codex/config.toml`) and installs the skill into `$CODEX_HOME/skills/spacefast/`.
Or install with the universal plugin command:

```bash
npx -y plugins add spacefast/plugins -t codex -y
```

Installing the Spacefast plugin is the fastest way to get local MCP alongside hosted MCP and skills in Codex on your computer. You can also run `npx -y spacefast setup` or `sf setup agent --agent codex` to write the MCP table into `$CODEX_HOME/config.toml` (default `~/.codex/config.toml`) and install the skill into `$CODEX_HOME/skills/spacefast/`.

Using ChatGPT on the web or mobile instead? Connect the official [ChatGPT and Codex plugin](https://chatgpt.com/plugins/plugin_asdk_app_6aa80fbfddb0819188f1304e303c856d) and mention `@Spacefast` in any chat.

## What the plugin adds

Expand Down
Loading
Loading