Agents

MCP server

skywake mcp gives an MCP-capable agent tools for files on a disk, a bash shell, and search.

Use the MCP server when your agent speaks MCP and you want it to work on a disk through tools, without a mount or a local folder. There is one server, started by skywake mcp, npx skywake mcp or uvx skywake mcp. Add it to the agent's MCP config:

{
  "mcpServers": {
    "skywake": {
      "command": "npx",
      "args": ["-y", "skywake", "mcp"],
      "env": {
        "SKYWAKE_API_KEY": "sw_...",
        "SKYWAKE_DISK": "app"
      }
    }
  }
}

The server is written in TypeScript, so it needs Node.js in every case. skywake mcp and uvx skywake mcp start it through npx. If you installed the CLI, you can use it instead:

{
  "mcpServers": {
    "skywake": {
      "command": "skywake",
      "args": ["mcp"],
      "env": { "SKYWAKE_DISK": "app", "SKYWAKE_BRANCH": "agent-1" }
    }
  }
}

With no SKYWAKE_API_KEY, the server uses the key that skywake login saved.

Settings

The server reads the same settings as the SDKs and the CLI, plus two of its own.

VariableMeaning
SKYWAKE_API_KEYAn API key. Defaults to the one skywake login saved.
SKYWAKE_URLThe API, for a self-hosted server. https://api.skywake.dev by default.
SKYWAKE_ENVThe environment, for a key that may use every one.
SKYWAKE_PROFILEWhich saved profile to use.
SKYWAKE_DISKThe disk the file tools use. Without it, each file tool call must name a disk.
SKYWAKE_BRANCHThe branch the file tools read and write. Without it, the server forks a branch for the session (see below).

Its own branch

Without SKYWAKE_BRANCH, the server never writes to main. The first write to a disk forks main into a branch named mcp- and a random suffix, and every later read and write in the session uses that branch. If the disk doesn't exist yet, the server makes it first. The agent calls merge when its work is ready, or you merge the branch yourself.

With SKYWAKE_BRANCH, every tool works on that branch, which must exist. To give each agent its own fork, start one server per agent, each with its own branch.

Tools

File tools take an optional disk, which defaults to SKYWAKE_DISK.

ToolWhat it does
readRead a file as text, or part of it (offset, length).
writeWrite files as one commit.
deleteDelete files or folders as one commit.
listList a folder: each entry's path, kind, size and modified time.
grepFind lines that match a regular expression, on the server.
findFind paths that match a glob, such as **/*.md.
querySearch the disk's files by meaning and keywords; the best file first, with a snippet. Needs search on.
bashRun a command in a bash shell over the branch. Each command that changes files is one commit.
forkFork the branch in use as name, and work there from then on.
mergeMerge the branch in use into another, main by default. Takes prefer and dry_run. Conflicts are listed.
logThe newest commits of the branch, or of one path.
diffWhat the branch changed compared with another, main by default.

A read key hides write, delete, fork and merge. Its bash tool still runs, but commits nothing.

When the API rejects a call, the agent gets the API's message and hint as the tool's error. That lets it fix the call and try again.

Next