angelscript-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@angelscript-mcp check if my new enemy spawn script compiles against the host API"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
angelscript-mcp
An MCP server that lets an AI agent write AngelScript that runs inside a host application, such as a game. It gives the agent compile checks that know the host API, symbol search, references, rename and host API lookup, by wrapping the angel_lsp language server.
Host applications register their own functions and types in C++, so a model cannot know them. The server reads the host's .as.predefined stub and tells the agent what exists, instead of letting it invent an API.
For a skill that teaches the workflow, and one-step installs for Claude Code, Codex, Gemini CLI and Antigravity, see angelscript-agent-kit.
Install
You need Node.js 20 or newer. Add the server to any MCP client:
{ "mcpServers": { "angelscript": { "command": "npx", "args": ["-y", "@angelscript-tools/mcp"] } } }Client | How |
Claude Code |
|
Codex |
|
Gemini CLI |
|
Antigravity |
|
Claude Desktop | Download |
Cursor, VS Code, others | Put the JSON above in the client's MCP configuration |
Container |
|
The server starts in the current folder, which it treats as the project root. Use --root <dir> to choose another.
On Windows, if a client cannot start npx, use "command": "cmd" with "args": ["/c", "npx", "-y", "@angelscript-tools/mcp"].
Related MCP server: universal-lsp
Tools
Tool | Use |
| Engine version, host stubs, modules, rules file and setup warnings. Call it first. |
| Compile-check files, or the whole workspace, and list errors with line and column. |
| Look up a host function, type or enum by part of its name, with documentation and members. |
| Find where a class, function, method or field is declared; can return its source. |
| List every use of a symbol, grouped by file with the source line. |
| The classes, functions and fields of one file, with signatures and line ranges. |
| Signature and documentation of a script or host symbol. |
| Rename across files. It previews first and writes only with |
Name a symbol as Namespace::Class::member. When a name is ambiguous or overloaded, pass path/to/file.as:LINE. Paths are relative to the project root and lines are 1-based.
Every tool returns compact Markdown. Pass response_format: "json" for structured data. Long results are paged with limit and offset and capped at 20 000 characters. Errors say what went wrong and suggest the closest name:
> angelscript_check
2 errors, 2 warnings in 2 files.
scripts/main.as:16:15 warning W103 Local variable 'e' is never used.
scripts/main.as:16:19 error E111 Undefined identifier 'Game::SpwnEnemy'.
scripts/main.as:17:25 error W108 Undeclared identifier 'missingText'.
> angelscript_host_api query="Spwn"
The host API has no declaration matching 'Spwn'. Did you mean: `Game::SpawnEnemy`? ... Do not invent the function; ask the user.The tools read files from disk, so an agent edits with its own file tools and then calls angelscript_check. Only angelscript_rename_symbol with apply=true writes files.
Configure the project
The server reads the angelscript.* keys of .vscode/settings.json in the project root, the same file the VS Code extension uses:
{
"angelscript.predefined.active": "${workspaceFolder}/api/game.as.predefined",
"angelscript.searchDirectories": ["${workspaceFolder}/scripts"],
"angelscript.modules": [{ "name": "Game", "entry": "${workspaceFolder}/scripts/main.as" }],
"angelscript.include.implicitExtension": true
}Without a stub the server only checks the language itself, and angelscript_project_info warns about it.
Option | Meaning |
| Project root. Default: the current folder. |
| The |
| Host stub to use instead of the one in |
| Engine rules file to use instead of the one in |
The server finds angel_lsp in this order: --lsp-path, the ANGELSCRIPT_LSP_PATH variable, PATH, and a download of the release pinned in package.json, checked against SHA256SUMS and cached in your user cache folder.
Develop
npm ci
npm run build
ANGELSCRIPT_LSP_PATH=/path/to/angel_lsp npm test
npx @modelcontextprotocol/inspector node dist/index.js --root /path/to/projectSee CONTRIBUTING.md for the rules every tool follows.
Support
Open an issue.
Related
Project | Use |
Skill and one-step installs for AI agents | |
The language server this server wraps, and the VS Code extension | |
Run and check loose scripts from the terminal |
Credits
Project | License | Use |
AngelScript by Andreas Jönsson | zlib | The language |
MIT | The MCP implementation |
License
This repository is licensed under the MIT License.
Available Tools
8 toolsangelscript_checkCheck AngelScript filesARead-onlyIdempotent
Compile-check .as files with the language server and list errors and warnings with 1-based line and column. It reads the files from disk, so call it after you edit. Omit paths to check every script in the workspace. The check knows the host API from the .as.predefined stubs, unlike the standalone CLI. Finish a task only when this reports no errors.
Inputs: limit, paths, offset, min_severity, +1 more.
angelscript_describe_symbolDescribe a symbolARead-onlyIdempotent
Show the signature, type and documentation of a symbol, and where it is declared. Works for script symbols and host API names. Use it to confirm how to call a function or what a field's type is. Overloads are all shown.
Inputs: symbol (required), response_format.
angelscript_file_outlineOutline a fileARead-onlyIdempotent
List the classes, functions, methods and fields declared in one .as file, with signatures and line ranges. Read this instead of the whole file when you only need its structure.
Inputs: path (required), depth, response_format.
angelscript_find_referencesFind referencesARead-onlyIdempotent
List every place a symbol is used, grouped by file with the source line. Identify the symbol by name ('Player::Tick', 'Twice') or by 'path/to/file.as:LINE' when the name is ambiguous or overloaded. Use it before changing a signature.
Inputs: symbol (required), limit, offset, response_format, +1 more.
angelscript_find_symbolFind a symbolARead-onlyIdempotent
Find classes, functions, methods, fields and enums by name across the workspace scripts and the host stubs. Accepts a name or part of one ('Tick'), or a qualified path ('Player::Tick'). Returns where each is declared with its signature. Set include_body to read the source of script declarations. Prefer this to grepping when you know a symbol name.
Inputs: name_path (required), kinds, limit, scope, +3 more.
angelscript_host_apiLook up the host APIARead-onlyIdempotent
Search the functions, types, methods and enums the host application registers, read from the .as.predefined stubs. Use it before calling any host function or type so you never invent an API. The query is a name or part of one, such as 'Spawn' or 'Game::Player'. Results show the exact declaration and its documentation; for a type, its members.
Inputs: query (required), kind, limit, offset, +1 more.
angelscript_project_infoAngelScript project infoARead-onlyIdempotent
Describe the AngelScript workspace: engine version, host API stub files, module entry points, include roots, rules file and setup warnings. Call this first in a project, before writing code. If a warning is returned and your task depends on the missing information, ask the user the question it carries instead of guessing; otherwise continue and mention the gap in your report.
Inputs: detail, response_format.
angelscript_rename_symbolRename a symbolADestructive
Rename a script class, function, method or field everywhere it is used. By default this only previews the edits (apply=false). Set apply=true to write the files. Host API names cannot be renamed. Run angelscript_check afterwards.
Inputs: symbol (required), new_name (required), apply, response_format.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool has a distinct role within a coherent code-intelligence workflow (discover API → find symbol → describe → find references → rename → check). The only real soft spots are the overlap between angelscript_host_api, angelscript_find_symbol (which also searches host stubs) and angelscript_describe_symbol (which also resolves host API names), but the descriptions give clear guidance on which to prefer in each situation.
Every tool follows the same `angelscript_<verb>_<noun>` snake_case convention (find_symbol, find_references, file_outline, describe_symbol, rename_symbol) with a consistent server prefix. No style mixing or vague one-word names.
Eight tools is well within the sweet spot and each maps to a necessary operation in a scripting-language assistant. Nothing appears redundant or bolted on.
The surface covers workspace discovery, symbol search, cross-file references, structural outline, signature lookup, safe rename with preview/apply, and post-edit compile checks — the core lifecycle of an AgentScript workflow. Minor gaps exist around non-rename code actions (e.g. extract/introduce or generic multi-file edit application), but agents can work around these with file editing plus angelscript_check.
Maintenance
Related MCP Connectors
Make games with AI: one MCP server that connects your agent to Unity, Unreal and Godot editors.
An MCP server that provides agents access to the KeldynAI platform
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to control Unreal E…
MCP Server for Slima - AI Writing IDE for Novel Authors with AI Beta Reader.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceMCP server for Unreal Engine Angelscript development, providing documentation lookup, script file management, test running, and editor interaction through MCP-compatible clients like Claude Code.7-
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to query language intelligence over MCP, including definitions, references, symbols, and code relationship graphs across many languages, all in one native process with no external language servers.1Apache 2.0
- AlicenseNot gradedqualityBmaintenanceProvides IDE-like coding capabilities for AI agents via MCP, enabling semantic code retrieval, symbol-level editing, refactoring, and navigation across many programming languages.MIT
- FlicenseNot gradedqualityBmaintenanceEnables AI coding agents to inspect and work with Unreal Engine projects by parsing C++ symbols, Blueprints, and .uasset data over MCP, supporting tasks like symbol tracing, asset search, and code generation.-