auvrynt 1.0.2 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +366 -233
- package/addons/auvrynt_bridge/auvrynt_bridge.gd +500 -0
- package/addons/auvrynt_bridge/plugin.cfg +7 -0
- package/bin/auvrynt-launcher.cjs +77 -0
- package/dist/artifact-registry.js +1 -0
- package/dist/aseprite-tools.js +1 -0
- package/dist/auth/connection-registry.js +145 -0
- package/dist/auth/connection-status.js +176 -0
- package/dist/auth/oauth-provider.js +617 -0
- package/dist/auth/room-registry.js +131 -0
- package/dist/auth/session-registry.js +531 -0
- package/dist/background-lifecycle.js +1 -0
- package/dist/blender-client.js +1 -109
- package/dist/blender-tools.js +1 -930
- package/dist/browser-stability.js +1 -0
- package/dist/cli/commands/help-command.js +10 -0
- package/dist/cli/commands/init-command.js +190 -0
- package/dist/cli/commands/integration-commands.js +88 -0
- package/dist/cli/commands/serve-command.js +83 -0
- package/dist/cli/commands/setup-command.js +81 -0
- package/dist/cli/commands/status-commands.js +166 -0
- package/dist/cli/commands/tunnel-command.js +127 -0
- package/dist/cli/commands/user-config-commands.js +105 -0
- package/dist/cli/dashboard-actions.js +516 -0
- package/dist/cli/dashboard-native-actions.js +282 -0
- package/dist/cli/foreground-server.js +270 -0
- package/dist/cli/instance-control.js +21 -0
- package/dist/cli/instance-lock.js +123 -0
- package/dist/cli/integration-bootstrap.js +206 -0
- package/dist/cli/lifecycle-manager.js +493 -0
- package/dist/cli/runtime-support.js +74 -0
- package/dist/cli/serena-detected-default.js +27 -0
- package/dist/cli/tunnel-health-monitor.js +182 -0
- package/dist/cli.js +82 -739
- package/dist/config.js +1 -243
- package/dist/connection-registry.js +1 -73
- package/dist/connection-status.js +1 -139
- package/dist/control-retry.js +1 -0
- package/dist/crash-recovery.js +1 -0
- package/dist/db/client.js +16 -3
- package/dist/db/schema.js +30 -0
- package/dist/dotnet-tools.js +1 -223
- package/dist/git-worktrees.js +1 -134
- package/dist/git.js +1 -41
- package/dist/godot-animation-tilemap.js +1 -82
- package/dist/godot-csharp-build.js +1 -93
- package/dist/godot-csharp-project.js +1 -157
- package/dist/godot-csharp-runner.js +1 -146
- package/dist/godot-csharp-semantic.js +1 -161
- package/dist/godot-csharp-validate.js +1 -71
- package/dist/godot-dotnet-env.js +1 -169
- package/dist/godot-editor-bridge.js +1 -140
- package/dist/godot-gdscript.js +1 -824
- package/dist/godot-project-settings.js +1 -223
- package/dist/godot-runtime-testing.js +1 -249
- package/dist/godot-tools.js +1 -183
- package/dist/http-rate-limit.js +1 -0
- package/dist/http-server-hardening.js +1 -0
- package/dist/image-tools.js +1 -157
- package/dist/infrastructure/command-reference.js +32 -0
- package/dist/infrastructure/config.js +424 -0
- package/dist/infrastructure/context7-auth.js +55 -0
- package/dist/infrastructure/http-rate-limit.js +42 -0
- package/dist/infrastructure/http-server-hardening.js +23 -0
- package/dist/infrastructure/integration-queue.js +46 -0
- package/dist/infrastructure/logger.js +129 -0
- package/dist/infrastructure/mcp-event-store.js +103 -0
- package/dist/infrastructure/ngrok-auth-pool.js +208 -0
- package/dist/infrastructure/request-context.js +14 -0
- package/dist/infrastructure/shutdown.js +37 -0
- package/dist/infrastructure/sse-heartbeat.js +47 -0
- package/dist/infrastructure/tool-capabilities.js +67 -0
- package/dist/infrastructure/tool-result-budget.js +175 -0
- package/dist/infrastructure/user-config.js +167 -0
- package/dist/integration-discovery.js +1 -98
- package/dist/integration-queue.js +1 -0
- package/dist/integrations/agent-reach/agent-reach-tools.js +196 -0
- package/dist/integrations/agent-reach/native-channels.js +468 -0
- package/dist/integrations/aseprite/aseprite-analysis-tools.js +368 -0
- package/dist/integrations/aseprite/aseprite-editing-tools.js +647 -0
- package/dist/integrations/aseprite/aseprite-live-tools.js +297 -0
- package/dist/integrations/aseprite/aseprite-safety-tools.js +594 -0
- package/dist/integrations/aseprite/aseprite-specialized-tools.js +289 -0
- package/dist/integrations/aseprite/aseprite-tools.js +837 -0
- package/dist/integrations/blender/blender-catalog-mesh.js +593 -0
- package/dist/integrations/blender/blender-catalog-object.js +906 -0
- package/dist/integrations/blender/blender-catalog-scene.js +266 -0
- package/dist/integrations/blender/blender-catalog-select.js +581 -0
- package/dist/integrations/blender/blender-catalog-stubs.js +7512 -0
- package/dist/integrations/blender/blender-catalog.js +165 -0
- package/dist/integrations/blender/blender-client.js +105 -0
- package/dist/integrations/blender/blender-tools.js +2243 -0
- package/dist/integrations/context7/context7-tools.js +106 -0
- package/dist/integrations/dotnet/dotnet-tools.js +195 -0
- package/dist/integrations/godot/godot-animation-tilemap.js +74 -0
- package/dist/integrations/godot/godot-csharp-build.js +91 -0
- package/dist/integrations/godot/godot-csharp-project.js +155 -0
- package/dist/integrations/godot/godot-csharp-runner.js +118 -0
- package/dist/integrations/godot/godot-csharp-semantic.js +146 -0
- package/dist/integrations/godot/godot-csharp-validate.js +71 -0
- package/dist/integrations/godot/godot-dotnet-env.js +134 -0
- package/dist/integrations/godot/godot-editor-bridge.js +328 -0
- package/dist/integrations/godot/godot-gdscript.js +536 -0
- package/dist/integrations/godot/godot-project-settings.js +178 -0
- package/dist/integrations/godot/godot-runtime-testing.js +263 -0
- package/dist/integrations/godot/godot-tools.js +193 -0
- package/dist/integrations/images/image-tools.js +414 -0
- package/dist/integrations/images/png-codec.js +251 -0
- package/dist/integrations/images/view-image.js +99 -0
- package/dist/integrations/images/window-capture.js +148 -0
- package/dist/integrations/integration-discovery.js +185 -0
- package/dist/integrations/obsidian/obsidian-tools.js +205 -0
- package/dist/integrations/playwright/browser-session.js +516 -0
- package/dist/integrations/playwright/browser-stability.js +36 -0
- package/dist/integrations/playwright/playwright-runtime.js +105 -0
- package/dist/integrations/playwright/web-tools.js +504 -0
- package/dist/integrations/roblox/roblox-helpers.js +381 -0
- package/dist/integrations/roblox/roblox-studio-client.js +112 -0
- package/dist/integrations/roblox/roblox-tools.js +106 -0
- package/dist/integrations/serena/serena-manager.js +464 -0
- package/dist/integrations/serena/serena-tools.js +411 -0
- package/dist/logger.js +1 -76
- package/dist/mcp-event-store.js +1 -0
- package/dist/oauth-provider.js +1 -377
- package/dist/pi-tools.js +1 -81
- package/dist/playwright-runtime.js +1 -0
- package/dist/process/background-lifecycle.js +189 -0
- package/dist/process/control-retry.js +42 -0
- package/dist/process/crash-recovery.js +23 -0
- package/dist/process/processes.js +456 -0
- package/dist/processes.js +1 -218
- package/dist/request-context.js +1 -0
- package/dist/review-checkpoints.js +1 -142
- package/dist/room-registry.js +1 -0
- package/dist/roots.js +1 -53
- package/dist/search-discovery.js +1 -271
- package/dist/serena-manager.js +1 -443
- package/dist/serena-tools.js +1 -411
- package/dist/server/dashboard-page-styles.js +331 -0
- package/dist/server/dashboard-page.js +1509 -0
- package/dist/server/dashboard-routes.js +46 -0
- package/dist/server/dashboard.js +240 -0
- package/dist/server/http-helpers.js +30 -0
- package/dist/server/integration-profile-update.js +37 -0
- package/dist/server/mcp-policy.js +169 -0
- package/dist/server/mcp-server-factory.js +127 -0
- package/dist/server/mcp-tool-registrar.js +182 -0
- package/dist/server/openai-session-hint.js +14 -0
- package/dist/server/tool-groups.js +29 -0
- package/dist/server/tool-logging.js +33 -0
- package/dist/server/tool-registration-shared.js +59 -0
- package/dist/server/tools/aseprite-advanced-tools-registration.js +547 -0
- package/dist/server/tools/aseprite-tools-registration.js +213 -0
- package/dist/server/tools/blender-tools-registration.js +690 -0
- package/dist/server/tools/core-file-tools-registration.js +459 -0
- package/dist/server/tools/dotnet-godot-window-tools-registration.js +120 -0
- package/dist/server/tools/godot-csharp-tools-registration.js +252 -0
- package/dist/server/tools/godot-gdscript-tools-registration.js +189 -0
- package/dist/server/tools/process-project-tools-registration.js +155 -0
- package/dist/server/tools/roblox-tools-registration.js +514 -0
- package/dist/server/tools/web-image-tools-registration.js +326 -0
- package/dist/server/tools/workspace-lifecycle-tools-registration.js +130 -0
- package/dist/server/ui-assets.js +97 -0
- package/dist/server/workspace-analytics.js +92 -0
- package/dist/server.js +453 -2713
- package/dist/session-registry.js +1 -0
- package/dist/shutdown.js +1 -0
- package/dist/skills.js +1 -45
- package/dist/sse-heartbeat.js +1 -0
- package/dist/tool-capabilities.js +1 -0
- package/dist/tool-result-budget.js +1 -0
- package/dist/tools/pi-tools.js +81 -0
- package/dist/tunnels/cloudflare-tunnel.js +217 -0
- package/dist/tunnels/cloudflared-service.js +174 -0
- package/dist/tunnels/ngrok-tunnel.js +220 -0
- package/dist/tunnels/tunnel-manager.js +186 -0
- package/dist/tunnels/tunnel-types.js +1 -0
- package/dist/tunnels/tunnel-utils.js +62 -0
- package/dist/ui/.vite/manifest.json +9 -2487
- package/dist/ui/assets/heavy-payload-D42A9ceL.js +1 -0
- package/dist/ui/assets/lightweight-diff-Cv4g9Hdr.js +13 -0
- package/dist/ui/assets/review-payload-DKIg1cKF.js +1 -0
- package/dist/ui/assets/workspace-app-CeK3NhmB.css +1 -0
- package/dist/ui/assets/{workspace-app-C5QsE314.js → workspace-app-CkUXnpl4.js} +6 -6
- package/dist/ui/brand-theme.js +23 -0
- package/dist/ui/workspace-app.html +15 -15
- package/dist/user-config.js +1 -57
- package/dist/view-image.js +1 -104
- package/dist/web-tools.js +1 -200
- package/dist/window-capture.js +1 -74
- package/dist/workspace/artifact-registry.js +69 -0
- package/dist/workspace/git-worktrees.js +141 -0
- package/dist/workspace/git.js +42 -0
- package/dist/workspace/review-checkpoints.js +142 -0
- package/dist/workspace/roots.js +56 -0
- package/dist/workspace/search-discovery.js +264 -0
- package/dist/workspace/skills.js +45 -0
- package/dist/workspace/workspace-store.js +219 -0
- package/dist/workspace/workspaces.js +314 -0
- package/dist/workspace-store.js +1 -125
- package/dist/workspaces.js +1 -226
- package/docs/CREATOR_STORE_FREE_ASSETS.md +162 -0
- package/docs/DEVELOPMENT_TOOLS.md +136 -93
- package/docs/assets/auvrynt-icon.png +0 -0
- package/docs/assets/auvrynt-icon.svg +20 -0
- package/docs/chatgpt-coding-workflow.md +143 -143
- package/docs/configuration.md +156 -124
- package/docs/diagnostics.md +79 -0
- package/docs/gotchas.md +244 -202
- package/docs/multi-agent-and-long-projects.md +91 -0
- package/docs/security.md +138 -100
- package/docs/setup.md +171 -131
- package/docs/source-layout.md +60 -0
- package/extensions/auvrynt_bridge/auvrynt_bridge.lua +594 -0
- package/extensions/auvrynt_bridge/live_analysis.lua +181 -0
- package/extensions/auvrynt_bridge/live_animation.lua +134 -0
- package/extensions/auvrynt_bridge/live_commands.lua +24 -0
- package/extensions/auvrynt_bridge/live_common.lua +130 -0
- package/extensions/auvrynt_bridge/live_document.lua +78 -0
- package/extensions/auvrynt_bridge/live_drawing.lua +125 -0
- package/extensions/auvrynt_bridge/live_effects.lua +91 -0
- package/extensions/auvrynt_bridge/live_palette_template.lua +167 -0
- package/extensions/auvrynt_bridge/live_selection.lua +110 -0
- package/extensions/auvrynt_bridge/live_structure.lua +129 -0
- package/extensions/auvrynt_bridge/package.json +17 -0
- package/guides/ASEPRITE_AGENT_GUIDE.md +133 -0
- package/guides/BLENDER_AGENT_GUIDE.md +472 -0
- package/guides/GODOT_AGENT_GUIDE.md +298 -0
- package/guides/PROJECT_ROUTER.md +165 -0
- package/guides/ROBLOX_AGENT_GUIDE.md +75 -0
- package/guides/SOFTWARE_AGENT_GUIDE.md +104 -0
- package/guides/WEB_AGENT_GUIDE.md +287 -0
- package/package.json +78 -70
- package/scripts/dev-server.mjs +121 -120
- package/scripts/live-tunnel-smoke.mjs +538 -0
- package/scripts/repo-hygiene.mjs +74 -0
- package/scripts/restart-after-crash.mjs +49 -0
- package/scripts/run-tests.mjs +166 -0
- package/dist/ui/assets/abap-CLvhMVsD.js +0 -1
- package/dist/ui/assets/actionscript-3--17pq3dv.js +0 -1
- package/dist/ui/assets/ada-C5qYipkI.js +0 -1
- package/dist/ui/assets/andromeeda-vGVdxbeo.js +0 -1
- package/dist/ui/assets/angular-html-BJqQFYI6.js +0 -1
- package/dist/ui/assets/angular-ts-CMJECO0Y.js +0 -1
- package/dist/ui/assets/apache-U0d_L8uA.js +0 -1
- package/dist/ui/assets/apex-CGTLDQj6.js +0 -1
- package/dist/ui/assets/apl-DWeXpBBr.js +0 -1
- package/dist/ui/assets/applescript-CCn79oCD.js +0 -1
- package/dist/ui/assets/ara-4CJ0cIlV.js +0 -1
- package/dist/ui/assets/asciidoc-DE70LPWp.js +0 -1
- package/dist/ui/assets/asm-Cmm7eHzH.js +0 -1
- package/dist/ui/assets/astro-CLbttLOq.js +0 -1
- package/dist/ui/assets/aurora-x-CDeNXAV0.js +0 -1
- package/dist/ui/assets/awk-BWXHIvNe.js +0 -1
- package/dist/ui/assets/ayu-dark-DluEY0Gj.js +0 -1
- package/dist/ui/assets/ayu-light-C3h-C4tm.js +0 -1
- package/dist/ui/assets/ayu-mirage-Bqwy1Gya.js +0 -1
- package/dist/ui/assets/ballerina-B7ZEbQpA.js +0 -1
- package/dist/ui/assets/bat-Bo4NYOV-.js +0 -1
- package/dist/ui/assets/beancount-D-usSTwE.js +0 -1
- package/dist/ui/assets/berry-DKpUyyne.js +0 -1
- package/dist/ui/assets/bibtex-Ci_nEsc7.js +0 -1
- package/dist/ui/assets/bicep-CUHmPFLl.js +0 -1
- package/dist/ui/assets/bird2-C2hNVINV.js +0 -1
- package/dist/ui/assets/blade-BOzY0P2V.js +0 -1
- package/dist/ui/assets/bsl-BkkzgIyY.js +0 -1
- package/dist/ui/assets/c-BG-8uJvh.js +0 -1
- package/dist/ui/assets/c3-CnJL0r0V.js +0 -1
- package/dist/ui/assets/cadence-CQ2zXKGN.js +0 -1
- package/dist/ui/assets/cairo-DLTphjLi.js +0 -1
- package/dist/ui/assets/catppuccin-frappe-3VR1Za6u.js +0 -1
- package/dist/ui/assets/catppuccin-latte-DwIHMF0Q.js +0 -1
- package/dist/ui/assets/catppuccin-macchiato-DYnBP6_5.js +0 -1
- package/dist/ui/assets/catppuccin-mocha-DYhrFGRu.js +0 -1
- package/dist/ui/assets/clarity-SemFz856.js +0 -1
- package/dist/ui/assets/clojure-DqKBuwfJ.js +0 -1
- package/dist/ui/assets/cmake-Bj61d0ZC.js +0 -1
- package/dist/ui/assets/cobol-I_17IuGe.js +0 -1
- package/dist/ui/assets/codeowners-C8r90Shi.js +0 -1
- package/dist/ui/assets/codeql-oeQT6MSM.js +0 -1
- package/dist/ui/assets/coffee-C0B8hmok.js +0 -1
- package/dist/ui/assets/common-lisp-Cv5bFMCO.js +0 -1
- package/dist/ui/assets/coq-BrsZFFmf.js +0 -1
- package/dist/ui/assets/cpp-DDJXt6Vs.js +0 -1
- package/dist/ui/assets/crystal-Bexqace6.js +0 -1
- package/dist/ui/assets/csharp-Ct8U2NOr.js +0 -1
- package/dist/ui/assets/css-DSQhw_9R.js +0 -1
- package/dist/ui/assets/csv-Dx-8-gkx.js +0 -1
- package/dist/ui/assets/cue-CE9AQfxI.js +0 -1
- package/dist/ui/assets/cypher-ClKdZ_lG.js +0 -1
- package/dist/ui/assets/d-qD-0Kul2.js +0 -1
- package/dist/ui/assets/dark-plus-Cs2F2srj.js +0 -1
- package/dist/ui/assets/dart-DkHntEIa.js +0 -1
- package/dist/ui/assets/dax-BkyTk9wS.js +0 -1
- package/dist/ui/assets/desktop-Dlh5hvp9.js +0 -1
- package/dist/ui/assets/diff-woXpYk--.js +0 -1
- package/dist/ui/assets/docker-IyjqRm3v.js +0 -1
- package/dist/ui/assets/dotenv-_5a1GRtc.js +0 -1
- package/dist/ui/assets/dracula-BHWKrbxM.js +0 -1
- package/dist/ui/assets/dracula-soft-5eyTD99u.js +0 -1
- package/dist/ui/assets/dream-maker-DW3nJb8Q.js +0 -1
- package/dist/ui/assets/edge-Z8YYkHOr.js +0 -1
- package/dist/ui/assets/elixir-CG9uKtAF.js +0 -1
- package/dist/ui/assets/elm-GfWG2IfT.js +0 -1
- package/dist/ui/assets/emacs-lisp-C9PiwqqW.js +0 -1
- package/dist/ui/assets/erb-xe89e73J.js +0 -1
- package/dist/ui/assets/erlang-Cphh6RMH.js +0 -1
- package/dist/ui/assets/everforest-dark-sB-x3p7T.js +0 -1
- package/dist/ui/assets/everforest-light-Df2xbC6M.js +0 -1
- package/dist/ui/assets/fennel-DQxkIbk2.js +0 -1
- package/dist/ui/assets/fish-BJitypiv.js +0 -1
- package/dist/ui/assets/fluent-C03EYrpw.js +0 -1
- package/dist/ui/assets/fortran-fixed-form-DEKoE2YW.js +0 -1
- package/dist/ui/assets/fortran-free-form-CYNrtFtB.js +0 -1
- package/dist/ui/assets/fsharp-D13ZGOAj.js +0 -1
- package/dist/ui/assets/gdresource-C0sCabJj.js +0 -1
- package/dist/ui/assets/gdscript-Cp2uCuqX.js +0 -1
- package/dist/ui/assets/gdshader-CBce3t8t.js +0 -1
- package/dist/ui/assets/genie-CV2tkWYe.js +0 -1
- package/dist/ui/assets/gherkin-DExj1W_8.js +0 -1
- package/dist/ui/assets/git-commit-BSykSTBG.js +0 -1
- package/dist/ui/assets/git-rebase-CoTL_uSE.js +0 -1
- package/dist/ui/assets/github-dark-C-LZuMrd.js +0 -1
- package/dist/ui/assets/github-dark-default-DXG-b-1a.js +0 -1
- package/dist/ui/assets/github-dark-dimmed-Bx1FflLF.js +0 -1
- package/dist/ui/assets/github-dark-high-contrast-B_tTalzw.js +0 -1
- package/dist/ui/assets/github-light-EUqPIrTm.js +0 -1
- package/dist/ui/assets/github-light-default-BXViO-2h.js +0 -1
- package/dist/ui/assets/github-light-high-contrast-B68TUdTA.js +0 -1
- package/dist/ui/assets/gleam-CSRkHgEL.js +0 -1
- package/dist/ui/assets/glimmer-js-DAn4UCSu.js +0 -1
- package/dist/ui/assets/glimmer-ts-Tjyi6Gh5.js +0 -1
- package/dist/ui/assets/glsl-CtTDZoqR.js +0 -1
- package/dist/ui/assets/gn-ilITqXS6.js +0 -1
- package/dist/ui/assets/gnuplot-7GGW24-e.js +0 -1
- package/dist/ui/assets/go-BJwz_mda.js +0 -1
- package/dist/ui/assets/graphql-D5gcC_Jk.js +0 -1
- package/dist/ui/assets/groovy-CacY0gHj.js +0 -1
- package/dist/ui/assets/gruvbox-dark-hard-C820rvS2.js +0 -1
- package/dist/ui/assets/gruvbox-dark-medium-BPjhmG05.js +0 -1
- package/dist/ui/assets/gruvbox-dark-soft-MrdJrrXF.js +0 -1
- package/dist/ui/assets/gruvbox-light-hard-BC_s9l72.js +0 -1
- package/dist/ui/assets/gruvbox-light-medium-BAWPOn9u.js +0 -1
- package/dist/ui/assets/gruvbox-light-soft-BSMLrYjP.js +0 -1
- package/dist/ui/assets/hack-BJXY27dt.js +0 -1
- package/dist/ui/assets/haml-BLfFoZf7.js +0 -1
- package/dist/ui/assets/handlebars-Dw6CWkvN.js +0 -1
- package/dist/ui/assets/haskell-D8IpX4py.js +0 -1
- package/dist/ui/assets/haxe-OTjmBuCE.js +0 -1
- package/dist/ui/assets/hcl-Dh228itO.js +0 -1
- package/dist/ui/assets/heavy-payload-Dcg0-F-S.js +0 -4
- package/dist/ui/assets/hjson-CxZEssPk.js +0 -1
- package/dist/ui/assets/hlsl-Cvrh5tZx.js +0 -1
- package/dist/ui/assets/horizon-CE9ld1lL.js +0 -1
- package/dist/ui/assets/horizon-bright-Br1oVSNq.js +0 -1
- package/dist/ui/assets/houston-CsvMBhTu.js +0 -1
- package/dist/ui/assets/html-CAcAWvoN.js +0 -1
- package/dist/ui/assets/html-derivative-8aSW2E_7.js +0 -1
- package/dist/ui/assets/http-B2YR_3V1.js +0 -1
- package/dist/ui/assets/hurl-BnDJ9Zhf.js +0 -1
- package/dist/ui/assets/hxml-B0Qn7Nwc.js +0 -1
- package/dist/ui/assets/hy-CZbG8q4J.js +0 -1
- package/dist/ui/assets/imba-DsUTQ-LC.js +0 -1
- package/dist/ui/assets/ini-B5eOa1yu.js +0 -1
- package/dist/ui/assets/java-Doxi4W8u.js +0 -1
- package/dist/ui/assets/javascript-BbRdEqti.js +0 -1
- package/dist/ui/assets/jinja-CS3Tpv_Q.js +0 -1
- package/dist/ui/assets/jison-BkPGYVHR.js +0 -1
- package/dist/ui/assets/json-BMt1m3m8.js +0 -1
- package/dist/ui/assets/json5-BR5RXkoi.js +0 -1
- package/dist/ui/assets/jsonc-CYpm1nAK.js +0 -1
- package/dist/ui/assets/jsonl-CmCQp5Yx.js +0 -1
- package/dist/ui/assets/jsonnet-CJTPZ8u_.js +0 -1
- package/dist/ui/assets/jssm-DXw9l8Rf.js +0 -1
- package/dist/ui/assets/jsx-CQKrJXXY.js +0 -1
- package/dist/ui/assets/julia-BuN7i2du.js +0 -1
- package/dist/ui/assets/just-BswEPFPu.js +0 -1
- package/dist/ui/assets/kanagawa-dragon-CXtmUGW6.js +0 -1
- package/dist/ui/assets/kanagawa-lotus-BN08jTvb.js +0 -1
- package/dist/ui/assets/kanagawa-wave-CTweb8Dz.js +0 -1
- package/dist/ui/assets/kdl-CsD5j6eV.js +0 -1
- package/dist/ui/assets/kotlin-DhhofPvG.js +0 -1
- package/dist/ui/assets/kusto-BUv0MjJC.js +0 -1
- package/dist/ui/assets/laserwave-C_8bwKvT.js +0 -1
- package/dist/ui/assets/latex-DU2VyFfA.js +0 -1
- package/dist/ui/assets/lean-CewbzKMR.js +0 -1
- package/dist/ui/assets/less-DVTAwKKz.js +0 -1
- package/dist/ui/assets/light-plus-DVQuIRkW.js +0 -1
- package/dist/ui/assets/liquid-Cmz1L3dq.js +0 -1
- package/dist/ui/assets/llvm-Cm23YOpf.js +0 -1
- package/dist/ui/assets/log-BNLmms1o.js +0 -1
- package/dist/ui/assets/logo-Cluzi2Zq.js +0 -1
- package/dist/ui/assets/lua-CfVXhkaJ.js +0 -1
- package/dist/ui/assets/luau-CNKltnaQ.js +0 -1
- package/dist/ui/assets/make-Dixweg8N.js +0 -1
- package/dist/ui/assets/markdown-BYOwaDjH.js +0 -1
- package/dist/ui/assets/marko-C5bfqGiA.js +0 -1
- package/dist/ui/assets/material-theme-Bm3Qr25_.js +0 -1
- package/dist/ui/assets/material-theme-darker-2IIEA8gg.js +0 -1
- package/dist/ui/assets/material-theme-lighter-uhdI0v04.js +0 -1
- package/dist/ui/assets/material-theme-ocean-CHQ94UKr.js +0 -1
- package/dist/ui/assets/material-theme-palenight-B5W6OYN7.js +0 -1
- package/dist/ui/assets/matlab-D7qyCx1q.js +0 -1
- package/dist/ui/assets/mdc-CVBXYfyq.js +0 -1
- package/dist/ui/assets/mdx-DQZ5AkYe.js +0 -1
- package/dist/ui/assets/mermaid-Bk4SNUv9.js +0 -1
- package/dist/ui/assets/min-dark-BSWPekZh.js +0 -1
- package/dist/ui/assets/min-light-DDpmG2fV.js +0 -1
- package/dist/ui/assets/mipsasm-BMqwQI7S.js +0 -1
- package/dist/ui/assets/mojo-BgCJLMeH.js +0 -1
- package/dist/ui/assets/monokai-CdkpiU2Y.js +0 -1
- package/dist/ui/assets/moonbit-CaWjb8XO.js +0 -1
- package/dist/ui/assets/move-B1IS1UjX.js +0 -1
- package/dist/ui/assets/narrat-_X_XdTYD.js +0 -1
- package/dist/ui/assets/nextflow-Bbiyy34d.js +0 -1
- package/dist/ui/assets/nextflow-groovy-Dc_ddanL.js +0 -1
- package/dist/ui/assets/nginx-CzJafxLa.js +0 -1
- package/dist/ui/assets/night-owl-DhmEMT88.js +0 -1
- package/dist/ui/assets/night-owl-light-eJ-hLW7d.js +0 -1
- package/dist/ui/assets/nim-DABKtHtM.js +0 -1
- package/dist/ui/assets/nix-IvuFDN5E.js +0 -1
- package/dist/ui/assets/nord-Cb4Vim4T.js +0 -1
- package/dist/ui/assets/nushell-DcLAeLz5.js +0 -1
- package/dist/ui/assets/objective-c-D1A_Heim.js +0 -1
- package/dist/ui/assets/objective-cpp-BsSzOQcm.js +0 -1
- package/dist/ui/assets/ocaml-O90oeIOV.js +0 -1
- package/dist/ui/assets/odin-B1RWQWA5.js +0 -1
- package/dist/ui/assets/one-dark-pro-CLwyXe_n.js +0 -1
- package/dist/ui/assets/one-light-D7Lr4KcI.js +0 -1
- package/dist/ui/assets/openscad-BUDT5pXO.js +0 -1
- package/dist/ui/assets/pascal-4ZHwLPI5.js +0 -1
- package/dist/ui/assets/perl-CBh7L3lZ.js +0 -1
- package/dist/ui/assets/php-DFbI9q5p.js +0 -1
- package/dist/ui/assets/pierre-dark-sU4Zdns8.js +0 -1
- package/dist/ui/assets/pierre-dark-soft-HXgun5vs.js +0 -1
- package/dist/ui/assets/pierre-light-DWBk51d8.js +0 -1
- package/dist/ui/assets/pierre-light-soft-CodEzPxf.js +0 -1
- package/dist/ui/assets/pkl-ot-7Btpt.js +0 -1
- package/dist/ui/assets/plastic-DQwYfKfQ.js +0 -1
- package/dist/ui/assets/plsql-DGHpHOYJ.js +0 -1
- package/dist/ui/assets/po-BiJDBrnU.js +0 -1
- package/dist/ui/assets/poimandres-DRFjx7u4.js +0 -1
- package/dist/ui/assets/polar-C7UOKdEL.js +0 -1
- package/dist/ui/assets/postcss-BXeXVLqQ.js +0 -1
- package/dist/ui/assets/powerquery-DNMTfnFr.js +0 -1
- package/dist/ui/assets/powershell-DshXNtvi.js +0 -1
- package/dist/ui/assets/prisma-BsRQq5mF.js +0 -1
- package/dist/ui/assets/prolog-iXnhIJG7.js +0 -1
- package/dist/ui/assets/proto-DB4EqR-F.js +0 -1
- package/dist/ui/assets/pug-C_PxC7gO.js +0 -1
- package/dist/ui/assets/puppet-CDv2pdJW.js +0 -1
- package/dist/ui/assets/purescript-9MfHhQsQ.js +0 -1
- package/dist/ui/assets/python-gzcpVVnB.js +0 -1
- package/dist/ui/assets/qml-DtngoFFK.js +0 -1
- package/dist/ui/assets/qmldir-DCQb3MpD.js +0 -1
- package/dist/ui/assets/qss-Fe1Jh2GI.js +0 -1
- package/dist/ui/assets/r-DohkcevW.js +0 -1
- package/dist/ui/assets/racket-DcIDlBhZ.js +0 -1
- package/dist/ui/assets/raku-B3gFvitq.js +0 -1
- package/dist/ui/assets/razor-C4t8J0_E.js +0 -1
- package/dist/ui/assets/red-CJ3rzSJv.js +0 -1
- package/dist/ui/assets/reg-CRGYupPL.js +0 -1
- package/dist/ui/assets/regexp-OGbTbjgY.js +0 -1
- package/dist/ui/assets/rel-BtDbiS_P.js +0 -1
- package/dist/ui/assets/review-payload-C5Qz60Kq.js +0 -1
- package/dist/ui/assets/riscv-Ckw8ddFX.js +0 -1
- package/dist/ui/assets/ron-VUp2lXgN.js +0 -1
- package/dist/ui/assets/rose-pine-BthvhNj6.js +0 -1
- package/dist/ui/assets/rose-pine-dawn-Dg85fqjY.js +0 -1
- package/dist/ui/assets/rose-pine-moon-hon4tzzS.js +0 -1
- package/dist/ui/assets/rosmsg-CAekHB0j.js +0 -1
- package/dist/ui/assets/rst-CfBbbcvC.js +0 -1
- package/dist/ui/assets/ruby-Bw0mpxHY.js +0 -1
- package/dist/ui/assets/rust-Cfkwpbl8.js +0 -1
- package/dist/ui/assets/sas-Cs3s9JOf.js +0 -1
- package/dist/ui/assets/sass-DXrisJhu.js +0 -1
- package/dist/ui/assets/scala-DKOlJaKm.js +0 -1
- package/dist/ui/assets/scheme-DQCgrYNe.js +0 -1
- package/dist/ui/assets/scss-sRxNJS54.js +0 -1
- package/dist/ui/assets/sdbl-bTVj8UrX.js +0 -1
- package/dist/ui/assets/shaderlab-TOUzSsQk.js +0 -1
- package/dist/ui/assets/shellscript-B0X6wh0R.js +0 -1
- package/dist/ui/assets/shellsession-D2FdOioR.js +0 -1
- package/dist/ui/assets/slack-dark-DnToyrRv.js +0 -1
- package/dist/ui/assets/slack-ochin-B2OO5cIa.js +0 -1
- package/dist/ui/assets/smalltalk-B16xEiuN.js +0 -1
- package/dist/ui/assets/snazzy-light-4G7pJPwS.js +0 -1
- package/dist/ui/assets/solarized-dark-DV17i1UV.js +0 -1
- package/dist/ui/assets/solarized-light-DSh2HLQt.js +0 -1
- package/dist/ui/assets/solidity-CKzVLygQ.js +0 -1
- package/dist/ui/assets/soy-s6g9OjJ1.js +0 -1
- package/dist/ui/assets/sparql-D_iOobhT.js +0 -1
- package/dist/ui/assets/splunk-BC2Px7Mm.js +0 -1
- package/dist/ui/assets/sql-DVTnh5V-.js +0 -1
- package/dist/ui/assets/ssh-config-BgfXC-Er.js +0 -1
- package/dist/ui/assets/stata-DFIDiXF9.js +0 -1
- package/dist/ui/assets/stylus-B6D30XZt.js +0 -1
- package/dist/ui/assets/surrealql-DVfrsLyg.js +0 -1
- package/dist/ui/assets/svelte-D5GsxESq.js +0 -1
- package/dist/ui/assets/swift-DonLKvLd.js +0 -1
- package/dist/ui/assets/synthwave-84-nFMaYfgc.js +0 -1
- package/dist/ui/assets/system-verilog-DJ5XKQeo.js +0 -1
- package/dist/ui/assets/systemd-BxMlprV5.js +0 -1
- package/dist/ui/assets/talonscript-CohzipZa.js +0 -1
- package/dist/ui/assets/tasl-DMoTqEGO.js +0 -1
- package/dist/ui/assets/tcl-CZd0xW_V.js +0 -1
- package/dist/ui/assets/templ-DI-Zyqzd.js +0 -1
- package/dist/ui/assets/terraform-DswuEJGm.js +0 -1
- package/dist/ui/assets/tex-WHHmlbJI.js +0 -1
- package/dist/ui/assets/tokyo-night-oM2G3aXe.js +0 -1
- package/dist/ui/assets/toml-CcmNWLt0.js +0 -1
- package/dist/ui/assets/ts-tags-Dwpo2RFJ.js +0 -1
- package/dist/ui/assets/tsv-sltzmVWM.js +0 -1
- package/dist/ui/assets/tsx-ph_idaAW.js +0 -1
- package/dist/ui/assets/turtle-ByJddavk.js +0 -1
- package/dist/ui/assets/twig-YO17jFjR.js +0 -1
- package/dist/ui/assets/typescript-CbAxjhkl.js +0 -1
- package/dist/ui/assets/typespec-B88KGewJ.js +0 -1
- package/dist/ui/assets/typst-DI99ib-x.js +0 -1
- package/dist/ui/assets/useFileDiffInstance-B2DLX3Vg.js +0 -244
- package/dist/ui/assets/v-DETTlOr0.js +0 -1
- package/dist/ui/assets/vala-zf12oZj6.js +0 -1
- package/dist/ui/assets/vb-Djn5o6TS.js +0 -1
- package/dist/ui/assets/verilog-CiiDBU1e.js +0 -1
- package/dist/ui/assets/vesper-D5bVUKB1.js +0 -1
- package/dist/ui/assets/vhdl-BroJfC0k.js +0 -1
- package/dist/ui/assets/viml-DvXPmvsu.js +0 -1
- package/dist/ui/assets/vitesse-black-fwtXNY1n.js +0 -1
- package/dist/ui/assets/vitesse-dark-BZCL-v6S.js +0 -1
- package/dist/ui/assets/vitesse-light-VbXTXTou.js +0 -1
- package/dist/ui/assets/vue-CraHL-Ps.js +0 -1
- package/dist/ui/assets/vue-html-e9tyZNtS.js +0 -1
- package/dist/ui/assets/vue-vine-CofmxaUb.js +0 -1
- package/dist/ui/assets/vyper-CgoNMtux.js +0 -1
- package/dist/ui/assets/wasm-BnjxR4X6.js +0 -1
- package/dist/ui/assets/wasm-ByWQv1Qj.js +0 -1
- package/dist/ui/assets/wenyan-C8pVoKbM.js +0 -1
- package/dist/ui/assets/wgsl-BsKzXJz4.js +0 -1
- package/dist/ui/assets/wikitext-ClFFjSW2.js +0 -1
- package/dist/ui/assets/wit-DdvCle-K.js +0 -1
- package/dist/ui/assets/wolfram-DLL8P-h_.js +0 -1
- package/dist/ui/assets/workspace-app-8--oTbCd.css +0 -1
- package/dist/ui/assets/xml-BWSdPZHm.js +0 -1
- package/dist/ui/assets/xsl-BtCt7Hx8.js +0 -1
- package/dist/ui/assets/yaml-BZiTw7cQ.js +0 -1
- package/dist/ui/assets/zenscript-BnlCZFoB.js +0 -1
- package/dist/ui/assets/zig-CMLA9XwU.js +0 -1
- package/docs/assets/auvrynt-logo-light.png +0 -0
- package/docs/assets/auvrynt-screenshot.png +0 -0
|
@@ -0,0 +1,690 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { registerAppTool } from "../mcp-tool-registrar.js";
|
|
3
|
+
import { MUTATING_ANNOTATIONS, READ_ONLY_ANNOTATIONS, WORKSPACE_ID_SCHEMA, toolWidgetDescriptorMeta, } from "../tool-registration-shared.js";
|
|
4
|
+
import { registerCatalogTools } from "../../integrations/blender/blender-catalog.js";
|
|
5
|
+
import { sceneCatalogTools } from "../../integrations/blender/blender-catalog-scene.js";
|
|
6
|
+
import { selectCatalogTools } from "../../integrations/blender/blender-catalog-select.js";
|
|
7
|
+
import { meshCatalogTools } from "../../integrations/blender/blender-catalog-mesh.js";
|
|
8
|
+
import { objectCatalogTools } from "../../integrations/blender/blender-catalog-object.js";
|
|
9
|
+
import { stubCatalogTools } from "../../integrations/blender/blender-catalog-stubs.js";
|
|
10
|
+
import { blenderPing, blenderGetSceneInfo, blenderGetSceneAudit, blenderGetSelection, blenderGetActiveModeAndStatus, blenderGetConsoleErrors, blenderInspectObject, blenderCreateCube, blenderSelectObject, blenderSelectObjects, blenderTransformObject, blenderDuplicateLinked, blenderJoinObjects, blenderDeleteObjects, blenderCreateCollection, blenderMoveToCollection, blenderSetViewportView, blenderOrbitViewport, blenderPanViewport, blenderZoomViewport, blenderFrameSelected, blenderSetViewportShading, blenderInspectMaterial, blenderInspectGeometryNodes, blenderEditModifier, blenderSetRenderSettings, blenderRenderCamera, blenderRenderObjectIsolation, blenderRenderViewport, blenderSaveCheckpoint, blenderListCheckpoints, blenderRollbackCheckpoint, blenderExecutePython, blenderGetCurrentFile, blenderOpenFile, blenderSaveFile, blenderSaveFileAs, blenderExportGlb, blenderCreatePlane, blenderCreateCircle, blenderCreateCylinder, blenderCreateCone, blenderCreateSphere, blenderCreateIcosphere, blenderCreateTorus, blenderCreateGrid, blenderCreateMonkey, blenderCreateCamera, blenderCreateLight, blenderCreateEmpty, blenderCreateText, blenderCreateCurve, blenderCreateArmature, blenderCreateMetaball, blenderRenameObject, blenderDuplicateObject, blenderParentObject, blenderUnparentObject, blenderHideObjects, blenderShowAllObjects, blenderSetOrigin, blenderApplyTransforms, blenderClearTransforms, blenderMirrorObjects, blenderSetCursorLocation, blenderSelectByType, blenderSelectLinked, blenderSelectByCollection, blenderSelectByMaterial, blenderSelectByPolycount, blenderInvertSelection, blenderDeselectAll, blenderSelectAll, blenderEnterEditMode, blenderExitEditMode, blenderSetMeshSelectionMode, blenderExtrudeSelection, blenderBevelSelection, blenderLoopCut, blenderSubdivide, blenderMergeByDistance, blenderRecalculateNormals, blenderFlipNormals, blenderTriangulateFaces, blenderInsetFaces, blenderDeleteLooseGeometry, blenderFixNonManifold, blenderSetFaceSmoothing, blenderAddModifier, blenderRemoveModifier, blenderApplyModifier, blenderCreateMaterial, blenderAssignMaterial, blenderListMaterials, blenderRenameMaterial, blenderDuplicateMaterial, blenderRemoveUnusedMaterials, blenderFrameAll, blenderToggleXray, blenderToggleOverlays, blenderToggleLocalView, blenderExportFbx, blenderExportObj, blenderPurgeUnusedData, blenderSetFrame, blenderPlayAnimation, blenderStopAnimation, blenderInsertKeyframe, } from "../../integrations/blender/blender-tools.js";
|
|
11
|
+
export function registerBlenderTools(server, config, workspaces) {
|
|
12
|
+
registerAppTool(server, "blender_ping", {
|
|
13
|
+
title: "Blender Ping",
|
|
14
|
+
description: "Verify local Blender connection is reachable, returning version and active scene status.",
|
|
15
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA },
|
|
16
|
+
...toolWidgetDescriptorMeta(config, "read"), annotations: READ_ONLY_ANNOTATIONS,
|
|
17
|
+
}, async ({ workspaceId }) => blenderPing(workspaces, { workspaceId }));
|
|
18
|
+
registerAppTool(server, "blender_get_scene_info", {
|
|
19
|
+
title: "Get Blender Scene Info",
|
|
20
|
+
description: "Return current active scene properties, frame, and list of objects.",
|
|
21
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA },
|
|
22
|
+
...toolWidgetDescriptorMeta(config, "read"), annotations: READ_ONLY_ANNOTATIONS,
|
|
23
|
+
}, async ({ workspaceId }) => blenderGetSceneInfo(workspaces, { workspaceId }));
|
|
24
|
+
registerAppTool(server, "blender_get_scene_audit", {
|
|
25
|
+
title: "Blender Low-Poly Scene Audit",
|
|
26
|
+
description: "Audit scene configuration for low-poly budgets, duplicate assets, and non-manifold mesh objects.",
|
|
27
|
+
inputSchema: {
|
|
28
|
+
workspaceId: WORKSPACE_ID_SCHEMA,
|
|
29
|
+
includeHidden: z.boolean().optional(),
|
|
30
|
+
includeInstances: z.boolean().optional(),
|
|
31
|
+
includeMaterials: z.boolean().optional(),
|
|
32
|
+
includeImages: z.boolean().optional(),
|
|
33
|
+
includeModifiers: z.boolean().optional(),
|
|
34
|
+
},
|
|
35
|
+
...toolWidgetDescriptorMeta(config, "read"), annotations: READ_ONLY_ANNOTATIONS,
|
|
36
|
+
}, async (input) => blenderGetSceneAudit(workspaces, input));
|
|
37
|
+
registerAppTool(server, "blender_get_console_errors", {
|
|
38
|
+
title: "Get Blender console errors",
|
|
39
|
+
description: "Retrieve recent error and warning messages from the Blender console output.",
|
|
40
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA },
|
|
41
|
+
...toolWidgetDescriptorMeta(config, "read"), annotations: READ_ONLY_ANNOTATIONS,
|
|
42
|
+
}, async ({ workspaceId }) => blenderGetConsoleErrors(workspaces, { workspaceId }));
|
|
43
|
+
registerAppTool(server, "blender_get_selection", {
|
|
44
|
+
title: "Get Selected Objects",
|
|
45
|
+
description: "List currently selected objects, active object, and Blender interaction mode.",
|
|
46
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA },
|
|
47
|
+
...toolWidgetDescriptorMeta(config, "read"), annotations: READ_ONLY_ANNOTATIONS,
|
|
48
|
+
}, async ({ workspaceId }) => blenderGetSelection(workspaces, { workspaceId }));
|
|
49
|
+
registerAppTool(server, "blender_get_active_mode_and_status", {
|
|
50
|
+
title: "Get active mode",
|
|
51
|
+
description: "Check selection mode, rendering engine, and whether animation is playing.",
|
|
52
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA },
|
|
53
|
+
...toolWidgetDescriptorMeta(config, "read"), annotations: READ_ONLY_ANNOTATIONS,
|
|
54
|
+
}, async ({ workspaceId }) => blenderGetActiveModeAndStatus(workspaces, { workspaceId }));
|
|
55
|
+
registerAppTool(server, "blender_inspect_object", {
|
|
56
|
+
title: "Inspect Blender Object",
|
|
57
|
+
description: "Inspect specific object mesh details, applied modifiers, parent/child state, and materials.",
|
|
58
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectName: z.string() },
|
|
59
|
+
...toolWidgetDescriptorMeta(config, "read"), annotations: READ_ONLY_ANNOTATIONS,
|
|
60
|
+
}, async (input) => blenderInspectObject(workspaces, input));
|
|
61
|
+
registerAppTool(server, "blender_create_cube", {
|
|
62
|
+
title: "Create Blender Cube",
|
|
63
|
+
description: "Create a primitive cube mesh at location.",
|
|
64
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, name: z.string().optional(), x: z.number().optional(), y: z.number().optional(), z: z.number().optional(), size: z.number().optional() },
|
|
65
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
66
|
+
}, async (input) => blenderCreateCube(workspaces, input));
|
|
67
|
+
registerAppTool(server, "blender_select_object", {
|
|
68
|
+
title: "Select Object",
|
|
69
|
+
description: "Select a single object and optionally set interaction mode.",
|
|
70
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectName: z.string(), mode: z.string().optional() },
|
|
71
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
72
|
+
}, async (input) => blenderSelectObject(workspaces, input));
|
|
73
|
+
registerAppTool(server, "blender_select_objects", {
|
|
74
|
+
title: "Select Objects",
|
|
75
|
+
description: "Select multiple objects by wildcard name, type, collection, or material.",
|
|
76
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, pattern: z.string().optional(), objectType: z.string().optional(), collection: z.string().optional(), material: z.string().optional() },
|
|
77
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
78
|
+
}, async (input) => blenderSelectObjects(workspaces, input));
|
|
79
|
+
registerAppTool(server, "blender_transform_object", {
|
|
80
|
+
title: "Transform Object",
|
|
81
|
+
description: "Set object local translation, scale, or Euler rotation settings.",
|
|
82
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectName: z.string(), location: z.array(z.number()).optional(), rotationEuler: z.array(z.number()).optional(), scale: z.array(z.number()).optional() },
|
|
83
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
84
|
+
}, async (input) => blenderTransformObject(workspaces, input));
|
|
85
|
+
registerAppTool(server, "blender_duplicate_linked", {
|
|
86
|
+
title: "Duplicate Linked",
|
|
87
|
+
description: "Create linked duplicates of objects.",
|
|
88
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectNames: z.array(z.string()), offset: z.array(z.number()).optional() },
|
|
89
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
90
|
+
}, async (input) => blenderDuplicateLinked(workspaces, input));
|
|
91
|
+
registerAppTool(server, "blender_join_objects", {
|
|
92
|
+
title: "Join Objects",
|
|
93
|
+
description: "Join selected mesh objects into one mesh container.",
|
|
94
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectNames: z.array(z.string()), resultName: z.string().optional() },
|
|
95
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
96
|
+
}, async (input) => blenderJoinObjects(workspaces, input));
|
|
97
|
+
registerAppTool(server, "blender_delete_objects", {
|
|
98
|
+
title: "Delete Objects",
|
|
99
|
+
description: "Remove objects from data dictionary completely.",
|
|
100
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectNames: z.array(z.string()) },
|
|
101
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
102
|
+
}, async (input) => blenderDeleteObjects(workspaces, input));
|
|
103
|
+
registerAppTool(server, "blender_create_collection", {
|
|
104
|
+
title: "Create Collection",
|
|
105
|
+
description: "Create collection node under hierarchy.",
|
|
106
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, name: z.string(), parent: z.string().optional() },
|
|
107
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
108
|
+
}, async (input) => blenderCreateCollection(workspaces, input));
|
|
109
|
+
registerAppTool(server, "blender_move_to_collection", {
|
|
110
|
+
title: "Move Objects to Collection",
|
|
111
|
+
description: "Move objects to collection and optionally unlink from parent.",
|
|
112
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectNames: z.array(z.string()), collectionName: z.string(), unlinkFromOthers: z.boolean().optional() },
|
|
113
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
114
|
+
}, async (input) => blenderMoveToCollection(workspaces, input));
|
|
115
|
+
registerAppTool(server, "blender_set_viewport_view", {
|
|
116
|
+
title: "Set Viewport View",
|
|
117
|
+
description: "Orient 3D viewport camera view angles.",
|
|
118
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, view: z.string().optional() },
|
|
119
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
120
|
+
}, async (input) => blenderSetViewportView(workspaces, input));
|
|
121
|
+
registerAppTool(server, "blender_orbit_viewport", {
|
|
122
|
+
title: "Orbit Viewport",
|
|
123
|
+
description: "Orbit camera.",
|
|
124
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, direction: z.string().optional(), steps: z.number().optional() },
|
|
125
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
126
|
+
}, async (input) => blenderOrbitViewport(workspaces, input));
|
|
127
|
+
registerAppTool(server, "blender_pan_viewport", {
|
|
128
|
+
title: "Pan Viewport",
|
|
129
|
+
description: "Pan camera.",
|
|
130
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, direction: z.string().optional(), steps: z.number().optional() },
|
|
131
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
132
|
+
}, async (input) => blenderPanViewport(workspaces, input));
|
|
133
|
+
registerAppTool(server, "blender_zoom_viewport", {
|
|
134
|
+
title: "Zoom Viewport",
|
|
135
|
+
description: "Zoom camera.",
|
|
136
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, direction: z.string().optional(), steps: z.number().optional() },
|
|
137
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
138
|
+
}, async (input) => blenderZoomViewport(workspaces, input));
|
|
139
|
+
registerAppTool(server, "blender_frame_selected", {
|
|
140
|
+
title: "Frame Selected",
|
|
141
|
+
description: "Align view to frame selected elements.",
|
|
142
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA },
|
|
143
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
144
|
+
}, async ({ workspaceId }) => blenderFrameSelected(workspaces, { workspaceId }));
|
|
145
|
+
registerAppTool(server, "blender_set_viewport_shading", {
|
|
146
|
+
title: "Set Viewport Shading",
|
|
147
|
+
description: "Modify view display shading mode.",
|
|
148
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, mode: z.string().optional() },
|
|
149
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
150
|
+
}, async (input) => blenderSetViewportShading(workspaces, input));
|
|
151
|
+
registerAppTool(server, "blender_inspect_material", {
|
|
152
|
+
title: "Inspect Material",
|
|
153
|
+
description: "Get material setup details.",
|
|
154
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, materialName: z.string() },
|
|
155
|
+
...toolWidgetDescriptorMeta(config, "read"), annotations: READ_ONLY_ANNOTATIONS,
|
|
156
|
+
}, async (input) => blenderInspectMaterial(workspaces, input));
|
|
157
|
+
registerAppTool(server, "blender_inspect_geometry_nodes", {
|
|
158
|
+
title: "Inspect Geometry Nodes",
|
|
159
|
+
description: "Inspect modifier setup.",
|
|
160
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectName: z.string() },
|
|
161
|
+
...toolWidgetDescriptorMeta(config, "read"), annotations: READ_ONLY_ANNOTATIONS,
|
|
162
|
+
}, async (input) => blenderInspectGeometryNodes(workspaces, input));
|
|
163
|
+
registerAppTool(server, "blender_edit_modifier", {
|
|
164
|
+
title: "Edit Modifier Parameters",
|
|
165
|
+
description: "Modify simple modifier settings.",
|
|
166
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectName: z.string(), modifierName: z.string(), properties: z.record(z.string(), z.unknown()) },
|
|
167
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
168
|
+
}, async (input) => blenderEditModifier(workspaces, input));
|
|
169
|
+
registerAppTool(server, "blender_set_render_settings", {
|
|
170
|
+
title: "Set Render Settings",
|
|
171
|
+
description: "Alter render properties.",
|
|
172
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, engine: z.string().optional(), width: z.number().optional(), height: z.number().optional(), samples: z.number().optional(), denoise: z.boolean().optional() },
|
|
173
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
174
|
+
}, async (input) => blenderSetRenderSettings(workspaces, input));
|
|
175
|
+
registerAppTool(server, "blender_render_camera", {
|
|
176
|
+
title: "Render Camera",
|
|
177
|
+
description: "Generate render image output for active camera.",
|
|
178
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, cameraName: z.string().optional(), width: z.number().optional(), height: z.number().optional(), samples: z.number().optional() },
|
|
179
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
180
|
+
}, async (input) => blenderRenderCamera(workspaces, input));
|
|
181
|
+
registerAppTool(server, "blender_render_object_isolation", {
|
|
182
|
+
title: "Render Object Isolation",
|
|
183
|
+
description: "Isolate object render.",
|
|
184
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectName: z.string(), width: z.number().optional(), height: z.number().optional(), samples: z.number().optional() },
|
|
185
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
186
|
+
}, async (input) => blenderRenderObjectIsolation(workspaces, input));
|
|
187
|
+
registerAppTool(server, "blender_render_viewport", {
|
|
188
|
+
title: "Render Viewport Screenshot",
|
|
189
|
+
description: "Capture screenshot of Blender window.",
|
|
190
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, width: z.number().optional(), height: z.number().optional() },
|
|
191
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
192
|
+
}, async (input) => blenderRenderViewport(workspaces, input));
|
|
193
|
+
registerAppTool(server, "blender_save_checkpoint", {
|
|
194
|
+
title: "Save Checkpoint",
|
|
195
|
+
description: "Save snapshot of active work session.",
|
|
196
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, label: z.string().optional() },
|
|
197
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
198
|
+
}, async (input) => blenderSaveCheckpoint(workspaces, input));
|
|
199
|
+
registerAppTool(server, "blender_list_checkpoints", {
|
|
200
|
+
title: "List Blender Checkpoints",
|
|
201
|
+
description: "List all saved Blender session checkpoint files.",
|
|
202
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA },
|
|
203
|
+
...toolWidgetDescriptorMeta(config, "read"), annotations: READ_ONLY_ANNOTATIONS,
|
|
204
|
+
}, async ({ workspaceId }) => blenderListCheckpoints(workspaces, { workspaceId }));
|
|
205
|
+
registerAppTool(server, "blender_rollback_checkpoint", {
|
|
206
|
+
title: "Rollback Checkpoint",
|
|
207
|
+
description: "Open past checkpoint file.",
|
|
208
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, path: z.string() },
|
|
209
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
210
|
+
}, async (input) => blenderRollbackCheckpoint(workspaces, input));
|
|
211
|
+
registerAppTool(server, "blender_execute_python", {
|
|
212
|
+
title: "Execute python",
|
|
213
|
+
description: "Run custom Python script on active Blender session.",
|
|
214
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, code: z.string() },
|
|
215
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
216
|
+
}, async (input) => blenderExecutePython(workspaces, input));
|
|
217
|
+
registerAppTool(server, "blender_get_current_file", {
|
|
218
|
+
title: "Get current blend file",
|
|
219
|
+
description: "Retrieve current file path.",
|
|
220
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA },
|
|
221
|
+
...toolWidgetDescriptorMeta(config, "read"), annotations: READ_ONLY_ANNOTATIONS,
|
|
222
|
+
}, async ({ workspaceId }) => blenderGetCurrentFile(workspaces, { workspaceId }));
|
|
223
|
+
registerAppTool(server, "blender_open_file", {
|
|
224
|
+
title: "Open blend file",
|
|
225
|
+
description: "Load project blend file.",
|
|
226
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, filepath: z.string() },
|
|
227
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
228
|
+
}, async (input) => blenderOpenFile(workspaces, input));
|
|
229
|
+
registerAppTool(server, "blender_save_file", {
|
|
230
|
+
title: "Save blend file",
|
|
231
|
+
description: "Overwrites current active blend file.",
|
|
232
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA },
|
|
233
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
234
|
+
}, async ({ workspaceId }) => blenderSaveFile(workspaces, { workspaceId }));
|
|
235
|
+
registerAppTool(server, "blender_save_file_as", {
|
|
236
|
+
title: "Save blend file as",
|
|
237
|
+
description: "Save active session to new file path.",
|
|
238
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, filepath: z.string() },
|
|
239
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
240
|
+
}, async (input) => blenderSaveFileAs(workspaces, input));
|
|
241
|
+
registerAppTool(server, "blender_export_glb", {
|
|
242
|
+
title: "Export GLB asset",
|
|
243
|
+
description: "Generate GLB 3D scene file.",
|
|
244
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, filepath: z.string() },
|
|
245
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
246
|
+
}, async (input) => blenderExportGlb(workspaces, input));
|
|
247
|
+
// ─── Extended toolset ────────────────────────────────────────────────────
|
|
248
|
+
registerAppTool(server, "blender_create_plane", {
|
|
249
|
+
title: "Create Plane",
|
|
250
|
+
description: "Create a plane primitive mesh.",
|
|
251
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, name: z.string().optional(), size: z.number().optional(), location: z.array(z.number()).optional() },
|
|
252
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
253
|
+
}, async (input) => blenderCreatePlane(workspaces, input));
|
|
254
|
+
registerAppTool(server, "blender_create_circle", {
|
|
255
|
+
title: "Create Circle",
|
|
256
|
+
description: "Create a circle primitive mesh.",
|
|
257
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, vertices: z.number().optional(), radius: z.number().optional(), fillType: z.enum(["NGON", "TRIFAN", "NOTHING"]).optional(), location: z.array(z.number()).optional() },
|
|
258
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
259
|
+
}, async (input) => blenderCreateCircle(workspaces, input));
|
|
260
|
+
registerAppTool(server, "blender_create_cylinder", {
|
|
261
|
+
title: "Create Cylinder",
|
|
262
|
+
description: "Create a cylinder primitive mesh.",
|
|
263
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, vertices: z.number().optional(), radius: z.number().optional(), depth: z.number().optional(), location: z.array(z.number()).optional() },
|
|
264
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
265
|
+
}, async (input) => blenderCreateCylinder(workspaces, input));
|
|
266
|
+
registerAppTool(server, "blender_create_cone", {
|
|
267
|
+
title: "Create Cone",
|
|
268
|
+
description: "Create a cone primitive mesh.",
|
|
269
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, vertices: z.number().optional(), radius1: z.number().optional(), radius2: z.number().optional(), depth: z.number().optional(), location: z.array(z.number()).optional() },
|
|
270
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
271
|
+
}, async (input) => blenderCreateCone(workspaces, input));
|
|
272
|
+
registerAppTool(server, "blender_create_sphere", {
|
|
273
|
+
title: "Create UV Sphere",
|
|
274
|
+
description: "Create a UV sphere primitive mesh.",
|
|
275
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, segments: z.number().optional(), ringCount: z.number().optional(), radius: z.number().optional(), location: z.array(z.number()).optional() },
|
|
276
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
277
|
+
}, async (input) => blenderCreateSphere(workspaces, input));
|
|
278
|
+
registerAppTool(server, "blender_create_icosphere", {
|
|
279
|
+
title: "Create Icosphere",
|
|
280
|
+
description: "Create an icosphere primitive mesh.",
|
|
281
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, subdivisions: z.number().optional(), radius: z.number().optional(), location: z.array(z.number()).optional() },
|
|
282
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
283
|
+
}, async (input) => blenderCreateIcosphere(workspaces, input));
|
|
284
|
+
registerAppTool(server, "blender_create_torus", {
|
|
285
|
+
title: "Create Torus",
|
|
286
|
+
description: "Create a torus primitive mesh.",
|
|
287
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, majorRadius: z.number().optional(), minorRadius: z.number().optional(), location: z.array(z.number()).optional() },
|
|
288
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
289
|
+
}, async (input) => blenderCreateTorus(workspaces, input));
|
|
290
|
+
registerAppTool(server, "blender_create_grid", {
|
|
291
|
+
title: "Create Grid",
|
|
292
|
+
description: "Create a grid primitive mesh.",
|
|
293
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, xSegments: z.number().optional(), ySegments: z.number().optional(), size: z.number().optional(), location: z.array(z.number()).optional() },
|
|
294
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
295
|
+
}, async (input) => blenderCreateGrid(workspaces, input));
|
|
296
|
+
registerAppTool(server, "blender_create_monkey", {
|
|
297
|
+
title: "Create Monkey",
|
|
298
|
+
description: "Create a Suzanne monkey primitive mesh.",
|
|
299
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, size: z.number().optional(), location: z.array(z.number()).optional() },
|
|
300
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
301
|
+
}, async (input) => blenderCreateMonkey(workspaces, input));
|
|
302
|
+
registerAppTool(server, "blender_create_camera", {
|
|
303
|
+
title: "Create Camera",
|
|
304
|
+
description: "Create a camera object.",
|
|
305
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, name: z.string().optional(), location: z.array(z.number()).optional(), rotation: z.array(z.number()).optional(), lens: z.number().optional() },
|
|
306
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
307
|
+
}, async (input) => blenderCreateCamera(workspaces, input));
|
|
308
|
+
registerAppTool(server, "blender_create_light", {
|
|
309
|
+
title: "Create Light",
|
|
310
|
+
description: "Create a light object.",
|
|
311
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, name: z.string().optional(), lightType: z.enum(["POINT", "SUN", "SPOT", "AREA"]).optional(), energy: z.number().optional(), color: z.array(z.number()).optional(), location: z.array(z.number()).optional() },
|
|
312
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
313
|
+
}, async (input) => blenderCreateLight(workspaces, input));
|
|
314
|
+
registerAppTool(server, "blender_create_empty", {
|
|
315
|
+
title: "Create Empty",
|
|
316
|
+
description: "Create an empty object.",
|
|
317
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, name: z.string().optional(), emptyType: z.string().optional(), location: z.array(z.number()).optional() },
|
|
318
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
319
|
+
}, async (input) => blenderCreateEmpty(workspaces, input));
|
|
320
|
+
registerAppTool(server, "blender_create_text", {
|
|
321
|
+
title: "Create Text",
|
|
322
|
+
description: "Create a text object.",
|
|
323
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, name: z.string().optional(), content: z.string().optional(), size: z.number().optional(), location: z.array(z.number()).optional() },
|
|
324
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
325
|
+
}, async (input) => blenderCreateText(workspaces, input));
|
|
326
|
+
registerAppTool(server, "blender_create_curve", {
|
|
327
|
+
title: "Create Curve",
|
|
328
|
+
description: "Create a bezier curve object.",
|
|
329
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, name: z.string().optional(), location: z.array(z.number()).optional() },
|
|
330
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
331
|
+
}, async (input) => blenderCreateCurve(workspaces, input));
|
|
332
|
+
registerAppTool(server, "blender_create_armature", {
|
|
333
|
+
title: "Create Armature",
|
|
334
|
+
description: "Create an armature with a single bone.",
|
|
335
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, name: z.string().optional(), location: z.array(z.number()).optional() },
|
|
336
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
337
|
+
}, async (input) => blenderCreateArmature(workspaces, input));
|
|
338
|
+
registerAppTool(server, "blender_create_metaball", {
|
|
339
|
+
title: "Create Metaball",
|
|
340
|
+
description: "Create a metaball primitive.",
|
|
341
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, name: z.string().optional(), radius: z.number().optional(), location: z.array(z.number()).optional() },
|
|
342
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
343
|
+
}, async (input) => blenderCreateMetaball(workspaces, input));
|
|
344
|
+
// Object operations
|
|
345
|
+
registerAppTool(server, "blender_rename_object", {
|
|
346
|
+
title: "Rename Object",
|
|
347
|
+
description: "Rename an object.",
|
|
348
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectName: z.string(), newName: z.string() },
|
|
349
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
350
|
+
}, async (input) => blenderRenameObject(workspaces, input));
|
|
351
|
+
registerAppTool(server, "blender_duplicate_object", {
|
|
352
|
+
title: "Duplicate Object",
|
|
353
|
+
description: "Duplicate objects (linked, normal, or instance).",
|
|
354
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectNames: z.array(z.string()), duplicateType: z.string().optional(), offset: z.array(z.number()).optional() },
|
|
355
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
356
|
+
}, async (input) => blenderDuplicateObject(workspaces, input));
|
|
357
|
+
registerAppTool(server, "blender_parent_object", {
|
|
358
|
+
title: "Parent Object",
|
|
359
|
+
description: "Parent objects under a parent object.",
|
|
360
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, childNames: z.array(z.string()), parentName: z.string(), keepTransform: z.boolean().optional() },
|
|
361
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
362
|
+
}, async (input) => blenderParentObject(workspaces, input));
|
|
363
|
+
registerAppTool(server, "blender_unparent_object", {
|
|
364
|
+
title: "Unparent Object",
|
|
365
|
+
description: "Clear object parent relationships.",
|
|
366
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectNames: z.array(z.string()), keepTransform: z.boolean().optional() },
|
|
367
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
368
|
+
}, async (input) => blenderUnparentObject(workspaces, input));
|
|
369
|
+
registerAppTool(server, "blender_hide_objects", {
|
|
370
|
+
title: "Hide Objects",
|
|
371
|
+
description: "Hide or unhide objects in the viewport.",
|
|
372
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectNames: z.array(z.string()), hide: z.boolean().optional() },
|
|
373
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
374
|
+
}, async (input) => blenderHideObjects(workspaces, input));
|
|
375
|
+
registerAppTool(server, "blender_show_all_objects", {
|
|
376
|
+
title: "Show All Objects",
|
|
377
|
+
description: "Unhide all objects across the scene.",
|
|
378
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA },
|
|
379
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
380
|
+
}, async (input) => blenderShowAllObjects(workspaces, input));
|
|
381
|
+
registerAppTool(server, "blender_set_origin", {
|
|
382
|
+
title: "Set Object Origin",
|
|
383
|
+
description: "Set an object's origin to geometry, center of mass, cursor, or a location.",
|
|
384
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectNames: z.array(z.string()), origin: z.enum(["geometry", "center", "cursor"]).optional(), location: z.array(z.number()).optional() },
|
|
385
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
386
|
+
}, async (input) => blenderSetOrigin(workspaces, input));
|
|
387
|
+
registerAppTool(server, "blender_apply_transforms", {
|
|
388
|
+
title: "Apply Transforms",
|
|
389
|
+
description: "Apply location, rotation, and/or scale to objects.",
|
|
390
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectNames: z.array(z.string()), location: z.boolean().optional(), rotation: z.boolean().optional(), scale: z.boolean().optional() },
|
|
391
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
392
|
+
}, async (input) => blenderApplyTransforms(workspaces, input));
|
|
393
|
+
registerAppTool(server, "blender_clear_transforms", {
|
|
394
|
+
title: "Clear Transforms",
|
|
395
|
+
description: "Reset object transforms.",
|
|
396
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectNames: z.array(z.string()), location: z.boolean().optional(), rotation: z.boolean().optional(), scale: z.boolean().optional() },
|
|
397
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
398
|
+
}, async (input) => blenderClearTransforms(workspaces, input));
|
|
399
|
+
registerAppTool(server, "blender_mirror_objects", {
|
|
400
|
+
title: "Mirror Objects",
|
|
401
|
+
description: "Mirror objects along global axes.",
|
|
402
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectNames: z.array(z.string()), axis: z.array(z.enum(["X", "Y", "Z"])).optional() },
|
|
403
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
404
|
+
}, async (input) => blenderMirrorObjects(workspaces, input));
|
|
405
|
+
registerAppTool(server, "blender_set_cursor_location", {
|
|
406
|
+
title: "Set Cursor",
|
|
407
|
+
description: "Set the 3D cursor location.",
|
|
408
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, location: z.array(z.number()) },
|
|
409
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
410
|
+
}, async (input) => blenderSetCursorLocation(workspaces, input));
|
|
411
|
+
// Selection
|
|
412
|
+
registerAppTool(server, "blender_select_by_type", {
|
|
413
|
+
title: "Select by Type",
|
|
414
|
+
description: "Select all objects of a given type.",
|
|
415
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectType: z.string() },
|
|
416
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
417
|
+
}, async (input) => blenderSelectByType(workspaces, input));
|
|
418
|
+
registerAppTool(server, "blender_select_linked", {
|
|
419
|
+
title: "Select Linked",
|
|
420
|
+
description: "Select all objects sharing data with the given object.",
|
|
421
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectName: z.string() },
|
|
422
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
423
|
+
}, async (input) => blenderSelectLinked(workspaces, input));
|
|
424
|
+
registerAppTool(server, "blender_select_by_collection", {
|
|
425
|
+
title: "Select by Collection",
|
|
426
|
+
description: "Select all objects in a collection.",
|
|
427
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, collectionName: z.string() },
|
|
428
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
429
|
+
}, async (input) => blenderSelectByCollection(workspaces, input));
|
|
430
|
+
registerAppTool(server, "blender_select_by_material", {
|
|
431
|
+
title: "Select by Material",
|
|
432
|
+
description: "Select all objects using a given material.",
|
|
433
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, materialName: z.string() },
|
|
434
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
435
|
+
}, async (input) => blenderSelectByMaterial(workspaces, input));
|
|
436
|
+
registerAppTool(server, "blender_select_by_polycount", {
|
|
437
|
+
title: "Select by Polycount",
|
|
438
|
+
description: "Select mesh objects within a triangle-count range.",
|
|
439
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, maxTriangles: z.number().optional(), minTriangles: z.number().optional() },
|
|
440
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
441
|
+
}, async (input) => blenderSelectByPolycount(workspaces, input));
|
|
442
|
+
registerAppTool(server, "blender_invert_selection", {
|
|
443
|
+
title: "Invert Selection",
|
|
444
|
+
description: "Invert the current object selection.",
|
|
445
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA },
|
|
446
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
447
|
+
}, async (input) => blenderInvertSelection(workspaces, input));
|
|
448
|
+
registerAppTool(server, "blender_deselect_all", {
|
|
449
|
+
title: "Deselect All",
|
|
450
|
+
description: "Clear the object selection.",
|
|
451
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA },
|
|
452
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
453
|
+
}, async (input) => blenderDeselectAll(workspaces, input));
|
|
454
|
+
registerAppTool(server, "blender_select_all", {
|
|
455
|
+
title: "Select All",
|
|
456
|
+
description: "Select all objects.",
|
|
457
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA },
|
|
458
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
459
|
+
}, async (input) => blenderSelectAll(workspaces, input));
|
|
460
|
+
// Mesh edit mode
|
|
461
|
+
registerAppTool(server, "blender_enter_edit_mode", {
|
|
462
|
+
title: "Enter Edit Mode",
|
|
463
|
+
description: "Enter OBJECT/EDIT mode for an object.",
|
|
464
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectName: z.string() },
|
|
465
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
466
|
+
}, async (input) => blenderEnterEditMode(workspaces, input));
|
|
467
|
+
registerAppTool(server, "blender_exit_edit_mode", {
|
|
468
|
+
title: "Exit Edit Mode",
|
|
469
|
+
description: "Return to OBJECT mode.",
|
|
470
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA },
|
|
471
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
472
|
+
}, async (input) => blenderExitEditMode(workspaces, input));
|
|
473
|
+
registerAppTool(server, "blender_set_mesh_selection_mode", {
|
|
474
|
+
title: "Set Mesh Selection Mode",
|
|
475
|
+
description: "Set edit-mode selection to VERT, EDGE, or FACE.",
|
|
476
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, mode: z.enum(["VERT", "EDGE", "FACE"]).optional() },
|
|
477
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
478
|
+
}, async (input) => blenderSetMeshSelectionMode(workspaces, input));
|
|
479
|
+
registerAppTool(server, "blender_extrude_selection", {
|
|
480
|
+
title: "Extrude Selection",
|
|
481
|
+
description: "Extrude the selected geometry.",
|
|
482
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectName: z.string(), amount: z.array(z.number()).optional() },
|
|
483
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
484
|
+
}, async (input) => blenderExtrudeSelection(workspaces, input));
|
|
485
|
+
registerAppTool(server, "blender_bevel_selection", {
|
|
486
|
+
title: "Bevel Selection",
|
|
487
|
+
description: "Bevel selected vertices.",
|
|
488
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectName: z.string(), amount: z.number().optional(), segments: z.number().optional() },
|
|
489
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
490
|
+
}, async (input) => blenderBevelSelection(workspaces, input));
|
|
491
|
+
registerAppTool(server, "blender_loop_cut", {
|
|
492
|
+
title: "Loop Cut",
|
|
493
|
+
description: "Add a loop cut to a mesh.",
|
|
494
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectName: z.string(), cuts: z.number().optional() },
|
|
495
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
496
|
+
}, async (input) => blenderLoopCut(workspaces, input));
|
|
497
|
+
registerAppTool(server, "blender_subdivide", {
|
|
498
|
+
title: "Subdivide",
|
|
499
|
+
description: "Subdivide the mesh.",
|
|
500
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectName: z.string(), cuts: z.number().optional(), smooth: z.number().optional() },
|
|
501
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
502
|
+
}, async (input) => blenderSubdivide(workspaces, input));
|
|
503
|
+
registerAppTool(server, "blender_merge_by_distance", {
|
|
504
|
+
title: "Merge by Distance",
|
|
505
|
+
description: "Remove doubled vertices in edit mode.",
|
|
506
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectName: z.string(), distance: z.number().optional() },
|
|
507
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
508
|
+
}, async (input) => blenderMergeByDistance(workspaces, input));
|
|
509
|
+
registerAppTool(server, "blender_recalculate_normals", {
|
|
510
|
+
title: "Recalculate Normals",
|
|
511
|
+
description: "Recalculate face normals to face outward.",
|
|
512
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectName: z.string() },
|
|
513
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
514
|
+
}, async (input) => blenderRecalculateNormals(workspaces, input));
|
|
515
|
+
registerAppTool(server, "blender_flip_normals", {
|
|
516
|
+
title: "Flip Normals",
|
|
517
|
+
description: "Flip face normals.",
|
|
518
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectName: z.string() },
|
|
519
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
520
|
+
}, async (input) => blenderFlipNormals(workspaces, input));
|
|
521
|
+
registerAppTool(server, "blender_triangulate_faces", {
|
|
522
|
+
title: "Triangulate Faces",
|
|
523
|
+
description: "Convert all faces to triangles.",
|
|
524
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectName: z.string() },
|
|
525
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
526
|
+
}, async (input) => blenderTriangulateFaces(workspaces, input));
|
|
527
|
+
registerAppTool(server, "blender_inset_faces", {
|
|
528
|
+
title: "Inset Faces",
|
|
529
|
+
description: "Inset the selected faces.",
|
|
530
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectName: z.string(), thickness: z.number().optional(), depth: z.number().optional() },
|
|
531
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
532
|
+
}, async (input) => blenderInsetFaces(workspaces, input));
|
|
533
|
+
registerAppTool(server, "blender_delete_loose_geometry", {
|
|
534
|
+
title: "Delete Loose Geometry",
|
|
535
|
+
description: "Delete loose vertices and geometry.",
|
|
536
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectName: z.string() },
|
|
537
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
538
|
+
}, async (input) => blenderDeleteLooseGeometry(workspaces, input));
|
|
539
|
+
registerAppTool(server, "blender_fix_non_manifold", {
|
|
540
|
+
title: "Select Non-Manifold",
|
|
541
|
+
description: "Select non-manifold vertices in edit mode.",
|
|
542
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectName: z.string() },
|
|
543
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
544
|
+
}, async (input) => blenderFixNonManifold(workspaces, input));
|
|
545
|
+
registerAppTool(server, "blender_set_face_smoothing", {
|
|
546
|
+
title: "Set Face Smoothing",
|
|
547
|
+
description: "Smooth or flat shade all faces.",
|
|
548
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectName: z.string(), smooth: z.boolean().optional() },
|
|
549
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
550
|
+
}, async (input) => blenderSetFaceSmoothing(workspaces, input));
|
|
551
|
+
// Modifiers
|
|
552
|
+
registerAppTool(server, "blender_add_modifier", {
|
|
553
|
+
title: "Add Modifier",
|
|
554
|
+
description: "Add a modifier to an object.",
|
|
555
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectName: z.string(), modifierType: z.string(), name: z.string().optional() },
|
|
556
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
557
|
+
}, async (input) => blenderAddModifier(workspaces, input));
|
|
558
|
+
registerAppTool(server, "blender_remove_modifier", {
|
|
559
|
+
title: "Remove Modifier",
|
|
560
|
+
description: "Remove a modifier from an object.",
|
|
561
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectName: z.string(), modifierName: z.string() },
|
|
562
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
563
|
+
}, async (input) => blenderRemoveModifier(workspaces, input));
|
|
564
|
+
registerAppTool(server, "blender_apply_modifier", {
|
|
565
|
+
title: "Apply Modifier",
|
|
566
|
+
description: "Apply a modifier to an object permanently.",
|
|
567
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectName: z.string(), modifierName: z.string() },
|
|
568
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
569
|
+
}, async (input) => blenderApplyModifier(workspaces, input));
|
|
570
|
+
// Materials
|
|
571
|
+
registerAppTool(server, "blender_create_material", {
|
|
572
|
+
title: "Create Material",
|
|
573
|
+
description: "Create a principled-material with base color, roughness, metallic.",
|
|
574
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, name: z.string(), color: z.array(z.number()).optional(), roughness: z.number().optional(), metallic: z.number().optional() },
|
|
575
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
576
|
+
}, async (input) => blenderCreateMaterial(workspaces, input));
|
|
577
|
+
registerAppTool(server, "blender_assign_material", {
|
|
578
|
+
title: "Assign Material",
|
|
579
|
+
description: "Assign a material to one or more objects.",
|
|
580
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectNames: z.array(z.string()), materialName: z.string() },
|
|
581
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
582
|
+
}, async (input) => blenderAssignMaterial(workspaces, input));
|
|
583
|
+
registerAppTool(server, "blender_list_materials", {
|
|
584
|
+
title: "List Materials",
|
|
585
|
+
description: "List all materials and their users.",
|
|
586
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA },
|
|
587
|
+
...toolWidgetDescriptorMeta(config, "read"), annotations: READ_ONLY_ANNOTATIONS,
|
|
588
|
+
}, async (input) => blenderListMaterials(workspaces, input));
|
|
589
|
+
registerAppTool(server, "blender_rename_material", {
|
|
590
|
+
title: "Rename Material",
|
|
591
|
+
description: "Rename a material.",
|
|
592
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, materialName: z.string(), newName: z.string() },
|
|
593
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
594
|
+
}, async (input) => blenderRenameMaterial(workspaces, input));
|
|
595
|
+
registerAppTool(server, "blender_duplicate_material", {
|
|
596
|
+
title: "Duplicate Material",
|
|
597
|
+
description: "Duplicate a material.",
|
|
598
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, materialName: z.string(), newName: z.string().optional() },
|
|
599
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
600
|
+
}, async (input) => blenderDuplicateMaterial(workspaces, input));
|
|
601
|
+
registerAppTool(server, "blender_remove_unused_materials", {
|
|
602
|
+
title: "Remove Unused Materials",
|
|
603
|
+
description: "Remove materials with no users.",
|
|
604
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA },
|
|
605
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
606
|
+
}, async (input) => blenderRemoveUnusedMaterials(workspaces, input));
|
|
607
|
+
// Viewport
|
|
608
|
+
registerAppTool(server, "blender_frame_all", {
|
|
609
|
+
title: "Frame All",
|
|
610
|
+
description: "Zoom out to frame the whole scene.",
|
|
611
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA },
|
|
612
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
613
|
+
}, async (input) => blenderFrameAll(workspaces, input));
|
|
614
|
+
registerAppTool(server, "blender_toggle_xray", {
|
|
615
|
+
title: "Toggle X-Ray",
|
|
616
|
+
description: "Toggle or set viewport X-Ray transparency.",
|
|
617
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, enabled: z.boolean().optional() },
|
|
618
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
619
|
+
}, async (input) => blenderToggleXray(workspaces, input));
|
|
620
|
+
registerAppTool(server, "blender_toggle_overlays", {
|
|
621
|
+
title: "Toggle Overlays",
|
|
622
|
+
description: "Toggle or set viewport overlay visibility.",
|
|
623
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, enabled: z.boolean().optional() },
|
|
624
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
625
|
+
}, async (input) => blenderToggleOverlays(workspaces, input));
|
|
626
|
+
registerAppTool(server, "blender_toggle_local_view", {
|
|
627
|
+
title: "Toggle Local View",
|
|
628
|
+
description: "Toggle local view for selected objects.",
|
|
629
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, enable: z.boolean().optional() },
|
|
630
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
631
|
+
}, async (input) => blenderToggleLocalView(workspaces, input));
|
|
632
|
+
// Export & utility
|
|
633
|
+
registerAppTool(server, "blender_export_fbx", {
|
|
634
|
+
title: "Export FBX",
|
|
635
|
+
description: "Export the scene to an FBX file.",
|
|
636
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, filepath: z.string(), applyScale: z.enum(["FBX_SCALE_NONE", "FBX_SCALE_UNITS", "FBX_SCALE_CUSTOM", "FBX_SCALE_ALL"]).optional(), useSelected: z.boolean().optional() },
|
|
637
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
638
|
+
}, async (input) => blenderExportFbx(workspaces, input));
|
|
639
|
+
registerAppTool(server, "blender_export_obj", {
|
|
640
|
+
title: "Export OBJ",
|
|
641
|
+
description: "Export the scene to an OBJ file.",
|
|
642
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, filepath: z.string(), useSelected: z.boolean().optional() },
|
|
643
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
644
|
+
}, async (input) => blenderExportObj(workspaces, input));
|
|
645
|
+
registerAppTool(server, "blender_purge_unused_data", {
|
|
646
|
+
title: "Purge Unused Data",
|
|
647
|
+
description: "Remove orphaned data blocks from the file.",
|
|
648
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA },
|
|
649
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
650
|
+
}, async (input) => blenderPurgeUnusedData(workspaces, input));
|
|
651
|
+
// Animation
|
|
652
|
+
registerAppTool(server, "blender_set_frame", {
|
|
653
|
+
title: "Set Frame",
|
|
654
|
+
description: "Set the current animation frame.",
|
|
655
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, frame: z.number() },
|
|
656
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
657
|
+
}, async (input) => blenderSetFrame(workspaces, input));
|
|
658
|
+
registerAppTool(server, "blender_play_animation", {
|
|
659
|
+
title: "Play Animation",
|
|
660
|
+
description: "Start animation playback.",
|
|
661
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA },
|
|
662
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
663
|
+
}, async (input) => blenderPlayAnimation(workspaces, input));
|
|
664
|
+
registerAppTool(server, "blender_stop_animation", {
|
|
665
|
+
title: "Stop Animation",
|
|
666
|
+
description: "Stop animation playback.",
|
|
667
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA },
|
|
668
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
669
|
+
}, async (input) => blenderStopAnimation(workspaces, input));
|
|
670
|
+
registerAppTool(server, "blender_insert_keyframe", {
|
|
671
|
+
title: "Insert Keyframe",
|
|
672
|
+
description: "Insert a keyframe on object properties.",
|
|
673
|
+
inputSchema: { workspaceId: WORKSPACE_ID_SCHEMA, objectName: z.string(), properties: z.array(z.enum(["location", "rotation_euler", "scale", "rotation_quaternion", "hide_viewport", "hide_render"])).optional(), frame: z.number().optional() },
|
|
674
|
+
...toolWidgetDescriptorMeta(config, "write"), annotations: MUTATING_ANNOTATIONS,
|
|
675
|
+
}, async (input) => blenderInsertKeyframe(workspaces, input));
|
|
676
|
+
// ─── Bridge catalog tools (data-driven) ──────────────────────────────────
|
|
677
|
+
const catalogTools = [
|
|
678
|
+
...sceneCatalogTools,
|
|
679
|
+
...selectCatalogTools,
|
|
680
|
+
...meshCatalogTools,
|
|
681
|
+
...objectCatalogTools,
|
|
682
|
+
...stubCatalogTools,
|
|
683
|
+
];
|
|
684
|
+
registerCatalogTools(server, config, workspaces, catalogTools.filter((tool) => !ALREADY_REGISTERED_BLENDER_TOOLS.has(tool.name)));
|
|
685
|
+
}
|
|
686
|
+
const ALREADY_REGISTERED_BLENDER_TOOLS = new Set([
|
|
687
|
+
"blender_delete_loose_geometry",
|
|
688
|
+
"blender_rename_object",
|
|
689
|
+
"blender_delete_objects",
|
|
690
|
+
]);
|