Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Local CI/CD engine for AI agents: event-driven plugin execution on LGH git events, MCP server, web console
Jump to setup instructionsNo tool list is on record. This does not mean the server has no tools. Tools were not run.
No setup evidence yet No matching config or report on record. This does not mean the server is incompatible.
Fetched from the repository for this visit.
Local AI Action Execution Engine for LGH (Local Git Hub)
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.
manifest.json, no code changes requiredgit.push, git.tag, and other LGH eventshttp://localhost:3000dev_cycle_run does it all in one call: commit → CI → resultsactiond_action_get, actiond_actions_list) carry the legacy word action; it refers to the same object as the actiond_job_* tools.manifest.json that runs on trigger events (git.push, git.tag); one plugin run yields one job.fast / full / release) controlling which plugins run per push.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 setupmaterializes 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).
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 buildcross-compiles freely.
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
# 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
open http://localhost:3000
ActionD and LGH can be configured to start automatically when you log in. This is optional and does not require root/sudo.
lgh and actiond installed via Homebrew (or on PATH):brew install JoeGlenn1213/tap/lgh
brew install JoeGlenn1213/tap/actiond
scripts/autostart.sh install
This creates:
~/Library/LaunchAgents (loaded via launchctl bootstrap)--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.
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.
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.
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.
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
<log-dir>/lgh.launchd.out, <log-dir>/lgh.launchd.err, <log-dir>/actiond.launchd.out, <log-dir>/actiond.launchd.errjournalctl --user -u lgh.service / journalctl --user -u actiond.service<binary dir>/plugins → <working dir>/plugins → ~/.localgithub/pluginsActionD-Web's out/ to:
~/.localgithub/actiond-web/out--repo-root, ActionD resolves repositories through LGH mappings first, then falls back to current-directory semantics.| 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 |
Recommended on first install:
actiond setup
This automatically:
~/.localgithub/*)actiond doctor
Runs 8 categories of tiered checks:
Results come in three levels:
If doctor reports that the Go plugins are disabled, restore them directly:
actiond plugins restore-go
actiond status
Shows:
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.
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)
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.
ActionD scans existing directories in this order (DetectPluginDirs):
<binary-dir>/plugins (next to the executable)<cwd>/plugins (current working directory)~/.localgithub/actiond/plugins (if present)~/.localgithub/plugins (actiond setup materializes the builtin bundle here){
"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 | 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 |
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))
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"}]
}
| 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 |
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.
ActionD has built-in failure-pattern recognition that automatically analyzes common errors and suggests fixes:
| 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 |
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:
actiond_diagnose(job_id=...), which returns root cause and fix suggestions.# 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
| 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 |
ActionD ships with an MCP (Model Context Protocol) server so AI assistants (such as Claude) can query and control CI/CD directly.
actiond mcp
To let the AI start/stop/restart ActionD itself over MCP, set this before launching:
ACTIOND_MCP_ALLOW_LIFECYCLE=1 actiond mcp
| 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 RESTPOST /api/actions/{id}/approve(there is no MCP tool for this).
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 passedfail — at least one job was observed failingunknown — zero jobs, a CI query error, or a timeout; never a passJobs 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
actiond://status — server statusactiond://plugins — plugin listactiond://actions — execution recordsActionD 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"
}
}
}
}
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)
Runtime config file: ~/.localgithub/actions/config.json (override path with ACTIOND_CONFIG_PATH).
| 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.
{
"plugins": {
"java-quicktest": {
"enabled": false
}
}
}
The core Go verification chain can also be restored directly via CLI:
actiond plugins restore-go
{
"plugins": {
"go-lint": {
"triggers": ["git.tag"]
}
}
}
{
"plugins": {
"my-custom-plugin": {
"enabled": true,
"type": "exec",
"command": "/usr/local/bin/my-script",
"args": ["--verbose"],
"triggers": ["git.push"]
}
}
}
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ LGH │────▶│ ActionD │────▶│ Plugins │
│ (Events) │ │ (Engine) │ │ (Actions) │
└─────────────┘ └─────────────┘ └─────────────┘
│
┌────────────────┼────────────────┐
▼ ▼ ▼
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ Web Console │ │ MCP Server │ │ API │
│ (Dashboard) │ │(AI-integration)│ │ (RESTful) │
└─────────────┘ └─────────────┘ └─────────────┘
| 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 |
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 |
{
"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"]
}
}
| 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 |
# Build
go build ./...
# Run tests
go test ./...
# Install to GOPATH
go install ./cmd/actiond
MIT License — see LICENSE
See SECURITY.md for the trust model, hardening notes, and how to report vulnerabilities privately.
See CONTRIBUTING.md. Plugin authors: docs/PLUGIN_GUIDE.md.
Loading reviews...
GitHub checked 719h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.