Skip to content
    ↑↓ select↵ openesc close
    English中文
    vimtor

    Mysql

    v0.1.1Other
    opencode-mysql

    OpenCode plugin that lets agents run MySQL SQL queries.

    GitHub stars

    1

    Monthly installs

    25

    6 in 7 days

    Composite scoreSCORE

    27.2

    Multi-signal model

    Last commit

    2 months ago

    2026-06-04

    Install and configure

    opencode.json

    Writes to this project's opencode.json — applies to this repository only.

    opencode.json

    {
      "$schema": "https://opencode.ai/config.json",
      "plugin": ["opencode-mysql@0.1.1"]
    }

    opencode loads npm dependencies through its embedded runtime on startup and caches them locally — no manual global install needed.

    My personal OpenCode plugins.

    Packages

    • opencode-postgres: adds a Postgres Query tool for running SQL against a configured Postgres database.
    • opencode-mysql: adds a MySQL Query tool for running SQL against a configured MySQL 8+ database.
    • opencode-exit-plan: switches from the plan mode to a build agent when you say phrases like "go ahead".
    • opencode-keep-going: sends a continue prompt when you press Enter on an empty input.
    • opencode-quick-links: searches and opens links from the active conversation.

    Development

    npm install
    npm run typecheck
    npm run build
    npm run smoke
    npm run pack:dry-run
    

    Run a package script for one plugin with -w:

    npm run typecheck -w opencode-postgres
    

    Start local databases for the Postgres and MySQL plugins:

    docker compose up -d --wait
    

    The local Postgres wrapper connects on port 5432. The local MySQL wrapper connects on port 3307 so it can coexist with other MySQL services using the default port.

    License

    MIT