Skip to main content
ClaudeWave

Language support for X4: Foundations scripts in Visual Studio Code: AI scripts (aiscripts/*.xml), Mission Director scripts (md/*.xml) and the patches (<diff>) that change them. X4CodeSense reads the game's schemas, script properties and texts, and the scripts of the game, its DLCs and your extensions, and checks your scripts as you type.

MCP ServersRegistry oficial0 estrellas0 forks● TypeScriptApache-2.0Actualizado today
ClaudeWave Trust Score
95/100
✓ Verified
Passed
  • ✓Open-source license (Apache-2.0)
  • ✓Actively maintained (<30d)
  • ✓Clear description
  • ✓Topics declared
  • ✓Documented (README)
Last scanned: 10/4/2026
Install in Claude Code / Claude Desktop
Method: Manual
Claude Code CLI
git clone https://github.com/chemodun/X4CodeSense
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "x4codesense": {
      "command": "node",
      "args": ["/path/to/X4CodeSense/dist/index.js"]
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
💡 Clone https://github.com/chemodun/X4CodeSense and follow its README for install instructions.
Casos de uso

Resumen de MCP Servers

# X4CodeSense

Language support for **X4: Foundations** scripts (AI scripts and Mission Director scripts), built as a Language Server Protocol server with a thin Visual Studio Code client and a command-line checker.

Status: 0.x. The npm packages are on npm; the extension is on the [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=X4DevTools.x4codesense), and its `.vsix` is also attached to the GitHub releases. The Marketplace-facing description lives in [client/README.md](client/README.md).

## Layout

- `packages/catalog` - `x4-catalog`, reads the game's catalogs (`.cat`/`.dat`) in place, without extracting them, and writes new ones. No dependencies.
- `packages/core` - `x4-script-core`, the editor-independent analysis library: script detection, XML structure, expression language, types, scopes, symbols, diagnostics, and the `ReadText` calls of Lua files. No `vscode` imports. Its API is made for the server, the client and the checker, and changes with them.
- `packages/server` - `x4-script-language-server`, the LSP server on top of the core.
- `packages/cli` - `x4-script-check`, a command-line checker for CI and tools, on top of the core.
- `packages/mcp` - `x4-script-mcp`, an MCP server for AI agents that write scripts: checks, the schemas' elements, expression types, scripts, cues and texts, on top of the core.
- `client` - the `X4CodeSense` VS Code extension (publisher `X4DevTools`). It bundles the server, the checker, the MCP server and the core into `client/dist`, and offers the MCP server to VS Code's agents.

## Development

Requires Node.js 22.

```powershell
npm install
npm run build        # tsc -b for all packages, then esbuild bundle of the client
npm test             # vitest across the packages and the client
npm run typecheck:tests   # tsc over the tests, which vitest runs without checking their types
npm run lint
npm run package -w client   # produces client/x4codesense-<version>.vsix
```

Press F5 in VS Code (configuration `Launch Client`, or `Client + Server` to attach to the server as well).

Optional corpus check against the extracted vanilla game files, an installed game read from its catalogs, and a folder of extensions:

```powershell
$env:X4_EXTRACTED = 'C:\path\to\extracted\9.00'
$env:X4_GAME = 'C:\path\to\X4 Foundations'
$env:X4_MODS = 'C:\path\to\extensions'
npm test
```

With both `X4_EXTRACTED` and `X4_GAME`, the files read from the catalogs are compared with the extracted ones of the same build.

The corpus check times the analysis of the largest game file, and of a change typed into it as the editor analyses it, against a ceiling of 200 ms, and of patch documents against twice that. On a slower or busy machine, `X4_FILE_CEILING_MS` sets a higher ceiling; with all corpus files running at once, each shares the machine with the others.

## Releases

`release-please` keeps one release pull request open on `main`: the next versions and the changelogs of the six packages, from the conventional commits since their last release. They share one pull request because they depend on each other at exact versions, and it updates `package-lock.json` with them. Merging it tags each package that changed (`x4-script-core@v0.1.0`, `x4codesense@v0.1.0`) and creates its GitHub release, which starts the _Build and Publish_ workflow:

- `x4codesense`: the `.vsix` is built, attached to the release and, with the `VT_API_KEY` secret, scanned by VirusTotal. With the repository variable `PUBLISH_TO_MARKETPLACE` set to `true`, the same `.vsix` is then published to the Visual Studio Marketplace as `X4DevTools`. That job runs in the `marketplace` environment and signs in to Microsoft Entra ID, whose app registration trusts that environment, so no Marketplace token is kept either.
- `x4-catalog`, `x4-script-core`, `x4-script-language-server`, `x4-script-check`, `x4-script-mcp`: built, tested and sent to npm by trusted publishing. No npm token is kept in the repository: npm accepts the upload because the package is bound to this repository and its `build-and-publish.yml`, and adds a provenance statement. The version is published directly. A package that is not on npm yet is skipped with a warning: its first version is published by hand, which creates the package the binding is set on.
- `x4-script-mcp` then goes to the [MCP Registry](https://registry.modelcontextprotocol.io) as `io.github.chemodun/x4-script-mcp`, described by `packages/mcp/server.json`, whose versions release-please keeps with the package's. The workflow signs in with its GitHub identity, which owns the namespace, and the registry checks that the npm package names it in `mcpName`. The step waits until npm lists the new version, up to 10 minutes, and skips a version the registry has already, so a failed job can be run again.

## Lineage and credits

X4CodeSense is the successor of [X4CodeComplete](https://github.com/archenovalis/X4CodeComplete) (MIT), started by Cgetty and continued by archenovalis. It is written anew around a language server, building on the ideas of X4CodeComplete and on the valuable experience gained during its development.

- [Egosoft](https://www.egosoft.com) for the game.
- Members of the [x4_modding Discord channel](https://discord.com/channels/337098290917146624/502057640877228042) for answers, support and ideas.

## License

Apache License 2.0, see [LICENSE](LICENSE).
vscodevscode-extensionx4x4foundations

Lo que la gente pregunta sobre X4CodeSense

¿Qué es chemodun/X4CodeSense?

+

chemodun/X4CodeSense es mcp servers para el ecosistema de Claude AI. Language support for X4: Foundations scripts in Visual Studio Code: AI scripts (aiscripts/*.xml), Mission Director scripts (md/*.xml) and the patches (<diff>) that change them. X4CodeSense reads the game's schemas, script properties and texts, and the scripts of the game, its DLCs and your extensions, and checks your scripts as you type. Tiene 0 estrellas en GitHub y su última actualización registrada es del 2026-10-03.

¿Cómo se instala X4CodeSense?

+

Puedes instalar X4CodeSense clonando el repositorio (https://github.com/chemodun/X4CodeSense) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.

¿Es seguro usar chemodun/X4CodeSense?

+

Nuestro agente de seguridad ha analizado chemodun/X4CodeSense y le ha asignado un Trust Score de 95/100 (tier: Verified). Revisa el desglose completo de comprobaciones superadas y flags en esta página.

¿Quién mantiene chemodun/X4CodeSense?

+

chemodun/X4CodeSense es mantenido por chemodun. La última actividad registrada en GitHub es del 2026-10-03, con 0 issues abiertos.

¿Hay alternativas a X4CodeSense?

+

Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.

Despliega X4CodeSense en tu cloud

Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.

¿Mantienes este repo? Añade un badge a tu README

Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.

Featured on ClaudeWave: chemodun/X4CodeSense
[![Featured on ClaudeWave](https://claudewave.com/api/badge/chemodun-x4codesense)](https://claudewave.com/repo/chemodun-x4codesense)
<a href="https://claudewave.com/repo/chemodun-x4codesense"><img src="https://claudewave.com/api/badge/chemodun-x4codesense" alt="Featured on ClaudeWave: chemodun/X4CodeSense" width="320" height="64" /></a>

Más MCP Servers

Alternativas a X4CodeSense