Skip to content

Connections

A connection is how an agent reaches something outside the project: logs, a chat, a tracker, a server. You add it once in Settings › Connections and bind it to the projects that need it. There are three kinds:

  • MCP server: a server that gives the agent tools, set up with its JSON config.
  • SSH: a host the agent runs commands on and copies files to and from.
  • Secret: a named value, such as an API token.

All keys and values live in your Keychain. The difference that matters is who sees them: agents call MCP servers and SSH hosts through Drakkar and never get their keys, but a plain secret goes into the agent’s environment, and the agent can read it.

Diagram: the agent calls an MCP server or an SSH host through Drakkar with connection_call, and Drakkar adds their keys from the Keychain. A plain secret goes from the Keychain straight into the agent's environment as $NAME.
Settings › Connections: the list on the left holds github, sentry, the secret PYPI_TOKEN and a folder bookmarks with prod and staging; the github MCP server is open on the right with Bound to bookmarks, Environment, its JSON config, Test connection and GITHUB_TOKEN in Keychain
The github MCP server is bound to the bookmarks project. Its config names ${GITHUB_TOKEN}; the value is in the Keychain.
  1. Open Settings › Connections, click Add and choose Add connection.
  2. Choose MCP server.
  3. Paste the mcpServers JSON from the server’s README. Drakkar takes the name, kind and command or URL from it. A JSON with several servers adds them all.
  4. Where the config needs a key, write ${NAME} instead of the key, for example "Authorization": "Bearer ${TRACKER_KEY}". A field for each value appears under the config. The values go to the Keychain; the config keeps only the names.
  5. Click Test connection to check it, then add it.

Drakkar can’t sign in to an MCP server through a browser yet. If a server answers that it needs a sign-in, its row says needs sign-in: give it a key in the config as ${NAME} instead.

  1. Click Add, choose Add connection, then SSH.
  2. Fill in Name, Host, Port and User.
  3. In Key, pick a key file from ~/.ssh, or Paste a key… to keep the key in the Keychain. Type the Passphrase if the key has one.
  4. Click Test connection. The first time, Drakkar shows the server’s fingerprint: check it and click Trust this server…

An agent bound to the host gets three tools for it:

  • exec runs a command there.
  • download copies a file from the host to this side, replacing the file here.
  • upload copies a file from here to the host, replacing the file there.

A path on the host is whole, or relative to the home folder there. The file on this side must be inside the agent’s own folder, its workspace or project (an automation’s data/), or in a temporary folder such as /tmp. A copy goes to a temporary file first and replaces the file only once it has arrived whole; an upload keeps the mode of the file it replaces. A command or a copy has 10 minutes by default; for a large file the agent can ask for up to 29.

Drakkar runs each command and copy with the key, so the agent never sees the key. What the agent may do is limited by that server user: for example, a user without sudo that can only read logs. In an automation’s Tools, each of the three is a row of its own, turned on by itself, such as prod.download with Download a file from and the host.

  1. Click Add, choose Add connection, then Secret.
  2. Type the Name: letters, digits and _, such as TELEGRAM_TOKEN. It is also the variable’s name.
  3. Type the Value. It is stored in the Keychain.

A connection reaches no agent until you bind it. In its panel, click Change next to Bound to and tick projects or Scratch in BOUND TO. Agents of workspaces belong to their project, so they get it too. Only you bind connections; agents can’t.

What a bound agent gets depends on the kind:

  • MCP server and SSH: the agent calls it through Drakkar with the connection_call tool. Its key never reaches the agent.
  • Secret: the agent starts with $NAME in its environment and can read it. Agents already running get it after a restart.

If two bound secrets have the same name, for example in two folders, agents get neither. The secret’s panel says so: rename one, or bind them apart.

Group connections in folders, such as one per project or per client: Add › New Folder, then drag connections in, or use Move to in a row’s context menu.

Bind the folder from its context menu, Bound to…: everything in it, including connections added later, goes to those projects. A connection in the folder can add projects of its own. In BOUND TO, what the folder gives is ticked, grey and marked from folder. To keep one connection from the folder’s projects, move it out of the folder.

The folder’s name becomes part of the connection’s name, such as bookmarks.prod. A secret keeps its own name as the variable: bookmarks.DB_PASSWORD is $DB_PASSWORD.

Deleting a folder keeps what it holds: its connections move up a level.

Mark an MCP server or an SSH host as local, development, testing, staging or production in Environment. The list shows it at the right of the row: local, dev, test, stage, prod. Agents are told that production connections are for reading and inspecting only, and to change anything there only when you ask.

Test connection in the panel, or in the row’s context menu, connects and says what it found: Connected · 0.4 s for an SSH host, Started · 3 tools for an MCP server. An MCP server’s TOOLS list fills in after a test.

If a test or an agent’s call fails, the panel shows why and what to check: the user and key, the port, the host, the command or url in the config. After an agent’s failed call, a red box says who called and when; it stays until a call or a test gets through.

If an SSH host’s key changes, Drakkar stops connecting and offers Trust the new key… Trust it only if you know the server was reinstalled.

Connections are kept in connections.json, which the footer of the page shows. When the file is changed outside Drakkar, or an agent adds or changes a connection with Drakkar’s tools, the change doesn’t run at once. The row says waits for Allow, and the panel shows what the new version runs: its command, URL, server, secrets. The config is read-only there until you decide.

Click Allow to apply it. Until then the last allowed version keeps working. A connection removed outside Drakkar also keeps working until you allow the removal.

If connections.json can’t be read, the page says why, and the last valid config keeps working.

Claude Code may already have MCP servers set up on this Mac. Click Import from Claude at the top of the page, or in the empty list. Pick the servers and click Import. Drakkar copies their configs and moves the secrets to the Keychain, leaving ${NAME} in their place. Claude’s own settings stay as they are. Servers you already have are marked already added.

  • Config: edit the JSON in the panel. A change reconnects when you leave the editor.
  • A secret’s value: click Change next to it. An MCP server reconnects; a plain secret reaches agents on their next start.
  • SSH key: click Change next to Key.
  • Rename and Delete are in the row’s context menu. If automations use the connection, Drakkar lists them first: they stop until you add it again or change their tools.

With Sync connections on for a server in Settings › Machines, the server gets your connections with their values, readable only by your user there, and its agents use them the same way. Turning it off deletes them on the server. A line under the page’s description lists where they go; if a sync fails, it says why and offers Retry.

An SSH connection needs a key on each server. Under On servers in its panel, click Set… next to Key on a server and give the path of a private key file there, readable only by its user. This Mac’s key never leaves this Mac. See Servers.