Skip to content
    ↑↓ select↵ openesc close
    vimtor

    Mysql

    opencode-mysql·v1.0.0·Other

    OpenCode plugin that lets agents run MySQL SQL queries.

    GitHub stars

    7

    +6 in 30 days

    Monthly installs

    97

    21 in 7 days

    Composite score

    45.3

    Multi-signal model

    Last commit

    17 minutes ago

    2026-10-05

    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@1.0.0"]
    }

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

    My personal plugins for OpenCode V2 (beta).

    Packages

    Development

    Use Bun 1.4.0.

    bun install
    bun run build
    bun run typecheck
    bun run test
    bun run test:packages
    bun run smoke
    bun run pack:dry-run
    

    Tests live in each package's test/*.test.ts files and use bun:test. Build first; tests and their typechecks use the package's compiled exports. bun run test:packages runs the same suites against tarballs installed in an isolated directory.

    Run scripts for one plugin with --filter:

    bun run --filter opencode-postgres build
    bun run --filter opencode-postgres typecheck
    bun run --filter opencode-postgres test
    

    Releases use Changesets and npm trusted publishing. The release workflow installs Node.js and the npm CLI for publishing; dependency installation and tests use Bun.

    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

    Similar plugins