### Development setup and checks Source: https://github.com/healkeiser/fxhoudinimcp/blob/main/README.md Install the package in editable mode with dev dependencies, then run linting, unit tests, integration tests, and code generation tools. Requires a Houdini license seat for the live integration suite; HYTHON selects the build. ```shell pip install -e ".[dev]" ``` ```shell ruff check . && ruff format --check . ``` ```shell pytest # unit tests, hou mocked ``` ```shell python tests/run_integration.py # live suite in hython; needs a license seat, HYTHON picks the build ``` ```shell python tests/integration/gui_session_check.py # against a running GUI Houdini ``` ```shell python tools/gen_node_versions.py # add this machine's Houdini builds to the node table ``` ```shell python tools/gen_node_domains.py # after gen_node_versions ``` ```shell python tools/gen_required_commands.py ``` ```shell python tools/gen_prompt_vocab.py # node tables in the prompts; edit tools/prompt_vocab.json, not the markdown ``` -------------------------------- ### Install fxhoudinimcp and register with Houdini and MCP clients Source: https://github.com/healkeiser/fxhoudinimcp/blob/main/README.md Install the package and run the installer. Requires Houdini 20.5+ and Python 3.10+ outside Houdini. The installer writes a Houdini package file and registers the server with detected MCP clients. ```shell pip install fxhoudinimcp python -m fxhoudinimcp install ``` -------------------------------- ### Build documentation locally with Zensical Source: https://github.com/healkeiser/fxhoudinimcp/blob/main/docs/installation.md Install documentation dependencies and generate technical docs. The first command installs the required packages, including a fork of `mike` used by Zensical for versioned deploys. The second command writes the Technical section into `docs/technical/` (gitignored) from the Python package. ```shell pip install -r requirements.docs.txt python docs/.scripts/generate_technical_docs.py python -m zensical serve ``` -------------------------------- ### Usage: Example prompts for the MCP assistant Source: https://github.com/healkeiser/fxhoudinimcp/blob/main/README.md Example prompts to send to the MCP assistant for creating procedural geometry, simulations, USD scenes, or debugging cooking errors. Each tool call is one undo step and preserves the user's selection, viewport camera, and network editor state. ```text "Create a procedural rock generator with mountain displacement" ``` ```text "Set up a Pyro simulation with a sphere source" ``` ```text "Build a USD scene with a camera, dome light, and ground plane" ``` ```text "Debug why my scene has cooking errors" ``` -------------------------------- ### Install development dependencies Source: https://github.com/healkeiser/fxhoudinimcp/blob/main/CONTRIBUTING.md Install the package with development dependencies using pip. Required for local development and testing. ```shell pip install -e ".[dev]" ``` -------------------------------- ### Print and write Houdini package file Source: https://github.com/healkeiser/fxhoudinimcp/blob/main/README.md Print the package file for the current install, or write it to a specific packages directory. The path must end in /houdini. ```shell fxhoudinimcp houdini-package fxhoudinimcp houdini-package --write "~/Documents/houdini22.0/packages" ``` -------------------------------- ### Example commit titles Source: https://github.com/healkeiser/fxhoudinimcp/blob/main/CONTRIBUTING.md Examples of well-formed commit titles that follow the Conventional Commits format. These become the commit message and changelog line after squash-merge. ```text fix(lops): list_usd_prims treats the root as a path, not a string prefix ``` ```text feat(parameters): link_parameters writes chs() for a String destination ``` -------------------------------- ### Run integration tests with Houdini Source: https://github.com/healkeiser/fxhoudinimcp/blob/main/CONTRIBUTING.md Run the live integration test suite when Houdini is installed. Useful for changes touching handlers. ```shell python tests/run_integration.py ``` -------------------------------- ### Run SideFX default crowd shelf tool Source: https://github.com/healkeiser/fxhoudinimcp/blob/main/python/fxhoudinimcp/prompts/markdown/workflows/crowds.md Use this to build the complete documented crowd setup in one call, including mocapbiped1 agents, a crowdsource object with 1000 agents, and a crowd_sim DOP network with stand, walk, and ragdoll states. Run as a Ctrl+click from the Crowds > Simulate shelf tool. Verified simulating on Houdini 22.0. ```python run_shelf_tool("object_crowdsolver") ``` -------------------------------- ### Houdini package file for loading from a clone Source: https://github.com/healkeiser/fxhoudinimcp/blob/main/README.md Write this package file yourself to load the plugin from a clone. The path must end in /houdini. ```json { "env": [ { "FXHOUDINIMCP": "C:/Users/you/code/fxhoudinimcp/houdini" } ], "path": "$FXHOUDINIMCP" } ``` -------------------------------- ### Non-interactive TOP cooking with topcook.py Source: https://github.com/healkeiser/fxhoudinimcp/blob/main/python/fxhoudinimcp/prompts/markdown/workflows/tops.md Run a TOP network non-interactively from the command line using hython. Use this before building a farm wrapper by hand. ```bash hython $HHP/pdgjob/topcook.py --hip scene.hip --toppath /tasks/topnet1 ``` -------------------------------- ### Uninstall fxhoudinimcp and remove package and client entries Source: https://github.com/healkeiser/fxhoudinimcp/blob/main/README.md Run the uninstaller before pip uninstall to remove the Houdini package file and client registration. Otherwise they remain and fail silently. ```shell python -m fxhoudinimcp uninstall pip uninstall fxhoudinimcp ``` -------------------------------- ### Troubleshooting: Enable Houdini package verbose logging Source: https://github.com/healkeiser/fxhoudinimcp/blob/main/README.md Set the HOUDINI_PACKAGE_VERBOSE environment variable to 1 to see package loading details, including 'Loading:' and 'Processing:' lines for fxhoudinimcp.json. Use this when Houdini skips the package file without explanation. ```bash HOUDINI_PACKAGE_VERBOSE=1 ``` -------------------------------- ### MCP client config entry for fxhoudini Source: https://github.com/healkeiser/fxhoudinimcp/blob/main/README.md File-based clients take this entry in their config file. Replace the command with the absolute path to the Python that has fxhoudinimcp. ```json { "mcpServers": { "fxhoudini": { "command": "C:\\Program Files\\Python311\\python.exe", "args": ["-m", "fxhoudinimcp"] } } } ``` -------------------------------- ### Run CI checks locally Source: https://github.com/healkeiser/fxhoudinimcp/blob/main/CONTRIBUTING.md Run the same checks as CI: linting, formatting, unit tests (excluding integration), and prompt vocabulary validation. Run these before pushing to avoid CI failures. ```shell ruff check . ``` ```shell ruff format --check . ``` ```shell pytest tests -m "not integration" -q ``` ```shell python tools/gen_prompt_vocab.py --check ``` -------------------------------- ### Set per-command timeout overrides Source: https://github.com/healkeiser/fxhoudinimcp/blob/main/docs/how-to/configuration.md Override the default 120-second command timeout for specific commands by setting FXHOUDINIMCP_TIMEOUT_, where the command's dotted name is uppercased with dots as underscores. These variables go in the package file. ```shell FXHOUDINIMCP_TIMEOUT_TOPS_COOK_TOP_NODE=900 FXHOUDINIMCP_TIMEOUT_RENDERING_START_RENDER=1800 ``` -------------------------------- ### Conventional Commits format Source: https://github.com/healkeiser/fxhoudinimcp/blob/main/CONTRIBUTING.md Commit and pull request titles must follow the Conventional Commits specification. The format is [optional scope][!]: . ```text [optional scope][!]: ```