-
Notifications
You must be signed in to change notification settings - Fork 0
Tooling MCP
Connect AI clients to AuroraScript documentation, validation, execution, and diagnostics over MCP.
Applies to 4.0.0.
On this page
Install the global .NET tool:
dotnet tool install --global AuroraScript.Mcp --version 4.0.0Add the MCP server in Codex:
codex mcp add aurora-script -- aurora-mcpYou can also write the following in Codex configuration. The usual Windows path is %USERPROFILE%\.codex\config.toml; the usual macOS/Linux path is ~/.codex/config.toml.
[mcp_servers.aurora-script]
type = "stdio"
command = "aurora-mcp"
startup_timeout_sec = 10
tool_timeout_sec = 60
enabled = trueA locally published executable should use an absolute path and an explicit cwd.
[mcp_servers.aurora-script]
type = "stdio"
command = "D:\\mcp\\AuroraScript.Mcp.exe"
cwd = "D:\\mcp"
enabled = true- Read
aurora://docs/script-best-practicesandaurora://schema/runtime-apifirst. - Use
aurora_search_runtime_apioraurora_get_runtime_apiinstead of guessing API names. - Check generated code with
aurora_check_scriptoraurora_check_file. - Use a run tool only when a result, stdout, or stderr is needed.
- Use
aurora_validate_best_practicesto find common poor patterns in AI-authored scripts.
The server embeds the following stable URIs:
aurora://docs/aiaurora://docs/script-best-practicesaurora://docs/languageaurora://docs/performanceaurora://docs/host-integrationaurora://schema/ebnfaurora://schema/featuresaurora://schema/runtime-apiaurora://schema/host-apiaurora://examples/manifest
Discover resources through MCP resources/list and read their contents through resources/read.
Parameter names and descriptions are shown in English.
Reads language material by id or resource-relative path.
Parameters:
-
id
Required. A document id or resource-relative path; discover it withaurora_list_documentsfirst.
Returns
Document text and MIME type.
{ "name": "aurora_get_document", "arguments": { "id": "script-best-practices" } }Lists embedded documents, schemas, and examples.
Parameters:
-
prefix
Optional. Filters by a relative-path prefix such asdocs/,schema/, orexamples/.
Returns
A list containing id, URI, path, name, description, and MIME type.
{ "name": "aurora_list_documents", "arguments": { "prefix": "schema/" } }Returns structured language-feature metadata.
Parameters:
- None.
Returns
JSON text for the features schema.
{ "name": "aurora_list_features", "arguments": {} }Compile-checks in-memory source as a full module or a CompileBlock body without executing it.
Parameters:
-
source
Required. AuroraScript source to check. -
mode
Optional.moduleorblock; module mode is the default. -
sourceName
Optional. Virtual filename shown in diagnostics. -
parameters
Optional. Positional parameter names forblockmode. -
sources
Optional. In-memory dependency sources keyed by path forimport/include.
Returns
Compilation success and a diagnostic collection.
{
"name": "aurora_check_script",
"arguments": {
"source": "@module(TEST); export func run() { return 42; }",
"sourceName": "main.as"
}
}Compiles and runs in-memory source, suitable for a single module, module dependencies, or a CompileBlock.
Parameters:
-
source
Required. Source to compile. -
mode
Optional.moduleorblock. -
sourceName
Optional. Virtual filename. -
moduleName
Optional in module mode. Module name to execute; defaults toTEST. -
methodName
Optional in module mode. Exported function to invoke; defaults torun. -
parameters
Optional in block mode.CompileBlockparameter names. -
arguments
Optional. Array of JSON values converted to AuroraScript arguments. -
sources
Optional. In-memory dependency sources keyed by path.
Returns
Result, stdout, stderr, diagnostics, and runtime errors.
{
"name": "aurora_run_script",
"arguments": {
"mode": "block",
"source": "return left + right;",
"parameters": ["left", "right"],
"arguments": [20, 22]
}
}Checks a file-system entry script and its dependency graph without executing it.
Parameters:
-
rootDirectory
Required. File-system Resolver root. -
entryPath
Required. Entry.aspath relative torootDirectory, or an absolute path under the root. -
extName
Optional. Script extension; defaults to.as. -
sources
Optional. In-memory overlays keyed by root-relative path; use/, and overlays win only when the resolved target lies under the root.
Returns
Compilation result and diagnostics.
{ "name": "aurora_check_file", "arguments": { "rootDirectory": "scripts", "entryPath": "main.as" } }Compiles and runs a file-system entry script and its dependency graph.
Parameters:
-
rootDirectory
Required. File-system Resolver root. -
entryPath
Required. Entry script path. -
moduleName
Required. Exported module name to execute. -
methodName
Optional. Exported function name; defaults torun. -
arguments
Optional. JSON argument array. -
extName
Optional. Script extension; defaults to.as. -
sources
Optional. In-memory overlay sources.
Returns
Result, output, diagnostics, and runtime errors.
{
"name": "aurora_run_file",
"arguments": { "rootDirectory": "examples/tests", "entryPath": "main.as", "moduleName": "MAIN", "methodName": "run" }
}Compiles every Resolver-visible script below a file-system root.
Parameters:
-
rootDirectory
Required. File-system Resolver root. -
extName
Optional. Script extension; defaults to.as. -
sources
Optional. In-memory overlay sources.
Returns
Workspace compilation result and diagnostics.
{ "name": "aurora_build_workspace", "arguments": { "rootDirectory": "scripts" } }Searches the structured script runtime API index.
Parameters:
-
query
Required. Name or text such asString.trim,HashMap, orappendLine. -
limit
Optional. Maximum result count; defaults to20.
Returns
Matching runtime API entries.
{ "name": "aurora_search_runtime_api", "arguments": { "query": "StringBuffer", "limit": 10 } }Reads one structured runtime entry by API path.
Parameters:
-
path
Required. Runtime API path such asMath,Array.push,String.trim, orHashMap.get.
Returns
The API entry with its signatures, parameters, and documentation.
{ "name": "aurora_get_runtime_api", "arguments": { "path": "Array.push" } }Lists valid, invalid, or all examples from the language-pack manifest.
Parameters:
-
kind
Optional.valid,invalid, orall.
Returns
Example manifest entries.
{ "name": "aurora_list_examples", "arguments": { "kind": "valid" } }Reads an embedded example by manifest path.
Parameters:
-
path
Required. Example path such asvalid/templates.asorinvalid/const-assignment.as.
Returns
Example source text and MIME type.
{ "name": "aurora_get_example", "arguments": { "path": "valid/templates.as" } }Checks AI-authored source for known authoring-pattern issues.
Parameters:
-
source
Required. Source to check. -
mode
Optional.moduleorblock.
Returns
A collection of best-practice warnings.
{
"name": "aurora_validate_best_practices",
"arguments": { "mode": "block", "source": "for (var i = 0; i < items.length; i++) { total += items[i]; } return total;" }
}Explains common AuroraScript compiler diagnostics and likely fixes.
Parameters:
-
message
Required. Compiler diagnostic message.
Returns
Diagnostic meaning and suggested fixes.
{ "name": "aurora_explain_diagnostic", "arguments": { "message": "Cannot assign to const value." } }aurora_check_file, aurora_run_file, and aurora_build_workspace place optional in-memory sources ahead of the disk Resolver. Keys are normalized with / and resolved relative to rootDirectory; earlier resolvers win, but an overlay only hits when the resolved target remains under the memory root. Different protocols or non-overlapping roots cannot override one another.
- Tooling to compare the available integrations.
- Troubleshooting and Security if the server cannot start or communicate.
AuroraScript.JIT 4.0.0 · Documentation Home · Repository · MIT License