Gigalixir & Turso & GitHub MCP Server

A ultra high-performance, multi-service Model Context Protocol (MCP) server built for deployment to Cloudflare Workers (or run as an ESM module anywhere). It includes pre-integrated support for managing Gigalixir apps, querying or executing transactions on Turso databases, and managing GitHub repositories, branches, actions, files, pull requests, and issues.

๐Ÿ“ฆ The 5 Essential Files to Push to GitHub

To deploy this MCP server to Cloudflare Workers, you only need to push the following 5 files to your GitHub repository:

  1. ๐Ÿ“„ src/worker.js โ€” The unified single-file MCP core handler containing security checks, tool registry, pipeline executors, and normalized gateways.
  2. ๐Ÿ“„ wrangler.toml โ€” Cloudflare Workers configuration file declaring compatibility flags and custom environment variables.
  3. ๐Ÿ“„ package.json โ€” Dependency definitions and standard wrangler control scripts (npm run build, npm run deploy).
  4. ๐Ÿ“„ README.md โ€” This documentation file explaining usage and setup instructions.
  5. ๐Ÿ“„ .gitignore โ€” Basic configuration to prevent pushing sensitive files, .wrangler/ builds, or node_modules.

๐Ÿš€ Setting Up & Deploying to Cloudflare Workers

1. Configure Secrets & Environment Variables

Make sure to prepare the following credentials (stored as Cloudflare Worker Secrets):

  • GIGALIXIR_EMAIL โ€” Your registered Gigalixir account email.
  • GIGALIXIR_API_KEY โ€” Your Gigalixir API Key (retrieved from Gigalixir CLI using gigalixir api_key:show).
  • TURSO_DB_URL โ€” The URL of your Turso database (e.g. libsql://yourdb-slug.turso.io).
  • TURSO_AUTH_TOKEN โ€” Your Turso database authorization bearer token.
  • GITHUB_TOKEN โ€” A GitHub Personal Access Token (classic or Fine-grained) with access to your repositories and pull requests.

2. Install & Deploy

Clone your GitHub repository and build:

# Install dependencies
npm install

# Log in to Cloudflare
npx wrangler login

# Set environment secrets securely on Cloudflare
npx wrangler secret put GIGALIXIR_EMAIL
npx wrangler secret put GIGALIXIR_API_KEY
npx wrangler secret put TURSO_DB_URL
npx wrangler secret put TURSO_AUTH_TOKEN
npx wrangler secret put GITHUB_TOKEN

# Deploy directly to Cloudflare edge edge network!
npx wrangler deploy

๐Ÿ› ๏ธ Integrated MCP Tools Breakdown

๐Ÿ”ด Gigalixir Management Tools

  • list_apps โ€” Lists all Gigalixir apps in your account.
  • get_app โ€” Gets details of a specific app.
  • get_configs & set_config & delete_config โ€” Retrieve, set, or delete environmental configs safely (with resilient backoff to support both singular and plural endpoint variants).
  • get_replicas & scale โ€” Read or scale your instance deployment replicas (scaling to 0 shuts down the instance).
  • list_releases & rollback โ€” Read release versions or rollback instantly.
  • restart โ€” Gracefully cycles app processes through standard sequence.
  • get_logs โ€” High-performance chunk-streaming log reader capped to a hard 3-second limit to guarantee zero MCP gateway timeouts.

๐Ÿ”ต Turso Database Tools

  • turso_query โ€” Execute read-only SQL SELECT queries with secure parameter parsing.
  • turso_execute โ€” Execute state-changing SQL operations (INSERT, UPDATE, DELETE, CREATE, DROP).
  • turso_list_tables โ€” List database master tables instantly.
  • turso_describe_table โ€” Query columns, schema metadata, types, constraints, and indexes.
  • turso_transaction โ€” Run multi-statement database transactions with integrated auto-rollback safety handlers if any query fails.

๐ŸŸข GitHub Workspace Tools

  • github_list_repos & github_get_repo โ€” Query user repository definitions and specs.
  • github_create_repo โ€” Create a new GitHub repository.
  • github_list_files & github_get_file โ€” Recurse, tree-walk, or read raw contents.
  • github_create_file & github_update_file & github_delete_file โ€” Create, update, or delete files securely with auto-resolved folder tree SHAs.
  • github_create_pr โ€” Generate pull requests between head and base branch tracks.

๐Ÿ›ก๏ธ Production-Grade AI DevOps & Safety Controls (New)

The MCP server incorporates advanced guardrails, observability, and orchestration layers to transition from a collection of raw tools to a safe, self-healing AI DevOps Agent system:

โš™๏ธ 1. Safety Guardrails & Access Rules

All state-changing operations are monitored by a local guardrail layer. Accidental or destructive acts are blocked unless explicit permission bypass is granted:

  • Outage Prevention: Scaling active deployment replicas pool size to 0 is blocked by default.
  • Secret Deletion Protection: Deleting configurations containing database strings, credentials, tokens, URLs, or security secrets is locked.
  • Database Guardrails: Destructive SQL commands (e.g., DROP TABLE, TRUNCATE) are blocked on custom executes.
  • Version Control Lock: Accidentally deleting core files from git via github_delete_file is locked.
  • How to Bypass: If you explicitly intend to execute a locked operation, pass the parameter "bypass_safety": true in the tool call.

๐Ÿงช 2. Universal Dry-Run Simulator

Before executing any state-altering operations (scaling, deleting configs, commits, rollbacks, SQL mutations), pass "dry_run": true to preview the actions. The tool will return a detailed simulation explanation and log the trace without changing any remote resources.

๐Ÿ“Š 3. Real-Time Observability & Auditing

  • audit_traces_list โ€” Retrieve real-time tracking logs of all executed actions, including timestamps, durations, statuses, targets, parameters (with sanitised pay-loads), and errors. Perfect for auditing AI operator behaviors.
  • get_system_safety_policies โ€” Standard endpoint to query current safety postures, rule sets, limits, and dry-run instructions.

๐Ÿš‚ 4. Core Orchestration Pipelines & Workflows

  • orchestrate_deploy_pipeline โ€” Performs complete end-to-end git-to-cloud deployments (verifies packages on GitHub, sets Gigalixir environments, triggers rolling restarts, and parses container health logs).
  • diagnose_and_repair_app โ€” Scans application runtimes, scales, and retrieves trailing log traces; detects crash loops or replicas drifts, and triggers self-healing cycles (e.g., scale recovery, graceful process recycles).

MCP Server ยท Populars

MCP Server ยท New

    marcindulak

    Functionality overview

    Local speech-to-text MCP server for Tmux on Linux (for use not only with Claude Code)

    Community marcindulak
    louchi1984-coder

    DeepSeek Code Worker MCP

    DeepSeek V4 code worker MCP for Codex Desktop, powered by Claude Code

    Community louchi1984-coder
    Moeblack

    ComfyUI-AnimaTool

    AI Tool Use API for Anima anime/illustration image generation. Supports MCP Server, HTTP API, and CLI.

    Community Moeblack
    RohanAnandPandit

    Trading212 MCP Server

    The Trading212 MCP server is a Model Context Protocol server implementation that provides seamless data connectivity to the Trading212 trading platform enabling advanced interaction capabilities via the public beta API.

    Community RohanAnandPandit
    Olanetsoft

    Midnight MCP Server

    Midnight MCP server giving AI assistants access to Midnight blockchain โ€” search contracts, analyze code, explore docs

    Community Olanetsoft