Skip to main content
Glama
antigravity-server-ops

antigravity-server-ops

by aqcool
README.md
# antigravity-server-ops

An open-source **MCP Server + MCP App Plugin** for **Google Antigravity** and standard MCP clients.

Manage SSH servers directly inside an Antigravity-styled UI with **ZCode-style separated metadata + encrypted credential storage** (no `~/.ssh/config` dependency), authorize specific servers for the agent, execute remote commands, and atomically upload files.

## Quick Start (One-Command Install via `npx`)

```bash
npx -y antigravity-server-ops init
```

That's it! It installs the plugin into `~/.gemini/config/plugins/server-ops` and Antigravity discovers it automatically without restarting.

To uninstall:

```bash
npx -y antigravity-server-ops uninstall
```

## Features

- **Antigravity-Native MCP App UI (`@modelcontextprotocol/ext-apps`)**: Add, edit, delete, test SSH connectivity, and toggle server authorization in Antigravity's full-page view (`global`), side pane (`aux_pane`), or inline chat card.
- **Separated Profile & Encrypted Credential Storage**:
  - Non-sensitive profile metadata (`host`, `port`, `username`, `displayName`, `privateKeyPath`) is stored in `${PLUGIN_DATA}/profiles.json`.
  - Passwords and private key passphrases are stored separately in the **macOS Login Keychain** (with `AES-256-GCM` encrypted vault fallback on Linux/Windows) and are never exposed to the LLM or UI.
- **Built-in Pure-JS SSH & SFTP Engine (`ssh2`)**: Supports password auth and private key + passphrase auth without modifying or depending on OS `~/.ssh/config`.
- **Safe Remote Operations**:
  - `open_server_picker`: Opens the Server Ops UI.
  - `server_list`: Lists currently authorized servers.
  - `remote_run`: Executes a shell command on an authorized server (32 KiB output cap, timeout & cancellation support).
  - `server_copy`: Uploads a local file via SFTP to a remote temporary staging file and atomically publishes it (`replace` / `skip` / `error`) with automatic cleanup on failure.

## Use with Other MCP Clients

```json
{
  "mcpServers": {
    "server-ops": {
      "command": "npx",
      "args": ["-y", "antigravity-server-ops"]
    }
  }
}
```

## Development

```bash
pnpm install
pnpm build
pnpm test
```

## License

MIT

TDQS

B3/5.0

Scored across 9 tools

Disambiguation3/5

Most tools are clearly separable (profile_save/delete/test vs. remote_run/server_copy), but picker_read and server_list both appear to read saved/authorized server state, and picker_save vs. profile_save require careful reading to distinguish. The picker_* family also sits ambiguously between UI control and data access.

Naming Consistency4/5

Eight of nine tools follow a clear noun_verb convention (picker_read, profile_save, server_list, remote_run, server_copy), with only open_server_picker deviating into verb_noun form. The pattern is predictable enough that an agent can group tools by prefix.

Tool Count4/5

Nine tools is well within a healthy range for an SSH server management server, and each maps to a plausible operation (pick, read, save, test, delete, list, run, copy). A couple of picker tools could arguably merge, but nothing feels padded.

Completeness3/5

The surface covers profile lifecycle, authorization listing, remote execution, and upload, but lacks a remote download/read counterpart to server_copy and has no way to revoke authorization or close/disconnect sessions. These are notable gaps that would force agents into dead ends for common file-retrieval workflows.