About Hammer MCP
Hammer MCP is an MCP server published by Sycatle in the Finance category: mCP server for Source-engine map work: read and lint VMF, edit without reformatting, measure BSP against format limits, compile under Wine (stock or Hammer++). Conduid read 77 tools from its source: align_faces, check_vmf_rules, clip_solids, delete_solids, edit_vmf, group_solids and 71 more. No package is published for it, so it installs from a source checkout.
The repository has 35 stars and 4 forks, is licensed MIT, and its last commit was on 8 Nov 2026. Conduid has no tagged release on record for it. It passes all 5 static checks Conduid ran on the repository. Its topics include bsp, garrys-mod, hammer-editor, level-design, mapping and source-engine.
Install
git clone https://github.com/Sycatle/hammer-mcpTools (77)
align_facesRealigns a texture: to the world, to the face's own plane, or fitted to it| Parameter | Type | Description |
|---|---|---|
| mode * | string | 'arc' is 'face' plus continuity: facets that touch without turning a corner are one run, and each carries its texture on from where the last one stopped. It is what a curve needs and what neither of the others gives -- a ring aligned to 'face' restarts the brick at every seam, which reads as flat plates however well the smoothing groups are set. |
| path * | string | Path to the .vmf, absolute or relative to the repo root. |
| repeat | number | For 'fit': how many times the texture repeats across the face. Default once. |
| rotate | number | Turn the axis pair in the face's plane, degrees. |
| scale | number | Multiply both texture scales by this afterwards. Zero is refused. |
| shift | number | Add to the u and v offsets, in texels. |
check_vmf_rulesChecks a map against its own `<map>.rules.json`. Reports; never refuses. A run where a rule matched nothing is `skipped`, never `pass`, and it says what segmentation the verdict rests on. A width or clearance violation carries `evidence`: the direction swept, the yaw it came from, what stopped it — and `measured: null` rather than a bare zero when no body fits where it would have measured| Parameter | Type | Description |
|---|---|---|
| eyeHeight | number | Height above each end's origin that a sightline is traced at. Source's own eye is 64. It is in every sightline violation's message, because a rule that fails on a lintel is otherwise indistinguishable from one that fails on a wall. |
| limit | number | |
| maxCells | number | |
| minRoomArea | number | Below this floor area, in square units, a region is merged into its largest neighbour. The same knob read_vmf_rooms takes: pass both the same value, or a diagnosis and the verdict it explains are about different segmentations. |
| path * | string | Path to the .vmf, absolute or relative to the repo root. |
| rulesPath | string | Override the sibling file. There is no search up the directory tree. |
| seeds | array | Points inside the map, for rules about rooms. Default: the spawn entities. |
| severity | string | Report only violations at least this severe. |
| step | number |
clip_solidsCuts brushes with a plane — front, back, or both. Hammer's most-used tool| Parameter | Type | Description |
|---|---|---|
| cutMaterial | string | Material for the new face. Default: the material of the largest face kept. |
| keep * | string | 'front' is the side the normal points towards. 'both' leaves two brushes. |
| material | string | Brushes carrying this on at least one face. |
| owner | string | 'world', or a brush entity classname. |
| path * | string | Path to the .vmf, absolute or relative to the repo root. |
| plane * | any | A point the plane passes through. |
| solidIds | array | Hammer ids of the brushes to cut. |
| within | object | Brushes lying entirely inside this box. |
delete_solidsRemoves brushes. The counterpart write_vmf_solid never had| Parameter | Type | Description |
|---|---|---|
| path * | string | Path to the .vmf, absolute or relative to the repo root. |
edit_vmfEdits a `.vmf` by splicing: entities, keyvalues, outputs. Nothing else moves| Parameter | Type | Description |
|---|---|---|
| ops * | array | |
| path * | string | Path to the .vmf, absolute or relative to the repo root. |
group_solidsHammer groups: several brushes that click as one| Parameter | Type | Description |
|---|---|---|
| path * | string | Path to the .vmf, absolute or relative to the repo root. |
| ungroup | boolean | Take the brushes out of their group instead. |
healthState of the toolchain: game profile, binaries, FGDs, Wine, sidecar — and how many tools this build serves, and whether it is older than the sourcehollow_solidsTurns a block into the walls of a room, mitred — Hammer's version overlaps| Parameter | Type | Description |
|---|---|---|
| direction | string | 'in' keeps the outer surface where it was; 'out' keeps the inner one. |
| innerMaterial | string | Material for the faces hollowing created. Default TOOLS/TOOLSNODRAW. |
| keepSource | boolean | Leave the original brush in place. Default false, because a block left inside its own walls is still a solid block. |
| material | string | Brushes carrying this on at least one face. |
| owner | string | 'world', or a brush entity classname. |
| path * | string | Path to the .vmf, absolute or relative to the repo root. |
| solidIds | array | Hammer ids of the brushes to hollow. |
| thickness * | number | Wall thickness, in Hammer units. |
| within | object |
measure_vmf_approachHow much clear room a person has in front of each entity — the door that opens into a wall| Parameter | Type | Description |
|---|---|---|
| classname | string | Only entities whose classname contains this. |
| limit | number | |
| minClearUnits | number | Report only entities with less than this in front. 0 reports all of them. |
| path * | string | |
| targetname | string |
measure_vmf_clearanceFree width and headroom at a point, measured with a swept player hull, not a ray. Says when no body fits there rather than reporting the hull's own width| Parameter | Type | Description |
|---|---|---|
| at * | array | Where to measure, in Hammer units. |
| axis | array | Measure across this direction only. Omit to search for the narrowest. |
| mask | string | `player` counts clip brushes, which are invisible and stop people. |
| path * | string |
move_verticesMoves a brush's corners — Hammer's VM tool, with its refusals| Parameter | Type | Description |
|---|---|---|
| moves * | array | Corners to move, each named by where it is now. |
| path * | string | Path to the .vmf, absolute or relative to the repo root. |
| solidId * | number | Hammer id of the brush. read_vmf_solids lists the corners. |
| tolerance | number | How close a coordinate must be to a real corner to name it. Default 0.5, because corners read back through JSON are rounded and exact equality would make the tool unusable from outside. |
paint_displacementThe blend channel: uniform, by height, or by slope| Parameter | Type | Description |
|---|---|---|
| path * | string | Path to the .vmf, absolute or relative to the repo root. |
| rule * | object | Fully the first texture at or below this z. |
| solidIds | array |
read_brush_volumesFootprint and volume of each brush entity, by class| Parameter | Type | Description |
|---|---|---|
| classname | string | Restrict to one classname, e.g. func_door. |
| limit | number | |
| path * | string | Path to the .bsp, absolute or relative to the repo root. |
read_bsp_entitiesEntities of lump 0, filtered and paginated, with a classname histogram| Parameter | Type | Description |
|---|---|---|
| histogramOnly | boolean | Return only the classname histogram and counts. |
| path * | string | Path to the .bsp, absolute or relative to the repo root. |
read_bsp_infoHeader of a `.bsp`: ident, version, mapRevision, all 64 lumps, and whether vrad produced HDR| Parameter | Type | Description |
|---|---|---|
| allLumps | boolean | Include empty lumps (default: only lumps with content). |
| path * | string | Path to the .bsp, absolute or relative to the repo root. |
read_compile_logTurns compiler output into findings, each with what the message actually means| Parameter | Type | Description |
|---|---|---|
| text * | string | Raw compiler output. |
read_displacementsThe terrain grids of a `.vmf`, their vertices in world space, and their seams| Parameter | Type | Description |
|---|---|---|
| includeVertices | boolean | Return every vertex. Off by default: a power-4 displacement has 289 of them and a hillside has dozens of displacements. |
| path * | string | Path to the .vmf, absolute or relative to the repo root. |
read_entity_reportHammer's Entity Report: every entity and its keyvalues, filterable| Parameter | Type | Description |
|---|---|---|
| classname | string | Substring, case-insensitive. |
| hasKey | string | Only entities carrying this keyvalue. |
| keyValue | string | With hasKey: the exact value it must have. |
| limit | number | |
| path * | string | Path to the .vmf or .bsp, absolute or relative to the repo root. |
| targetname | string | Substring, case-insensitive. |
read_fgd_classA class's schema per the game's FGD: keyvalues, inputs, outputs| Parameter | Type | Description |
|---|---|---|
| classname | string | Exact class, e.g. logic_relay. |
| limit | number | |
| prefix | string | When listing: keep classes starting with this. |
read_game_contentHammer's texture and model browsers: what the game actually has, by name| Parameter | Type | Description |
|---|---|---|
| details | boolean | Read the .vmt of each result for its shader, its surface property, and whether every texture it names actually exists in this install. Off by default: a Garry's Mod install holds tens of thousands, and parsing them all to answer one search would cost seconds. |
| kind | string | Materials (.vmt) or models (.mdl). |
| limit | number | |
| pattern * | string | Name to look for. 'brick' matches anything containing it; 'brick*' is a glob. |
read_gmaHeader and index of a Workshop archive: what is in it, and where| Parameter | Type | Description |
|---|---|---|
| limit | number | Maximum entries to return. Default 200. |
| match | string | Only entries whose path contains this, case-insensitively. |
| path * | string | Path to the .gma, absolute or relative to the repo root. |
read_leakTurns ` leaked ` into a position and a named entity| Parameter | Type | Description |
|---|---|---|
| limit | number | |
| path * | string | The .lin pointfile, or the .vmf/.bsp it sits beside. |
read_lightmap_budgetWhere a compiled map's lightmap resolution went: total luxels, distribution, costliest faces| Parameter | Type | Description |
|---|---|---|
| limit | number | How many of the costliest faces to list. |
| path * | string | Path to the .bsp, absolute or relative to the repo root. |
read_lump_patchDecodes a `.lmp` and its entities| Parameter | Type | Description |
|---|---|---|
| limit | number | |
| path * | string | Path to the .lmp file. |
read_lump_patch_statusCompares built patches to what is deployed, and to map revisions| Parameter | Type | Description |
|---|---|---|
| bspSearchPaths | array | Where to look for the target .bsp, relative to the repo root. |
read_map_dependenciesEvery asset a map references, and whether each will be there: packed, from the game, or missing| Parameter | Type | Description |
|---|---|---|
| limit | number | Maximum entries per list. Default 300. |
| path * | string | Path to the .bsp, absolute or relative to the repo root. |
read_map_extentsReal world extents (lump 14), in Hammer units and in metres| Parameter | Type | Description |
|---|---|---|
| path * | string | Path to the .bsp, absolute or relative to the repo root. |
read_map_geometryHow full each lump is, and how much room is left before vbsp's ceiling| Parameter | Type | Description |
|---|---|---|
| nearLimitOnly | boolean | Return only the lumps at or above 80% of their ceiling. |
| path * | string | Path to the .bsp, absolute or relative to the repo root. |
read_map_organisationVisgroups, groups and the cordon, with what belongs to each| Parameter | Type | Description |
|---|---|---|
| path * | string | Path to the .vmf, absolute or relative to the repo root. |
read_map_reportJudges a map against a budget profile: a verdict per criterion, not another number| Parameter | Type | Description |
|---|---|---|
| path * | string | Path to the .bsp, absolute or relative to the repo root. |
| profile | string | Budget profile id. 'source-stock' (default) asks only whether the map will compile and load. 'gmod-darkrp' adds what a live DarkRP city needs. |
| verdicts | array | Return only these verdicts. Omit for all of them. |
read_materialsMaterial table of a compiled map, and how many `TEXINFO` reference each one| Parameter | Type | Description |
|---|---|---|
| limit | number | |
| nameContains | string | Case-insensitive substring filter on the material path. |
| path * | string | Path to the .bsp, absolute or relative to the repo root. |
| sortBy | string | usage: most-referenced material first. name: alphabetical. |
read_model_infoA prop's hull, skins, sequences and materials, before you place it| Parameter | Type | Description |
|---|---|---|
| model * | string | Model path. The models/ prefix and the .mdl suffix are added if missing. |
read_navSays whether a nav mesh still matches its map| Parameter | Type | Description |
|---|---|---|
| path * | string | The .nav, or the .bsp beside it. |
read_pakfileContents of the embedded pakfile (lump 40), and the compile evidence it carries| Parameter | Type | Description |
|---|---|---|
| limit | number | How many of the largest entries to list. |
| path * | string | Path to the .bsp, absolute or relative to the repo root. |
read_prop_surveyProp inventory, and which `prop_dynamic` are dynamic for nothing| Parameter | Type | Description |
|---|---|---|
| limit | number | Cap on the listed conversion candidates. |
| path * | string | Path to the .bsp, absolute or relative to the repo root. |
read_sightlinesLongest clear lines of sight, traced against the world tree| Parameter | Type | Description |
|---|---|---|
| elevation | number | Ground elevation to sample. Defaults to the median entity origin z. |
| elevationTolerance | number | How far a surface may sit from `elevation` and still be sampled. |
| eyeHeight | number | Height above ground for the sample point. 64 is a standing player's eye. |
| limit | number | |
| path * | string | Path to the .bsp, absolute or relative to the repo root. |
| requireNearbyContent | boolean | Keep only points with a map entity nearby, as a proxy for built-up area. |
| spacing | number | Grid step in Hammer units. Smaller is finer and quadratically slower. |
read_source_gamesSource games installed here, read from Steam and from `gameinfo.txt`read_visleaf_statsQuality of a compiled map's visibility split: leaf/cluster counts, leaf volume distribution| Parameter | Type | Description |
|---|---|---|
| path * | string | Path to the .bsp, absolute or relative to the repo root. |
read_vmfEntities, outputs and counts of a `.vmf`. `collapseInstances` expands `func_instance`| Parameter | Type | Description |
|---|---|---|
| classname | string | Restrict the entity list to one class. |
| collapseInstances | boolean | Expand every func_instance first, the way vbsp does at compile time. A map using instances otherwise reads as one entity where there is a whole building: counts are far too low, and outputs crossing an instance look like they target nothing. Off by default because it changes every count and every targetname. |
| limit | number | |
| path * | string | Path to the .vmf, absolute or relative to the repo root. |
read_vmf_leakWhether a `.vmf` seals, without compiling it, with the path out| Parameter | Type | Description |
|---|---|---|
| maxCells | number | |
| path * | string | Path to the .vmf, absolute or relative to the repo root. |
| seeds | array | Points known to be inside. Default: every spawn entity in the map. |
| step | number | Cell size in units. 16 is the coarsest that resolves a 32-unit doorway. Halving it multiplies the cell count by eight. |
read_vmf_lintWhat will break at compile time or in game, before compiling| Parameter | Type | Description |
|---|---|---|
| collapseInstances | boolean | Expand every func_instance first, the way vbsp does at compile time. A map using instances otherwise reads as one entity where there is a whole building: counts are far too low, and outputs crossing an instance look like they target nothing. Off by default because it changes every count and every targetname. |
| limit | number | |
| path * | string | Path to the .vmf, absolute or relative to the repo root. |
| rule | string | Keep only findings from this rule. |
| severity | string | Keep only findings at this severity. |
read_vmf_nearest_surfaceExact distance from a point to the nearest surface, and which face it belongs to| Parameter | Type | Description |
|---|---|---|
| owners | array | |
| path * | string | |
| radius | number | How far to look. Nothing within it reports null rather than the nearest anyway. |
read_vmf_roomsThe rooms of a `.vmf`, the doorways between them and how they connect — every merge it made with the reason, the doorway that merge stopped reporting, and the standable places no walk reaches. Each doorway carries both its cell-count estimate and its measured width, from a swept player hull at the same col| Parameter | Type | Description |
|---|---|---|
| mergeLimit | number | How many merges to report, newest first-hit last. mergeCount stays exact. |
| minRoomArea | number | Below this floor area, in square units, a region is merged into its largest neighbour. |
read_vmf_sightlinesLongest clear sight lines in an uncompiled `.vmf`, sampled where a person can stand| Parameter | Type | Description |
|---|---|---|
| eyeHeight | number | |
| limit | number | |
| maxCells | number | |
| path * | string | |
| seeds | array | |
| spacing | number | Take one sample cell in this many, per axis. Pairs cost the square of this. |
| step | number |
read_vmf_solidsRebuilds every brush from its planes: is it closed, convex, in the world, on a grid| Parameter | Type | Description |
|---|---|---|
| grid | number | Grid size corners are expected to land on. 1 (default) means integers; 0 disables. |
| include | string | Which solids to return. 'invalid' (default) returns only those with an error. |
| limit | number | Maximum solids to return. Default 50. |
| path * | string | Path to the .vmf, absolute or relative to the repo root. |
| vertices | boolean | Include every corner's coordinates. Off by default: it is a lot of numbers. |
read_vmf_surfacesFaces sorted into floor, wall, ceiling — and which of them a person could touch| Parameter | Type | Description |
|---|---|---|
| exposedOnly | boolean | |
| kind | string | |
| limit | number | |
| material | string | Only faces whose material contains this. |
| path * | string |
read_vmf_traceTraces a ray or a swept player hull through an uncompiled `.vmf`: what is in the way, how far, which face| Parameter | Type | Description |
|---|---|---|
| owners | array | Only trace against these owners, e.g. ["world", "func_detail"]. Absent means every brush in the file, including brush entities. |
| path * | string | Path to the .vmf, absolute or relative to the repo root. |
read_vmf_visibilityWhether named pairs of points can see each other, and the brush that blocks the ones that cannot| Parameter | Type | Description |
|---|---|---|
| owners | array | |
| pairs * | array | What this sight line is, for the report. |
| path * | string | Path to the .vmf, absolute or relative to the repo root. |
render_vmf_planA dimensioned floor plan: rooms, areas, doorway widths as measured rather than counted, grid, scale bar, north| Parameter | Type | Description |
|---|---|---|
| cutZ | number | Height of the cut. Default: 48 units above the lowest floor a person can stand on. |
| grid | number | Grid spacing, and the scale bar's length. |
| height | number | |
| path * | string | Path to the .vmf, absolute or relative to the repo root. |
| rooms | boolean | Outline rooms and dimension the doorways. |
| seeds | array | |
| svg | boolean | Also return the SVG text. It can be long. |
| width | number |
render_vmf_tourWalks a .vmf and returns one picture of the whole place: a contact sheet of eye-height views, one per room and one from each side of every doorway, worked out from the map rather than from cameras you supply. This exists because of a measurement -- across three sessions in which cold agents built the same map end to end, render_vmf_view was called once between them, and the map that passed every check had a door painted flat on a wall, counters that were single boxes and no skirting anywhere. None of that is visible to any check and all of it is obvious in one look. Cameras stand where a player would, via the same floor-finding measure_vmf_clearance uses, so no frame is the inside of a slab. When the room pass finds nothing to walk it falls back to the spawn and an outside view, and says so rather than returning an empty sheet.| Parameter | Type | Description |
|---|---|---|
| fov | number | |
| height | number | |
| maxCells | number | |
| minRoomArea | number | Square units below which a region is not a room. |
| path * | string | Path to the .vmf, absolute or relative to the repo root. |
| step | number | Cell size for the room pass. Vary it if the rooms come out wrong; see building.md. |
| width | number | Per frame, not per sheet. |
render_vmf_viewRenders an uncompiled `.vmf` from a camera and returns the picture: form and occlusion, no textures| Parameter | Type | Description |
|---|---|---|
| angles | array | Pitch, yaw, roll in degrees. Positive pitch looks down, as Source means it. |
| eyeHeight | number | Added to the origin's z. 64 is Source's standing eye height. |
| fov | number | Horizontal field of view. |
| fromEntity | string | Stand at this targetname's origin -- an info_player_start, say. |
| height | number | |
| lookAt | array | Aim at this point instead of giving angles. Overrides `angles`. |
| lookAtEntity | string | Aim at this targetname's origin. Overrides `angles` and `lookAt`. |
| near | number | |
| origin | array | Eye position. Omit with `fromEntity`, or with neither to frame the whole map. |
| path * | string | Path to the .vmf, absolute or relative to the repo root. |
| stand | boolean | Put the eye where a standing player's would be: drop to the floor under `origin` and rise to eye height. Use this rather than guessing a z. |
| width | number |
run_bsp_renameRenames a compiled `.bsp` and the content packed inside it — the nodegraph, cubemap patches, soundscripts. Drives ficool2's `bsp_rename`, a separate download; `health` says whether it is there| Parameter | Type | Description |
|---|---|---|
| bsp * | string | Path to the .bsp, absolute or relative to the repo root. |
| newName * | string | The new map name, without the .bsp suffix. Letters, digits, _ - . only. |
run_compilevbsp, vvis and vrad under Wine, or natively on Windows, findings per stage. Drives the Hammer++ chain by default, with its culling flags; falls back to the stock compilers when Hammer++ is absent and says which one ran| Parameter | Type | Description |
|---|---|---|
| confirm | boolean | |
| cull | boolean | Hammer++ only, and ON by default whenever the ++ chain runs. Culls unreferenced planes, vertices, brushes and brush sides even when no limit is reached yet. Measured on ttt_traps: -20.5% PLANES, -12.8% VERTEXES, -10.5% file size, with FACES and TEXINFO unchanged -- which is what distinguishes a prune from a broken map. Pass false to compile without it; read_map_geometry before and after is the check. Passing true with toolchain 'stock' is refused rather than ignored. |
| fast | boolean | vvis -fast and vrad -fast: minutes instead of hours, dev quality only. |
| hdr | boolean | vrad -both, for an HDR and an LDR lightmap set. |
| stages | array | Stages to run, in order. vbsp alone is enough to check a map seals. |
| timeoutMinutes | number | |
| vmf * | string | Path to the .vmf, absolute or relative to the repo root. |
run_cubemap2hdrTurns an LDR cubemap into the HDR one Source loads in HDR mode. Refuses anything but DXT1 up front, naming the format the file actually is| Parameter | Type | Description |
|---|---|---|
| vtf * | string | Path to the LDR cubemap .vtf, absolute or repo-relative. |
run_gma_extractPulls matching files out of a `.gma` by offset, without unpacking the rest| Parameter | Type | Description |
|---|---|---|
| destination * | string | Directory to write into. Created if absent. |
| flatten | boolean | Write basenames only, instead of recreating the addon's directories. |
| limit | number | Refuse to extract more than this many. Default 64. |
| match * | string | Only entries whose path contains this, case-insensitively. Required. |
| path * | string | Path to the .gma. |
run_packPacks files into a `.bsp` via bspzip. `auto` derives the list from the map itself| Parameter | Type | Description |
|---|---|---|
| auto | boolean | Derive the list from the map: assets it references that sit loose in the game's content tree rather than in a VPK. Needs the Python sidecar. |
| bsp * | string | Target .bsp. It is rewritten in place. |
| confirm | boolean | |
| exclude | array | Substrings of in-game paths auto should skip. For the occasional stock file that ships loose -- Garry's Mod keeps detail.vbsp in its own root -- which auto would otherwise pack harmlessly but pointlessly. |
| files | array | Path inside the map, e.g. materials/foo/bar.vmt. |
run_pakfile_extractGets files out of a compiled map's pakfile — the counterpart `read_pakfile` never had. Refuses an entry that would escape the destination, never overwrites unless told| Parameter | Type | Description |
|---|---|---|
| bsp * | string | Path to the .bsp, absolute or relative to the repo root. |
| into * | string | Directory to write into. Created if it is not there. |
| limit | number | How many files to write. A production map packs ten thousand. |
| overwrite | boolean | Replace files that are already there. Off by default. |
| pattern | string | Glob over the in-map path, case-insensitive: `materials/maps/*/c*.vtf` for the cubemaps. Absent extracts everything, up to `limit`. |
run_tga2skyboxBuilds a cubemap `.vtf` from six TGA faces, LDR and HDR — the half of cubemap work that does not need the engine running. Drives ficool2's `tga2skybox`| Parameter | Type | Description |
|---|---|---|
| base * | string | Name shared by the faces: `sky_x` for sky_xrt.tga ... sky_xdn.tga. |
| dir * | string | Directory holding the six TGA faces. The .vtf files are written here too. |
run_vtf_convertConverts an image (.tga, .png, .bmp, .jpg ...) into a .vtf the engine can load, written beside the source. The step that used to need a GUI: read_game_content finds what the game ships, this makes what it does not. Drives VTFCmd from ficool2's VTFEdit++, a separate download; health says whether it is installed. Reads the result back and reports its real format and size rather than the ones asked for.| Parameter | Type | Description |
|---|---|---|
| alphaFormat | string | Format for textures that have an alpha channel. VTFCmd's default is DXT5. |
| flags | array | VTF flags to set, e.g. NOLOD, CLAMPS, CLAMPT. Passed through one by one. |
| format | string | Format for textures with no alpha: DXT1, BGR888, RGBA8888 ... VTFCmd's default is DXT1, which is what a wall texture should be. |
| image * | string | Path to the source image, absolute or relative to the repo root. |
| noMipmaps | boolean | Skip mipmaps. Right for a UI texture, wrong for anything in the world. |
| version | string | VTF version to write, e.g. 7.4. Left alone unless a target needs one. |
sculpt_displacementFlatten, raise, slope or noise — with a seed, so it can be made twice| Parameter | Type | Description |
|---|---|---|
| path * | string | Path to the .vmf, absolute or relative to the repo root. |
| shape * | object | Same seed, same terrain, every time. |
| solidIds | array | Displacements on these brushes. |
set_cordonThe cordon box, and whether it is on — the one setting that changes what compiles| Parameter | Type | Description |
|---|---|---|
| active | boolean | Default true. False leaves the box and turns it off. |
| name | string | Default 'cordon'. |
| path * | string | Path to the .vmf, absolute or relative to the repo root. |
set_face_materialSets the material on selected faces. Nothing could change one before| Parameter | Type | Description |
|---|---|---|
| newMaterial * | string | Material to apply, in any of the usual forms. |
| path * | string | Path to the .vmf, absolute or relative to the repo root. |
set_lightmap_scaleSets `lightmapscale` on selected faces, and projects the luxel bill before writing| Parameter | Type | Description |
|---|---|---|
| all | boolean | Required to act on every face of the map when no other selector is given. |
| facing | string | Only faces pointing this way: up is a floor, down a ceiling, side a wall. |
| material | string | Only faces whose material contains this text. |
| minArea | number | Only faces of at least this many square units. |
| path * | string | Path to the .vmf, absolute or relative to the repo root. |
| scale * | number | Units per luxel. Hammer's default is 16; powers of two are the convention. |
| solidIds | array | Only faces of these solids. |
set_map_propertiesworldspawn: the sky, the detail sprites, the fog| Parameter | Type | Description |
|---|---|---|
| detailmaterial | string | The sprite sheet itself. |
| detailvbsp | string | Which sprites go on which material. |
| maxpropscreenwidth | string | |
| path * | string | Path to the .vmf, absolute or relative to the repo root. |
| skyname | string |
set_smoothing_groupsHammer's 1-to-32 groups, written as the bitmask the file stores| Parameter | Type | Description |
|---|---|---|
| groups * | array | Hammer's group numbers, 1 to 32. Empty clears every group. |
| path * | string | Path to the .vmf, absolute or relative to the repo root. |
set_solid_classMoves brushes between the world and a brush entity — `func_detail` and back| Parameter | Type | Description |
|---|---|---|
| entityId | number | Existing entity of that class to add to. Omit to create one. Grouping is taste, not performance: vbsp dissolves every func_detail into the world regardless. |
| path * | string | Path to the .vmf, absolute or relative to the repo root. |
| solidIds * | array | Hammer ids of the solids to move. read_vmf_solids lists them. |
| to * | string | 'world' to make them structural again, or a brush entity classname such as func_detail, func_illusionary, func_brush. |
set_visgroupNames a selection so later calls can say the name instead of a box| Parameter | Type | Description |
|---|---|---|
| color | string | Editor colour, 'r g b'. Default '255 255 255'. |
| name * | string | Visgroup name, as Hammer's tree shows it. |
| path * | string | Path to the .vmf, absolute or relative to the repo root. |
| remove | boolean | Take the brushes out instead of putting them in. |
sew_displacementsPulls displacements back together along the edges they share| Parameter | Type | Description |
|---|---|---|
| path * | string | Path to the .vmf, absolute or relative to the repo root. |
| tolerance | number | How close two flat points must be to count as the same one. Default 0.1. Must be positive: zero would group every vertex of the map into one. |
transform_solidsMoves, turns, scales or mirrors brushes already in the file, texture lock included| Parameter | Type | Description |
|---|---|---|
| grid | number | Round every corner to this grid afterwards. Default 0, which rounds nothing. Snapping is what makes a face stop being flat, so what it costs is measured and reported as planarityError rather than assumed to be nothing. |
| mirror | object | Default the selection's centre. |
| path * | string | Path to the .vmf, absolute or relative to the repo root. |
| rotate | object | Axis to turn about. Need not be unit length. |
| scale | object | Default the selection's centre. |
| textureLock | boolean | Default true: the texture stays put on its face. Refused on a scale that stretches one axis more than another, because no texture axis pair can express that -- pass false to accept the stretch. |
validate_ioEvery output checked against the FGD — the wire that fires into nothing| Parameter | Type | Description |
|---|---|---|
| limit | number | |
| path * | string | Path to the .vmf or .bsp, absolute or relative to the repo root. |
write_displacementCreates terrain grids on selected faces — 5×5, 9×9 or 17×17| Parameter | Type | Description |
|---|---|---|
| all | boolean | Every quadrilateral face of the map. Required when nothing else narrows it. |
| path * | string | Path to the .vmf, absolute or relative to the repo root. |
| power * | number | 2, 3 or 4: a 5x5, 9x9 or 17x17 grid. |
write_hint_brushPlaces a hint brush, straight or diagonal, to shape where vvis splits the map| Parameter | Type | Description |
|---|---|---|
| hintFaces | string | Which faces carry the hint. 'largest' (default) hints the two biggest opposing faces, which for a thin slab is the plane you meant. 'all' hints every face. |
| path * | string | Path to the .vmf, absolute or relative to the repo root. |
| rotateZ | number | Degrees to turn the slab about its own centre. 45 gives a diagonal cut. Corners are rounded to whole units, so the faces stay exactly planar. |
write_lump_patchBuilds an entity patch from add/update/remove operations| Parameter | Type | Description |
|---|---|---|
| bsp * | string | Target .bsp. Its mapRevision and entity list are the base. |
| dryRun | boolean | Compute and report the result without writing. |
| ops * | array | |
| out | string | Output path. Default: server-config/maps/<map>_l_0.lmp |
write_portalAreaportals and occluders — the runtime half of visibility| Parameter | Type | Description |
|---|---|---|
| classname * | string | What to place. A window fades rather than sealing. |
| keyvalues | object | |
| path * | string | Path to the .vmf, absolute or relative to the repo root. |
| targetname | string |
write_vmfCreates an empty `.vmf` — Hammer's File > New. Refuses to overwrite. Checks the `skyname` it writes against the game's own content, and names complete skies the game has when that one is absent| Parameter | Type | Description |
|---|---|---|
| gridSpacing | number | The grid an editor opens the file showing. Cosmetic; nothing compiles from it. |
| path * | string | Where to create the .vmf, absolute or relative to the repo root. |
| skyname | string | worldspawn's skyname. read_game_content lists what the game has. |
write_vmf_fittingBuilds the things a room is finished with -- a door casing, a counter, skirting or a cornice -- as the several brushes each of them actually is. write_vmf_solid makes one convex shape per call, so an agent that thinks 'counter' writes a box: three rounds of building maps with these tools produced counters, shelving and doorways that were each a single slab, with a door texture painted flat on a wall where a frame should be. The trade here is that you own the envelope and this owns the articulation -- give it the same mins/maxs you would have given a box and get a worktop with a nosing over a body over a recessed kick. Every internal dimension comes from a table measured off models Valve ships (read_model_info, 13/08/2026), which also found that Source's world is built a third taller than its own player: a door leaf is 108 units, a shop counter 56, with the eye at 64. Refuses any assembly whose parts share an interior or fail to join up, which is a class of error per-brush validation cannot see.| Parameter | Type | Description |
|---|---|---|
| entityId | number | Hammer id of a brush entity to add them to. Omit to add them to the world. |
| fittings * | array | What to build, in order. |
| lightmapScale | number | Luxels per unit on every face. Default 16. |
| material | string | Material for every face. Default TOOLS/TOOLSNODRAW. |
| materials | object | Material per role, as write_vmf_solid takes it and at the same threshold. |
| path * | string | Path to the .vmf, absolute or relative to the repo root. |
| textureScale | number | Texture scale on both axes. Default 0.25. |
write_vmf_solidCreates brushes — box, wedge, prism, cone, arch, sphere, torus, stairs, or a hull face by face. One material, or one per role: top, bottom, sides| Parameter | Type | Description |
|---|---|---|
| entityId | number | Hammer id of a brush entity to add them to. Omit to add them to the world. |
| lightmapScale | number | Luxels per unit on every face. Default 16. |
| material | string | Material for every face. Default TOOLS/TOOLSNODRAW, which draws nothing. |
| materials | object | Faces pointing up: the floor of a slab. |
| path * | string | Path to the .vmf, absolute or relative to the repo root. |
| solids * | array | Shapes to create, in order. |
| textureScale | number | Texture scale on both axes. Default 0.25. |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 7.0K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by pnpm-lock.yaml.
- ✓No dynamic code executionScanned 128 source files and found no eval, dynamic Function or shell execution.
1 check has not been run yet.
What the source scan found
- Transport
- stdiosrc/index.ts:2
- Starts other programs
- No calls that start other programs
- Outbound network calls
- No outbound network calls
- Writes or deletes files
- 3 callssidecar/main.py:131, sidecar/main.py:155, sidecar/main.py:157
- Lockfile
- pnpm-lock.yaml
Pattern matches on the source text of 128 files: places to read, not proof of what the code does at run time.
README
The repository's README runs to about 7.0K words, fetched a month ago. The original in the repository is authoritative.
Read full README