Skip to main content
Glama

ActionD

Local AI Action Execution Engine for LGH (Local Git Hub)

Go Version Release CI License: MIT MCP Server score on Glama

English | 简体中文

ActionD is a lightweight local CI/CD engine designed for AI agents. It listens to Git events from LGH and automatically triggers plugins to run code checks, tests, builds, and more.

Features

  • 🔌 Dynamic plugin discovery — plugins are discovered automatically via manifest.json, no code changes required

  • 🤖 MCP integration — a built-in MCP server lets AI assistants query and control CI/CD directly

  • 📡 Event-driven — reacts to git.push, git.tag, and other LGH events

  • 🖥️ Web console — live monitoring dashboard at http://localhost:3000

  • 🔄 Real-time streaming output — live logs over SSE (Server-Sent Events)

  • ⚡ Hot reload — reload plugins without a restart

  • 🔄 End-to-end workflow — dev_cycle_run does it all in one call: commit → CI → results

  • ⏮️ Rollback — automatically roll back to the previous commit on failure

Related MCP server: GitHub Actions MCP Server

Terminology

  • Job — one CI/CD execution record produced when a plugin reacts to a Git event. Some tool names (actiond_action_get, actiond_actions_list) carry the legacy word action; it refers to the same object as the actiond_job_* tools.

  • Plugin — the executable unit registered via manifest.json that runs on trigger events (git.push, git.tag); one plugin run yields one job.

  • Profile — the CI scope preset (fast / full / release) controlling which plugins run per push.

Installation

macOS / Linux (Homebrew)

brew install JoeGlenn1213/tap/actiond

Install LGH the same way (brew install JoeGlenn1213/tap/lgh) — ActionD listens to its git events.

The builtin plugin bundle (30+ check plugins) is embedded in the binary. actiond setup materializes it into ~/.localgithub/plugins, so a Homebrew or release-download install runs the same checks as a source checkout — no extra asset download needed. The web console is optional: without it the API still runs (see actiond-web or pass --web-dir).

Prerequisites

  • Go 1.25+ (only when building from source)

  • Python 3.8+ (used by plugins)

  • LGH running locally

Build from source

git clone https://github.com/JoeGlenn1213/ActionD.git
cd ActionD
make build

Note: ActionD uses SQLite for storage (the pure-Go modernc.org/sqlite build) — no CGO is needed and make build cross-compiles freely.

Quick Start

If this is your first run, use setup to install the builtin plugin bundle (embedded in the binary), check dependencies, create the directory layout, and verify the environment:

actiond setup

Re-running setup is safe: already-installed plugins and your local edits are never overwritten (use --force to reset them to the bundled version, --skip-plugins to skip installation entirely).

To also start the daemon in the background right after setup:

actiond setup --start

2. Start the service and check it

# 1. Make sure LGH is running
lgh serve -d

# 2. Start ActionD (daemon mode; reads LGH mappings automatically)
actiond start -d

# 3. Check status
actiond doctor

3. Open the web console

open http://localhost:3000

Start on boot

ActionD and LGH can be configured to start automatically when you log in. This is optional and does not require root/sudo.

Prerequisites

  • Python 3.8+ recommended for ActionD plugins (warning if missing, core works without it)

  • lgh and actiond installed via Homebrew (or on PATH):

brew install JoeGlenn1213/tap/lgh
brew install JoeGlenn1213/tap/actiond

Install autostart services

scripts/autostart.sh install

This creates:

  • macOS: LaunchAgents in ~/Library/LaunchAgents (loaded via launchctl bootstrap)

  • Linux: systemd --user units in ~/.config/systemd/user (enabled via systemctl --user enable --now)

Services are started immediately after installation. Existing service files are never overwritten unless you pass --force (which creates a timestamped backup first).

Homebrew: if brew services already registered LGH or ActionD, install skips that service and prints the label, instead of adding a second agent. status reports it. --ignore-homebrew installs our agent anyway (two managers can start two copies). uninstall does not stop or delete the Homebrew unit.

Names checked, from current Homebrew service.rb: default sh.brew.lgh / sh.brew.actiond, plus legacy homebrew.mxcl.lgh / homebrew.mxcl.actiond (macOS launchd) and homebrew.lgh / homebrew.actiond (Linux systemd). A match is the plist or unit in the user service directory, the root service directory (/Library/LaunchDaemons or /usr/lib/systemd/system), or a label already loaded in launchd / systemd --user.

Install options

scripts/autostart.sh install [options]

