Jabali Panel

io.github.shukivPublished by GitHub account shukivv0.6.1Updated Nov 1, 2026

Manage domains, DNS, mail, databases and backups on a Jabali Panel hosting server.

VerifiedSTDIODesktop onlyCloud & InfrastructureFiles & Storage

Overview

AI-generated overview

Local MCP server that lets an assistant manage domains, DNS, mail, applications, databases and backups on a Jabali Panel hosting server through its REST API.

What you can do
  • List and inspect domains, DNS records, mailboxes, forwarders, applications, databases, backups, cron jobs, SSH keys, PHP settings, SSL status, logs and disk usage
  • Run a composite domain diagnosis combining config, SSL, DNS, recent errors and bandwidth, and look up official panel documentation
  • Create and update domains, DNS records, mailboxes, forwarders, backups, applications, databases, cron jobs, SSH keys and PHP settings (write mode only)
  • Delete, restore, revoke or rotate resources, each returning a preview first and acting only when re-called with confirm
  • Optionally expose admin tools for users, server settings and panel updates, and target one of several panels in fleet mode
When to use it
Useful when you run a Jabali Panel hosting server and want an assistant to inspect or change hosting configuration in natural language instead of clicking through the panel. Start read-only for diagnostics and audits; enable write mode only when you actually want changes made.
Requirements
A local binary (prebuilt release, go install, or built from source with Go 1.25+) launched by an MCP client over stdio. Needs a reachable panel API URL in JABALI_PANEL_URL and a jat_ API token in JABALI_API_TOKEN, or a panels.json written by the init command. Optional: JABALI_CA_FILE for a private CA, JABALI_MCP_ALLOW_WRITE, JABALI_MCP_DRY_RUN, JABALI_MCP_ADMIN, JABALI_PANELS_FILE.
Before you install
It fronts a hosting control plane: write tools are off until JABALI_MCP_ALLOW_WRITE=1, and destructive tools need confirm: true, so keep dry-run on at first. Use a non-admin tenant token; JABALI_MCP_ADMIN=1 exposes whole-box operations and needs an admin token. preview_file can pull secrets such as wp-config.php into the conversation, and database-user creation and password rotation return plaintext secrets once. The token is passed via environment variables.

Installation

In SourceWeft

  1. Open Jabali Panel in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

jabali-mcp

A Model Context Protocol server for Jabali Panel.

Install  |  Set up  |  Tools  |  Safety  |  Generation

[Working MVP] [Go 1.25] [MCP stdio] [AGPL-3.0]

Lets an AI assistant drive panel operations — domains, DNS, mail, applications, databases, backups — through natural language. It's a thin, generated wrapper over the panel's existing REST API: it reimplements no auth, validation, or scoping, it rides them.

Status: working MVP. Read tools + gated write/destructive tools + a fleet registry, generated from the panel's OpenAPI spec (a golden test fails if the checked-in code drifts from the spec).

Install

Prerequisites: Go 1.25+ and a reachable Jabali Panel with an API token (see Set up). The server speaks MCP over stdio — an MCP client (Claude Code, Claude Desktop, …) launches it; you don't run it as a daemon.

Prebuilt binaries

Grab the binary for your platform from the latest release (linux/darwin × amd64/arm64, with SHA256SUMS), then:

sh
chmod +x jabali-mcp_*_linux_amd64sudo install -m 0755 jabali-mcp_*_linux_amd64 /usr/local/bin/jabali-mcp

With go install

sh
go install github.com/shukiv/jabali-mcp/cmd/jabali-mcp@latest

The binary lands in $(go env GOBIN) (or $(go env GOPATH)/bin).

From source

sh
git clone https://github.com/shukiv/jabali-mcp.gitcd jabali-mcpmake build            # -> ./jabali-mcp  (stamps the version from git describe)

Update

sh
jabali-mcp update --check        # report the latest release, install nothingjabali-mcp update                # re-installs the latest (go install …@latest)jabali-mcp update --ref v1.2.3   # pin a tag/commitjabali-mcp update --dry-run      # print the command only

Self-update runs go install, so it needs Go on the PATH. Restart your MCP client afterward to pick up the new binary. (Installed from a checkout instead? git pull && make build. Installed a prebuilt binary? Download the new release.)

Verify

sh
JABALI_PANEL_URL=https://panel.example:8443/api/v1 \JABALI_API_TOKEN=jat_… \jabali-mcp < /dev/null# -> jabali-mcp <version> — read-only; panels: [default]

It reads config from the environment, prints a one-line status to stderr, then serves MCP on stdin/stdout (it exits on EOF, which is why the < /dev/null smoke test returns immediately).

Set up

Quickest: the guided walkthrough

sh
jabali-mcp init

It prompts for each panel (name, URL, token), verifies the token against the panel, and writes a 0600 panels.json to your config dir (~/.config/jabali-mcp/panels.json). Add as many panels as you like — one for a single instance, several for a fleet. Because that path is the default, the server finds it with no env vars, so registering with a client is just:

sh
claude mcp add jabali -- jabali-mcp        # no --env needed after init

Re-run init any time to reconfigure. The manual steps below are the same thing by hand.

Manual

1. Mint an API token. In the panel, go to the tenant shell → API Tokens and create one. The plaintext jat_… is shown once — copy it. Use a non-admin (tenant) token so the server is confined to that one account.

2. Point the server at your panel with these environment variables:

VariableRequiredMeaning
JABALI_PANEL_URL✓e.g. https://panel.example:8443/api/v1
JABALI_API_TOKEN✓the jat_… bearer token
JABALI_PANEL_NAMElogical name (default default)
JABALI_CA_FILEPEM bundle to trust a self-hosted panel CA
JABALI_MCP_ALLOW_WRITE1 to enable mutating tools (default: read-only)
JABALI_MCP_DRY_RUN1 to force every write to preview instead of act
JABALI_MCP_ADMIN1 to also expose the /admin/* tools (needs an admin token)
JABALI_PANELS_FILEJSON array of panels for fleet mode (overrides the single-panel vars)

3. Register it with your MCP client. In every example below jabali-mcp is assumed on your PATH (else use its full path), and the two required env vars are shown inline. It's a stdio MCP server, so any MCP-capable client can launch it.

Claude Code (CLI — writes .mcp.json / your Claude config):

sh
claude mcp add jabali \  --env JABALI_PANEL_URL=https://panel.example:8443/api/v1 \  --env JABALI_API_TOKEN=jat_… \  -- jabali-mcp

Claude Desktop — claude_desktop_config.json:

json
{  "mcpServers": {    "jabali": {      "command": "jabali-mcp",      "env": {        "JABALI_PANEL_URL": "https://panel.example:8443/api/v1",        "JABALI_API_TOKEN": "jat_…"      }    }  }}

OpenAI Codex (CLI — writes ~/.codex/config.toml):

sh
codex mcp add jabali \  --env JABALI_PANEL_URL=https://panel.example:8443/api/v1 \  --env JABALI_API_TOKEN=jat_… \  -- jabali-mcp

or edit ~/.codex/config.toml by hand — note it's TOML, and the key is mcp_servers (underscore), not the JSON mcpServers:

toml
[mcp_servers.jabali]command = "jabali-mcp"
[mcp_servers.jabali.env]JABALI_PANEL_URL = "https://panel.example:8443/api/v1"JABALI_API_TOKEN = "jat_…"

OpenCode — opencode.json:

json
{  "$schema": "https://opencode.ai/config.json",  "mcp": {    "jabali": {      "type": "local",      "command": ["jabali-mcp"],      "environment": {        "JABALI_PANEL_URL": "https://panel.example:8443/api/v1",        "JABALI_API_TOKEN": "jat_…"      },      "enabled": true    }  }}

Kimi Code CLI (writes ~/.kimi/mcp.json):

sh
kimi mcp add --transport stdio jabali \  -e JABALI_PANEL_URL=https://panel.example:8443/api/v1 \  -e JABALI_API_TOKEN=jat_… \  -- jabali-mcp

Cursor, Windsurf, Cline, Gemini CLI, and other clients that use the standard mcpServers JSON take the same entry as Claude Desktop above — a { "command": "jabali-mcp", "env": { … } } block under mcpServers in that client's config file.

Start read-only. When you want mutations, add JABALI_MCP_ALLOW_WRITE=1 to the env (and, at first, JABALI_MCP_DRY_RUN=1 to watch what it would do).

Run it on a remote box over SSH

Because it speaks stdio, any of the above can launch it on a remote host over SSH instead of locally — the tool stream tunnels through the SSH pipe. Set the client's command to ssh and pass the remote invocation as its argument, e.g. for Claude Desktop:

json
{  "mcpServers": {    "jabali-prod": {      "command": "ssh",      "args": ["operator@box",        "JABALI_PANEL_URL=https://localhost:8443/api/v1 JABALI_API_TOKEN=jat_… jabali-mcp"]    }  }}

On the box the panel API is reachable at localhost, and the token still scopes everything to its user. Nothing to install client-side beyond an SSH key.

Fleet (multiple panels)

The easiest path is jabali-mcp init — add several panels when it asks "Add another panel?". It writes them to the default panels.json, which the server loads automatically.

Equivalently, point JABALI_PANELS_FILE at a JSON array (this overrides the single-panel vars), or write that array yourself:

json
[  { "name": "prod-a", "url": "https://a:8443/api/v1", "token": "jat_…" },  { "name": "prod-b", "url": "https://b:8443/api/v1", "token": "jat_…" }]

Config resolution order: JABALI_PANELS_FILE → single-panel env (JABALI_PANEL_URL + JABALI_API_TOKEN) → the default panels.json. In a fleet, every tool takes an optional panel argument to pick one; omit it for the first (default) panel.

Admin tools (same binary, separate opt-in)

The admin operator surface (list/create users, read/update server settings, run panel updates and read their status) lives in the same binary but a separate registration group, exposed only with JABALI_MCP_ADMIN=1. It fronts whole-box operations — a far larger blast radius than the tenant tools — so it is deliberately opt-in and requires an admin token (the panel's RequireAdmin rejects a non-admin token with 403 regardless of the flag). Admin write tools still need ALLOW_WRITE, and admin_run_updates is confirm-gated. admin_renew_ssl and admin_retry_ssl also live here: their paths look tenant-scoped, but the panel registers them behind RequireAdmin. Give the admin server its own admin token; use tenant tokens for everything else.

Auth model — inherits the panel's tenant isolation

Tools authenticate with the per-user Bearer token. The token acts as its owning user and the panel enforces ownership on every endpoint, so the server can only ever reach the resources that token's user owns — a tenant token is confined to that tenant. That is why a non-admin token is the safe default.

Safety

This fronts a hosting control plane, so mutation is fenced in four layers:

  1. Read-only by default. Write tools register only with JABALI_MCP_ALLOW_WRITE=1.
  2. Destructive tools require confirm: true. Every delete_* / revoke_* / rotate_*_password tool (plus restore_backup, disable_ssl) returns a preview and acts only when re-called with confirm: true. A model cannot destroy state in one step — the guard against a prompt-injected tool call.
  3. Tool hints. Read tools carry readOnlyHint; destructive tools carry destructiveHint so clients can surface the risk.
  4. Dry-run. Any write tool accepts dry_run: true to return the exact request it would send without acting; JABALI_MCP_DRY_RUN=1 forces that globally.

TLS verification is always on. To trust a self-hosted panel's private CA, point JABALI_CA_FILE at its bundle — that adds the CA, it never disables verification.

Tools

Full per-tool reference with arguments and constraints: docs/TOOLS.md (generated — make docs).

Read (always on): list_domains, get_domain, list_dns_records, list_mailboxes, list_forwarders, list_applications, list_databases, list_backups, list_api_tokens, list_mail_logs, tail_web_log, get_ssl_status, get_domain_whois, get_domain_bandwidth, whoami, get_disk_usage, list_activity, list_cron_jobs, get_cron_job, get_cron_log, list_app_catalog, get_application, get_database, list_database_users, get_mailbox, get_autoresponder, get_backup_manifest, list_ssh_keys, get_php_settings, list_php_versions, list_files, preview_file — plus the composite diagnose_domain (config + SSL + DNS + recent errors + bandwidth in one answer; a failed probe is reported without failing the rest) and report_issue (draft a bug report / feature request for the jabali-panel or jabali-mcp GitHub repo as a prefilled link; in write mode it can also file it directly via gh, gated by confirm: true) and search_docs (look up the official panel documentation from jabali-panel.com mid-task — anonymous, origin-restricted fetches; override the source with JABALI_DOCS_URL).

preview_file reads file contents (up to 1 MiB) into the conversation — that can include secrets such as wp-config.php. create_database_user and the rotate_*_password tools return the plaintext secret once, by panel design.

Write (needs JABALI_MCP_ALLOW_WRITE=1): create_domain, update_domain, create_dns_record, update_dns_record, create_mailbox, create_forwarder, create_backup, install_application, create_database, enable_ssl, create_cron_job, update_cron_job, run_cron_job, create_database_user, grant_database_access, update_mailbox, set_autoresponder, add_ssh_key, update_php_settings — plus the confirm-gated destructive set: delete_domain, delete_dns_record, delete_mailbox, restore_backup, disable_ssl, delete_cron_job, delete_application, delete_database, delete_database_user, revoke_database_access, rotate_database_password, delete_autoresponder, rotate_mailbox_password, delete_backup, delete_ssh_key.

Tool generation

Tools are generated, not hand-written, so the surface can't drift from the API:

  • openapi/openapi.yaml — vendored copy of the panel's spec.
  • openapi/tools.yaml — curation: which operations are exposed, their tool names, read/write group, and destructive/paginated flags. An operation absent here is not exposed (that keeps admin/* and nic/update out).
  • internal/gen joins the two and emits internal/tools/generated.go; run it with make gen or go generate ./....
  • A curation entry naming an operation the spec lacks is a hard error (drift guard), and TestGeneratedIsUpToDate fails if the committed file is stale.
  • openapi/panel-routes.txt pins the routes the panel really serves, read from the panel's embedded spec (panel-api/internal/api/openapi.yaml, which the panel's own tests hold to its registered routes). TestCuratedOpsArePanelRoutes fails for any curated operation missing from it: that tool would 404. The vendored spec is a hand-edited copy and cannot catch this on its own.

To refresh after the panel API changes: run make panel-routes (reads origin/main of ../jabali2; override with PANEL_REPO= / PANEL_REF=), merge the changed operations into openapi.yaml by hand (a wholesale copy loses the request bodies written here), adjust tools.yaml, run make gen, review the diff.

Development

sh
make build     # build the binarymake gen       # regenerate internal/tools/generated*.go + docs/TOOLS.mdmake docs      # regenerate docs/TOOLS.md onlymake test      # go test -race ./...make vet       # go vet ./...
# zero-mutation live smoke against your configured panel (run before a release):make smoke

Layout

cmd/jabali-mcp/     entry point (stdio MCP server)cmd/gen-tools/      CLI wrapper over internal/geninternal/client/    Bearer-token HTTP client + fleet registryinternal/tools/     tools.go (helpers + gate) + generated.go (the tools)                    + composite.go (hand-written diagnose_domain)internal/gen/       openapi.yaml + tools.yaml -> generated.go + docs/TOOLS.mdopenapi/            vendored spec + curationscripts/smoke/      zero-mutation live smoke client (pre-release check)docs/TOOLS.md       generated tool reference (make docs)docs/DESIGN.md      architecture, security model, roadmapHANDOVER.md         full project handover: decisions, traps, release process

Roadmap

  • M1 — read-only MVP ✅ Bearer client, MCP stdio server, read tools, tests.
  • M2 — gated mutations ✅ write tools behind an opt-in flag; destructive ops confirm-gated.
  • M3 — fleet ✅ multi-panel registry + panel tool argument.
  • Generator ✅ tools generated from the spec + curation, golden-tested.
  • Dry-run ✅ per-call dry_run + global JABALI_MCP_DRY_RUN.
  • Input validation ✅ generated per-tool checks for the spec's value constraints (enum, minLength, min/max) — fail fast before any request.
  • Admin tools ✅ /admin/* surface behind JABALI_MCP_ADMIN=1 + an admin token, same binary.
  • Logs ✅ list_mail_logs + tail_web_log (panel gained GET /logs/tail).
  • Next: richer InputSchema (constraints visible to clients), composite diagnostics (diagnose_domain), CLI mode.

License

GNU Affero General Public License v3.0 — see LICENSE. Same license as Jabali Panel.

Source: README.md at commit ce869cd

Tools

0
SourceWeft started this package once in an isolated sandbox, without credentials, to list its tools. That failed: the package type cannot run in the sandbox.

Version history

1
  1. v0.6.1LatestNov 1, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts