AI assistants (MCP)

Commands and database queries

Let an assistant run commands you define, query databases read-only, or run any command line inside a container or on an SSH host.

An assistant can run commands and query databases, but only inside a container or on an SSH host, and only where you allow it. Nothing runs on your Mac itself.

There are two ways to allow it:

  • Named commands and databases (the default). You define each command and each database. The assistant sees only their names, descriptions and parameters, and can never run anything else.
  • Any command. For a place you choose, the assistant may write its own command lines and query any database there.

All of these settings are on the workspace's MCP page: open Settings, choose the workspace in the sidebar's workspace picker, then click MCP in the Workspace part of the sidebar.

Allow commands in a place

Running is a right of its own. No access level includes it: even a Delete rule runs nothing without it.

  1. On the workspace's MCP page, add a rule for the place with Add Docker (Docker on a host or one container) or Add Connection (an SSH connection). See Rules for one workspace.
  2. On the rule's row, turn on Run commands and queries.
  3. Choose what assistants may run there:
    • Named commands only: only the commands and databases you defined below.
    • Any command, ask each time: also any command line and any database there; each one shows you the sheet first.
    • Any command, without asking: the same, without the sheet.

A rule on Docker for a whole host covers every container on it. When it allows any command, the row says so, for example "This covers every container on this Mac's Docker".

The switch is offered on rules for a container, Docker on a host, or an SSH connection. An SFTP connection cannot run commands: add an SSH connection to the same server for that.

Any command, without asking lets an assistant run whatever it decides in that place, with the rights of the user it runs as there. Use it only for a disposable container or a host you can rebuild.

Define a named command

  1. In Named commands, click New Command….
  2. Fill in the editor:
    • Runs in: A container (choose the Docker host, then type the container's name or pick a listed one with Choose…) or An SSH host. Use the container's name, not its id, so a rebuilt container keeps the command.
    • Name: what the assistant calls it, for example restart-worker. Letters, digits, ".", "_" and "-".
    • Description: what it does. The assistant reads this.
    • Program and arguments: the program on the first line, then each argument on its own line. Write {name} where a parameter's value goes. A value always stays one argument, whatever it contains, and never passes through a shell. Write {{ and }} for literal braces.
    • Parameters: click Add Parameter for each value the assistant supplies. Give it a lower-case name, a type (Text, Whole number or One of a list) and a description. Text can have a Pattern the whole value must match, a longest length, and May start with "-". A whole number can have a range. A list has its choices. Any parameter can be Required or have a Default value.
    • Time limit: 1 to 100 seconds. The command is ended when it runs longer.
    • Approval: turn on Run without asking only for a command you are happy to run at any time.
  3. Click Save Command.
The New Command editor for an assistant.
The New Command editor for an assistant.

To change a command, click Edit on its row. To remove one, click the minus button and confirm. If no rule allows running in the command's place yet, its row says "No rule gives "Run commands and queries" for this location yet, so clients are refused."

Define a database

Queries are read-only: each one runs in a read-only transaction, with a time limit and a row limit.

  1. In Databases, click New Database….
  2. Fill in the editor:
    • Runs in: the container or SSH host where the database can be reached.
    • Name and Description: what the assistant sees, for example orbit-eval.
    • Engine: PostgreSQL, MySQL, MariaDB, SQLite or MongoDB. Its command-line client (psql, mysql, mariadb, sqlite3 or mongosh) must already be installed there. Vektor Commander installs nothing.
    • Database: its name, or for SQLite the Database file, for example /data/app.db.
    • User and Password: the password is stored in your macOS keychain, never in a file, and never shown again. To change it, type a new one; to remove it, click Remove Stored Password.
    • Host and Port: leave them empty to use the local connection where the database runs.
    • Limits: rows (up to 1,000) and seconds (up to 100). Longer answers are cut off and the answer says so.
    • Approval: Query without asking skips the sheet for this database.
  3. Click Save Database.
The New Database editor for an assistant.
The New Database editor for an assistant.
Use a database user that can only read. The read-only transaction is the database's own rule, and a user with extra rights, such as a superuser, can still use server-side file functions. Create a user that can only SELECT and enter it here.

For MongoDB, an assistant can only send a structured read (a find or an aggregation), never JavaScript. Steps that write or run code are refused.

Any command lines and databases

In a place set to Any command, …, an assistant can also:

  • Run a command line with sh -c, so pipes and redirects work. It has no terminal and no input, a time limit of up to 100 seconds (30 unless the assistant asks otherwise) and a length limit of 16 KB. Everything the line starts is ended when it ends, when it is cancelled, or when you quit the app.
  • Query a database you did not define there, read-only. Vektor Commander connects through the database's local connection, with no password; where the database does not trust local connections, its own refusal is the answer.

Approve a run

Unless the command, database or place is set to run without asking, each run shows a sheet first. It shows:

  • the place, and for a command line who it runs as, its time limit and its length,
  • for a query, the engine, the database and the user,
  • the full command, command line or query, exactly as it will run. Invisible or look-alike characters are spelled out, so what you read is what runs.
ButtonWhat it does
ApproveRuns it once.
Approve for This SessionRuns it, and lets this client run the same thing again without asking until the server stops or you quit the app. "The same thing" is the same named command, the same database, or the exact same command line in the same place.
RejectRefuses it. Escape also rejects.

Changing a named command or database ends any Approve for This Session given for it. Unanswered requests are rejected after 2 minutes.

What the assistant receives

The exit status and the output of a command (size-limited), or a table of rows from a query. Output is treated as data: nothing in it can grant access, approve a request or change a setting.

© 2026 Vektor Commander