Skip to main content
Glama
angelscript-mcp

angelscript-mcp

angelscript-mcp

English | Español

npm License: MIT

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

claude mcp add angelscript -- npx -y @angelscript-tools/mcp

Codex

codex mcp add angelscript -- npx -y @angelscript-tools/mcp

Gemini CLI

gemini mcp add angelscript npx -y @angelscript-tools/mcp

Antigravity

agy mcp add angelscript npx -y @angelscript-tools/mcp

Claude Desktop

Download angelscript-mcp-<version>.mcpb from the releases and open it

Cursor, VS Code, others

Put the JSON above in the client's MCP configuration

Container

docker run -i --rm -v "$PWD:/workspace" ghcr.io/angelscript-tools/angelscript-mcp

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

angelscript_project_info

Engine version, host stubs, modules, rules file and setup warnings. Call it first.

angelscript_check

Compile-check files, or the whole workspace, and list errors with line and column.

angelscript_host_api

Look up a host function, type or enum by part of its name, with documentation and members.

angelscript_find_symbol

Find where a class, function, method or field is declared; can return its source.

angelscript_find_references

List every use of a symbol, grouped by file with the source line.

angelscript_file_outline

The classes, functions and fields of one file, with signatures and line ranges.

angelscript_describe_symbol

Signature and documentation of a script or host symbol.

angelscript_rename_symbol

Rename across files. It previews first and writes only with apply=true.

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

--root <dir>

Project root. Default: the current folder.

--lsp-path <file>

The angel_lsp executable.

--predefined <file>

Host stub to use instead of the one in settings.json.

--rules-file <file>

Engine rules file to use instead of the one in settings.json.

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/project

See CONTRIBUTING.md for the rules every tool follows.

Support

Open an issue.

Project

Use

angelscript-agent-kit

Skill and one-step installs for AI agents

angelscript-lsp

The language server this server wraps, and the VS Code extension

angelscript-cli

Run and check loose scripts from the terminal

Credits

Project

License

Use

AngelScript by Andreas Jönsson

zlib

The language

Model Context Protocol SDK

MIT

The MCP implementation

License

This repository is licensed under the MIT License.

Available Tools

8 tools
angelscript_checkCheck AngelScript filesA
Read-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 symbolA
Read-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 fileA
Read-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 referencesA
Read-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 symbolA
Read-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 APIA
Read-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 infoA
Read-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 symbolA
Destructive

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

    A4.1/5.0

    Scored across 8 tools

    Disambiguation4/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables 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.
      1
      Apache 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Provides IDE-like coding capabilities for AI agents via MCP, enabling semantic code retrieval, symbol-level editing, refactoring, and navigation across many programming languages.
      MIT
    • F
      license
      Not graded
      quality
      B
      maintenance
      Enables 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.
      -