Skip to content

Hot Reload API

Generic skill hot-reload support for any DCC adapter (requires dcc-mcp-core >= 0.12.24).

Monitors skill directories for changes and automatically reloads affected skills without requiring a server restart. DCC-agnostic.

Exported symbols: DccSkillHotReloader

DccSkillHotReloader

Constructor

ParameterTypeDescription
dcc_namestrShort DCC identifier for log messages
serverAnyDCC MCP server instance (must expose _server with list_skills() and load_skill())

Properties

PropertyTypeDescription
is_enabledboolWhether hot-reload is currently active
reload_countintTotal number of reload events triggered
watched_pathslist[str]Directories currently being monitored

Methods

MethodReturnsDescription
enable(skill_paths, debounce_ms=300)boolEnable hot-reload for given directories
disable()NoneDisable hot-reload and clean up the SkillWatcher
reload_now()intManually trigger a reload; returns number of skills reloaded
get_stats()dictReturn {enabled, watched_paths, reload_count}
python
from dcc_mcp_core import DccSkillHotReloader

reloader = DccSkillHotReloader(dcc_name="blender", server=self)
reloader.enable(["/path/to/skills"], debounce_ms=300)
# ... files are now monitored, skills reload automatically ...
reloader.disable()

Released under the MIT License.