Skip to main content
Glama

An MCP server that finds and fixes first-person weapon bugs behind a gate: hands off the gun, a magazine crooked in its well, a blade held wrong, arms covering the screen.

Each bug becomes a case: a metric, a weapon, an action and a pass rule. Your game's own probe measures the weapons. The Gate passes a change only when its target cases pass and nothing else got worse. Fix each kind of bug once, then check every weapon with it.

Weapon Lab never runs your game itself. You write a small probe for your engine that follows the probe contract: a job file in, a rows file out. Everything else works on what the probe writes back.

What it does

Group

Tools

What for

Gate

gate_run, gate_verdict, gate_propose, gate_approve, gate_set_baseline, gate_cases, ...

Keeps the bugs as cases, measures, compares against a baseline, judges a change, records a person's approval.

Probe

probe_run, probe_plan, probe_status

Starts your game's probe. Tries a fix before it is written: tuned fields, staged assets, screenshots, parts dumps.

Rig Lab

rig_pieces, rig_facts, rig_align, rig_part_line, rig_fist

Reads the posed weapon from a parts dump: its pieces, real-world facts (the magazine behind the barrel), a magazine's line into its well, a hilt in the fist.

Motion Lab

motion_roll, motion_roll_profile, motion_roll_set, motion_track, motion_render

Rebuilds clips in Blender: turns a hand about its forearm inside the forearm's range, puts a sliding part back on its axis.

Specs

spec_list, spec_read, spec_validate, spec_write

One file a weapon: marks (grip, support), anchors (pieces to find), facts, limits.

Contract

contract_check

Checks a probe's job, rows or parts dump.

Gun Kit

gunkit_inspect, gunkit_draft, gunkit_from_modellab, gunkit_proxy, gunkit_rig, gunkit_build, gunkit_verify, gunkit_export, gunkit_cases, gunkit_actions, gunkit_action

Takes any gun model to the game: rigs it for one of 18 actions, makes its own clips and the hand clips on one shared pair of arms, checks them, stages the files. See docs/GUNKIT.md.

Blueprint Lab

blueprint_source_add, blueprint_scan, blueprint_specs, blueprint_figure_add, blueprint_calibrate, blueprint_trace, blueprint_part, blueprint_check, blueprint_build, blueprint_to_gunkit, ...

Makes a real gun's visual copy from its public sources (manuals, patents, photos): facts from the data tables, outlines traced from scaled figures, a blueprint with the source of every number, the model built in Blender. See docs/BLUEPRINT.md.

Related MCP server: Coating Lab

Try it on the demo

The demo is a toy game with two planted bugs and a probe in about 150 lines. It needs no engine.

pip install -e .
cd examples/demo
weaponlab gate run probe,rig

(python -m weaponlab works the same when pip's scripts folder is not on your PATH.)

The rifle's left hand misses its handguard by 3.75 cm. The knife's hilt lies 90 degrees across the fist. tests/test_demo.py walks the whole loop: measure, find the fix, try it by tune, judge it.

Use it in your game

  1. weaponlab init in your project. It writes weaponlab.json and empty data files.

  2. Write your probe from the contract, starting from examples/demo/probe/demo_probe.py. Set its command in weaponlab.json.

  3. List your weapons in weaponlab/data/weapons.json and their actions in actions.json.

  4. Add a case for each bug you know. Measure everything once and set the baseline.

  5. Fix through the loop: try by tune or staging, look at the screenshots, propose, approve, import.

Check your probe on its own with weaponlab contract job|rows|parts <file>.

Add it to an MCP client

{"mcpServers": {"weaponlab": {"command": "weaponlab-mcp", "env": {"WEAPONLAB_PROJECT": "C:/path/to/your/game"}}}}

Setting

Meaning

WEAPONLAB_PROJECT

The project folder with weaponlab.json. The current folder by default.

WEAPONLAB_BLENDER

Blender, for Motion Lab. Found on the PATH or in the usual install folders otherwise.

Requirements

  • Python 3.10 or later.

  • Blender 4.4 or later for Motion Lab and renders. Nothing else needs it.

  • Hand bones named as Unreal's mannequin names them (hand_r, index_01_r, lowerarm_r) for the fist measure and the forearm roll.

Where it came from

Weapon Lab is the general part of the tools built for ToangTown, an Unreal 5.8 game with 46 weapons. Its first probe is ToangTown's. The contract's lessons come from that probe. Pose Lab (poselab-mcp) answers the body's side: clipping, the view, a grip solver. The Gate can use it as a provider.

License

MIT

Available Tools

67 tools
blueprint_alignD

A figure's scale and frame matched to a framed figure on a part both show (a trigger guard's opening).

