build82
io.github.oito2v1.0.0更新于 Oct 6, 2026
MCP server for Moodle plugin development: structural context of a Moodle install for AI agents.
概览
为 AI 助手提供本地 Moodle 安装及其插件的结构上下文,以便回答代码库问题并搭建插件。
- 功能
- build82 扫描 Moodle 源码树(version.php、db/*.php、XMLDB 架构、PHPDoc、钩子、任务、能力、Web 服务),并在 .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 提供。
安装
在 SourceWeft 中
- 打开 控制台中的 build82,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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-ctagsonPATH, to also generate a.build82/tagsfile 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
🍎 macOS
Check your chip with uname -m (arm64 = Apple Silicon, x86_64 = Intel):
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
Compare the printed Hash with the build82_windows_amd64.exe line in checksums.txt; continue
only if they match:
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+):
Client Setup
Register build82 as an MCP server in your AI tool:
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:
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
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:
- Quickstart — first run in a few minutes
- Architecture — how build82 works, data flow and design decisions
- Tools, Resources and Prompts reference — every MCP capability in detail
- CLI and Configuration reference — every flag, environment variable and config key
- Example Prompts — what to ask your AI agent
- Guides and Troubleshooting
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- v1.0.0最新Oct 6, 2026