Options:
  --dry-run              Preview changes without writing files
  --force                Overwrite existing service files (backs up first)
  --ignore-homebrew      Install our agent even if brew services already registered it
  --lgh-bin PATH         Use specified lgh binary instead of PATH lookup
  --actiond-bin PATH     Use specified actiond binary instead of PATH lookup
  --path PATH            Set PATH for both services (colon-separated)
  --lgh-log-dir DIR      LGH log directory (macOS; default: ~/Library/Logs)
  --actiond-log-dir DIR  ActionD log directory (macOS; default: ~/Library/Logs)
  --log-dir DIR          Log directory for both services (macOS shorthand)
  --lgh-env KEY=VALUE    Add environment variable for LGH only (can be repeated)
  --actiond-env KEY=VAL  Add environment variable for ActionD only (can be repeated)
  --env KEY=VALUE        Add environment variable for both services (can be repeated)

Example with per-service environment:

scripts/autostart.sh install \
  --actiond-env ACTIOND_MCP_ALLOW_LIFECYCLE=1 \
  --actiond-log-dir ~/.localgithub/actions \
  --lgh-log-dir ~/.localgithub/logs

PATH handling: By default, a minimal PATH is computed (binary dir + brew prefix + system paths). Use --path to set it explicitly. With --force, existing PATH from the current plist/unit is preserved unless --path is given; if the existing plist had no PATH, a minimal one is added.

Crash loop prevention: Services use KeepAlive/SuccessfulExit=false (macOS) or Restart=on-failure (Linux), and actiond start exits 0 when another instance is already running. This prevents infinite restart loops if ActionD is started manually before the service manager launches it. Trade-off: if actiond start exits 0 because a manually-started instance was running, launchd will not relaunch ActionD if that manual instance later dies — run launchctl kickstart gui/$UID/com.localgithub.actiond to restart it, or stop the manual instance and let launchd manage it.

Check status

scripts/autostart.sh status

Shows whether LGH and ActionD are loaded (not just file exists), their configured binary paths, and whether they are actually running (with PID). Also reports a Homebrew-managed service when sh.brew.* or the legacy homebrew.mxcl.* / homebrew.* unit is registered, and warns if that and our agent are both present.

Uninstall

scripts/autostart.sh uninstall [--dry-run]

Stops and removes the service definitions this script installed. A unit registered by brew services is left in place.

Linux: start at boot without login

By default, systemd user services only start when you log in. To have them start at boot (without logging in), run:

loginctl enable-linger $USER

Logs

  • macOS: <log-dir>/lgh.launchd.out, <log-dir>/lgh.launchd.err, <log-dir>/actiond.launchd.out, <log-dir>/actiond.launchd.err

  • Linux: journalctl --user -u lgh.service / journalctl --user -u actiond.service

Default directories and auto-detection

  • Plugin directories are probed in order: <binary dir>/plugins → <working dir>/plugins → ~/.localgithub/plugins

  • Web static assets are auto-detected in common locations; the recommended target is publishing ActionD-Web's out/ to: ~/.localgithub/actiond-web/out

  • Without an explicit --repo-root, ActionD resolves repositories through LGH mappings first, then falls back to current-directory semantics.

CLI Commands

Command

Description

actiond setup

One-command environment initialization (v1.2+)

actiond start

Start in the foreground

actiond start -d

Start as a background daemon

actiond stop

Stop the daemon

actiond restart

Restart the service (v1.2+)

actiond status

Show run status + directory info (v1.2+)

actiond plugins restore-go

Re-enable the Go verification plugins

actiond log

View server logs

actiond doctor

Diagnose system dependencies (tiered checks)

actiond version

Print version information

actiond mcp

Start the MCP server

One-command setup (v1.2+)

Recommended on first install:

actiond setup