Inputs: gun (required), figure_id (required), trace_here (required), trace_there (required), +3 more.

blueprint_buildC

Step 6 in Blender: the model (one object a part) and its parts map for Gun Kit; with render, labelled pictures of it from both sides and three quarters.

Inputs: gun (required), render.

blueprint_calibrateC

A figure's scale: two points a known length apart (a printed scale bar's ticks, or a fact), or a kept outline's length along the bore against a length fact.

Inputs: gun (required), figure_id (required), a, b, +3 more.

blueprint_checkC

Step 5: the blueprint against its contract, its reference outline (overlap, edge gaps), its length and weight facts; and overlay pictures on every framed figure. Look at the overlays.

Inputs: gun (required), reference, reference_holes.

blueprint_fact_addC

Records a fact (kept in cm, kg, deg or count) with its page and quote.

Inputs: gun (required), page (required), unit (required), quote (required), +3 more.

blueprint_featureC

The detail pass: a surface feature on a part (grooves and screws in the mesh, patterns as the finish's texture).

Inputs: gun (required), feature (required), part_id (required).

blueprint_figure_addC

Step 3: cuts a figure from a page and stands it upright.

Inputs: gun (required), kind (required), page (required), figure_id (required), +6 more.

blueprint_frameD

How a figure lies in gun space: the bore line (from the rear toward the muzzle) and the bolt face.

Inputs: gun (required), origin (required), bore_rear (required), figure_id (required), +1 more.

blueprint_gridD

The figure with a labelled pixel grid (and, once framed, its bore line, origin and cm grid) to read points off.

Inputs: gun (required), figure_id (required), zoom, region, +1 more.

blueprint_holeC

A cut in a part: a kept trace's outline or a circle across x (limited to x when given), or a bore along y.

Inputs: gun (required), part_id (required), x, bore, +3 more.

blueprint_markD

A mark in gun space (cm) with its source: a hand's place (with the way its surface faces) or a point a check needs.

Inputs: at (required), gun (required), name (required), source (required), +3 more.

blueprint_measureC

Readings off a figure by the tools, not by eye: a distance, the ink's span along a line, a scale bar's ticks, the count and pitch of faint marks.

Inputs: a (required), b (required), gun (required), figure_id (required), +2 more.

blueprint_newD

Step 4: starts the gun's blueprint for its action family.

Inputs: gun (required), action (required), title.

blueprint_numbersD

The source's part numbers a blueprint part stands for.

Inputs: gun (required), numbers (required), part_id (required).

blueprint_pageC

Pages as pictures to read: one page at dpi, or several side by side (a contact sheet) to find the figures.

Inputs: gun (required), pages (required), source_id (required), dpi.

blueprint_partB

Sets one part of the blueprint. Every number needs its source; the check fails a part without one.

Inputs: gun (required), kind (required), role (required), finish (required), +15 more.

blueprint_parts_listC

The detail pass: the source's parts list, each part visible or hidden; the check holds every visible one to a blueprint part (by number, or by name when the source gives none).

Inputs: gun (required), entries (required), replace.

blueprint_readD

The gun's blueprint or sources document as it stands.

Inputs: gun (required), what.

blueprint_scanC

Every page of a source sorted into text, table, figure, mixed or blank, with the figure pages' captions.

Inputs: gun (required), source_id (required).

blueprint_showcaseC

A showcase of a built gun that has been through Gun Kit (minutes in Blender): a title card, the source beside the copy, a turn round it, its clips (fire slowed, the reloads, the checks); as a GIF and an MP4, every frame labelled as a Blueprint Lab model view.

Inputs: gun (required), title, source_note, compare_figure.

blueprint_source_addC

Step 1: registers a file (PDF or picture) as one of a gun's sources, with its license. Opens it as data only.

Inputs: gun (required), file (required), kind (required), title (required), +8 more.

blueprint_specsC

Step 2: candidates for each data table quantity (overall length, barrel length, weights...): the line, the numbers near it. Check a candidate on the page picture before adding it.

Inputs: gun (required), source_id.

blueprint_textC

A page's text, or the lines matching a pattern across the sources (where a part or a number is named).

Inputs: gun (required), page, pattern, source_id.

blueprint_to_gunkitC

Step 7: the built model through Gun Kit (several minutes in Blender): rig, hand clips, gun clips, read-back.

Inputs: gun (required), grip_steps.

blueprint_traceC

An outline from a figure, kept for the plan: the whole silhouette, a closed area round a seed, a rough outline snapped onto the ink, or a patch in a halftone. Look at the picture it writes.

Inputs: gun (required), method (required), keep_as (required), figure_id (required), +11 more.

blueprint_viewsC

The detail pass: a part shaped by three views (its side outline, front sections, a top outline), each with its source.

Inputs: gun (required), part_id (required), top, front, +2 more.

contract_checkC

Checks a file against its contract: a probe's job, rows or parts dump, or a digitizer file (sources, blueprint, partsmap).

Inputs: kind (required), path (required), job_path.

gate_add_caseC

Adds or replaces a case.

Inputs: case (required).

gate_approveB

Marks a passed proposal approved. Only on a person's word.

Inputs: proposal (required), approved_by (required).

gate_casesD

The cases (each a known bug as a metric, a weapon, an action and a pass rule).

Inputs: status, weapon.

gate_evalsC

Each provider's eval: faults caught, good cases passed, trusted.

Inputs: no named parameters.

gate_metricsB

Every metric: provider, unit, which way is better, tolerance.

Inputs: no named parameters.

gate_proposalsD

Every proposal: passed, approved.

Inputs: no named parameters.

gate_proposeC

A staged change measured and judged; the proposal waits for a person's approval.

Inputs: name (required), targets (required), providers (required), actions, +2 more.

gate_runC

Measures the weapons with the providers (probe, rig, or the project's own) and stores the run.

Inputs: providers (required), actions, staging, weapons.

gate_set_baselineC

A run's rows become the baseline (merged over the old).

Inputs: run_id (required).

gate_verdictC

Pass only if the target cases pass, nothing else got worse past its tolerance and the checks are trusted.

Inputs: run_id (required), targets.

gate_weaponsD

The project's weapons.

Inputs: no named parameters.

gunkit_actionB

One action in full: its parts, marks, the beats of its gun clips and the hand events of its hand clips, with the reason or source of each, and the manuals to read or find.

Inputs: action (required).

gunkit_actionsB

The kinds of gun action Gun Kit knows (AR gas, AK handle, bolt, lever, pump, pistol slide, open bolt, revolver, belt fed, launchers, bow, crossbow, flamethrower, fictional energy guns): each one's guns, parts and clips.

Inputs: no named parameters.

gunkit_buildC

Every clip of one gun: the hand clips on the shared arms (Pose Lab: the hold searched for both hands and the view, each clip's clearance, anatomy and grip checks, the expected sights), then the gun's own clips with the carried parts' tracks. Minutes per gun.

Inputs: facts (required), grip_steps.

gunkit_casesC

The Gate cases every gun of an action gets (its facts, each clip's read-back, each hand clip's checks and sights); add writes them into the Gate.

Inputs: action (required), weapon (required), add.

gunkit_draftD

A first parts map for a model of the user's own and the list of every guess in it to confirm (forward, units, the bolt face, each part, each mark). Write the confirmed map to a file for gunkit_rig.

Inputs: model (required), action (required), name.

gunkit_exportC

The gun's files staged for a game: its FBX with its clips, the hand clips, an import plan, a draft data file and a trial copy pointing at staging. Registers the build for the Gate's gunkit provider.

Inputs: facts (required), game_id (required), base.

gunkit_from_modellabC

A Model Lab build's parts map (its moving parts, travel, hinges and hand marks), ready for gunkit_rig.

Inputs: build_folder (required).

gunkit_inspectC

What a model holds as Blender shows it after import (objects, vertex groups, bounds, the longest axis, a units guess): the starting point of its parts map.

Inputs: model (required).

gunkit_proxyD

An action's proxy gun (simple shapes with its real moving parts) built and rigged: the whole chain runs on it before a real model exists. A test model: label every picture of it.

Inputs: action (required).

gunkit_rigC

A gun rigged for its action from its parts map: one bone a moving part, the gun facts checked against the action.

Inputs: partsmap (required).

gunkit_verifyD

The gun's own clips read back from Blender against the timeline's sums: the worst gap a clip, cm.

Inputs: facts (required).

motion_renderD

Dev views of parts dumps (not the game's view).

Inputs: objs (required), out_folder (required).

motion_rollC

One clip's hand turned about its forearm, the twist bones sharing it.

Inputs: out_fbx (required), src_fbx (required), side, degrees.

motion_roll_profileC

The hand's roll about its forearm through a clip (0 thumb up; past 80 degrees breaks the forearm's range).

Inputs: fbx (required), side.

motion_roll_setC

A set of clips rolled, each from its own start, saved under new names (_).

Inputs: suffix (required), fbx_files (required), out_folder (required), side, +1 more.

motion_trackD

A sliding part's track rebuilt on its axis from its seat.

Inputs: bone (required), root (required), out_fbx (required), src_fbx (required), +2 more.

probe_planD

The job's weapons the probe would get.

Inputs: actions, weapons.

probe_runD

One probe run: rows, and screenshots and parts dumps at the moments.

Inputs: weapons (required), at, tune, parts, +4 more.

probe_statusC

The processes that must not run with the probe, running now.

Inputs: no named parameters.

project_infoB

The project in use: its folder, data, specs and work folders, the probe command, Blender.

Inputs: no named parameters.

rig_alignD

A magazine's line into its well over a reload's moments: worst offset and tilt while in the well.

Inputs: bone (required), seated_obj (required), moment_objs (required), axis, +1 more.

rig_factsD

The weapon spec's facts (order, side, below, in) on a dump.

Inputs: obj (required), weapon (required).

rig_fistD

A melee hilt against the fist's grip channel, and the turn and move that lay it in (try them with probe_run's tune; a palm-down fist can hold the hilt right and still point the blade sideways: look at the screenshot).

Inputs: obj (required), side.

rig_part_lineD

A sliding part's path against its axis: line_cm and seat_cm.

Inputs: axis (required), bone (required), seated_obj (required), moment_objs (required).

rig_piecesD

A parts dump's pieces (triangles, centre, bounds, extents) and twins (a piece drawn twice).

Inputs: obj (required).

spec_listC

Every weapon spec: marks, actions, marks still proposed.

Inputs: no named parameters.

spec_readC

One weapon's spec, with the default limits filled in.

Inputs: weapon (required).

spec_validateD

Every problem with a spec, as sentences (empty: whole).

Inputs: spec, weapon.

spec_writeB

Saves a whole spec and returns what changed.

Inputs: spec (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.3/5.0

    Scored across 67 tools

    Disambiguation4/5

    The toolset is divided into clear functional prefixes (blueprint_, gunkit_, gate_, rig_, motion_, spec_, probe_), and within most groups each tool targets a distinct step or resource. A few near-pairs (gunkit_actions vs gunkit_action, gate_cases vs gate_evals, gunkit_rig vs blueprint_to_gunkit) could be misselected, but descriptions generally disambiguate them.

    Naming Consistency4/5

    Nearly all tools follow a predictable snake_case prefix_noun pattern (blueprint_scan, gunkit_rig, gate_run, motion_roll), grouped logically by pipeline stage. A couple of outliers (project_info, contract_check) break the prefix scheme, but overall naming is highly consistent.

    Tool Count2/5

    67 tools is a heavy surface for a single server, with 25 blueprint_* tools alone, which risks overwhelming an agent despite the pipeline's complexity. The scope is real but the count is well beyond a comfortably navigable set.

    Completeness4/5

    The surface covers a full weapon-development lifecycle: source ingestion, blueprint authoring, rigging, animation, gating/baselining, and export. Coverage appears broad with few obvious dead ends, though minor gaps in areas like proposal rejection/rework may exist.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      B
      maintenance
      Enables models to pose and measure first-person arms and a rifle in Blender, reporting positions in named frames, clearances, visibility, screen placement, and solving rifle moves against goals.
      17
      1
      MIT
    • A
      license
      C
      quality
      C
      maintenance
      Enables game gun models to be given physically based surface finishes across material slots and wear levels, with wear baked once into vertex-colour masks for edges, handling, rubbing parts and dirt. It also validates finishes and wear against physical rules, renders look-dev variant sheets, and exports per-slot engine material parameters.
      13
      29 PyPI
      1
      MIT
    • A
      license
      C
      quality
      C
      maintenance
      Enables measuring an FPS game's feel by judging probe-written timelines against an 82-item checklist covering latency, sync, kick, shake, presence, rhythm and smoothness, and returning per-item values, verdicts, Markdown reports or gate rows. It works with any engine that can emit the timeline contract, without running the game itself.
      6
      1
      MIT