Skip to main content

Overview

The VS Code extension provides tools for GitHub Copilot and a local MCP server for other compatible AI clients. AI tools can search GLua API documentation without a running game. Runtime tools can also execute Lua, run commands, and inspect recent output when the debugger is connected.
Runtime commands can change game state. Review tool requests before allowing them to run.

GitHub Copilot tools

The extension registers these tools directly with VS Code:
The runtime tools require the debugger. Documentation search does not.

MCP tools

The local MCP server provides these tool names for compatible clients: The MCP server listens only on your computer and uses an authentication token. It is enabled by default.

Set up Copilot

1

Enable the GLuaLS tools

Open Copilot Chat’s tool picker and enable the GLuaLS tools you want to use.
2

Connect the debugger for runtime tools

Start a Garry’s Mod debug session before asking Copilot to run Lua, run files, or send commands.
3

Use Copilot Chat

Ask a direct question, such as “What arguments does Entity:TakeDamageInfo accept?” or “Show the recent Lua errors.”

Settings