This automatically:

  • Creates the directory layout (~/.localgithub/*)

  • Checks dependencies (Git, Python, Go, Node)

  • Detects web assets and plugin directories

  • Verifies the LGH connection

Doctor

actiond doctor

Runs 8 categories of tiered checks:

  • 📦 System environment (home/base directories)

  • 🔧 Dependencies (Git, Python, Go, Node, golangci-lint)

  • 🔌 Service status (LGH, ActionD)

  • 🌐 Ports (3000, 8080)

  • 📁 Directories (repos, actions, plugins, web, artifacts)

  • 💾 Storage (DB writability, config files)

  • 🔌 Plugins (directories, core plugin status)

  • 🌐 Web assets

Results come in three levels:

  • FATAL — the system cannot work

  • WARN — some functionality is affected

  • INFO — informational only

If doctor reports that the Go plugins are disabled, restore them directly:

actiond plugins restore-go

Status (v1.2+)

actiond status

Shows:

  • Service run status and PID

  • All directory paths and their status

  • LGH connection status

  • Web assets and plugin directories

Build Notes

make build uses CGO_ENABLED=0 (SQLite is the pure-Go modernc.org/sqlite build), so binaries cross-compile freely.

make release defaults to the current host platform; override RELEASE_PLATFORMS="linux/amd64 linux/arm64 darwin/arm64" to build for other targets.

Start options

actiond start --help

Flags:
  -d, --daemon              run in the background
      --repo-root string    repository root directory (optional; LGH mappings take priority when omitted)
      --web-dir string      web console static file directory (optional; auto-detected by default)

Dynamic Plugin Discovery (V1.0.7+)

ActionD supports adding new plugins with zero code. Just create a manifest.json in a plugin directory. Step-by-step guide: docs/PLUGIN_GUIDE.md · contract: docs/PLUGIN_SPEC.md · schema: schemas/action-result.schema.json.

Plugin directories

ActionD scans existing directories in this order (DetectPluginDirs):

  1. System plugins: <binary-dir>/plugins (next to the executable)

  2. Development plugins: <cwd>/plugins (current working directory)

  3. Legacy user path: ~/.localgithub/actiond/plugins (if present)

  4. User plugins: ~/.localgithub/plugins (actiond setup materializes the builtin bundle here)

manifest.json format

{
  "apiVersion": "actiond.dev/v1",
  "name": "my-plugin",
  "version": "1.0.0",
  "description": "My custom plugin",
  "command": "python3",
  "args": ["run.py"],
  "triggers": ["git.push"],
  "languages": ["python"],
  "timeout": "5m",
  "artifacts": ["report.json"]
}

Field reference

Field

Required

Description

name

✅

Unique plugin identifier

command

✅

Command to execute

args

-

Command arguments

triggers

✅

Trigger events: git.push, git.tag

languages

-

Supported languages: go, java, python, web, node, typescript, javascript, nextjs, *

timeout

-

Max runtime: 5m, 30s (default 5m)

refFilter

-

Ref matching: refs/tags/*

repoFilter

-

Repository name glob

supported_profiles

-

fast / full / release (empty = all)

workingDir

-

CWD relative to the manifest directory

Creating a custom plugin

plugins/
└── my-plugin/
    ├── manifest.json    # plugin metadata
    └── run.py           # execution script

Example run.py:

#!/usr/bin/env python3
import json
import sys

# Read stdin input
input_data = json.load(sys.stdin)
event = input_data["event"]
repo_path = input_data["repo_path"]
artifact_dir = input_data.get("artifact_dir")

# Do the work...
print(f"Processing {event['type']} for {repo_path}", file=sys.stderr)

# Output the result (stdout)
result = {
    "status": "success",  # or "error"
    "artifacts": ["report.json"]
}
print(json.dumps(result))

Structured Result Protocol — ActionResult (v1.2+)

Plugins can return a standardized ActionResult structure that enables deep AI understanding and downstream decision gating (for example, the Policy Gate plugin reads signals produced by other plugins):

{
  "action_id": "act_8a9b2c1d",
  "plugin_id": "go-test-fast",
  "capability": "test",
  "language": "go",
  "status": "success",
  "decision": "pass",
  "timing": {
    "started_at": "2025-03-16T10:30:00Z",
    "finished_at": "2025-03-16T10:30:02Z",
    "duration_ms": 2300
  },
  "summary": {
    "message": "All 25 tests passed",
    "counts": {
      "tests_run": 25
    }
  },
  "signals": {
    "tests_passed": true
  },
  "hints": [],
  "artifacts": [{"name": "test-report.xml", "path": "test-report.xml"}]
}

Result fields

Field

Type

Description

action_id

string

Unique execution ID

status

string

success, failed, skipped

decision

string

pass, deny (used for gating and AI decisions)

summary.message

string

One-line summary

signals

object

Core extracted features, e.g. tests_passed, lint_error_count

hints

[]string

AI/user-friendly fix suggestions

artifacts

[]object

Artifact file list

Returning structured results from a plugin

A plugin can print JSON to stdout — ActionD parses and stores it automatically:

result = {
    "status": "failure",
    "summary": "Test suite failed",
    "hints": ["Run tests locally to reproduce"]
}
print(json.dumps(result))

Alternatively, write to $ARTIFACT_DIR/result.json.

Failure Interpreter (v1.2+)

ActionD has built-in failure-pattern recognition that automatically analyzes common errors and suggests fixes:

Recognized error patterns

Category

Pattern

Description

Dependencies

npm_install_failed

npm install failure

npm_lockfile_mismatch

package-lock.json out of sync

npm_module_not_found

module not found

go_mod_tidy

go.mod needs tidying

python_module_not_found

missing Python module

maven_build_failed

Maven build failure

Build

go_build_failed

Go compile error

gradle_build_failed

Gradle build failure

Tests

jest_test_failed

Jest test failure

go_test_failed

Go test failure

pytest_failed

pytest failure

Generic

permission_denied

permission error

timeout

operation timed out

out_of_memory

out of memory

command_not_found

command not found

Analysis API

Failure analysis is implemented on the Go side in internal/interpreter (failure.go) and produces the category/type classification shown above. There is no actiond Python package — use one of these real interfaces instead:

  • AI side (recommended): the MCP tool actiond_diagnose(job_id=...), which returns root cause and fix suggestions.

  • HTTP side: the REST API (see the "API endpoints" section below).

Hot-reloading plugins

# Option 1: API
curl -X POST http://localhost:3000/api/plugins/reload

# Option 2: MCP
# An AI assistant can call the actiond_plugins_reload tool

Built-in Plugins

Plugin

Trigger

Language

Description

echo

all

*

Debug plugin, echoes event info

go-lint

git.push

Go

golangci-lint code checks

go-test-fast

git.push

Go

Fast unit tests

go-build

git.tag

Go

Cross-platform builds

java-quicktest

git.push

Java

Smart test selection

java-checkstyle

git.push

Java

Checkstyle code style

python-pytest

git.push

Python

pytest + coverage

web-lint

git.push

Web/Node

Frontend lint checks

web-test

git.push

Web/Node

Frontend test script

web-build

git.push

Web/Node

Frontend build validation

MCP Server Integration

ActionD ships with an MCP (Model Context Protocol) server so AI assistants (such as Claude) can query and control CI/CD directly.

Starting the MCP server

actiond mcp

To let the AI start/stop/restart ActionD itself over MCP, set this before launching:

ACTIOND_MCP_ALLOW_LIFECYCLE=1 actiond mcp

Available tools

Tool

Description

actiond_status

Get server status and statistics

actiond_plugins_list

List all plugins and their configuration

actiond_actions_list

List recent CI/CD jobs

actiond_action_get

Get details of a single job

actiond_plugins_reload

Hot-reload plugins

actiond_plugins_recommend

Recommend plugins by project profile (language/framework detection + confidence)

actiond_plugin_enable

Enable a plugin for the current project

actiond_plugin_disable

Disable a plugin for the current project

actiond_log

View server logs, filterable by job_id and plugin_name

actiond_profile_get

Get the current execution profile (fast/full/release)

actiond_profile_set

Set the execution profile, controlling which plugins each push triggers

actiond_server_start

Start the ActionD service (requires the lifecycle switch)

actiond_server_stop

Stop the ActionD service (protects running jobs by default)

actiond_server_restart

Restart the ActionD service (protects running jobs by default)

actiond_job_wait

Block until a job finishes and return its result; supports a timeout parameter

actiond_job_cancel

Cancel a job (validates state; terminal jobs are rejected)

actiond_job_retry

Retry a failed job

actiond_diagnose

AI failure diagnosis: root-cause analysis + classification + fix suggestions (the first tool to reach for when CI fails)

actiond_cleanup

Delete old completed/failed jobs and their artifact directories (retention window or all terminal jobs)

actiond_run_report

Goal run report: what changed / why / verified or not (pass-fail-unknown per job) / how trustworthy / handoff status / rollback evidence — one honest JSON, unknowns explicit

actiond_handoff_pack

Handoff package: everything the next human or agent needs to continue (envelope + payload + self-contained Markdown)

dev_cycle_run

End-to-end dev loop: commit → CI → results (V1.0.8+; tri-state verification since v1.3.0)

To approve a blocked job, use the CLI actiond approve <job_id> or REST POST /api/actions/{id}/approve (there is no MCP tool for this).

The dev_cycle_run end-to-end workflow (V1.0.8+)

dev_cycle_run is an aggregate tool that completes the full development loop in a single MCP call:

edit code → lgh up → wait for CI → return structured results

Parameters:

Parameter

Required

Description

message

✅

Git commit message

path

-

Repository path (defaults to the current directory)

timeout

-

Wait timeout in seconds (default 300 = 5 minutes)

profile

-

fast/full/release for this run (restored afterwards)

auto_rollback

-

On a confirmed failed verdict, reset to the recorded pre-push commit (default false). Never fires on unverified (unknown) runs, and is skipped if HEAD moved or the working tree changed while CI ran

Returns:

{
  "success": true,
  "verification": "pass",
  "commit": "abc123",
  "jobs": [
    {"id": "job-1", "plugin": "go-test-fast", "status": "done", "duration": "2.3s"}
  ],
  "summary": "✅ 全部通过 (2 个插件)"
}

verification is tri-state and success is true only on pass — the same vocabulary and aggregation rule as actiond_run_report:

  • pass — at least one job ran and all of them passed

  • fail — at least one job was observed failing

  • unknown — zero jobs, a CI query error, or a timeout; never a pass

Jobs are associated to this run by LGH event id, or (fallback) by exact repo name plus commit sha — a green job from an older commit or a similarly named repo is never adopted as verification for the current change.

Typical usage:

User: AI, please fix the code and test it

AI:  [edits the code...]
     [calls dev_cycle_run(message="fix: address the failing case")]

Result: ✅ All passed (2 plugins)
        - go-lint: ✅ 0.5s
        - go-test-fast: ✅ 2.3s

Available resources

  • actiond://status — server status

  • actiond://plugins — plugin list

  • actiond://actions — execution records

Connecting your AI client

ActionD speaks standard MCP over stdio, so any MCP-capable client works (Claude Desktop/Code, Cursor, ZCode, Windsurf, ...). For clients that take a stdio command, the server is simply:

actiond mcp

Example for Claude Code — add to ~/.claude/claude_desktop_config.json:

{
  "mcpServers": {
    "actiond": {
      "command": "/path/to/actiond",
      "args": ["mcp"],
      "env": {
        "ACTIOND_MCP_ALLOW_LIFECYCLE": "1"
      }
    }
  }
}

AI usage example

User: Check the recent CI jobs

AI:  [calls actiond_actions_list]
     There are 3 recent jobs:
     - test-python (python-pytest): ✅ success (1.3s)
     - ActionD (go-lint): ⛔ disabled
     - demo-app (java-quicktest): ✅ success (45s)

Configuration

Runtime config file: ~/.localgithub/actions/config.json (override path with ACTIOND_CONFIG_PATH).

Environment variables

Variable

Default

Purpose

ACTIOND_BIND

127.0.0.1:3000

HTTP listen address. Loopback-only by default (API is unauthenticated unless token is set). Use e.g. 0.0.0.0:3000 only for deliberate LAN exposure with ACTIOND_TOKEN.

ACTIOND_TOKEN

(unset)

Optional shared secret for /api/*. Send Authorization: Bearer <token>, X-ActionD-Token: <token>, or ?token= (SSE EventSource cannot set headers). Static console assets stay open. MCP client forwards the same env when calling the API.

ACTIOND_CORS_ORIGIN

(none)

Extra allowed browser Origin values (comma-separated), in addition to http://localhost:3000|3001 and http://127.0.0.1:3000|3001.

ACTIOND_MCP_ALLOW_LIFECYCLE

(unset)

Set to 1 / true / yes to allow MCP tools that start/stop/restart the daemon. Reload-plugins does not require this.

ACTIOND_LGH_URL

http://localhost:9418

LGH HTTP base URL when it is not on the default host/port.

ACTIOND_CONFIG_PATH

~/.localgithub/actions/config.json

User plugin config file.

ACTIOND_ACTIONS_DIR

~/.localgithub/actions

Data directory (jobs DB, logs, artifacts); mainly for tests/custom layouts.

Security model and reporting: SECURITY.md.

Disabling a plugin

{
  "plugins": {
    "java-quicktest": {
      "enabled": false
    }
  }
}

The core Go verification chain can also be restored directly via CLI:

actiond plugins restore-go

Overriding triggers

{
  "plugins": {
    "go-lint": {
      "triggers": ["git.tag"]
    }
  }
}

Adding a custom plugin (no manifest.json needed)

{
  "plugins": {
    "my-custom-plugin": {
      "enabled": true,
      "type": "exec",
      "command": "/usr/local/bin/my-script",
      "args": ["--verbose"],
      "triggers": ["git.push"]
    }
  }
}

Architecture

┌─────────────┐     ┌─────────────┐     ┌─────────────┐
│    LGH      │────▶│   ActionD   │────▶│   Plugins   │
│  (Events)   │     │  (Engine)   │     │  (Actions)  │
└─────────────┘     └─────────────┘     └─────────────┘
                           │
          ┌────────────────┼────────────────┐
          ▼                ▼                ▼
   ┌─────────────┐  ┌─────────────┐  ┌─────────────┐
   │ Web Console │  │  MCP Server │  │    API      │
   │ (Dashboard) │  │(AI-integration)│ │  (RESTful) │
   └─────────────┘  └─────────────┘  └─────────────┘

API Endpoints

Endpoint

Method

Description

/api/plugins

GET

List all plugins

/api/plugins

POST

Create a custom plugin

/api/plugins/reload

POST

Hot-reload plugins

/api/plugins/{name}/toggle

POST

Enable/disable a plugin

/api/actions

GET

List execution records

/api/actions/{id}

GET

Get job details

/api/actions/{id}/stream

GET

SSE live log stream

/api/actions/{id}/artifacts/{file}

GET

Download an artifact

/api/actions/{id}/cancel

POST

Cancel a running job (V1.0.8+)

/api/actions/{id}/retry

POST

Retry a failed job (V1.0.8+)

/api/actions/{id}/approve

POST

Manually approve a blocked job

Layered Logging (v1.2+)

ActionD uses a layered logging architecture that targets different audiences with different formats:

Layer

Purpose

Example

event

Event log

📨 Received: git.push [my-repo]

dispatch

Dispatch log

→ Dispatching to: go-lint

plugin

Plugin execution

plugin stdout/stderr output

user

User summary

✅ All 3 plugins passed (5.2s)

ai

AI structured summary

JSON, consumed by AI

AI summary format

{
  "timestamp": "2025-03-16T10:30:00Z",
  "layer": "ai",
  "level": "info",
  "job_id": "abc123",
  "repo": "my-project",
  "plugin": "go-test-fast",
  "message": "Tests passed",
  "data": {
    "status": "success",
    "summary": "All 25 tests passed in 2.3s",
    "hints": [],
    "artifacts": ["test-report.xml"]
  }
}

File Locations

Path

Description

~/.localgithub/actions/

Data directory

~/.localgithub/actions/actiond.db

SQLite job database

~/.localgithub/actions/actiond.pid

Daemon PID file

~/.localgithub/actions/config.json

User configuration

~/.localgithub/plugins/

User-defined plugin directory

~/.localgithub/actions/actiond.log

Daemon log

Development

# Build
go build ./...

# Run tests
go test ./...

# Install to GOPATH
go install ./cmd/actiond

License

MIT License — see LICENSE

Security

See SECURITY.md for the trust model, hardening notes, and how to report vulnerabilities privately.

Contributing

See CONTRIBUTING.md. Plugin authors: docs/PLUGIN_GUIDE.md.

Available Tools

22 tools
actiond_action_getA
Read-onlyIdempotent

Fetch full detail for one CI/CD job by its ID. Returns id, repo, plugin_name, status, live progress line, created/started/ended timestamps, duration_ms, and the commit map (hash, message, author) that triggered the job. Works for running jobs (poll to watch progress) and for terminal jobs (done/failed/cancelled), whose records are kept for post-mortem review — pair with actiond_log to replay the job's log lines or actiond_diagnose for interpreted failure causes. Errors when the ID does not exist.

Inputs: id (required).

actiond_actions_listA
Read-onlyIdempotent

List the most recent CI/CD jobs executed by ActionD. Each row carries id, repo, plugin_name, status (done/failed/running/pending/cancelled), created_at, and duration_ms, so failures can be spotted at a glance and filtered client-side by status. Optional limit caps the number of rows (default 20). Use this for an overview; use actiond_action_get for one job's full detail, actiond_job_wait to block on a specific job, and actiond_diagnose for root-cause analysis of failures.

Inputs: limit.

actiond_cleanupA
DestructiveIdempotent

Reclaim disk space by deleting terminal CI/CD jobs (done/failed/cancelled) and their artifact directories. Pending and running jobs are never deleted. Default retention is 7 days; pass days=0 or all=true to delete every terminal job. Destructive and irreversible: deleted job records and artifacts cannot be recovered, so confirm intent — especially with all=true — before calling. Returns a summary with deleted_jobs, deleted_dirs, and the retention window applied.

Inputs: all, days.

actiond_diagnoseA
Read-onlyIdempotent

Diagnose failed CI/CD jobs and turn their logs into actionable fix suggestions. Pass job_id to analyze one job, or omit it to analyze the most recent failures (optional limit caps how many are analyzed, default 5). For each job it extracts the root-cause category (build/test/lint/dependency/permission/timeout/...), error code, severity, confidence, evidence lines, and the files most likely needing changes; the aggregate summary highlights the most common category with concrete next steps. Jobs without error output are reported explicitly as no_error_output instead of being silently dropped. Reach for this first whenever a job fails; use actiond_log for raw logs and actiond_action_get for job metadata.

Inputs: limit, job_id.

actiond_handoff_packA
Read-onlyIdempotent

Generate a handoff package that lets another agent (or human) resume this work with full context, aggregating git log, ActionD CI/CD verdicts, and — when task_id is given — the task report from the connected task management system. Choose actiond_run_report instead when the goal is verifying a completed run rather than transferring the work to a successor. Returns structured JSON plus a ready-to-use Markdown document covering: goal, current state (with evidence level), completed work (recent commits), pending work, known failures, decisions, verification state, and a suggested next action. The markdown field alone is designed to give the receiving agent everything it needs without reading the original session; missing information is marked unknown rather than guessed. Optional path (defaults to the current directory), task_id, project_id, from_agent/to_agent, goal, suggested_next_action, pending_work (comma-separated), and ttl_hours for the validity window (default 24).

Inputs: goal, path, task_id, to_agent, +5 more.

actiond_job_cancelA

Cancel a pending or running CI/CD job. Validates the job's state first and refuses terminal jobs (done/failed) with an explanatory error, so an accidental double-cancel is safe. On success the job transitions to cancelled and its record is kept for later review via actiond_action_get. Use actiond_job_retry to re-queue a cancelled or failed job.

Inputs: id (required).

actiond_job_retryA

Re-queue a failed or cancelled CI/CD job for execution. The job runs again as a fresh execution — every retry takes full time and may fail again, so repeated calls create repeated runs (this is not idempotent). Returns the job ID and plugin name; follow up with actiond_job_wait to block until the retry finishes, or actiond_diagnose if it fails the same way.

Inputs: id (required).

actiond_job_waitA
Read-onlyIdempotent

Block until the given CI/CD job reaches a terminal status (done/failed/error/cancelled), then return the full job detail. Call it right after a push surfaces job IDs — for example, immediately after "lgh up" reports triggered_job_ids. The optional timeout in seconds (default 300) aborts the wait with an error if the job is still unfinished; it never cancels the job itself. Prefer this over polling actiond_action_get; use actiond_job_cancel to abort a stuck job instead.

Inputs: id (required), timeout.

actiond_logA
Read-onlyIdempotent

Read recent ActionD server runtime log entries. Each entry carries timestamp, level (info/warn/error/plugin), and message; plugin execution results and system events appear here. Optional limit caps the number of entries returned (default 20). Read-only; use it to inspect raw output after actiond_actions_list or actiond_action_get surfaces a failure, and prefer actiond_diagnose when you want errors interpreted into root cause and fix steps.

Inputs: limit.

actiond_plugin_disableA
Idempotent

Disable a CI/CD plugin for the current project. Once disabled, the plugin no longer triggers even when its event conditions are met — useful for skipping unnecessary checks or shortening CI. The plugin stays registered and can be re-enabled at any time with actiond_plugin_enable; discover exact names with actiond_plugins_list. For broad, preset scope changes prefer actiond_profile_set (fast/full/release).

Inputs: name (required).

actiond_plugin_enableA
Idempotent

Enable a CI/CD plugin for the current project. Once enabled, the plugin fires on its configured trigger events (git.push/git.tag) on every subsequent push. The plugin must already be registered — discover exact names with actiond_plugins_list, or use actiond_plugins_recommend when you want guidance on what suits the project. To change the whole CI scope at once, switch the execution profile with actiond_profile_set instead of toggling many plugins individually.

Inputs: name (required).

actiond_plugins_listA
Read-onlyIdempotent

List every CI/CD plugin registered in ActionD, both enabled and disabled. Each entry includes name, trigger events (git.push/git.tag), supported languages, optional repo filter, type (built-in/custom exec), and current enabled state. Read-only; use it to discover valid plugin names before calling actiond_plugin_enable/actiond_plugin_disable, and actiond_plugins_recommend when you want suggestions instead of a raw inventory.

actiond_plugins_recommendA
Read-onlyIdempotent

Analyze a project directory and recommend which CI/CD plugins to enable or disable. Detects languages (Go, Python, Java, TypeScript, ...), frameworks (React, Next.js, Spring, ...), project type (frontend/backend/fullstack/monorepo), and features (tests, Docker, existing CI) by scanning config files, then returns per-plugin recommendations with category, reasoning, priority, and confidence, plus aggregate enable/disable suggestions and a workflow proposal. Read-only; apply the suggestions with actiond_plugin_enable / actiond_plugin_disable. Optional path defaults to the current directory.

Inputs: path.

actiond_plugins_reloadA
Idempotent

Hot-reload the ActionD plugin registry without restarting the server. Scans the plugin directories for new or changed manifest.json files and updates the registry in place, so newly added plugins become available immediately. Use it after adding, editing, or removing a plugin manifest, then verify the result with actiond_plugins_list. Returns status, the number of loaded plugins, and the plugin list.

actiond_profile_getA
Read-onlyIdempotent

Get the execution profile that controls which CI/CD plugins run on each push. Returns the active profile name plus a description of what it triggers: "fast" runs minimal CI (core lint and test only, 2-3 jobs per push) for quick feedback during development; "full" adds security scan, coverage, and formatting checks (6-10 jobs) for pre-merge verification; "release" adds build, deploy, and release notes (10-15 jobs) for shipping. Read-only; switch profiles with actiond_profile_set and inspect the concrete plugin inventory with actiond_plugins_list.

actiond_profile_setA
Idempotent

Switch the execution profile that controls which CI/CD plugins run on each push. Accepts exactly one of: "fast" (minimal CI — core lint and test only, recommended during active development for quick feedback), "full" (complete CI — adds security scan, coverage, and formatting; switch before merging), or "release" (full CI/CD — adds build, deploy, and release notes). The change applies globally and takes effect on the next triggered event. Returns the new profile; verify the current one any time with actiond_profile_get.

Inputs: profile (required).

actiond_run_reportA
Read-onlyIdempotent

Generate a goal run report for a repository: one structured JSON that reconstructs what a run changed and how well it was verified, without writing any new state. Choose actiond_handoff_pack instead when the goal is handing the work to another agent rather than verifying a completed run. Aggregates git log, ActionD CI/CD job verdicts, and — when a task management system report is available — the task's handoff status into sections that answer: what changed (commits), why (declared task intent), did it work (per-job verdicts pass/fail/unknown), how trustworthy the results are (verification depth and verifier provenance), can someone else continue the work, and can it be rolled back (recovery points with evidence levels). Anything not knowable is reported as an explicit "unknown" — never silently converted to pass/fail — and a Limitations list states what the report cannot yet guarantee. Optional path (defaults to the current directory), commit (focus the report on one commit), task_id/project_id (look up the task report), and limit (commits to include, default 10).

Inputs: path, limit, commit, task_id, +1 more.

actiond_server_restartA

Restart the ActionD server daemon (stop, then start again). Requires ACTIOND_MCP_ALLOW_LIFECYCLE=1 in the MCP server environment; the call is refused with a clear error otherwise. By default it protects in-flight work: it refuses and lists the pending/running jobs unless force=true is passed, which restarts even while jobs are executing (those jobs are interrupted). Use it to pick up server-level changes — plugin manifest changes only need actiond_plugins_reload. Returns an action/changed/running/message envelope with combined stop/start output.

Inputs: force.

actiond_server_startA
Idempotent

Start the ActionD server in daemon mode. Refuses with a clear error unless ACTIOND_MCP_ALLOW_LIFECYCLE=1 is set in the MCP server environment (lifecycle control is disabled by default as a safety gate). Starting an already-running server is a no-op that reports the current state. Returns an action/changed/running/message envelope plus daemon output; verify health afterwards with actiond_status.

actiond_server_stopA
Idempotent

Stop the ActionD server daemon. Requires ACTIOND_MCP_ALLOW_LIFECYCLE=1 in the MCP server environment; the call is refused with a clear error otherwise. By default it protects in-flight work: it refuses and lists the pending/running jobs unless force=true is passed, which stops the server even while jobs are executing (those jobs are interrupted). Stopping an already-stopped server is a no-op. Returns an action/changed/running/message envelope with the daemon output.

Inputs: force.

actiond_statusA
Read-onlyIdempotent

Check whether the ActionD CI/CD server is reachable and capture its vitals in one call. Returns JSON with running state, version, uptime, registered plugin count, and recent job count. Safe to call at any time with no side effects; use it first when diagnosing connectivity, and prefer actiond_log for execution errors or actiond_actions_list for job history.

dev_cycle_runA

Run the end-to-end development loop — commit, trigger CI, wait for results, return a summary — in a single aggregated call. Internally it: (1) commits and pushes the working tree via "lgh up" (requires the LGH daemon running), (2) waits for the ActionD CI/CD jobs triggered by that push, and (3) collects every job result into one structured output. Requires a message (the commit text); optional path (repo directory, defaults to the MCP client's working directory), timeout in seconds (default 300), profile (fast/full/release — switched temporarily for this run and restored afterwards; omit to keep the current profile), and auto_rollback (default false; on failure, resets the repo to the pre-push commit). Use it after editing code to commit, test, and verify in one step; the result reports success, the commit sha, per-job statuses with durations, artifacts, rollback info when applicable, and a human-readable summary.

Inputs: message (required), path, profile, timeout, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 22 tools

    Disambiguation4/5

    Most tools are clearly distinct resource+action pairs (enable/disable plugins, cancel/retry/wait jobs, get/set profiles, list/get actions), and descriptions cross-reference each other to guide selection. The one genuine overlap is actiond_handoff_pack vs actiond_run_report, which aggregate nearly identical sources (git log, CI/CD verdicts, task report) and differ mainly by intent rather than content.

    Naming Consistency4/5

    The actiond_ prefix plus noun_verb pattern (actiond_job_cancel, actiond_plugins_list, actiond_profile_set) dominates and is highly predictable. Deviations include verb-only names (actiond_log, actiond_status, actiond_cleanup, actiond_diagnose), inconsistent singular/plural nouns (actiond_plugin_enable vs actiond_plugins_list), and dev_cycle_run, which breaks both the prefix and the word-order convention.

    Tool Count4/5

    22 tools sits in the heavy range, but the scope genuinely spans server lifecycle, plugin registry management, job lifecycle, execution profiles, diagnostics, cleanup, and reporting. Each tool has a distinct role with little redundancy, so the count feels justified for a full CI/CD management surface rather than bloated.

    Completeness5/5

    The surface covers the full CI/CD lifecycle with no dead ends: configure (plugin enable/disable, profile_set), execute (dev_cycle_run), observe (actions_list, action_get, job_wait, status, log), diagnose, recover (retry, cancel), maintain (plugins_reload, server_restart), clean up, and report/handoff. Minor gaps like downloading artifacts or registering plugins via API are by design (filesystem manifests, event-driven triggers), and every workflow has a defined exit path.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Local-first Git hosting for AI coding agents. lgh serve turns any directory into an HTTP Git remote (127.0.0.1:9418) with push events, commit-status reporting, smart .gitignore generation, secret/large-file detection, and optional LAN sharing with auth. The MCP server exposes 10 tools covering repo registration, one-command backup (lgh up), server control, and event access.
      13
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables external MCP clients like Claude Desktop, Claude Code, Cursor and Zed to hand work to a local crew of AI agents that plan, write, check and fix code in a folder, while also acting as an MCP client that can use their tools. Runs locally with user-supplied keys, approval-gated commands, diffable and undoable runs.
      AGPL 3.0