Skip to content
verify mcp Beta VerifyMCP is currently in beta. If you notice any issues, get in touch and we’ll put it right.

X4CodeSense

NPM · X4-SCRIPT-MCP

X4: Foundations scripts: checks, schema elements, expression types, scripts, cues and texts.

Available components

+2 this week 93 Trust /100

Last scanned (2 hours ago)

Scores higher than 96% of npm servers

Category Developer Tools

Trust breakdown (7 categories)

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score → Why this is hard to score →

Supply Chain Security98
  • No malware found by supply-chain analysis.Pass
  • No known CVEs affecting this package version or its production dependencies.Pass
  • No install/post-install scripts declared.Pass
  • 30 of 96 dependencies flagged as unhealthy. View diagnostics → Partial
Provenance & Transparency97
  • Source repository is publicly reachable at the declared URL. View diagnostics → Pass
  • Cryptographically verified build provenance (signed, bound to chemodun/X4CodeSense). View diagnostics → Pass
  • Clear OSI-approved license (Apache-2.0).Pass
  • Actively maintained (last published 11 days ago).Pass
  • Disclosure check failed: no security disclosure policy was found in the source repository. See how to fix → Fail
Schema Quality & AI Usability69
  • AI-judged instruction clarity (excellent).Pass
  • Context-footprint check failed: tool/resource definitions use about 1702 tokens (~189/item across 9 items; 9 tools + 0 resources), over budget; trim descriptions and params. See how to fix → Fail
  • Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management100
  • No destabilizing schema changes in the last 30 days.Pass
Tool Coverage100
  • 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
  • 100% of tool parameters carry a description.Pass
Tool Safety100
  • No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.Pass
  • We read all 9 captured tool definition(s), and no name or description among them implies an irreversible operation.Pass
  • An AI judge read all 10 captured unit(s) of tool text and found none that tries to manipulate the model reading it.Pass
Capabilities100
  • Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.Pass
Changelog

Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.

  • 2 Nov 26 0
    • Stability: 0.97 → pass security
  • 1 Nov 26 +1

    No change was recorded against any check on this day. Stability & Change Management went from 93 to 97. That category is still filling its 30-day observation window: 28 days of observed history at the previous scan, 29 at this one. The score rises as the window fills, whether or not the server changes.

  • 31 Oct 26 0
    • Security disclosure: unverified → fail ▼ functional
  • 30 Oct 26 +1
    • Security disclosure: fail → unverified ▼ functional
  • 28 Oct 26 +1

    No change was recorded against any check on this day. Stability & Change Management went from 80 to 83. That category is still filling its 30-day observation window: 24 days of observed history at the previous scan, 25 at this one. The score rises as the window fills, whether or not the server changes.

  • 26 Oct 26 +1

    No change was recorded against any check on this day. Stability & Change Management went from 73 to 77. That category is still filling its 30-day observation window: 22 days of observed history at the previous scan, 23 at this one. The score rises as the window fills, whether or not the server changes.

  • 25 Oct 26 +15
    • Malware scan: unverified → pass ▲ security
  • 24 Oct 26 −15
    • Malware scan: pass → unverified ▼ security
    • Package version: 0.4.0 → 0.5.0 functional
Diagnostics

Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.

Captured 5 Nov 2026 · Analysed npm/x4-script-mcp@0.5.0

Provenance Verified

A signed build attestation was found and verified, binding this exact artifact to the source repository it claims to come from.

Result Verified
Ecosystem npm
Reason Verified
Discovered via Registry attestation endpoint
Source repo chemodun/X4CodeSense
Certificate issuer https://token.actions.githubusercontent.com
Certificate SAN https://github.com/chemodun/X4CodeSense/.github/workflows/build-and-publish.yml@refs/tags/x4-script-mcp@v0.5.0
Rekor log index 3441371082
Predicate type SLSA build provenance https://slsa.dev/provenance/v1
Subject digest sha512:010c7efc73ee433db7b9703b7bc55e739023e26eeb7afe614d6490e3e8fd7a8fb3773fafa22de4fe439d02293cb61690c7c2608e9ecbbdd53e53ce2a7

Background: How many MCP packages publish verified provenance →

Dependencies 96 packages
Packages resolved 96
Stale 30
Tree resolution Complete

Background: SBOMs and build attestations, explained →

MCP tools · 9 exposed · ~1,432 tokens

The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability. A tool's description is untrusted text the model reads on every call, which is what makes this list a security surface and not just an inventory: how tool poisoning works →

Tool Tokens
check ~228

Checks X4 scripts and patches as the X4CodeSense editor and x4-script-check do: well-formedness, the game schemas, expressions, variables, names, cues, scripts and texts referred to; and library files that name their schema in xsi:noNamespaceSchemaLocation against it. Returns the findings with their quick fixes (edits to apply), and counts. Run it after every change to an md or aiscripts script or a patch, and fix what it reports; with text, check a draft before writing it.

NameTypeReqDescription
pathsarrayyesFiles and folders. A folder is checked as x4-script-check checks it: the md, aiscripts and libraries folders in it and one level deeper, so an extension or a folder of extensions. Relative paths are…
severitystring–The least severe finding to report: error, warning, info or hint (the default, all).
textstring–The text to check instead of what is on disk, for one file in paths: what you are about to write there.

No output schema declared.

No examples provided.

definition ~103

Where what is named at a place of a script is defined, as the editor’s go to definition finds it: a cue, script, library, label, variable, order, text, element or attribute of the schema, property of scriptproperties.xml. Each place with its line of text.

NameTypeReqDescription
columnintegeryesThe column, from 1.
filestringyesThe script or patch.
lineintegeryesThe line, from 1.

No output schema declared.

No examples provided.

describe_element ~264

An element of the Mission Director or AI script schema, from the game’s md.xsd or aiscripts.xsd, or of a library file’s schema (libraries.xsd for jobs.xml, unlocks.xsd, …): its documentation, its attributes (type, required, default, allowed values, whether the value is an expression) and the child elements it allows. Use it before writing an element or attribute you are not sure of, instead of searching md.xsd, aiscripts.xsd or common.xsd: it follows their types, groups and includes.

NameTypeReqDescription
attributestring–One attribute in full: every allowed value with its documentation. Without it, every attribute with the first values by name.
librarystring–Instead of script, the schema a library file names in xsi:noNamespaceSchemaLocation, by its file name: libraries (jobs.xml, ships.xml, …), unlocks, factions.
namestringyesThe element name: set_value, find_ship, create_order, cue.
parentstring–The parent element, for an element declared differently in different places, such as param or actions.
scriptstring–md for Mission Director scripts, aiscripts for AI scripts; or give library instead.

No output schema declared.

No examples provided.

expression_type ~219

What a keyword or a property chain of the expression language yields, step by step, from the game’s scriptproperties.xml: player.ship, player.ship.sector, event.param; and the properties of the result with their types. Or a datatype’s properties. A variable has no type here, its type comes from the script around it: the step after it is matched against the properties of every datatype. Use it before writing a property chain you are not sure of, instead of searching scriptproperties.xml.

NameTypeReqDescription
datatypestring–Instead of an expression, a datatype: ship, sector, list, faction.
expressionstring–A keyword and its properties: player.ship.sector.
filterstring–Only the properties of the result whose names contain this text, with their descriptions, also those of the types derived from it. Without it, its own and inherited properties as name → type.
scriptstring–The script kind, for the keywords of one kind only: md (the default) or aiscripts.

No output schema declared.

No examples provided.

find ~141

Mission Director scripts, AI scripts, cues, libraries and interrupt library items (actions, handlers, conditions) of the game, its DLCs and the extensions, by name: whole names first, then those starting with the query, then those containing it; the extensions’ before the game’s among equals. A query with a dot matches qualified names: md.Setup.Start. When no name contains the query, a few that have its letters in order. Use it instead of searching the files for a cue or script name.

NameTypeReqDescription
limitinteger–The most names to return; 50 by default.
querystringyesA name or part of one.

No output schema declared.

No examples provided.

hover ~155

What the editor’s hover shows for a place of a script or patch: an element or attribute with its documentation from the schema, a step of a property chain with its type and description from scriptproperties.xml, a variable with its type and where the type comes from, a cue or script with where it is defined, a {page, id} text as the game shows it. Use it to understand a line of an existing script, the game’s included, instead of looking each part up in the schemas, scriptproperties.xml or the t folders.

NameTypeReqDescription
columnintegeryesThe column, from 1.
filestringyesThe script or patch.
lineintegeryesThe line, from 1.

No output schema declared.

No examples provided.

references ~107

Every place that names what is named at a place of a script, in the game, its DLCs and the extensions, as the editor finds them: who signals a cue, includes a library, runs a script. Each place with its line of text. Use it instead of searching the files for a name.

NameTypeReqDescription
columnintegeryesThe column, from 1.
filestringyesThe script or patch.
lineintegeryesThe line, from 1.

No output schema declared.

No examples provided.

status ~33

What the server read: the game folder, the extension folders, how many scripts and texts, and the problems met reading them.

Input schema present but exposes no named parameters.

No output schema declared.

No examples provided.

text ~182

Texts of the game and the extensions, as the game shows them, references resolved: {page, id} in a language; the texts of a page; or the texts that contain some words. Use it instead of searching the t folders: for what a {page, id} says, or to find an existing text to reuse.

NameTypeReqDescription
idinteger–The text id on the page; without it, the texts of the page.
languagestring–The language number, 44 for English; by default the one the server was started with.
limitinteger–The most texts to return for a page or a search; 20 by default.
pageinteger–The page id.
searchstring–Instead of page and id: words that must all be in the text, without regard to case.

No output schema declared.

No examples provided.

Install

How do I install the X4CodeSense MCP server?

X4CodeSense runs locally as an npm package, launched with npx -y x4-script-mcp. Ready-made configuration for Claude, Cursor, VS Code, Codex and 5 more is on this page, copied from each client's own documentation.

npm · x4-script-mcp

# add to Claude Code
claude mcp add chemodun-x4-script-mcp -- npx -y x4-script-mcp
Common questions

What is the X4CodeSense MCP server?

X4CodeSense is an MCP server listed in the public MCP registry as io.github.chemodun/x4-script-mcp. X4: Foundations scripts: checks, schema elements, expression types, scripts, cues and texts. This page covers its npm package (x4-script-mcp).

Is the X4CodeSense MCP server safe to use?

X4CodeSense scores 93 out of 100 on VerifyMCP. We found no known CVEs affecting it as of 5 November 2026. It declares no install or post-install scripts. Its build provenance is signed and verified. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.

What tools does the X4CodeSense MCP server expose?

X4CodeSense exposes 9 tools: check, describe_element, expression_type, find, definition, and 4 more. Their descriptions and schemas cost roughly 1,432 tokens of context every time the server is loaded.

Is the X4CodeSense MCP server still maintained?

X4CodeSense is still listed as active in the MCP registry. We last reached this channel on 5 November 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.

What licence is the X4CodeSense MCP server under?

X4CodeSense declares the Apache-2.0 licence, which is OSI-approved. That covers the source only, and says nothing about the cost of any service it calls.