Skip to main content

vv-pilot-mcp

MCP server for accessing QA databases, k8s logs, and Kafka via Amazon Q / Copilot.

Installation

Option 1: uvx (no install required)

Add to your MCP config (~/.aws/amazonq/mcp.json or .amazonq/mcp.json in your workspace):

{
  "mcpServers": {
    "qa-server": {
      "command": "uvx",
      "args": ["vv-pilot-mcp"],
      "timeout": 60000,
      "disabled": false
    }
  }
}

This auto-downloads and runs the server on demand. Requires uv installed.

Option 2: pipx (global install)

pipx install vv-pilot-mcp

Then add to your MCP config:

{
  "mcpServers": {
    "qa-server": {
      "command": "vv-pilot-mcp",
      "timeout": 60000,
      "disabled": false
    }
  }
}

To update later:

pipx upgrade vv-pilot-mcp

First-Time Setup

On first use, the server will prompt you for:

  1. SSH password — your jump host password
  2. DB jump host — SSH alias for the DB jump host (e.g. qa-psql-1.qa-new)
  3. Vault forward host — SSH alias for the vault tunnel (e.g. vault-np-forward-new)

All values are saved securely to ~/.config/qa-mcp/.env (chmod 600) and reused automatically on subsequent sessions.

Usage

Database

  1. Open Amazon Q chat and say: "Connect to QA database"
  2. The server will:
    • SSH to the DB jump host (opens browser for OIDC approval on first session)
    • Start the vault forward tunnel
    • Open the Vault UI in your browser
  3. Copy the vault token from your profile and paste it in chat
  4. You're connected! Now ask things like:
    • "List all schemas"
    • "Find the latest visit from retrobranch1"
    • "Update discharge date for visit id 1234"

Kafka

  1. Say: "Connect to Kafka"
  2. The server will SSH to the Kafka jump host and launch the kafka-utils container
  3. Set your client (e.g. "Set client to retrobranch1")
  4. Now ask things like:
    • "List all visit topics"
    • "Check connector status for retrobranch1-qa-retrobranch1iodine1-visit"
    • "Consume 5 messages from retrobranch1-qa-visit"
    • "List consumer groups"
    • "Restart the visit connector"

Available Tools

Database

Tool Description
set_password Set SSH password (saved for future sessions)
set_config Set any config value (saved for future sessions)
connect_db_jump_host SSH to DB jump host
start_vault_forward Start vault tunnel
open_vault_ui Open vault UI in browser
set_vault_token Set vault token from browser
connect_database Get credentials and connect via psql
query Run SQL query
list_schemas List database schemas
list_tables List tables in a schema
describe_table Describe table columns

Kubernetes

Tool Description
k8s_connect SSH to k8s jump host
k8s_sso_login Run AWS SSO login
k8s_sso_confirm Confirm SSO after browser approval
k8s_pods List pods
k8s_logs Get pod logs
k8s_describe Describe a k8s resource

Kafka

Tool Description
kafka_connect SSH to Kafka host and launch kafka-utils container
kafka_set_client Set CLIENT env var (e.g. retrobranch1, imc1)
kafka_exec Run any raw command in the container
kafka_list_topics List topics (with optional grep filter)
kafka_consume Consume messages from a topic (avro, bounded)
kafka_produce Produce a message to a topic (may fail due to ACLs)
kafka_consumer_groups List/describe/delete/reset consumer groups
kafka_connector List/status/pause/resume/restart/delete connectors

General

Tool Description
connection_status Check connection state
disconnect Tear down all sessions

Configuration

All config is stored in ~/.config/qa-mcp/.env:

QA_SSH_PASSWORD=<your-password>
QA_DB_JUMP_HOST=qa-psql-1.qa-new
QA_VAULT_JUMP_HOST=vault-np-forward-new
QA_VAULT_URL=https://localhost:18200
QA_VAULT_OIDC_ACCOUNT=you@iodinesoftware.com
QA_DEFAULT_CLUSTER=qa-cluster-1
QA_DEFAULT_DB=iodine
QA_DEFAULT_USER_TYPE=dba

You can also set these as environment variables to override the file.

Prerequisites

  • SSH config with aliases for your jump hosts
  • Access to the QA environment (OIDC)
  • uv (for Option 1) or pipx (for Option 2)

Development

git clone git@github.com:vijayveeramani/vv-pilot-mcp.git
cd vv-pilot-mcp
python -m venv .venv
source .venv/bin/activate
pip install -e .

Release Workflow

  1. Bump version in pyproject.toml
  2. Commit, tag, and push:
    git add -A && git commit -m "v0.x.0: description"
    git tag v0.x.0
    git push origin main --tags
    
  3. Build and publish to PyPI:
    rm -rf dist/
    python -m build
    twine upload dist/*
    

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vv_pilot_mcp-0.4.1.tar.gz (35.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vv_pilot_mcp-0.4.1-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file vv_pilot_mcp-0.4.1.tar.gz.

File metadata

  • Download URL: vv_pilot_mcp-0.4.1.tar.gz
  • Upload date:
  • Size: 35.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for vv_pilot_mcp-0.4.1.tar.gz
Algorithm Hash digest
SHA256 99ab2c4734362960921d916b6237d46f9f279540a232cd5b761fd0b213f193cb
MD5 8e21ffd531f11ab9649b56ec0ddf59e2
BLAKE2b-256 f56d56c7e25297fe41f81e8b1ca592efbcf7fd9f617f08b0b5f6fb3445a8e00b

See more details on using hashes here.

File details

Details for the file vv_pilot_mcp-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: vv_pilot_mcp-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for vv_pilot_mcp-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5eced172aff96c0266eed63ce05f1b94d83ede279617db29fa51d390017ed569
MD5 ad244d5713351d9922e821c9e82fea10
BLAKE2b-256 4a66191fb31d34cb875cd9c06333c268715afab4243b619c1c122231c99c0a76

See more details on using hashes here.

Release history Release notifications | RSS feed

0.4.7

2 files

0.4.6

2 files

0.4.5

2 files

0.4.4

2 files

0.4.3

2 files

0.4.2

2 files

This release

0.4.1 This release

2 files

0.4.0

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page