Getting started
This walk-through takes you from installing Surjection to your first apply and back again. For the ideas behind it, read concepts.md; for every option, the user guide and the CLI reference.
1. Install
Download from the latest release.
| OS | Install |
|---|---|
| Windows | Run Surjection_X.Y.Z_x64-setup.exe (per user, no administrator rights, signed). It installs the app and puts surject on your user PATH; open a new terminal afterward. Also winget install --id DailenG.Surjection or choco install surjection once those packages are published. |
| Arch Linux | AUR surjection-bin or surjection once published; until then makepkg -si in packaging/aur/surjection-bin of this repository. |
| Debian, Ubuntu | sudo apt install ./surjection_X.Y.Z_amd64.deb |
| Fedora, openSUSE | sudo dnf install ./surjection-X.Y.Z-1.x86_64.rpm |
| Other Linux | chmod +x surjection_X.Y.Z_amd64.AppImage and run it (desktop app only) |
| macOS, or CLI only | cargo install --git https://github.com/DailenG/surjection surjection (no desktop app) |
Check the CLI: surject --version prints surject X.Y.Z. Coming from
Loadout? The loadout command still works and your setup moves over on the
first start; see Move from Loadout to Surjection.
Full details per OS (checksums, packages, updater): user guide, Install.
2. First run
Start Surjection from the Start menu (or surjection on Linux).
The data directory is created on first change: %LOCALAPPDATA%\Surjection on
Windows, ~/.local/share/surjection on Linux. surject doctor --paths shows
the folder in use.
On a new data folder the app opens with a short welcome in three steps. Skip, or the close button on any step, ends it, and it is not shown again on this machine. If you already use Surjection elsewhere, step 1 also offers Restore from remote....

- Welcome says what Surjection found on this machine, for example "6 MCP servers in 4 clients and 3 skills". Finding them only reads your clients' files. If nothing is found, choose Add a server, Browse catalogs or Finish. If SkillDock data is on this machine, the step also offers Migrate from SkillDock....
- Import lists the servers, one row per server with the clients that
have it, and the skill folders, all selected. A server defined
differently in two clients waits for you to pick a definition (or
import both, or skip it). A value that looks like a secret goes to the
OS keyring by default, or to a 1Password reference or an environment
variable; the store keeps only a
${secret:ALIAS}reference. Import selected. - Done shows what was imported. In the default instant mode Surjection now manages those entries: the ones that already matched were adopted without a write, the others were rewritten to use the stored server. (In review mode the client files change only when you apply in Pending changes.) Each adopted skill folder was replaced by a link to the store copy; the original is in the trash. A secondary Set up a backup remote... link offers a backup to a git host or a folder; it is optional, and Settings > Versioning has it too.
Open Tools to see which clients Surjection detected and where their config files are. The welcome's content stays on the Import page (Open guided import...). If your clients get more MCP servers or skill folders later, a one-line notice at the bottom of the sidebar counts them, for example "7 not managed"; click it to see the details, then Review (opens the Import page) or Dismiss.
On the command line, surject status (or server ls, skills ls) on a
machine with no store yet points at surject import --scan.
3. Bring in what you already have
Your clients probably have MCP servers already. Surjection does not manage them until you import them (they are foreign entries, see concepts). The MCP page lists them under Not managed by Surjection, and each Tools card counts its client's.
In the app, open Import (in the sidebar, after Install). Scanning only reads; nothing changes until you confirm.

- MCP servers: the entries of your user files and of every project
this machine knows. An entry that is the same in several files is one
row; a name with different definitions shows them side by side (use
one, import both under their own IDs, or skip). A value that looks
like a secret goes to the OS keyring by default, or to a 1Password
reference or an environment variable; the store keeps only a
${secret:ALIAS}reference. Review import..., then Import. - Skills: the skill folders of your clients that Surjection does not
manage. Adopt copies each into the store, enables it for the
clients where it was found, and replaces each folder whose content
matches with Surjection's link (the original goes to
backups/trash). - Discover projects: folders Claude Code, Codex, omp and Pi already know. Add selected adds them untrusted; each one waits for Review & trust.
- From SkillDock: Migrate from SkillDock... (SkillDock's folder is only read).
Details for each section: user guide, Importing in the app.
On the command line:
surject import --scan # list the servers your clients have; changes nothing
surject import # import all of them and take ownership
surject import github linear # or only some, by name
surject import --client omp # or only one client's
surject import --only # copy definitions without taking ownership
surject import --pick docs=omp # an entry that differs between clients: take omp's
surject import --extract chatty=keyring # a literal secret: send it to the OS keyring
surject skills adopt # list unmanaged skill folders; changes nothing
surject skills adopt --all # adopt every name that has one content
surject project discover # folders your clients know; --add ID or --all adds them
surject migrate skilldock # report; add --apply to migrate
An import that moved secrets out of a client file says that the backup
its apply took still holds the old values; Remove those backups now
in the app, or surject import --remove-old-backups, deletes exactly
those backups.
4. Add a server
In the app: MCP, Add server (Ctrl+N), then paste the server's URL, a config snippet copied from any client, or its command, and choose Continue. Surjection detects which it is and fills in the form; check it, adjust the clients (the installed ones that can run the server are already on), and choose Add server. In the default instant mode the change is applied at once and a notification shows where the server is enabled, with View. Walkthroughs: a snippet with a token and a remote server that signs in with OAuth.

On the command line:
surject server add github --client omp --client claude-code \
--env 'GITHUB_PERSONAL_ACCESS_TOKEN=${secret:GITHUB_PAT}' \
-- npx -y @modelcontextprotocol/server-github
surject secrets set GITHUB_PAT --ref 'op://Developer/GitHub PAT/credential'
Use single quotes so your shell leaves ${...} alone. The server stays
blocked for its clients until the alias resolves on this machine
(surject secrets check).
In the default instant mode both the app and surject server add apply the
change at once: the client files are written (each one backed up first)
and the result is printed. No separate surject apply is needed. Then
restart the client (Claude Desktop in particular reads servers only at
launch) and check that the server appears in its own MCP view.
To look before or after:
surject status # state of every entry
surject diff # what the next apply would change (empty when all is applied)
surject apply --dry-run # the plan, without writing
In review mode (apply_mode = "review" in store/settings.toml) changes
wait in Pending changes; surject apply writes them (one commit; every
file backed up first).
5. Install a skill or MCP server from Git or a folder
Skills and MCP servers can come from any Git repository (https, ssh or a local repository) or a folder on this machine.
In the app:
- Install > Skill, Git (a repository URL, optionally a branch or
tag and a folder in it) or Local (a folder or a
.zip/.skillarchive), then Review and install. Surjection fetches and scans first and shows a review: the source, whether you trust it, the files and the scan's findings. Nothing is installed until you press Install. - Install > MCP > From Git or folder: a repository URL (with an
optional folder and branch, tag or commit) or a folder you pick, then
Find servers. Surjection reads the repository's
server.json(MCP Registry), MCPBmanifest.json, committed client configs such as.mcp.json, or treats the repository itself as the server, and proposes servers. Nothing runs and nothing is saved yet: tick the ones you want, check the exact command each one runs (Review and edit opens it in the usual server form), choose Enable for, then Save.
On the command line:
surject skills add https://github.com/acme/skills --path skills/release-notes
surject server add --from https://github.com/acme/weather --dry-run # list proposed servers and findings
surject server add --from https://github.com/acme/weather --pick weather --client omp
Two checks run before anything from the source is saved:
- Do you trust this source? The first install, update or save from a
Git source asks: Trust this time only (nothing recorded),
Always trust the repository (or everything from its owner, or on a
self-hosted host), or Cancel. In a terminal it is a prompt; in a
script or with
--jsonthe command stops withsource_trust_requiredunless you pass--trust-source(once) or--trust-source=repo(always).--yesnever answers it. A folder you pick for an MCP server is asked about too; a skill folder or archive you pick is not. Settings > Sources andsurject source lslist your decisions. Only trust a source whose author you know: skills instruct your agents, and MCP servers run programs on your computer. - The built-in scan. Surjection scans the fetched files (and an MCP
server's command lines) offline with its own rules: download-and-run
commands, credential theft, hidden text, prompt injection, native
binaries, unpinned packages. Warnings are shown and never block. A
dangerousfinding blocks the install (exit code 8 on the command line) until you read the findings and choose Install anyway (--allow-dangerous). Trusting a source never skips the scan, and a clean scan is not a guarantee: still read what you install.
Commands are pinned to the commit or package version Surjection reviewed. A server that runs code from the repository's own files keeps a copy of it on this machine; a server added from a folder runs only on this machine. Details: user guide, Servers from a Git repository or folder, The built-in scan and Source trust.
6. Browse a catalog
Catalogs list MCP servers and skills: the Official MCP Registry, Anthropic's skills (with its Claude Code plugin marketplace) and any MCP registry or Git repository ("tap") you add. Searching them contacts those sites, so online catalogs are off until you turn them on.
-
In the app: Install > Browse. The first time, Surjection asks once and names the hosts it would contact; nothing is requested before you answer. Search, open a result's Details, then Review MCP server or Review skill: that opens the same review, trust question and scan as in step 5. A result shows its publisher, version and how it is pinned; when a catalog can't be reached, its saved results are labeled with their age.
-
On the command line:
surject catalog online on # once, on this machine surject catalog search weather surject catalog show mcp-registry/io.github.acme/weather surject server add --from catalog:mcp-registry/io.github.acme/weather --dry-run surject skills add catalog:anthropic-skills/pdf

Nothing is contacted in the background, only your search words are sent, and results are kept for 24 hours. Official marks only Anthropic's own skills and plugins; the registry checks that a publisher owns its namespace, not that a server is safe. For a registry server, the trust question names what it runs (its package or its remote host), not the repository the publisher claims. Settings > Catalogs turns catalogs on or off and adds your own. Details: user guide, Catalogs.
7. Give your agents the Surjection skill
Surjection ships a skill that teaches coding agents how to read your setup: which servers each client loads and why, what an apply or import would do, what an error code means. Turn it on per client in Settings > Agent integration, or:
surject agent install # every detected client with a skill folder
surject agent install --client omp # or only some
surject agent status
The skill is read only. An agent with a shell could answer any question
Surjection asks, so the skill never lets it change anything: for an install,
apply, trust decision or restore it gives you the exact command or the app
page, and you decide. It updates with Surjection (at the next app start, store
change or surject agent install), and a copy you edited is never
overwritten on its own. Details: user guide, The Surjection skill for
agents.
8. Undo
- App: the notification's undo, or History, pick the apply, Undo this apply.
- CLI:
surject rollback last(or an apply id fromsurject history).

Rollback restores the store to before that run and applies the result;
entries you edited by hand since are not overwritten without asking. To put
a client file back exactly as it was, byte for byte:
surject restore --files <apply-id> (History, Client file backups tab).
Next steps
- Per-project servers and trust: user guide, Projects and trust.
- Install from anywhere, safely: concepts, Sources, trust and the scan.
- Catalogs and the agent skill: concepts, Catalogs and The Surjection skill for agents.
- Secrets from the keyring or 1Password: user guide, Secrets.
- Backups and other machines: user guide, History, restore and remotes.
- Something wrong? troubleshooting.md and faq.md.