Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MOHO_STUDIO_IPC_DIRNoDirectory used for atomic temp-and-rename JSON IPC files. If not set, defaults to %TEMP%\moho-studio-mcp.%TEMP%\moho-studio-mcp

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}
resources
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
moho_statusA

Check live Moho Pro 14.4 connectivity, plugin version, active document, active layer, frame, active action, Layer Comp count, and exporter path.

moho_activatePollerA

Locate the custom MohoStudioMCP Poller teal-star icon in Moho Pro 14.4's toolbar via PrintWindow and click it in the background (PostMessage) without moving the user's mouse cursor or stealing window focus. Also runs automatically if any live RPC stalls for >1.1s.

moho_apiInspectA

Inspect live Lua 5.4 classes, methods, tolua++ .get/.set properties, and constants exposed by Moho 14.4 (e.g. MOHO, LM, moho, document, layer, M_Bone, M_Mesh).

lua_executeB

Execute Lua 5.4 code live inside Moho Pro 14.4 with moho, helpers, json, delaunay, and args in scope. Guarded by pcall + optional PrepMultiUndo and captures print() logs.

document_getInfoA

Get open document metadata (name, path, dimensions, FPS, frame range, current frame, layer counts, Layer Comp count, active doc action, background color).

document_newB

Create a brand-new Moho document and optionally configure dimensions, FPS, frame range, and background color.

document_openB

Open an existing .moho project file from disk live inside Moho.

document_saveA

Save the currently open Moho document in place.

document_saveAsB

Save the currently open Moho document to a specific file path.

document_closeA

Close the currently active Moho document tab cleanly (auto-saves if it has a path to prevent blocking Save prompts).

document_undoB

Undo or Redo one or more steps in the open Moho document.

document_setSettingsC

Modify open document dimensions, FPS, start/end frames, background color (LM.rgb_color via verified SetBackCol), or Depth of Field.

document_importA

Import a PNG/JPG/WebP image directly as a live ImageLayer, import SVG headlessly through Moho 14.4 SS_SVGImport (with scaling/consolidation controls), or import PSD/Moho files via FileImport.

document_setFrameC

Move Moho's timeline to a specific frame number.

document_renderFrameB

Render a specific frame live via Moho's FileRender engine and return the PNG.

document_renderRangeB

Render a PNG frame sequence across a frame range live from the open Moho document (auto-creates outputDir).

document_captureWindowB

Capture the primary visible Moho Pro 14 application window (viewport, timeline, layers, toolbar) as PNG using Win32 EnumWindows.

document_cliRenderB

Run Moho Pro 14.4's multi-threaded, GPU-accelerated headless CLI renderer (Moho.exe -r) on any saved .moho file to export PNG sequences, MP4, MOV, AnimatedGIF, PSD, or SVG with optional Layer Comp filtering without blocking the Moho GUI.

document_exportGltfB

Headless Moho Pro 14.4 glTF 2.0 / GLB export wrapping Tool/ss_gltf_export.lua (bypasses SS_glTFExportDialog:DoModal safely). Run rig_auditGltf first to check for animated vectors without Warp Layers or non-in-place Actions.

rig_auditGltfA

Read-only pre-flight audit of the open Moho document for glTF 2.0 export readiness: detects animated vector layers missing Warp Layers, active bone dynamics needing fbf baking, non-in-place Actions, unsaved document state, and gltf_* layer userTags.

layercomp_listA

List all Layer Comps in the open document along with their member layers.

layercomp_manageC

Create, update layer membership, apply, rename, additively show/hide, snapshot visible layers, expose on timeline, or delete Layer Comps.

layer_listB

Return the full recursive layer tree with IDs, UUIDs, types, masking, warp/curver flags, bone counts, Vitruvian group counts, and active switch children.

layer_getPropertiesA

Inspect transform, opacity, visibility, blur, origin, blending mode, masking mode, bone parent, tags/comments, and image/warp info of a layer.

layer_createB

Create a new layer live inside Moho (vector, image, bone, group, switch, framebyframe, particle, patch, text, note, audio). For framebyframe, auto-creates an initial child vector frame unless createInitialFrame=false.

layer_deleteB

Delete a layer by ID, name, or UUID (undoable).

layer_duplicateA

Duplicate a layer (or create a live Moho Referenced Layer when asReference=true).

layer_reparentC

Move a layer into a Group/Bone/Switch/Particle layer or reorder it behind or in front of another layer.

layer_selectC

Make a layer the active selection in Moho.

layer_setPropertiesB

Modify layer transform, parallax Z (with preserveApparentSize), timingOffset, shownOnTimeline, immuneToDof, Layer FX (colorize/outline/shadow/shading), vectorNoise, opacity, blur, blendingMode, and metadata.

layer_bindToBoneA

Rigid-bind a layer to one bone (boneId, or -1 to unbind) OR flexi-bind it to an exact subset of bones (flexiBoneIds) with optional elbow smooth-joint binding (elbowBind).

layer_setWarpLayerB

Link (or unlink when warpLayerId/Name omitted) a Smart Warp or Curver VectorLayer to a target layer.

