blib-houdini-bridge
Enables AI assistants and CLI tools to read and control Houdini scenes with a safety model that separates read and write operations.
README
Blib Houdini Bridge
Blib Houdini Bridge lets Codex, MCP clients, CLI scripts, and similar local tools connect to Houdini and control a running scene in a safer, reviewable way.
It runs a small local bridge inside Houdini, then exposes that bridge through:
- a Houdini shelf tool
- a command-line client
- an MCP adapter for Codex-style tool use
This repository contains only the standalone bridge. It does not include the full Blib Tools production toolkit.
Fast Path: Connect Codex To Houdini
If your goal is simply "let Codex read and control Houdini", do this:
- Install this repo:
python -m pip install -e .
- Install the Houdini package:
python tools\install_houdini_package.py
Expected result: it writes Blib_Houdini_Bridge.json into a Houdini
packages folder and prints Start Houdini, open the Blib Bridge shelf, and click Bridge.
If it cannot find a Houdini packages folder, it writes
Blib_Houdini_Bridge.local.json in this repo. Copy that file into a Houdini
packages folder such as Documents\houdini20.5\packages\, then rename it to
Blib_Houdini_Bridge.json.
-
Start Houdini, open the
Blib Bridgeshelf, and clickBridge. -
Print the Codex MCP config:
python scripts\cli\blib_hou_mcp.py --print-codex-config
Paste the printed TOML into:
%UserProfile%\.codex\config.toml
Restart Codex or open a new Codex session. Then ask Codex:
Use the blib-houdini-bridge MCP server to read houdini://adapter/status,
then take a read-only scene snapshot of /obj.
That is the shortest path. The sections below explain what each step is doing.
If something gets stuck, jump to Troubleshooting.
What You Can Do With It
- Let Codex or another MCP-capable assistant read the current Houdini scene.
- Run simple CLI commands such as status checks and scene snapshots.
- Keep Houdini-side edits gated behind explicit edit mode.
- Review, validate, run, and verify controlled workflows instead of blindly executing changes.
- Use the bridge as a local control layer for your own Houdini automation tools.
The bridge is local-first: it binds to 127.0.0.1, uses a per-session token,
and keeps read operations separate from write operations.
Install
From this bridge/ directory, install the CLI entry points:
python -m pip install -e .
Install the Houdini package for your machine:
python tools\install_houdini_package.py
If you want to choose the packages folder yourself:
python tools\install_houdini_package.py --packages-dir %UserProfile%\Documents\houdini20.5\packages
The checked-in Blib_Houdini_Bridge.json is only a template. Use
tools\install_houdini_package.py or tools\write_houdini_package.py so the
bridge path points at your own checkout.
If you prefer to generate a local package file and copy it yourself:
python tools\write_houdini_package.py --output Blib_Houdini_Bridge.local.json
Start Houdini
- Start Houdini.
- Open the
Blib Bridgeshelf. - Click
Bridgeto start the local server. - Keep edit mode off until you intentionally want a tool to write to the scene.
After the shelf server is running, check the connection:
python scripts\cli\blib_hou.py doctor
python scripts\cli\blib_hou.py scene-snapshot --path /obj
python scripts\cli\blib_hou_mcp.py --status
If those commands work, the bridge is ready for CLI use and MCP clients.
Use With Codex Or Similar Tools
The MCP adapter is what lets Codex talk to Houdini. The connection has three pieces:
- Houdini runs the
Blib Bridgeshelf server. - Codex starts
scripts\cli\blib_hou_mcp.pyas a local MCP server. - That MCP server reads Houdini's current bridge session and exposes Houdini tools to Codex.
Start with Houdini already open and the shelf server running. Then check the MCP adapter from this repo:
python scripts\cli\blib_hou_mcp.py --status
If readiness.status is ready or degraded, the MCP adapter can see the
bridge.
Add It To Codex
Codex uses TOML config. This repo can print the Codex-ready block for you:
python scripts\cli\blib_hou_mcp.py --print-codex-config
Paste the output into your Codex config file:
%UserProfile%\.codex\config.toml
It will look like this:
[mcp_servers.blib-houdini-bridge]
command = "C:\\Path\\To\\python.exe"
args = [
"C:\\Path\\To\\houdini-mcp-cli\\scripts\\cli\\blib_hou_mcp.py",
]
Restart Codex, or start a new Codex session. If you use Codex CLI, you can also check whether Codex has loaded the server:
codex mcp list
In Codex, ask it to check the Houdini MCP connection:
Use the blib-houdini-bridge MCP server to read houdini://adapter/status,
then take a read-only scene snapshot of /obj.
If the connection is working, Codex should see tools and resources with names such as:
houdini://adapter/statushoudini://scene/currenthoudini_scene_snapshothoudini_node_infohoudini_edit_mode
For other MCP clients that expect JSON, use:
python scripts\cli\blib_hou_mcp.py --print-config
For details about the MCP surface, see docs/HOUDINI_MCP.md.
Safety Model
The bridge is designed to make external control visible and reversible:
- read commands work without enabling edit mode
- write commands require Houdini-side edit mode
- workflow commands support review, validation, execution, and verification
- session tokens are local and should not be pasted into logs or prompts
For release checks, controlled handoff, and deeper validation notes, see docs/BRIDGE_ONLY_RELEASE.md.
Troubleshooting
If Houdini does not show the Blib Bridge shelf:
- Run
python tools\install_houdini_package.pyagain and check the printed package path. - Confirm the package file is named
Blib_Houdini_Bridge.jsoninside a Houdinipackagesfolder. - Restart Houdini after installing the package.
If python scripts\cli\blib_hou.py doctor says no session was found:
- Start Houdini.
- Open the
Blib Bridgeshelf. - Click
Bridge. - Rerun the
doctorcommand.
If Codex does not list the MCP server:
- Confirm the TOML from
python scripts\cli\blib_hou_mcp.py --print-codex-configwas pasted into%UserProfile%\.codex\config.toml. - Restart Codex or open a new Codex session.
- If you use Codex CLI, run
codex mcp list.
If Codex can see the server but cannot read the scene:
- Make sure Houdini is still running.
- Click
Bridgeagain in Houdini to refresh the local bridge session. - Run
python scripts\cli\blib_hou_mcp.py --statusand checkreadiness.status.
More Docs
中文说明
Blib Houdini Bridge 可以让 Codex、MCP 客户端、CLI 脚本,或者类似的本地工具 连接到正在运行的 Houdini,并以更可控、可检查的方式读取和操作场景。
它会在 Houdini 里启动一个本地 bridge,然后通过三种方式对外使用:
- Houdini shelf 工具
- 命令行客户端
- 面向 Codex 这类工具的 MCP 适配器
这个仓库只包含独立的 bridge,不包含完整的 Blib Tools 生产工具集。
最快路径:让 Codex 连上 Houdini
如果你的目标只是“让 Codex 能读取和控制 Houdini”,先按这 4 步走:
- 安装这个仓库:
python -m pip install -e .
- 安装 Houdini package:
python tools\install_houdini_package.py
预期结果:脚本会把 Blib_Houdini_Bridge.json 写入 Houdini 的 packages 目录,
并提示你启动 Houdini、打开 Blib Bridge shelf、点击 Bridge。
如果脚本找不到 Houdini packages 目录,它会在当前仓库生成
Blib_Houdini_Bridge.local.json。把这个文件复制到类似
Documents\houdini20.5\packages\ 的目录中,并改名为
Blib_Houdini_Bridge.json。
-
启动 Houdini,打开
Blib Bridgeshelf,点击Bridge。 -
打印 Codex 可直接使用的 MCP 配置:
python scripts\cli\blib_hou_mcp.py --print-codex-config
把输出的 TOML 粘贴到:
%UserProfile%\.codex\config.toml
重启 Codex,或者打开一个新的 Codex 会话。然后在 Codex 里问:
Use the blib-houdini-bridge MCP server to read houdini://adapter/status,
then take a read-only scene snapshot of /obj.
这就是最短路径。后面的内容只是解释每一步在做什么。
它可以做什么
- 让 Codex 或其他支持 MCP 的助手读取当前 Houdini 场景。
- 用 CLI 命令检查 bridge 状态、读取 scene snapshot。
- 把写入操作限制在 Houdini 明确开启 edit mode 之后。
- 对复杂操作先 review、validate,再执行和验证结果。
- 作为你自己的 Houdini 自动化工具的本地控制层。
bridge 默认只监听 127.0.0.1,每次会话都有 token,并且把读取和写入操作分开。
安装
在 bridge/ 目录中安装 CLI 入口:
python -m pip install -e .
为当前机器生成 Houdini package 文件:
python tools\install_houdini_package.py
如果你想手动指定 packages 目录:
python tools\install_houdini_package.py --packages-dir %UserProfile%\Documents\houdini20.5\packages
仓库里的 Blib_Houdini_Bridge.json 只是模板。正式安装前,请用
tools\install_houdini_package.py 或 tools\write_houdini_package.py 生成指向你
本机路径的 package 文件。
如果你更想先生成本地 package 文件,再自己复制:
python tools\write_houdini_package.py --output Blib_Houdini_Bridge.local.json
启动 Houdini
- 启动 Houdini。
- 打开
Blib Bridgeshelf。 - 点击
Bridge,启动本地服务。 - 在确实需要外部工具写入场景之前,保持 edit mode 关闭。
服务启动后,可以用下面的命令确认连接状态:
python scripts\cli\blib_hou.py doctor
python scripts\cli\blib_hou.py scene-snapshot --path /obj
python scripts\cli\blib_hou_mcp.py --status
这些命令能正常返回,就说明 CLI 和 MCP 客户端已经可以使用这个 bridge。
配合 Codex 或类似工具使用
MCP 适配器就是让 Codex 连接 Houdini 的那一层。整个链路是这样的:
- Houdini 里运行
Blib Bridgeshelf server。 - Codex 在本地启动
scripts\cli\blib_hou_mcp.py这个 MCP server。 - 这个 MCP server 读取当前 Houdini bridge session,然后把 Houdini 工具暴露给 Codex。
先确认 Houdini 已经打开,并且 shelf 上的 Bridge 已经启动。然后在这个仓库里运行:
python scripts\cli\blib_hou_mcp.py --status
如果返回里的 readiness.status 是 ready 或 degraded,说明 MCP 适配器已经能
看到 Houdini bridge。
添加到 Codex
Codex 使用 TOML 配置。这个仓库可以直接打印 Codex 可用的配置块:
python scripts\cli\blib_hou_mcp.py --print-codex-config
把输出粘贴到 Codex 配置文件:
%UserProfile%\.codex\config.toml
它看起来会像这样:
[mcp_servers.blib-houdini-bridge]
command = "C:\\Path\\To\\python.exe"
args = [
"C:\\Path\\To\\houdini-mcp-cli\\scripts\\cli\\blib_hou_mcp.py",
]
然后重启 Codex,或者开一个新的 Codex 会话。如果你用的是 Codex CLI,也可以用下面 的命令确认 Codex 是否加载到了这个 server:
codex mcp list
在 Codex 里可以这样问:
Use the blib-houdini-bridge MCP server to read houdini://adapter/status,
then take a read-only scene snapshot of /obj.
如果连接成功,Codex 应该能看到这些资源或工具:
houdini://adapter/statushoudini://scene/currenthoudini_scene_snapshothoudini_node_infohoudini_edit_mode
其他使用 JSON 配置的 MCP 客户端可以用:
python scripts\cli\blib_hou_mcp.py --print-config
MCP 接口细节见 docs/HOUDINI_MCP.md。
安全设计
这个 bridge 的目标不是让外部工具随便改场景,而是让控制过程尽量可见、可审查:
- 读取命令不需要开启 edit mode
- 写入命令需要在 Houdini 侧明确开启 edit mode
- 工作流命令支持 review、validate、run、verify
- session token 只用于本地连接,不要贴到日志或提示词里
发布检查、交付流程和更完整的验证说明见 docs/BRIDGE_ONLY_RELEASE.md。
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.