minecraft-modding-mcp
v8.2.0MCP server for AI-assisted Minecraft modding: inspect decompiled source, resolve Mojang/Yarn/Intermediary mappings, diff versions, analyze…
@adhisang/minecraft-modding-mcp is an MCP server for AI-assisted Minecraft modding workflows, built on the Model Context Protocol. Use it when an agent needs to inspect Minecraft source, resolve mappings, compare versions, analyze mod JARs, validate Mixin, Access Widener, or Access Transformer files, or work with NBT and registry data from an MCP client. It runs over stdio and works with Claude Desktop, Claude Code, VS Code, Codex CLI, Gemini CLI, and other MCP-capable clients.
Summary extracted from the README.
@adhisang/minecraft-modding-mcp
English | 日本語
Note: This project is entirely vibe-coded — built with AI-assisted development without formal specs.
@adhisang/minecraft-modding-mcp is an MCP server for AI-assisted Minecraft modding workflows, built on the Model Context Protocol. Use it when an agent needs to inspect Minecraft source, resolve mappings, compare versions, analyze mod JARs, validate Mixin, Access Widener, or Access Transformer files, or work with NBT and registry data from an MCP client.
It runs over stdio and works with Claude Desktop, Claude Code, VS Code, Codex CLI, Gemini CLI, and other MCP-capable clients.
29 catalog tools + 41 deprecated 8.x tools | 9 resources | 4 namespace mappings | SQLite-backed cache
Features
- Source exploration: browse, list, and search decompiled Minecraft source with line-level context
- Mapping-aware symbol work: convert class, field, and method names between
obfuscated,mojang,intermediary, andyarn - Version comparison: compare class signatures, registry entries, and migration-oriented summaries across Minecraft versions
- Mod JAR analysis: read Fabric, Forge, and NeoForge metadata, entrypoints, Mixin configs, dependencies, source, and remap previews
- Project validation: validate Mixin source,
.accesswidenerfiles, and Forge/NeoForge Access Transformer files against the target version - NBT, registry, cache, and diagnostics: patch NBT payloads, inspect generated registry data, and manage cache/runtime state
- MCP resources: expose versions, class source, artifact metadata, and mappings through URI-based resources
Protocol Support
The server implements MCP protocol revision 2026-07-28 and keeps the legacy initialize-based protocol (2025-11-25 back through 2024-10-07) fully supported in the same binary — no configuration needed:
- Legacy clients initialize as before and get the same tools and response envelopes as modern clients; the legacy wire stays byte-compatible with the SDK v1 server except for a short list of recorded deviations (see the legacy-exceptions list in docs/tool-reference.md → MCP Protocol Support).
- Modern clients (2026-07-28) skip
initialize, probe withserver/discover, and send per-requestio.modelcontextprotocol/*_meta. Modern results carryresultTypeand the server identity echo; the cacheable methods additionally carry cache metadata (ttlMs/cacheScope). - One stdio process serves one era, selected by the client's first signal; the selection persists across the server's internal worker restarts.
- Both eras receive the same short primer for AI agents as MCP
instructions(in theinitializeandserver/discoverresults): how the catalog tools,target,mappingand the{ result, meta }replies work, and, when the 8.x tools are served (MCP_DEPRECATED_TOOLS=on), that they are deprecated aliases. See docs/tool-reference.md → Tool catalog.
Wire-level details — era selection, the rejection and version-negotiation tables, cache values, and framing — are in docs/tool-reference.md → MCP Protocol Support.
Quick Start
Package Users
Requirements:
- Node.js 22.13.0+
- Java 17+ on
PATHfor decompile and remap flows: reading Minecraft source for a version that has no Loom sources jar, decompiling mod JARs, andmod-remap(8.x:remap-mod-jar). The default Vineflower needs Java 17; the server checks only thatjavaruns, not its version.registry-readand registry comparisons inversion-compare(with the 8.x tools,get-registry-dataand registry diffs incompare-versionsandcompare-minecraft) run the Minecraft server's data generator, so they need the Java version that Minecraft release requires (Java 21 for 1.21.x).
Start the server locally:
npx -y @adhisang/minecraft-modding-mcp
Use this same command in MCP client configs. Before running the default Vineflower and Tiny Remapper JARs, the server checks their SHA-256 digests. If a cached copy fails verification, the server tries to download a verified replacement. It refuses to run a JAR that fails the check.
If automatic JAR downloads are blocked, set MCP_VINEFLOWER_JAR_PATH and MCP_TINY_REMAPPER_JAR_PATH in your client config. Verify the JARs independently when you supply local paths or select different versions. See Decompilation and Remapping.
Client Setup
CLI clients can register the package command directly.
Claude Code:
claude mcp add minecraft-modding -- npx -y @adhisang/minecraft-modding-mcp
OpenAI Codex CLI:
codex mcp add minecraft-modding -- npx -y @adhisang/minecraft-modding-mcp
Run claude mcp list or codex mcp list after registration to verify the server is available.
The stdio transport auto-detects newline-delimited and Content-Length framing, so the same server command works across Codex and standard MCP clients.
Claude Desktop
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"minecraft-modding": {
"command": "npx",
"args": ["-y", "@adhisang/minecraft-modding-mcp"]
}
}
}
VS Code
Add the following to .vscode/mcp.json in your workspace:
{
"servers": {
"minecraft-modding": {
"command": "npx",
"args": ["-y", "@adhisang/minecraft-modding-mcp"]
}
}
}
Gemini CLI
Add the following to ~/.gemini/settings.json:
{
"mcpServers": {
"minecraft-modding": {
"command": "npx",
"args": ["-y", "@adhisang/minecraft-modding-mcp"]
}
}
}
Then run:
/mcp list
Custom Environment
Pass environment variables to override defaults:
{
"mcpServers": {
"minecraft-modding": {
"command": "npx",
"args": ["-y", "@adhisang/minecraft-modding-mcp"],
"env": {
"MCP_CACHE_DIR": "/path/to/custom/cache",
"MCP_MAPPING_SOURCE_PRIORITY": "maven-first"
}
}
}
}
When a build used a non-default Gradle User Home, pass gradleUserHome to artifact-resolve and reuse the returned artifactId (the deprecated 8.x tools take it on their cache-backed calls). The server treats it as a per-call Gradle User Home and searches <gradleUserHome>/loom-cache and <gradleUserHome>/caches/fabric-loom instead of the MCP process's Gradle User Home; project-local roots under projectPath still apply. It does not accept arbitrary Loom cache directories.
Start Here
Start with the catalog tools. Each answers one kind of question, all of them share one request vocabulary (target, mapping, detail), and every reply is { result, meta } or { error, meta }, with follow-up calls in meta.nextActions and warnings in meta.warnings. Pick the tool from the table, then use the examples and reference docs for exact payloads; Tool Surface lists every tool.
| Tool | Start here for |
|---|---|
artifact-resolve |
resolving a version, JAR, coordinate, workspace, or dependency once and reusing its artifactId |
source-read |
the source of up to 50 classes from Minecraft, dependency, or mod JARs |
member-list |
constructors, fields, and methods from bytecode |
source-search |
declarations, text, or file paths in an artifact's source |
symbol-check |
whether classes, fields, or methods exist in a Minecraft version |
symbol-map |
names of classes, fields, and methods in another namespace |
version-compare |
the classes, registry entries, and libraries that changed between two versions |
mod-inspect |
a mod JAR's loader, metadata, entrypoints, and mixin configs |
project-validate |
a workspace's mixin configs and access wideners, file by file |
cache-manage |
cache inventory, verification, and preview/apply cleanup |
Workflow Notes
These notes cover high-frequency decisions during onboarding. For the full pitfall list, exact contracts, migration notes, and environment variables, see docs/tool-reference.md.
- Resolve once with
artifact-resolveand passresult.artifact.artifactIdastarget: { kind: "artifact", artifactId }to the other tools. The resolution options (sourcePriority,gradleUserHome,preferProjectVersion,strictVersion) are inputs ofartifact-resolveonly.allowDecompilealso belongs tosource-readandsource-export(defaulttrue): set it tofalseon each call to decline source decompilation during resolution and fallback, even when reusing anartifactId. Options are per call and are not stored on artifacts. - A
versiontarget withoutprojectPath, such as{ "kind": "version", "version": "1.21.10" }, means the vanilla game in Mojang names: on a release before 26.1 an omittedmappingismojangand an omittedscopeisvanilla, each on its own, so the call is resolved withscope: "vanilla"andmapping: "mojang"whether or not you writemapping: "mojang"(the first call remaps and decompiles the client jar, about 40 seconds, then it is cached). Givemappingorscopeto choose otherwise. Aversiontarget withprojectPathgets neither default, so an omittedmappingisobfuscatedand the call resolves the obfuscated game jar; to read the sources from your project's Loom cache, givemapping: "mojang"with it, as in{ "target": { "kind": "version", "version": "1.21.10", "projectPath": "/path/to/mod" }, "mapping": "mojang" }. - The symbol tools,
class-diff,access-validate, andmixin-verify-targetrequiremapping, the namespace your names are written in; the namespace is never assumed. - A
meta.nextActionsentry withouttemplate: truecan be sent as is; atemplate: trueentry has<placeholder>values to fill in first. validate-project,project-validate, andmixin-validatewithdiscover: truehave a supervisor-owned end-to-end deadline of 120 seconds, including queue time, and each such call runs alone: later calls wait until it finishes, times out or is cancelled.mixin-validatewithsource,paths, orconfigPathsruns beside other calls with no deadline. SetMCP_VALIDATE_PROJECT_TIMEOUT_MSto an ASCII-decimal value from10000through600000to override it. A timeout returnsERR_TOOL_TIMEOUT; a running timeout restarts the isolated worker before queued calls resume, while a queue timeout leaves the current worker untouched.- Artifact downloads are capped at 512 MiB (
536870912bytes) each. SetMCP_MAX_DOWNLOAD_BYTESto an ASCII-decimal byte count to override it; values below 1 MiB are raised to 1 MiB, and anything else — non-numeric, malformed, or too large to be an exact integer — falls back to the default. The cap is checked twice: againstContent-Lengthbefore any body is read (a header that is not a plain byte count is treated as absent rather than as a breach), and against the bytes actually received, so a chunked or mis-declared response is caught too. A download that exceeds it fails withERR_LIMIT_EXCEEDEDand is not retried; the partial file is deleted on a best-effort basis, so a file the server cannot remove may survive the refusal. A cached copy is never served in its place — a cap is a configuration verdict, not a passing outage, and standing a stale artifact in for it would hide the ceiling instead of reporting it. When every repository trips the cap, the terminalERR_REPO_FETCH_FAILEDreports it where a caller can actually read it:hintscarries the sentence namingMCP_MAX_DOWNLOAD_BYTESand the byte count to clear, andcontext.repoFailureCodeisERR_LIMIT_EXCEEDED. - Nested (Jar-in-Jar) entries are capped at 64 MiB (
67108864bytes) of uncompressed data each. SetMCP_MAX_NESTED_JAR_ENTRY_BYTESto override it, on the same rules as the download cap: ASCII decimal digits, values below 1 MiB raised to 1 MiB, anything else falling back to the default. The size is checked against the entry's declared uncompressed size before the read starts and again against the bytes actually streamed. A breach fails that one inner jar withERR_LIMIT_EXCEEDED; the shell jar's other inner jars still resolve. - Queued calls resume only after the replacement worker completes initialization replay. If replacement startup or replay fails, queued tool calls terminate with
ERR_WORKER_RESTARTinstead of waiting indefinitely. If unresolved process-tree cleanup fills the supervisor's two live-generation slots, new requests fail with the existing restart envelope and unavailable notifications are warning-dropped until cleanup or reconnect. On POSIX, an already-gone process group counts as cleaned up rather than leaving a stale cleanup token. - If a workspace was built with
GRADLE_USER_HOME=/tmp/...or another isolated Gradle home, pass that path asgradleUserHometoartifact-resolveand reuse the returnedartifactId, so source and member lookups use the same Loom cache instead of stale caches under the MCP process home.
Read Minecraft source from a version
{
"tool": "source-read",
"arguments": {
"target": { "kind": "version", "version": "1.21.10" },
"classes": ["net.minecraft.server.Main"],
"mode": "snippet"
}
}
Map a symbol to another namespace
{
"tool": "symbol-map",
"arguments": {
"target": { "kind": "version", "version": "1.21.10" },
"mapping": "mojang",
"toMapping": "intermediary",
"symbols": [
{ "kind": "method", "className": "net.minecraft.server.MinecraftServer", "memberName": "tickServer" }
],
"signatureMode": "name-only"
}
}
Summarize a mod JAR
{
"tool": "mod-inspect",
"arguments": {
"jarPath": "/path/to/mymod-1.0.0.jar"
}
}
Validate a workspace
{
"tool": "project-validate",
"arguments": {
"projectPath": "/workspace/modid",
"discover": ["mixins", "access-wideners", "access-transformers"]
}
}
project-validate discovers mixin configs and access wideners by default. Add "access-transformers" to discover when you want Access Transformer files validated too.
Documentation
- Detailed example requests for copyable payloads and common workflows
- Tool and configuration reference for exact inputs, outputs, resource behavior, environment variables, and migration notes. Start with the Tool catalog when you are not sure which tool to call; Migration from 8.x names the catalog tools that replace each 8.x tool.
- 日本語 README for a Japanese onboarding overview
Tool Surface
Catalog Tools
The catalog is a flat set of focused tools, listed ahead of the 8.x tools when those are served (see Deprecated 8.x Tools). Each catalog tool answers one kind of question, and all of them share one request vocabulary: a target object says where to look (artifact, version, jar, coordinate, workspace, or dependency), mapping names the namespace, and detail shortens a reply where it can. Replies keep the answer in result and put warnings, next actions, paging, and truncation in meta; a tool that resolves its target to an artifact returns result.artifact, whose artifactId you can reuse as target: { kind: "artifact", artifactId }. An unknown or misplaced key fails with ERR_INVALID_INPUT instead of being ignored. The source and member tools take 1–50 classes per call and report each class as its own result.items entry. They only read, except source-export, which writes .java files under outputDir. source-search searches one artifact's indexed source for declarations by name, text inside files, or file paths, page by page; its mapping is the namespace of the query, so a Mojang class name finds the class in an obfuscated artifact, and status: "unavailable" marks a search without hits whose query could not be translated. The symbol tools (symbol-check, symbol-map, class-mappings, symbol-trace) read a Minecraft version's mappings and require mapping, the namespace your names are written in: the namespace is never assumed, so a Mojang name is not looked up as an obfuscated one and reported missing; symbol-check and symbol-map take 1–50 symbols per call. The comparison tools work between versions or on one version's generated data: version-compare answers with counts unless detail asks for the names, class-diff requires mapping like the symbol tools, and registry-read returns registry names and entry counts unless withData is set. The mod tools take the mod jar as jarPath: mod-inspect returns its metadata, mod-search searches its source, and mod-remap remaps a Fabric or Quilt jar, writing the output only with apply: true; read a mod's classes with source-read and member-list through target: { kind: "jar", jarPath }. The validation tools check a Loom project against Minecraft bytecode: mixin-validate takes exactly one of source, paths, configPaths, or discover: true and reports each mixin class, and project-validate finds and validates a workspace's mixin configs and access wideners and reports each file. Both read an omitted version and mapping from the project only when projectPath is given, never assume the mixins' namespace, and return status: "blocked" with a template next action when one cannot be read. access-validate checks one access widener or access transformer, given as content or path, entry by entry, and mixin-verify-target checks one method or field a mixin targets and advises @Shadow, @Accessor or @Invoker; both require mapping, the namespace of the names they check, and mixin-verify-target translates those names into the jar's namespace unless autoRemap: false. The NBT tools convert Java Edition NBT: nbt-decode turns base64 NBT bytes into a typed JSON document, nbt-patch applies RFC 6902 operations to that document, and nbt-encode writes it back as base64 NBT. cache-manage reports, lists, verifies and deletes the server's cache entries; delete needs a selector and only previews unless apply: true is set, and every action returns its entries or counts at every call. server-metrics returns the server's runtime counters, including how often each tool was called. See docs/tool-reference.md → Tool catalog for inputs, results, and the mapping from the 8.x tools, which stay callable as deprecated aliases.
| Tool | Purpose | Replaces (8.x) |
|---|---|---|
version-list |
List Minecraft versions from Mojang metadata and mark the locally cached ones | list-versions, inspect-minecraft (versions) |
artifact-resolve |
Resolve a version, JAR, coordinate, workspace, or dependency target to a reusable artifact | resolve-artifact, inspect-minecraft (artifact) |
artifact-index |
Rebuild the cached file and symbol index of an artifact | index-artifact |
file-list |
List file paths inside an artifact with cursor pagination | list-artifact-files, inspect-minecraft (list-files) |
file-read |
Read one file inside an artifact with a byte limit | get-artifact-file, inspect-minecraft (file) |
class-find |
Find fully qualified class names from a simple or qualified name, including nested JARs | find-class, inspect-minecraft (class-overview) |
source-read |
Read the source of 1-50 classes (outline, line window, or full file) from Minecraft, dependency, or mod JARs | batch-class-source, get-class-source, decompile-mod-jar, get-mod-class-source, inspect-minecraft (class-source), analyze-mod (class-source) |
source-export |
Write the source of 1-50 classes as .java files under an output directory |
batch-class-source, get-class-source, get-mod-class-source |
member-list |
List the bytecode constructors, fields, and methods of 1-50 classes with paging | batch-class-members, get-class-members, inspect-minecraft (class-members), analyze-mod (members) |
source-search |
Search an artifact's indexed source for declarations by name, text inside files, or file paths, with paging | search-class-source, inspect-minecraft (search) |
symbol-check |
Check whether 1-50 classes, fields, or methods exist in a Minecraft version's mappings | batch-symbol-exists, check-symbol-exists, analyze-symbol (exists) |
symbol-map |
Map 1-50 class, field, or method names between namespaces, strictly by descriptor, or to a workspace's compile names | batch-mappings, find-mapping, resolve-method-mapping-exact, resolve-workspace-symbol, analyze-symbol (map, exact-map, workspace) |
class-mappings |
List one class and its members with their names in all four namespaces, with paging | get-class-api-matrix, analyze-symbol (api-overview) |
symbol-trace |
Find the Minecraft versions in which a method exists | trace-symbol-lifecycle, analyze-symbol (lifecycle) |
version-compare |
Count, and on request list, the classes, registry entries, and libraries added or removed between two Minecraft versions | compare-versions, compare-minecraft (versions, registry-diff, migration-overview) |
class-diff |
Diff one class's constructors, methods, and fields between two Minecraft versions | diff-class-signatures, compare-minecraft (class-diff) |
registry-read |
Read a version's generated registries: names and entry counts, and the entries on request | get-registry-data |
mod-inspect |
Read a mod JAR's loader, metadata, entrypoints, mixin configs, dependencies, and nested JARs, and on request its class names | analyze-mod-jar, decompile-mod-jar, analyze-mod (summary, decompile) |
mod-search |
Search a mod JAR's Java source for class names, method and field declarations, or text | search-mod-source, analyze-mod (search) |
mod-remap |
Remap a Fabric or Quilt mod JAR to Yarn or Mojang names (preview unless apply is set) |
remap-mod-jar, analyze-mod (remap) |
project-validate |
Find and validate a Loom workspace's mixin configs, access wideners, and on request access transformers, with each file's status | validate-project (project-summary) |
mixin-validate |
Validate Mixin source, files, configs, or a project's discovered configs against a Minecraft version's bytecode | validate-mixin, validate-project (mixin) |
access-validate |
Validate one access widener or access transformer, given as text or a file, entry by entry against a Minecraft version's bytecode | validate-access-widener, validate-access-transformer, validate-project (access-widener, access-transformer) |
mixin-verify-target |
Check that a mixin's target method or field exists in a JAR and get @Shadow, @Accessor, or @Invoker advice | verify-mixin-target |
nbt-decode |
Decode Java Edition NBT bytes (base64, gzip or uncompressed) into a typed JSON document | nbt-to-json |
nbt-encode |
Encode a typed NBT JSON document into Java Edition NBT bytes as base64, optionally gzip-compressed | json-to-nbt |
nbt-patch |
Apply RFC 6902 add, remove, replace, and test operations to a typed NBT JSON document | nbt-apply-json-patch |
cache-manage |
Summarize, list, verify, and delete the server's cache entries (delete previews unless apply is set) |
manage-cache |
server-metrics |
Read the server's runtime counters, including per-tool call counts and durations | get-runtime-metrics |
Names on 26.1+ Versions
For unobfuscated releases such as 26.1+, the runtime jar's names as shipped, the obfuscated namespace, are already Mojang names. mapping accepts both obfuscated and mojang, and both read the same names: source-read, member-list and the other tools that resolve a target to an artifact report result.artifact.mappingApplied: "mojang" for either, and for an omitted mapping, and artifact-resolve with detail: "full" shows provenance.unobfuscatedRuntime: true. artifact-resolve does not relabel requestedMapping, so requestedMapping: "obfuscated" next to mappingApplied: "mojang" is an identity, not a fallback. mapping: "mojang" takes the runtime/decompile path directly and skips Loom source-jar discovery. A target resolved with intermediary or yarn falls back to the runtime names with a warning and reports mojang; symbol-trace keeps reporting the requested namespace. This applies to version targets, Minecraft runtime coordinates, and jar targets whose own contents (a top-level version.json with a 26.1+ id, net/minecraft/SharedConstants.class, and no .java sources) prove a 26.1+ Minecraft runtime jar; see docs/tool-reference.md → Lookup Rules. Dependency jars whose own version only looks like 26.x keep obfuscated. cache-manage shows the label each entry was stored with, without relabelling it, and access-validate reports the vanilla jar it checked against as obfuscated in its provenance; see docs/tool-reference.md → Namespace Definitions.
Deprecated 8.x Tools
The 8.x tools below are deprecated aliases that still accept their 8.x inputs and are removed in 10.0.0 at the earliest. The server registers them only when its environment sets MCP_DEPRECATED_TOOLS=on; without it they are not listed, and a call to one fails as an unknown tool. A client that still calls 8.x tools keeps working with MCP_DEPRECATED_TOOLS=on while it moves each call to the catalog tool named below. docs/tool-reference.md → Deprecated 8.x tools documents them.
| 8.x tool | Replaced by |
|---|---|
list-versions |
version-list |
inspect-minecraft |
versions → version-list, artifact → artifact-resolve, class-overview → class-find, class-source → source-read, class-members → member-list, search → source-search, file → file-read, list-files → file-list |
analyze-symbol |
exists → symbol-check, map → symbol-map, exact-map → symbol-map, lifecycle → symbol-trace, workspace → symbol-map, api-overview → class-mappings |
compare-minecraft |
versions → version-compare, class-diff → class-diff, registry-diff → version-compare, migration-overview → version-compare |
analyze-mod |
summary → mod-inspect, decompile → mod-inspect, search → mod-search, class-source → source-read, members → member-list, remap → mod-remap |
validate-project |
project-summary → project-validate, mixin → mixin-validate, access-widener → access-validate, access-transformer → access-validate |
manage-cache |
cache-manage |
verify-mixin-target |
mixin-verify-target |
batch-class-source |
source-read, source-export |
batch-class-members |
member-list |
batch-symbol-exists |
symbol-check |
batch-mappings |
symbol-map |
resolve-artifact |
artifact-resolve |
find-class |
class-find |
get-class-source |
source-read, source-export |
get-class-members |
member-list |
search-class-source |
source-search |
get-artifact-file |
file-read |
list-artifact-files |
file-list |
trace-symbol-lifecycle |
symbol-trace |
diff-class-signatures |
class-diff |
find-mapping |
symbol-map |
resolve-method-mapping-exact |
symbol-map |
get-class-api-matrix |
class-mappings |
resolve-workspace-symbol |
symbol-map |
check-symbol-exists |
symbol-check |
nbt-to-json |
nbt-decode |
nbt-apply-json-patch |
nbt-patch |
json-to-nbt |
nbt-encode |
index-artifact |
artifact-index |
get-runtime-metrics |
server-metrics |
validate-mixin |
mixin-validate |
validate-access-widener |
access-validate |
validate-access-transformer |
access-validate |
analyze-mod-jar |
mod-inspect |
get-registry-data |
registry-read |
compare-versions |
version-compare |
decompile-mod-jar |
mod-inspect, source-read |
get-mod-class-source |
source-read, source-export |
search-mod-source |
mod-search |
remap-mod-jar |
mod-remap |
Detailed parameter constraints, migration notes, resource behavior, and the full environment-variable matrix live in docs/tool-reference.md.
Development
Repository requirements:
- Node.js 22.13.0+
pnpm- Java 17+ when running remap or decompile flows locally
Setup and run the repository:
pnpm install
pnpm dev
Build the packaged shape:
pnpm build
pnpm start
Always run:
pnpm check
pnpm test
Run these when relevant:
pnpm test:file <path...>for focused ordinary suitespnpm test:grep <name-pattern>for recursive ordinary suites filtered by test namepnpm test:manual:stdio-smokefor MCP transport, registration, or manual workflow changespnpm test:manual:package-smokewhen checking packaged install and distribution behaviorpnpm test:perffor search, index, or performance-sensitive changespnpm test:coverageorpnpm test:coverage:lcovfor coverage checks (lines=80,branches=70,functions=80)pnpm validatefor the full local validation suite
Ordinary .test.ts files live in domain directories under tests/ (for example source-service/, entry-tools/, mapping/, mixin/, tools/, aliases/, contracts/, and utils/). Keep helper-only modules in tests/helpers; manual smoke, performance, and resource files remain in their existing special directories.
Acknowledgements
- The
enclosingSymbolfield on content search hits was inspired by the design of zvec-grep. This project shares no code with zvec-grep and does not depend on it.