layer_setMaskingC

Configure Group masking (groupMask or one-shot preset: 'mask_inside_bottom') and per-layer masking (maskingMode, expandByPixel, guarded excludeStrokes).

layer_setLayerOrderB

Inspect or keyframe Animated Layer Order (GroupLayer:EnableLayerOrdering / GetLayerOrdering) on a Group/Bone/Switch layer at any frame (works inside Smart Bone Actions).

layer_convertTypeA

Convert a Group, Bone, or Switch layer to another container type preserving children, transforms, animation channels, masking, Layer Order, and Layer Comp membership.

layer_groupSelectionC

Wrap multiple existing layers into a new Group, Bone, or Switch container preserving stacking order, with optional masking preset.

layer_followPathC

Attach/detach a layer along a VectorLayer curve with optional Alt-bend (bendLayer) and keyframeable percent progress.

layer_referenceManageC

Inspect status, break link, sync/update (MohoLayerRefSyncOptions), mark outdated, or import external Moho Referenced Layers.

layer_renderImageA

Render a single isolated layer directly to a transparent PNG via Moho 14.4 RenderLayerImage and return its world bounds and image.

switch_setActiveC

Inspect or keyframe active child layers on a SwitchLayer (lip-sync, hand/prop swaps, Frame-by-Frame mode, vector sub-layer interpolation).

fbf_manageA

Author Frame-by-Frame (FBF) animation on a SwitchLayer: list_timeline, add_blank_frame, duplicate_frame (new copy), clone_frame (reuse existing drawing), delete_frame, and push_frames (shift exposure timing).

particle_configureB

Inspect or configure Moho Pro ParticleLayer emission, velocity, direction, acceleration, damping, source dimensions, and simulation flags (read-only when no mutating fields are passed; returns full 18-field state).

bone_listB

List all bones in a BoneLayer with world head/tail positions, local transforms, parent links, IK targets, constraints, shy flag, and Moho 14 dynamics.

bone_createB

Create a new bone in a BoneLayer from world-space (headX/Y -> tailX/Y), geometry-snapped refs (headRef/tailRef), or parent-local (x/y, angleDeg, length).

bone_deleteB

Delete a bone by index or name from a BoneLayer.

bone_setTransformC

Set/keyframe a bone's position (x, y), angleDeg, scale, flipH/V, parentBoneId/Name, or targetBone/Name at a frame with optional interpolation.

bone_setPropertiesC

Update bone name, length (0 for Pin Bone), strength, offset, flipH/V, parentBoneId/Name, IK targetBone/Name, ignoredByIK, fixedAngle, shy, showLabel, or color tags.

bone_setConstraintsC

Configure bone angle limits, angle/pos/scale delayed control constraints (single bone or chainBoneIds/Names), squash&stretch, maxIKStretching, and arcSolver.

bone_setDynamicsC

Configure Moho Pro 14 Bone Dynamics physics (enabled, angle/pos/scale/wind flags, torque, spring, damping, 3-axis weights, plus optional global enableBoneDynamics).

bone_mirrorA

Duplicate and mirror a bone or bone subtree across an X/Y axis preserving hierarchy, constraints, dynamics, offsets, and remapped IK targets.

bone_freezePoseC

Freeze Pose (Ctrl+F) or Reset Pose at frame across all, selected, non-shy, or listed bones with optional keyframe interpolation.

bone_listGroupsC

List all Moho 14 Vitruvian Bone groups (M_BoneGroup) on a BoneLayer and their active bones.

bone_manageGroupC

Create, switch active sub-rig bone, add/remove bones, or delete Moho 14 Vitruvian Bone groups.

bone_setWindB

Configure Moho Pro 14 Wind and Gravity dynamics fields on a BoneLayer (supports UI percentage units via *Percent or raw internal units, plus keyframe interpolation).

physics_configureB

Inspect or configure Moho Pro 14 2D Physics on a Group/Bone layer (groupEnabled, gravity, useBakedPhysics, bake) and/or per-layer rigid-body MohoPhysicsOptions (read-only when no mutating fields are passed; returns full state including pivotOnOrigin, respawnInterval, and lifetime).

animation_getKeyframesB

Read all keyframes, interpolation, Bezier handles, color tags, and Separate Dimensions from layer, bone, wind/gravity, Vitruvian, switch, vector point/shape, layer order, follow-path, or camera channels.

animation_setKeyframesC

Batch-write multiple keyframes with Smooth/Linear/Ease/Step/Bezier (with handles)/Cycle/Bounce/Elastic/Stagger/Hold/ColorTag interpolation onto any supported Moho 14.4 animation channel (including Separate Dimensions).

animation_deleteKeyframeB

Delete a single keyframe (frame > 0) from any supported Moho 14.4 animation channel.

animation_createCycleB

Build a seamless multi-channel animation cycle across [startFrame, endFrame]: ensures boundary keys at start/end, copies startFrame to endFrame when needed, and sets Cycle interpolation targeting startFrame + 1 (Frame 2 when starting at Frame 1) to avoid the double-frame stutter.

animation_retimeB

