build82

io.github.oito2v1.0.0更新於 Oct 6, 2026

MCP server for Moodle plugin development: structural context of a Moodle install for AI agents.

已驗證STDIO僅桌面Developer ToolsKnowledge & Memory

概覽

AI 產生的概覽

為 AI 助理提供本機 Moodle 安裝及其外掛的結構脈絡,以便回答程式碼庫問題並產生外掛骨架。

功能
build82 會掃描 Moodle 原始碼樹(version.php、db/*.php、XMLDB 結構描述、PHPDoc、hook、task、capability、web service),並在 .build82/ 下產生 Markdown 脈絡檔案。它提供 13 個 MCP 工具、3 個提示與資源,用於產生脈絡、搜尋 API 與外掛索引、解說外掛、執行環境診斷(doctor)、打包外掛以供發佈,以及建立外掛骨架。檔案監看器會在開發中外掛的原始碼變更時重新產生脈絡,並提供兩種 PHP 擷取後端(正規表達式或 tree-sitter)。
適用情境
適合開發或維護 Moodle 外掛,並希望助理理解某個特定安裝的真實慣例時使用。適用於程式碼庫問答、依慣例產生外掛骨架,以及在工作過程中讓產生的文件保持同步。
執行需求
需要一個可供 build82 讀取原始碼樹的本機 Moodle 安裝,以及一個 MCP 用戶端。以單一靜態二進位檔發佈(Linux、macOS、Windows),或以 Go 1.26+ 從原始碼建置。可選在 PATH 中安裝 universal-ctags 以產生 tags 檔案。Moodle 路徑透過 BUILD82_MOODLE_PATH 提供。
安裝前請注意
它會讀寫 Moodle 目錄樹,在 Moodle 根目錄與每個外掛根目錄建立 .build82/ 目錄。它可以打包外掛以供發佈並建立新的外掛骨架,因此提交前應檢查產生的檔案。self-update 指令會下載並取代正在執行的二進位檔,不過下載會驗證校驗碼並保留備份以便回復。在 macOS 上該二進位檔未經公證,在 Windows 上未簽章,首次執行需手動清除警告。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 build82,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

build82

[build82 by OITO2 Labs — The MCP for Moodle Developers]

[CI] [Go Reference] [Go Report Card] [Go Version] [Release] [License]

🌐 Language: English · Português

An MCP (Model Context Protocol) server that gives AI assistants structural understanding of a Moodle installation and its plugins, so they can answer questions about the codebase and build plugins that follow its real conventions. Distributed as a single static binary.

Table of Contents

Overview

Point build82 at a Moodle installation and it scans the codebase (version.php, db/*.php, XMLDB schemas, PHPDoc, hooks, tasks, capabilities, web services...) and generates a set of Markdown context files describing the installation and any plugin you're developing. An AI assistant connected to it can then answer questions about the codebase, scaffold new plugins consistently with existing conventions, and keep the docs in sync as you work.

Main features:

  • 13 global indexes of the installation — API index, DB tables, events, tasks, capabilities, classes, web services, the plugin index and more.
  • 12 per-plugin context files — architecture, dependencies, runtime flow, settings, and an AI-ready summary.
  • 13 MCP tools, 3 MCP prompts and MCP resources — generate context, search the API and plugins, explain a plugin, diagnose the environment (doctor), package a plugin for release, and create a new plugin skeleton.
  • File watcher that regenerates a dev plugin's context whenever its sources change.
  • Two PHP extraction backends — fast regex (default) or pure-Go tree-sitter.
  • Clean output — everything is written under .build82/ (at the Moodle root and at each plugin's root), never loose in the Moodle or plugin root.
  • Native client registration for 8 MCP clients, and a checksum-verified self-update with rollback.

Prerequisites & Quick Installation

Prerequisites:

  • A local Moodle installation (build82 reads its source tree).
  • An MCP client — see Client Setup.
  • Optional: universal-ctags on PATH, to also generate a .build82/tags file for editor navigation.
  • Only to build from source: Go 1.26+.

Download a release binary (no Go toolchain required). Every release ships a checksums.txt — verify it before trusting a downloaded binary. Full step-by-step guide with checksum verification and troubleshooting: Installation Guide.

🐧 Linux
bash
# amd64curl -LO https://github.com/oito2/mcp-build82/releases/latest/download/build82_linux_amd64curl -LO https://github.com/oito2/mcp-build82/releases/latest/download/checksums.txtsha256sum -c checksums.txt --ignore-missing \  && chmod +x build82_linux_amd64 \  && sudo mv build82_linux_amd64 /usr/local/bin/build82
# arm64curl -LO https://github.com/oito2/mcp-build82/releases/latest/download/build82_linux_arm64curl -LO https://github.com/oito2/mcp-build82/releases/latest/download/checksums.txtsha256sum -c checksums.txt --ignore-missing \  && chmod +x build82_linux_arm64 \  && sudo mv build82_linux_arm64 /usr/local/bin/build82
build82 --version
🍎 macOS

Check your chip with uname -m (arm64 = Apple Silicon, x86_64 = Intel):

bash
# Apple Silicon (M1/M2/M3/M4)curl -LO https://github.com/oito2/mcp-build82/releases/latest/download/build82_darwin_arm64curl -LO https://github.com/oito2/mcp-build82/releases/latest/download/checksums.txtshasum -a 256 -c checksums.txt --ignore-missing \  && chmod +x build82_darwin_arm64 \  && sudo mv build82_darwin_arm64 /usr/local/bin/build82
# Intelcurl -LO https://github.com/oito2/mcp-build82/releases/latest/download/build82_darwin_amd64curl -LO https://github.com/oito2/mcp-build82/releases/latest/download/checksums.txtshasum -a 256 -c checksums.txt --ignore-missing \  && chmod +x build82_darwin_amd64 \  && sudo mv build82_darwin_amd64 /usr/local/bin/build82

The binary isn't notarized by Apple, so Gatekeeper will refuse to run it the first time — clear the quarantine flag: xattr -d com.apple.quarantine /usr/local/bin/build82.

🪟 Windows
powershell
Invoke-WebRequest -Uri "https://github.com/oito2/mcp-build82/releases/latest/download/build82_windows_amd64.exe" -OutFile "build82_windows_amd64.exe"Invoke-WebRequest -Uri "https://github.com/oito2/mcp-build82/releases/latest/download/checksums.txt" -OutFile "checksums.txt"Get-FileHash .\build82_windows_amd64.exe -Algorithm SHA256

Compare the printed Hash with the build82_windows_amd64.exe line in checksums.txt; continue only if they match:

powershell
Unblock-File .\build82_windows_amd64.exeNew-Item -ItemType Directory -Force -Path "$env:LOCALAPPDATA\build82"Move-Item -Force .\build82_windows_amd64.exe "$env:LOCALAPPDATA\build82\build82.exe"[Environment]::SetEnvironmentVariable("Path", "$env:Path;$env:LOCALAPPDATA\build82", "User")

Restart your terminal and run build82 --version to confirm it's on your PATH. The binary isn't code-signed; Unblock-File above keeps SmartScreen from blocking the first run ("Windows protected your PC") — if it still appears, click More info → Run anyway.

Or build from source (requires Go 1.26+):

bash
go install github.com/oito2/mcp-build82/cmd/build82@latest

Client Setup

Register build82 as an MCP server in your AI tool:

bash
build82 install [target]

It detects which supported tools are installed and prompts for the Moodle path. Run it without a target to configure every tool found, or pass one explicitly: claude (Claude Code), claude-desktop, antigravity, codex, opencode, cursor, zed, cline.

For example, with Claude Code you can also register it manually:

bash
claude mcp add --scope user build82 -e BUILD82_MOODLE_PATH=/path/to/moodle -- /usr/local/bin/build82

Claude Desktop can also install build82 as a desktop extension: every release ships a build82.mcpb bundle with the binaries included — see Claude Desktop. build82 is also listed in the official MCP Registry as io.github.oito2/mcp-build82.

Per-client guides, including manual configuration: MCP Clients. To remove it: build82 uninstall [target] — see Uninstallation.

Update & Maintenance

bash
build82 self-update --check    # report whether a newer release exists, without installing itbuild82 self-update            # download, verify, and install the latest releasebuild82 self-update --rollback # restore the previous binary if the new version turns out to be broken

Downloads are checksum-verified against the release's checksums.txt and smoke-tested before the running binary is replaced; the previous binary is kept as <path>.bak, which --rollback restores with an atomic rename. If no backup exists, it fails with a clear error and nothing is changed.

Documentation

The full documentation site lives in docs/en/index.md (also in Portuguese). Main entry points:

Contributing: see CONTRIBUTING.md for the development workflow and release process, and the Code of Conduct.

License

GPL-3.0 — see LICENSE.

來源:README.md,提交 d082a77

工具

0
工具後設資料尚未被收錄。

版本歷史

1
  1. v1.0.0最新Oct 6, 2026