MCP 服务器和 Claude 代码插件: ARM 3 SQF 引用(每个命令, BIS fnc 函数和概念页) 和用于 AI 代理的 SQF Iinter
概览
给克洛德,Cursor,VS代码副驾驶和任何其他MCP客户端完整的Arma 3脚本引用——每个脚本命令,每个BIS fnc *函数和核心概念页(数据类型,地点,调度器,事件处理器)——每天从波希米亚互动社区Wiki中由a3ref镜像,外加一个静态检查器,捕获出错模型在SQF中最多. 内插只报告什么是无效的 SQF,所以它在正确的代码上保持安静: 运行在维基百科上的5500 SQF实例上 它报告23个错误,几乎全部被配置出或被传入代码块. 格式和事件处理器检查遵循了HEMTT的L-S08和L-S02. 要求节点.js 18或更新. 服务器是一个单一的文件,没有要安装的依赖性. 每个客户端的分步指令 : https://wiki.arma3.io/mcp.html 插件还添加了 sqf 技能,它告诉克洛德在显示之前检查命令并用lint SQF.
概述(AI 翻译)
给克劳德, Cursor, VS 代码副驾驶和任何其他 MCP 客户端完整
ARM 3 脚本引用——每个脚本命令,每个BIS_fnc_*功能和核心概念页
(数据类型、地点、调度器、事件处理器)
波希米亚互动社区 Wiki by a3ref,
加上一个静态的检查器,能捕捉出错的模型在SQF中最多.
游戏工具 它会做什么?
|-|-|-.
QQ[ [T1]] 查找命令、函数、事件处理器和主题,按名称、部分名称、操作符符号([[[T2]、[[T3])或所做的事(“删除车辆”)确定。
| get|读一页:语法,打入参数,回取值,地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取地取 任何拼写作品([[T5],[T6],[T7];事件处理器的名称([T8],[T9],[[T10]))返回其部分;[T11]返回一个长主题的一部分;非常长的主题返回其大纲.
*
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
a3ref MCP server — Arma 3 SQF reference and linter for AI agents
Gives Claude, Cursor, VS Code Copilot and any other MCP client the complete
Arma 3 scripting reference — every scripting command, every BIS_fnc_* function and the core concept pages
(data types, locality, scheduler, event handlers) — mirrored daily from the
Bohemia Interactive Community Wiki by a3ref,
plus a static checker that catches the mistakes models make most in SQF.
| Tool | What it does |
|---|---|
search |
Find commands, functions, event handlers and topics by name, partial name, operator symbol (>>, !=) or by what they do (“delete vehicle”) |
get |
Read a page: syntax, typed parameters, return value, locality, examples, community notes. Any spelling works (SETPOS, spawnGroup, bis fnc spawngroup); an event handler’s name (AnimStateChanged, Draw3D, onLoad) returns its section; section returns one part of a long topic; very long topics return their outline |
list_group |
Everything in a command or function group (“Multiplayer”, “Object Manipulation”, …) |
lint_sqf |
Check SQF: made-up commands, commands used without their left operand or argument, unknown BIS_fnc_* functions, deprecated or broken commands, diagnostic-build-only commands, format strings missing values, unknown event handler names |
recent_changes |
What changed on the wiki recently |
Example lint_sqf output:
Checked 3 lines: 2 errors, 1 warnings, 0 notes.
1:8 error: Unknown command setUnitHealth (used as a binary command).
2:1 error: setPos needs a left operand. Syntax: `object setPos pos`.
3:4 warning: ctrlSetEventHandler is deprecated. Use ctrlAddEventHandler instead.
The linter only reports what cannot be valid SQF, so it stays quiet on correct code: run over the 5,500 SQF
examples on the wiki it reports 23 errors, nearly all of them config or prose pasted into code blocks.
The format and event handler checks follow HEMTT’s L-S08 and L-S02.
Install
Requires Node.js 18 or newer. The server is a single file with no dependencies to install. Step-by-step instructions for every client: https://wiki.arma3.io/mcp.html
Claude Code (plugin: MCP server + skill)
/plugin marketplace add a3ref/mcp
/plugin install a3ref@a3ref
The plugin also adds the sqf skill, which tells Claude to check commands and lint SQF before showing it.
Claude Code (server only)
claude mcp add a3ref -- npx -y a3ref-mcp
Codex (plugin: MCP server + skill)
codex plugin marketplace add a3ref/mcp
codex plugin add a3ref@a3ref
Or, after adding the marketplace, install a3ref from the Plugins directory of the ChatGPT desktop app. The CLI,
the IDE extension and the app share the plugin. Server only: codex mcp add a3ref -- npx -y a3ref-mcp.
Antigravity (plugin: MCP server + skill)
安装
npx -y a3ref-mcp配置
{
"mcpServers": {
"a3ref": {
"command": "npx",
"args": ["-y", "a3ref-mcp"]
}
}
}