Scoped keyframe retiming across explicit targets/channels (never accidentally shifts untouched scene layers): push_frames, scale_range (Alt+Drag), relative_offset, and clear_range (always protects frame 0).

animation_tweenB

Generate a weighted breakdown (0..1), anticipation (weight < 0), or overshoot (weight > 1) keyframe at frame interpolated between surrounding keyframes across one or more channels.

timeline_markersC

List, add, update, delete, or clear document-wide (MohoDoc.fTimelineMarkers) or layer-specific (MohoLayer.fTimelineMarkers) timeline markers with color tags.

action_listB

List Regular and Smart Bone Actions on a layer (including isSmartBone, angleSweepDeg, and is360SmartBone flags) and report the active layer/document action.

action_activateB

Enter or create an Action / Smart Bone Action on a layer (synced with SetCurrentDocAction; pass '' to return to Mainline).

action_createSmartBoneB

Create a standard or full +/-360-degree Smart Bone Action (exact unwrapped zeroAngle +/- 2*pi, 96-frame default duration, linear bone keys, optional Frame-0-to-end mirroring across child layers).

action_manageC

Insert (copy or reference), rename, delete, or blend Actions on a layer.

camera_getB

Read camera track, zoom, rollDeg, and panTiltDeg at a given frame.

camera_setKeyframeC

Set camera track, zoom, rollDeg, and/or panTiltDeg keyframes with optional interpolation.

mesh_getDataC

Inspect points (with width, opacity, colorDrift, curvature, Point Colors, worldPos, handles), curves (with segment visibility and stroke exposure), shapes (Soft Edge, Gradients, Styles, Brushes, Liquid Shape clusters), and warp/curver flags.

mesh_createShapeC

Create a vector shape from new points, an oval/rect primitive, or existing pointIds (with optional holes, Soft Edge, Gradients, Saved Styles, and Brushes).

mesh_editShapeC

Edit, keyframe, restyle, reorder, or delete an existing vector shape (fill/stroke color & alpha, Soft Edge, Gradients + handles, Style 1/2, Brushes, stacking order).

mesh_editPointsC

Move/animate mesh points, adjust per-point width/opacity/colorDrift, curvature, Point Colors, asymmetric Bezier handles, or point bone bindings.

mesh_editTopologyC

Edit vector topology and curves: split_segments, insert_point, weld_points, connect_and_create, hide_edge, delete_points, mirror_points, merge_shapes, triangulate, and stroke_exposure.

mesh_createSmartWarpB

Create a live Moho 14 Smart Warp (mode='warp'), Quad Smart Warp (mode='quad'), or Curver (mode='curver', with multi-curve appendToLayerId, curverWidth, guarded compressible, and auto bone-binding inheritance).

mesh_setCurveProfileC

Attach, configure repeat/animated offset, or detach a Curve Profile on a VectorLayer curve (lm_curve_profile.lua).

mesh_liquidShapesB

Author Moho 14 Liquid Shapes boolean clusters: configure fComboMode (normal, add, subtract, intersect/clip)/fComboBlend (set_combo), merge via combine, or bake into one vector shape via bake.

style_manageC

Manage document Saved Styles (list, create, update, delete, delete_unused, new_from_shape), Moho 14 Brushes (list_brushes, drift/spacing/mergedAlpha), Soft Edge, Gradients, and Smart Line Boil.

batch_executeA

Execute up to 100 Moho Studio MCP operations atomically inside one IPC round-trip, one Undo step, and one coalesced UI refresh.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
Moho Studio MCP GuideQuick operational guide for live Moho Pro 14.4 automation (points to moho-studio://playbook)
Moho Pro 14.4 Master Playbook15 distilled Moho Pro 14.4 rigging, vector shading, animation, and glTF master rules plus Lua engine invariants

TDQS

C2.9/5.0

Scored across 78 tools

Disambiguation3/5

Prefix-grouped naming (layer_, bone_, mesh_, animation_) keeps most tools distinct, and the descriptions are detailed. But several clusters blur boundaries: layer_reparent vs layer_setLayerOrder vs layer_groupSelection vs layer_convertType, animation_setKeyframes vs animation_tween/retime/createCycle, and mesh_editShape vs mesh_setCurveProfile/liquidShapes all require careful reading to pick correctly.

Naming Consistency4/5

Nearly all tools follow a consistent prefix_verbNoun pattern (layer_reparent, bone_create, camera_get, document_save), with multi-word nouns camelCased predictably. Minor inconsistencies like mesh_setCurveProfile vs pure-lowercase layer_reparent are readable but slightly uneven.

Tool Count2/5

78 tools is very heavy even for a full animation package; many operations (e.g. the many bone_set* variants, animation_*, mesh_edit*) could be consolidated into parameterized tools. The grouping helps, but the surface is well beyond a typical 15-tool ceiling.

Completeness4/5

Coverage spans documents, layers, bones, mesh, animation, actions, camera, physics, particles, styles, rendering, export, and batch execution — thorough lifecycle support. Gaps like text-layer property editing, audio management, and dedicated switch-child manipulation are minor workarounds.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues