@hybridlabor-api/aos 4.4.1 → 4.4.2-beta.0

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.
Files changed (305) hide show
  1. package/.agents/skills/firecrawl/SKILL.md +149 -0
  2. package/.agents/skills/firecrawl/rules/install.md +82 -0
  3. package/.agents/skills/firecrawl/rules/security.md +26 -0
  4. package/.agents/skills/firecrawl-agent/SKILL.md +58 -0
  5. package/.agents/skills/firecrawl-build/SKILL.md +39 -0
  6. package/.agents/skills/firecrawl-build-interact/SKILL.md +68 -0
  7. package/.agents/skills/firecrawl-build-onboarding/SKILL.md +103 -0
  8. package/.agents/skills/firecrawl-build-onboarding/references/auth-flow.md +39 -0
  9. package/.agents/skills/firecrawl-build-onboarding/references/project-setup.md +20 -0
  10. package/.agents/skills/firecrawl-build-onboarding/references/sdk-installation.md +17 -0
  11. package/.agents/skills/firecrawl-build-scrape/SKILL.md +69 -0
  12. package/.agents/skills/firecrawl-build-search/SKILL.md +69 -0
  13. package/.agents/skills/firecrawl-crawl/SKILL.md +59 -0
  14. package/.agents/skills/firecrawl-download/SKILL.md +70 -0
  15. package/.agents/skills/firecrawl-interact/SKILL.md +84 -0
  16. package/.agents/skills/firecrawl-map/SKILL.md +51 -0
  17. package/.agents/skills/firecrawl-scrape/SKILL.md +69 -0
  18. package/.agents/skills/firecrawl-search/SKILL.md +60 -0
  19. package/CLAUDE.md +573 -0
  20. package/README.de.md +0 -8
  21. package/README.md +0 -8
  22. package/README.pt.md +0 -8
  23. package/assets/brand/ao-ant-mark.svg +91 -0
  24. package/assets/brand/bdb-core-mark.svg +34 -0
  25. package/assets/brand/heimdall-guardian-mark.svg +16 -0
  26. package/assets/brand/memb-crystal-mark.svg +18 -0
  27. package/bin/aos-config.mjs +89 -0
  28. package/bin/aos-dashboard.mjs +608 -0
  29. package/bin/aos-uninstall.mjs +227 -0
  30. package/docs/sessions/audit-2026-09-14-silent-failures.md +114 -0
  31. package/docs/skills_table.md +0 -3
  32. package/installer.js +387 -237
  33. package/mcps/RhinoMCP/cc-plugin/.claude/settings.json +10 -0
  34. package/mcps/after-effects-mcp/build/index.js +840 -0
  35. package/mcps/after-effects-mcp/build/scripts/applyEffect.jsx +153 -0
  36. package/mcps/after-effects-mcp/build/scripts/applyEffectTemplate.jsx +218 -0
  37. package/mcps/after-effects-mcp/build/scripts/createComposition.jsx +71 -0
  38. package/mcps/after-effects-mcp/build/scripts/createShapeLayer.jsx +147 -0
  39. package/mcps/after-effects-mcp/build/scripts/createSolidLayer.jsx +114 -0
  40. package/mcps/after-effects-mcp/build/scripts/createTextLayer.jsx +115 -0
  41. package/mcps/after-effects-mcp/build/scripts/getLayerInfo.jsx +192 -0
  42. package/mcps/after-effects-mcp/build/scripts/getProjectInfo.jsx +90 -0
  43. package/mcps/after-effects-mcp/build/scripts/listCompositions.jsx +50 -0
  44. package/mcps/after-effects-mcp/build/scripts/mcp-bridge-auto.jsx +1773 -0
  45. package/mcps/after-effects-mcp/build/scripts/setLayerProperties.jsx +160 -0
  46. package/mcps/computer-use-mcp/dist/client.d.ts +150 -0
  47. package/mcps/computer-use-mcp/dist/client.js +136 -0
  48. package/mcps/computer-use-mcp/dist/entrypoint.d.ts +16 -0
  49. package/mcps/computer-use-mcp/dist/entrypoint.js +26 -0
  50. package/mcps/computer-use-mcp/dist/native.d.ts +212 -0
  51. package/mcps/computer-use-mcp/dist/native.js +50 -0
  52. package/mcps/computer-use-mcp/dist/server.d.ts +32 -0
  53. package/mcps/computer-use-mcp/dist/server.js +342 -0
  54. package/mcps/computer-use-mcp/dist/session.d.ts +101 -0
  55. package/mcps/computer-use-mcp/dist/session.js +2372 -0
  56. package/package.json +13 -4
  57. package/skills/global_config/aos-project-init/SKILL.md +97 -130
  58. package/skills/global_config/aos-project-init/assets/openwikiignore.template +62 -0
  59. package/skills/global_config/aos-project-init/scripts/aos-project-doctor.mjs +38 -1
  60. package/skills/global_config/aos-setup/SKILL.md +98 -8
  61. package/skills/global_config/aos-setup/scripts/aos-doctor.mjs +21 -2
  62. package/skills/global_config/ask-tim/SKILL.md +2 -7
  63. package/skills/global_config/openwiki-skill/scripts/openwiki_daemon.py +65 -12
  64. package/bin/setup-saas.mjs +0 -792
  65. package/mcps/blender-mcp-server/.dockerignore +0 -19
  66. package/mcps/blender-mcp-server/.github/workflows/ci.yml +0 -67
  67. package/mcps/blender-mcp-server/.github/workflows/publish-pypi.yml +0 -54
  68. package/mcps/blender-mcp-server/CHANGELOG.md +0 -64
  69. package/mcps/blender-mcp-server/CONTRIBUTING.md +0 -107
  70. package/mcps/blender-mcp-server/Dockerfile +0 -19
  71. package/mcps/blender-mcp-server/LICENSE +0 -21
  72. package/mcps/blender-mcp-server/README.md +0 -409
  73. package/mcps/blender-mcp-server/addon/__init__.py +0 -1440
  74. package/mcps/blender-mcp-server/addon/models.py +0 -223
  75. package/mcps/blender-mcp-server/pyproject.toml +0 -120
  76. package/mcps/blender-mcp-server/scripts/blender_bridge_request.py +0 -71
  77. package/mcps/blender-mcp-server/scripts/blender_create_test_cube.py +0 -49
  78. package/mcps/blender-mcp-server/scripts/blender_scene_info.py +0 -38
  79. package/mcps/blender-mcp-server/scripts/build_addon_zip.sh +0 -29
  80. package/mcps/blender-mcp-server/scripts/demos/README.md +0 -186
  81. package/mcps/blender-mcp-server/scripts/demos/dam_break_scene.py +0 -276
  82. package/mcps/blender-mcp-server/scripts/demos/open_dam_break_gui.py +0 -33
  83. package/mcps/blender-mcp-server/scripts/demos/pipe_movement_study.py +0 -518
  84. package/mcps/blender-mcp-server/scripts/demos/pipe_pressure_failure_scene.py +0 -806
  85. package/mcps/blender-mcp-server/scripts/demos/procedural_dam_break_scene.py +0 -600
  86. package/mcps/blender-mcp-server/scripts/demos/run_dam_break.py +0 -510
  87. package/mcps/blender-mcp-server/scripts/launch_blender_gui.py +0 -41
  88. package/mcps/blender-mcp-server/scripts/library/README.md +0 -64
  89. package/mcps/blender-mcp-server/scripts/library/apply_transforms.py +0 -46
  90. package/mcps/blender-mcp-server/scripts/library/camera.py +0 -51
  91. package/mcps/blender-mcp-server/scripts/library/collections.py +0 -65
  92. package/mcps/blender-mcp-server/scripts/library/create_mesh.py +0 -41
  93. package/mcps/blender-mcp-server/scripts/library/effector.py +0 -48
  94. package/mcps/blender-mcp-server/scripts/library/fluid_domain.py +0 -80
  95. package/mcps/blender-mcp-server/scripts/library/fluid_inflow.py +0 -98
  96. package/mcps/blender-mcp-server/scripts/library/frame_range.py +0 -35
  97. package/mcps/blender-mcp-server/scripts/library/keyframes.py +0 -59
  98. package/mcps/blender-mcp-server/scripts/library/rigid_body.py +0 -52
  99. package/mcps/blender-mcp-server/scripts/library/save_blend.py +0 -40
  100. package/mcps/blender-mcp-server/scripts/server_start.sh +0 -26
  101. package/mcps/blender-mcp-server/src/blender_mcp_server/__init__.py +0 -3
  102. package/mcps/blender-mcp-server/src/blender_mcp_server/headless.py +0 -330
  103. package/mcps/blender-mcp-server/src/blender_mcp_server/server.py +0 -606
  104. package/mcps/davinci-mcp-professional/.bandit +0 -35
  105. package/mcps/davinci-mcp-professional/.claude/commands/security-review.md +0 -191
  106. package/mcps/davinci-mcp-professional/.claude/settings.json +0 -1
  107. package/mcps/davinci-mcp-professional/.editorconfig +0 -27
  108. package/mcps/davinci-mcp-professional/.gitattributes +0 -207
  109. package/mcps/davinci-mcp-professional/.github/CODEOWNERS +0 -2
  110. package/mcps/davinci-mcp-professional/.github/ISSUE_TEMPLATE/bug_report.md +0 -33
  111. package/mcps/davinci-mcp-professional/.github/ISSUE_TEMPLATE/feature_request.md +0 -19
  112. package/mcps/davinci-mcp-professional/.github/PULL_REQUEST_TEMPLATE.md +0 -20
  113. package/mcps/davinci-mcp-professional/.github/SECURITY.md +0 -97
  114. package/mcps/davinci-mcp-professional/.github/dependabot.yml +0 -27
  115. package/mcps/davinci-mcp-professional/.github/workflows/ci.yml +0 -39
  116. package/mcps/davinci-mcp-professional/ATTRIBUTION.md +0 -4
  117. package/mcps/davinci-mcp-professional/AUTHORS.md +0 -9
  118. package/mcps/davinci-mcp-professional/BUGS.md +0 -55
  119. package/mcps/davinci-mcp-professional/CLAUDE.md +0 -229
  120. package/mcps/davinci-mcp-professional/CONTRIBUTING.md +0 -51
  121. package/mcps/davinci-mcp-professional/COPYING.md +0 -228
  122. package/mcps/davinci-mcp-professional/Doxyfile +0 -379
  123. package/mcps/davinci-mcp-professional/README.md +0 -143
  124. package/mcps/davinci-mcp-professional/SECURITY.md +0 -40
  125. package/mcps/davinci-mcp-professional/USING.md +0 -301
  126. package/mcps/davinci-mcp-professional/VERSION.md +0 -13
  127. package/mcps/davinci-mcp-professional/build.py +0 -169
  128. package/mcps/davinci-mcp-professional/claude_desktop_config_template.json +0 -11
  129. package/mcps/davinci-mcp-professional/hooks/ci-check.sh +0 -29
  130. package/mcps/davinci-mcp-professional/hooks/pre-push +0 -46
  131. package/mcps/davinci-mcp-professional/main.py +0 -40
  132. package/mcps/davinci-mcp-professional/mcp_server.py +0 -30
  133. package/mcps/davinci-mcp-professional/pyproject.toml +0 -115
  134. package/mcps/davinci-mcp-professional/security_audit.py +0 -379
  135. package/mcps/davinci-mcp-professional/src/davinci_mcp/__init__.py +0 -19
  136. package/mcps/davinci-mcp-professional/src/davinci_mcp/cli.py +0 -138
  137. package/mcps/davinci-mcp-professional/src/davinci_mcp/resolve_client.py +0 -342
  138. package/mcps/davinci-mcp-professional/src/davinci_mcp/resources/__init__.py +0 -60
  139. package/mcps/davinci-mcp-professional/src/davinci_mcp/server.py +0 -185
  140. package/mcps/davinci-mcp-professional/src/davinci_mcp/tools/__init__.py +0 -146
  141. package/mcps/davinci-mcp-professional/src/davinci_mcp/types.py +0 -125
  142. package/mcps/davinci-mcp-professional/src/davinci_mcp/utils/__init__.py +0 -19
  143. package/mcps/davinci-mcp-professional/src/davinci_mcp/utils/platform.py +0 -239
  144. package/mcps/davinci-mcp-professional/test.py +0 -186
  145. package/mcps/davinci-mcp-professional/uv.lock +0 -2073
  146. package/mcps/davinci-resolve-mcp/.claude/skills/media-analysis.md +0 -44
  147. package/mcps/davinci-resolve-mcp/.clinerules +0 -17
  148. package/mcps/davinci-resolve-mcp/.cursorrules +0 -17
  149. package/mcps/davinci-resolve-mcp/.github/copilot-instructions.md +0 -17
  150. package/mcps/davinci-resolve-mcp/.github/workflows/npm-publish.yml +0 -109
  151. package/mcps/davinci-resolve-mcp/.windsurfrules +0 -17
  152. package/mcps/davinci-resolve-mcp/AGENTS.md +0 -114
  153. package/mcps/davinci-resolve-mcp/CHANGELOG.md +0 -2648
  154. package/mcps/davinci-resolve-mcp/CLAUDE.md +0 -15
  155. package/mcps/davinci-resolve-mcp/LICENSE +0 -21
  156. package/mcps/davinci-resolve-mcp/README.md +0 -173
  157. package/mcps/davinci-resolve-mcp/SECURITY.md +0 -53
  158. package/mcps/davinci-resolve-mcp/bin/davinci-resolve-mcp.mjs +0 -450
  159. package/mcps/davinci-resolve-mcp/examples/README.md +0 -53
  160. package/mcps/davinci-resolve-mcp/examples/markers/README.md +0 -81
  161. package/mcps/davinci-resolve-mcp/examples/media/README.md +0 -94
  162. package/mcps/davinci-resolve-mcp/examples/timeline/README.md +0 -98
  163. package/mcps/davinci-resolve-mcp/install.py +0 -1687
  164. package/mcps/davinci-resolve-mcp/package.json +0 -52
  165. package/mcps/davinci-resolve-mcp/release-notes/v2.22.0.md +0 -51
  166. package/mcps/davinci-resolve-mcp/release-notes/v2.23.0.md +0 -51
  167. package/mcps/davinci-resolve-mcp/release-notes/v2.23.1.md +0 -35
  168. package/mcps/davinci-resolve-mcp/release-notes/v2.24.1.md +0 -32
  169. package/mcps/davinci-resolve-mcp/scripts/audit_api_parity.py +0 -275
  170. package/mcps/davinci-resolve-mcp/scripts/audit_readwrite_symmetry.py +0 -80
  171. package/mcps/davinci-resolve-mcp/scripts/doctor.py +0 -227
  172. package/mcps/davinci-resolve-mcp/scripts/gen_api_limitations.py +0 -144
  173. package/mcps/davinci-resolve-mcp/scripts/live_media_analysis_polish_probe.py +0 -65
  174. package/mcps/davinci-resolve-mcp/scripts/measure_bridge_cost.py +0 -65
  175. package/mcps/davinci-resolve-mcp/scripts/regen_panel_screenshots.py +0 -76
  176. package/mcps/davinci-resolve-mcp/src/__init__.py +0 -3
  177. package/mcps/davinci-resolve-mcp/src/analysis_dashboard.py +0 -15505
  178. package/mcps/davinci-resolve-mcp/src/batch_cli.py +0 -540
  179. package/mcps/davinci-resolve-mcp/src/control_panel.py +0 -13
  180. package/mcps/davinci-resolve-mcp/src/granular/__init__.py +0 -17
  181. package/mcps/davinci-resolve-mcp/src/granular/common.py +0 -741
  182. package/mcps/davinci-resolve-mcp/src/granular/folder.py +0 -420
  183. package/mcps/davinci-resolve-mcp/src/granular/gallery.py +0 -306
  184. package/mcps/davinci-resolve-mcp/src/granular/graph.py +0 -309
  185. package/mcps/davinci-resolve-mcp/src/granular/media_pool.py +0 -679
  186. package/mcps/davinci-resolve-mcp/src/granular/media_pool_item.py +0 -1020
  187. package/mcps/davinci-resolve-mcp/src/granular/media_storage.py +0 -179
  188. package/mcps/davinci-resolve-mcp/src/granular/project.py +0 -1654
  189. package/mcps/davinci-resolve-mcp/src/granular/resolve_control.py +0 -538
  190. package/mcps/davinci-resolve-mcp/src/granular/timeline.py +0 -1075
  191. package/mcps/davinci-resolve-mcp/src/granular/timeline_item.py +0 -2251
  192. package/mcps/davinci-resolve-mcp/src/resolve_mcp_server.py +0 -43
  193. package/mcps/davinci-resolve-mcp/src/server.py +0 -24116
  194. package/mcps/davinci-resolve-mcp/src/utils/__init__.py +0 -3
  195. package/mcps/davinci-resolve-mcp/src/utils/actor_identity.py +0 -46
  196. package/mcps/davinci-resolve-mcp/src/utils/analysis_caps.py +0 -678
  197. package/mcps/davinci-resolve-mcp/src/utils/analysis_memory.py +0 -755
  198. package/mcps/davinci-resolve-mcp/src/utils/analysis_runs.py +0 -307
  199. package/mcps/davinci-resolve-mcp/src/utils/analysis_store.py +0 -945
  200. package/mcps/davinci-resolve-mcp/src/utils/api_truth.py +0 -525
  201. package/mcps/davinci-resolve-mcp/src/utils/app_control.py +0 -319
  202. package/mcps/davinci-resolve-mcp/src/utils/audio_fairlight_live_probe.py +0 -263
  203. package/mcps/davinci-resolve-mcp/src/utils/brain_edits.py +0 -387
  204. package/mcps/davinci-resolve-mcp/src/utils/bridge_metrics.py +0 -76
  205. package/mcps/davinci-resolve-mcp/src/utils/cdl.py +0 -20
  206. package/mcps/davinci-resolve-mcp/src/utils/clip_query.py +0 -85
  207. package/mcps/davinci-resolve-mcp/src/utils/cloud_operations.py +0 -192
  208. package/mcps/davinci-resolve-mcp/src/utils/color_grade_live_probe.py +0 -444
  209. package/mcps/davinci-resolve-mcp/src/utils/contracts.py +0 -102
  210. package/mcps/davinci-resolve-mcp/src/utils/cut_ir.py +0 -115
  211. package/mcps/davinci-resolve-mcp/src/utils/dctl_templates.py +0 -368
  212. package/mcps/davinci-resolve-mcp/src/utils/deep_vision.py +0 -643
  213. package/mcps/davinci-resolve-mcp/src/utils/destructive_hook.py +0 -606
  214. package/mcps/davinci-resolve-mcp/src/utils/edit_engine.py +0 -737
  215. package/mcps/davinci-resolve-mcp/src/utils/embeddings.py +0 -922
  216. package/mcps/davinci-resolve-mcp/src/utils/entities.py +0 -579
  217. package/mcps/davinci-resolve-mcp/src/utils/extension_authoring_live_probe.py +0 -292
  218. package/mcps/davinci-resolve-mcp/src/utils/failure_tracker.py +0 -119
  219. package/mcps/davinci-resolve-mcp/src/utils/fuse_templates.py +0 -1968
  220. package/mcps/davinci-resolve-mcp/src/utils/fusion_composition_live_probe.py +0 -284
  221. package/mcps/davinci-resolve-mcp/src/utils/fusion_group_settings.py +0 -334
  222. package/mcps/davinci-resolve-mcp/src/utils/layout_presets.py +0 -333
  223. package/mcps/davinci-resolve-mcp/src/utils/mcp_stdio.py +0 -32
  224. package/mcps/davinci-resolve-mcp/src/utils/mcp_transport.py +0 -128
  225. package/mcps/davinci-resolve-mcp/src/utils/media_analysis.py +0 -7690
  226. package/mcps/davinci-resolve-mcp/src/utils/media_analysis_jobs.py +0 -805
  227. package/mcps/davinci-resolve-mcp/src/utils/media_pool_changes.py +0 -121
  228. package/mcps/davinci-resolve-mcp/src/utils/media_pool_ingest_live_probe.py +0 -592
  229. package/mcps/davinci-resolve-mcp/src/utils/multicam.py +0 -393
  230. package/mcps/davinci-resolve-mcp/src/utils/object_inspection.py +0 -301
  231. package/mcps/davinci-resolve-mcp/src/utils/page_lock.py +0 -75
  232. package/mcps/davinci-resolve-mcp/src/utils/platform.py +0 -157
  233. package/mcps/davinci-resolve-mcp/src/utils/proc.py +0 -26
  234. package/mcps/davinci-resolve-mcp/src/utils/project_cleanup.py +0 -73
  235. package/mcps/davinci-resolve-mcp/src/utils/project_lifecycle_live_probe.py +0 -376
  236. package/mcps/davinci-resolve-mcp/src/utils/project_lint.py +0 -131
  237. package/mcps/davinci-resolve-mcp/src/utils/project_properties.py +0 -601
  238. package/mcps/davinci-resolve-mcp/src/utils/project_spec.py +0 -459
  239. package/mcps/davinci-resolve-mcp/src/utils/readback.py +0 -91
  240. package/mcps/davinci-resolve-mcp/src/utils/render_deliver_live_probe.py +0 -384
  241. package/mcps/davinci-resolve-mcp/src/utils/resolve_ai_governance.py +0 -214
  242. package/mcps/davinci-resolve-mcp/src/utils/resolve_ai_ledger.py +0 -244
  243. package/mcps/davinci-resolve-mcp/src/utils/resolve_busy.py +0 -171
  244. package/mcps/davinci-resolve-mcp/src/utils/resolve_connection.py +0 -77
  245. package/mcps/davinci-resolve-mcp/src/utils/review_annotation_live_probe.py +0 -352
  246. package/mcps/davinci-resolve-mcp/src/utils/script_templates.py +0 -1193
  247. package/mcps/davinci-resolve-mcp/src/utils/shot_relationships.py +0 -544
  248. package/mcps/davinci-resolve-mcp/src/utils/structural_diff.py +0 -175
  249. package/mcps/davinci-resolve-mcp/src/utils/sync_detection.py +0 -889
  250. package/mcps/davinci-resolve-mcp/src/utils/timeline_brain_db.py +0 -826
  251. package/mcps/davinci-resolve-mcp/src/utils/timeline_conform_live_probe.py +0 -280
  252. package/mcps/davinci-resolve-mcp/src/utils/timeline_kernel_live_probe.py +0 -1092
  253. package/mcps/davinci-resolve-mcp/src/utils/timeline_kernel_probe.py +0 -185
  254. package/mcps/davinci-resolve-mcp/src/utils/timeline_title_text.py +0 -87
  255. package/mcps/davinci-resolve-mcp/src/utils/timeline_versioning.py +0 -730
  256. package/mcps/davinci-resolve-mcp/src/utils/update_check.py +0 -685
  257. package/mcps/vectorworks-mcp/.dockerignore +0 -8
  258. package/mcps/vectorworks-mcp/Dockerfile +0 -28
  259. package/mcps/vectorworks-mcp/README.md +0 -156
  260. package/mcps/vectorworks-mcp/app/__init__.py +0 -2
  261. package/mcps/vectorworks-mcp/app/api.py +0 -52
  262. package/mcps/vectorworks-mcp/app/chunking.py +0 -56
  263. package/mcps/vectorworks-mcp/app/config.py +0 -29
  264. package/mcps/vectorworks-mcp/app/embeddings.py +0 -28
  265. package/mcps/vectorworks-mcp/app/indexer.py +0 -106
  266. package/mcps/vectorworks-mcp/app/main.py +0 -33
  267. package/mcps/vectorworks-mcp/app/mcp_server.py +0 -71
  268. package/mcps/vectorworks-mcp/app/search.py +0 -54
  269. package/mcps/vectorworks-mcp/app/utils.py +0 -14
  270. package/mcps/vectorworks-mcp/data/.gitkeep +0 -1
  271. package/mcps/vectorworks-mcp/data/vw-app-help/VW2022_PluginScript.htm +0 -95
  272. package/mcps/vectorworks-mcp/data/vw-app-help/VW2022_ScriptEditor.htm +0 -266
  273. package/mcps/vectorworks-mcp/data/vw-app-help/VW2022_Scripting.htm +0 -106
  274. package/mcps/vectorworks-mcp/data/vw-app-help/VW2023_CreatingScriptedPlugins.htm +0 -327
  275. package/mcps/vectorworks-mcp/data/vw-app-help/VW2024_RunningScripts.htm +0 -116
  276. package/mcps/vectorworks-mcp/data/vw-devwiki/VS_Function_Reference_category.html +0 -2129
  277. package/mcps/vectorworks-mcp/data/vw-jp-ref/ObjectsSymbols.html +0 -2035
  278. package/mcps/vectorworks-mcp/data/vw-jp-ref/ScriptFunctionReference.html +0 -29
  279. package/mcps/vectorworks-mcp/design.md +0 -57
  280. package/mcps/vectorworks-mcp/docker-compose.yml +0 -18
  281. package/mcps/vectorworks-mcp/index/.gitkeep +0 -1
  282. package/mcps/vectorworks-mcp/index/meta.jsonl +0 -3956
  283. package/mcps/vectorworks-mcp/index/vw.faiss +0 -0
  284. package/mcps/vectorworks-mcp/requirements.txt +0 -10
  285. package/mcps/vectorworks-mcp/scripts/fetch_docs_minimal.sh +0 -84
  286. package/mcps/vectorworks-mcp/scripts/fetch_github_vectorworks.sh +0 -85
  287. package/mcps/vectorworks-mcp/templates/index.html +0 -40
  288. package/scripts/ecosystem-health-audit.js +0 -257
  289. package/skills/bdb-dev-os-skill/SKILL.md +0 -49
  290. package/skills/bdb-dev-os-skill/package.json +0 -11
  291. package/skills/bdbsaastraining/SKILL.md +0 -316
  292. package/skills/bdbsaastraining/references/exam-pool.md +0 -313
  293. package/skills/bdbsaastraining/references/interaction-modes.md +0 -94
  294. package/skills/bdbsaastraining/references/track-a-ai-agent.md +0 -111
  295. package/skills/bdbsaastraining/references/track-b-wordpress.md +0 -111
  296. package/skills/bdbsaastraining/references/track-c-mailserver.md +0 -107
  297. package/skills/bdbsaastraining/references/track-d-debian.md +0 -109
  298. package/skills/bdbsaastraining/references/track-e-custom.md +0 -83
  299. package/skills/bdbsaastraining/scripts/build_profile.py +0 -529
  300. package/skills/bdbsaastraining/scripts/generate_certificate.py +0 -161
  301. package/skills/bdbsaastraining/scripts/preflight_check.sh +0 -150
  302. package/skills/bdbsaastraining/templates/certificate_template.html +0 -508
  303. package/skills/global_config/bdb-ecosystem-health/SKILL.md +0 -68
  304. package/skills/global_config/bdbsaas-ops/SKILL.md +0 -16
  305. package/skills/global_config/bdbsaashost/SKILL.md +0 -125
@@ -0,0 +1,840 @@
1
+ // src/index.ts
2
+ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
3
+ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
4
+ import * as fs from "fs";
5
+ import * as os from "os";
6
+ import * as path from "path";
7
+ import { z } from "zod";
8
+ import { fileURLToPath } from "url";
9
+ var server = new McpServer({
10
+ name: "AfterEffectsServer",
11
+ version: "1.0.0"
12
+ });
13
+ var __filename = fileURLToPath(import.meta.url);
14
+ var __dirname = path.dirname(__filename);
15
+ var SCRIPTS_DIR = path.join(__dirname, "scripts");
16
+ var TEMP_DIR = path.join(__dirname, "temp");
17
+ function getAETempDir() {
18
+ const homeDir = os.homedir();
19
+ const bridgeDir = path.join(homeDir, "Documents", "ae-mcp-bridge");
20
+ if (!fs.existsSync(bridgeDir)) {
21
+ fs.mkdirSync(bridgeDir, { recursive: true });
22
+ }
23
+ return bridgeDir;
24
+ }
25
+ function readResultsFromTempFile() {
26
+ try {
27
+ const tempFilePath = path.join(getAETempDir(), "ae_mcp_result.json");
28
+ console.error(`Checking for results at: ${tempFilePath}`);
29
+ if (fs.existsSync(tempFilePath)) {
30
+ const stats = fs.statSync(tempFilePath);
31
+ console.error(`Result file exists, last modified: ${stats.mtime.toISOString()}`);
32
+ const content = fs.readFileSync(tempFilePath, "utf8");
33
+ console.error(`Result file content length: ${content.length} bytes`);
34
+ const thirtySecondsAgo = new Date(Date.now() - 30 * 1e3);
35
+ if (stats.mtime < thirtySecondsAgo) {
36
+ console.error(`WARNING: Result file is older than 30 seconds. After Effects may not be updating results.`);
37
+ return JSON.stringify({
38
+ warning: "Result file appears to be stale (not recently updated).",
39
+ message: "This could indicate After Effects is not properly writing results or the MCP Bridge Auto panel isn't running.",
40
+ lastModified: stats.mtime.toISOString(),
41
+ originalContent: content
42
+ });
43
+ }
44
+ return content;
45
+ } else {
46
+ console.error(`Result file not found at: ${tempFilePath}`);
47
+ return JSON.stringify({ error: "No results file found. Please run a script in After Effects first." });
48
+ }
49
+ } catch (error) {
50
+ console.error("Error reading results file:", error);
51
+ return JSON.stringify({ error: `Failed to read results: ${String(error)}` });
52
+ }
53
+ }
54
+ async function waitForBridgeResult(expectedCommand, timeoutMs = 5e3, pollMs = 250) {
55
+ const start = Date.now();
56
+ const resultPath = path.join(getAETempDir(), "ae_mcp_result.json");
57
+ let lastSize = -1;
58
+ while (Date.now() - start < timeoutMs) {
59
+ if (fs.existsSync(resultPath)) {
60
+ try {
61
+ const content = fs.readFileSync(resultPath, "utf8");
62
+ if (content && content.length > 0 && content.length !== lastSize) {
63
+ lastSize = content.length;
64
+ try {
65
+ const parsed = JSON.parse(content);
66
+ if (!expectedCommand || parsed._commandExecuted === expectedCommand) {
67
+ return content;
68
+ }
69
+ } catch {
70
+ }
71
+ }
72
+ } catch {
73
+ }
74
+ }
75
+ await new Promise((r) => setTimeout(r, pollMs));
76
+ }
77
+ return JSON.stringify({ error: `Timed out waiting for bridge result${expectedCommand ? ` for command '${expectedCommand}'` : ""}.` });
78
+ }
79
+ function writeCommandFile(command, args = {}) {
80
+ try {
81
+ const commandFile = path.join(getAETempDir(), "ae_command.json");
82
+ const commandData = {
83
+ command,
84
+ args,
85
+ timestamp: (/* @__PURE__ */ new Date()).toISOString(),
86
+ status: "pending"
87
+ // pending, running, completed, error
88
+ };
89
+ fs.writeFileSync(commandFile, JSON.stringify(commandData, null, 2));
90
+ console.error(`Command "${command}" written to ${commandFile}`);
91
+ } catch (error) {
92
+ console.error("Error writing command file:", error);
93
+ }
94
+ }
95
+ function clearResultsFile() {
96
+ try {
97
+ const resultFile = path.join(getAETempDir(), "ae_mcp_result.json");
98
+ const resetData = {
99
+ status: "waiting",
100
+ message: "Waiting for new result from After Effects...",
101
+ timestamp: (/* @__PURE__ */ new Date()).toISOString()
102
+ };
103
+ fs.writeFileSync(resultFile, JSON.stringify(resetData, null, 2));
104
+ console.error(`Results file cleared at ${resultFile}`);
105
+ } catch (error) {
106
+ console.error("Error clearing results file:", error);
107
+ }
108
+ }
109
+ server.resource(
110
+ "compositions",
111
+ "aftereffects://compositions",
112
+ async (uri) => {
113
+ clearResultsFile();
114
+ writeCommandFile("listCompositions", {});
115
+ const result = await waitForBridgeResult("listCompositions", 6e3, 250);
116
+ return {
117
+ contents: [{
118
+ uri: uri.href,
119
+ mimeType: "application/json",
120
+ text: result
121
+ }]
122
+ };
123
+ }
124
+ );
125
+ server.tool(
126
+ "run-script",
127
+ "Run a read-only script in After Effects",
128
+ {
129
+ script: z.string().describe("Name of the predefined script to run"),
130
+ parameters: z.record(z.string(), z.unknown()).optional().describe("Optional parameters for the script")
131
+ },
132
+ async ({ script, parameters = {} }) => {
133
+ const allowedScripts = [
134
+ "listCompositions",
135
+ "getProjectInfo",
136
+ "getLayerInfo",
137
+ "createComposition",
138
+ "createTextLayer",
139
+ "createShapeLayer",
140
+ "createSolidLayer",
141
+ "setLayerProperties",
142
+ "setLayerKeyframe",
143
+ "setLayerExpression",
144
+ "applyEffect",
145
+ "applyEffectTemplate",
146
+ "test-animation",
147
+ "bridgeTestEffects",
148
+ "createCamera",
149
+ "batchSetLayerProperties",
150
+ "setCompositionProperties",
151
+ "duplicateLayer",
152
+ "deleteLayer",
153
+ "setLayerMask"
154
+ ];
155
+ if (!allowedScripts.includes(script)) {
156
+ return {
157
+ content: [
158
+ {
159
+ type: "text",
160
+ text: `Error: Script "${script}" is not allowed. Allowed scripts are: ${allowedScripts.join(", ")}`
161
+ }
162
+ ],
163
+ isError: true
164
+ };
165
+ }
166
+ try {
167
+ clearResultsFile();
168
+ writeCommandFile(script, parameters);
169
+ return {
170
+ content: [
171
+ {
172
+ type: "text",
173
+ text: `Command to run "${script}" has been queued.
174
+ Please ensure the "MCP Bridge Auto" panel is open in After Effects.
175
+ Use the "get-results" tool after a few seconds to check for results.`
176
+ }
177
+ ]
178
+ };
179
+ } catch (error) {
180
+ return {
181
+ content: [
182
+ {
183
+ type: "text",
184
+ text: `Error queuing command: ${String(error)}`
185
+ }
186
+ ],
187
+ isError: true
188
+ };
189
+ }
190
+ }
191
+ );
192
+ server.tool(
193
+ "get-results",
194
+ "Get results from the last script executed in After Effects",
195
+ {},
196
+ async () => {
197
+ try {
198
+ const result = readResultsFromTempFile();
199
+ return {
200
+ content: [
201
+ {
202
+ type: "text",
203
+ text: result
204
+ }
205
+ ]
206
+ };
207
+ } catch (error) {
208
+ return {
209
+ content: [
210
+ {
211
+ type: "text",
212
+ text: `Error getting results: ${String(error)}`
213
+ }
214
+ ],
215
+ isError: true
216
+ };
217
+ }
218
+ }
219
+ );
220
+ server.prompt(
221
+ "list-compositions",
222
+ "List compositions in the current After Effects project",
223
+ () => {
224
+ return {
225
+ messages: [{
226
+ role: "user",
227
+ content: {
228
+ type: "text",
229
+ text: "Please list all compositions in the current After Effects project."
230
+ }
231
+ }]
232
+ };
233
+ }
234
+ );
235
+ server.prompt(
236
+ "analyze-composition",
237
+ {
238
+ compositionName: z.string().describe("Name of the composition to analyze")
239
+ },
240
+ (args) => {
241
+ return {
242
+ messages: [{
243
+ role: "user",
244
+ content: {
245
+ type: "text",
246
+ text: `Please analyze the composition named "${args.compositionName}" in the current After Effects project. Provide details about its duration, frame rate, resolution, and layers.`
247
+ }
248
+ }]
249
+ };
250
+ }
251
+ );
252
+ server.prompt(
253
+ "create-composition",
254
+ "Create a new composition with specified settings",
255
+ () => {
256
+ return {
257
+ messages: [{
258
+ role: "user",
259
+ content: {
260
+ type: "text",
261
+ text: `Please create a new composition with custom settings. You can specify parameters like name, width, height, frame rate, etc.`
262
+ }
263
+ }]
264
+ };
265
+ }
266
+ );
267
+ server.tool(
268
+ "get-help",
269
+ "Get help on using the After Effects MCP integration",
270
+ {},
271
+ async () => {
272
+ return {
273
+ content: [
274
+ {
275
+ type: "text",
276
+ text: `# After Effects MCP Integration Help
277
+
278
+ To use this integration with After Effects, follow these steps:
279
+
280
+ 1. **Install the scripts in After Effects**
281
+ - Run \`node install-bridge.js\` with administrator privileges
282
+ - This copies the necessary scripts to your After Effects installation
283
+
284
+ 2. **Open After Effects**
285
+ - Launch Adobe After Effects
286
+ - Open a project that you want to work with
287
+
288
+ 3. **Open the MCP Bridge Auto panel**
289
+ - In After Effects, go to Window > mcp-bridge-auto.jsx
290
+ - The panel will automatically check for commands every few seconds
291
+
292
+ 4. **Run scripts through MCP**
293
+ - Use the \`run-script\` tool to queue a command
294
+ - The Auto panel will detect and run the command automatically
295
+ - Results will be saved to a temp file
296
+
297
+ 5. **Get results through MCP**
298
+ - After a command is executed, use the \`get-results\` tool
299
+ - This will retrieve the results from After Effects
300
+
301
+ Available scripts:
302
+ - getProjectInfo: Information about the current project
303
+ - listCompositions: List all compositions in the project
304
+ - getLayerInfo: Information about layers in the active composition
305
+ - createComposition: Create a new composition
306
+ - createTextLayer: Create a new text layer
307
+ - createShapeLayer: Create a new shape layer
308
+ - createSolidLayer: Create a new solid layer
309
+ - setLayerProperties: Set properties for a layer
310
+ - setLayerKeyframe: Set a keyframe for a layer property
311
+ - setLayerExpression: Set an expression for a layer property
312
+ - applyEffect: Apply an effect to a layer
313
+ - applyEffectTemplate: Apply a predefined effect template to a layer
314
+
315
+ Effect Templates:
316
+ - gaussian-blur: Simple Gaussian blur effect
317
+ - directional-blur: Motion blur in a specific direction
318
+ - color-balance: Adjust hue, lightness, and saturation
319
+ - brightness-contrast: Basic brightness and contrast adjustment
320
+ - curves: Advanced color adjustment using curves
321
+ - glow: Add a glow effect to elements
322
+ - drop-shadow: Add a customizable drop shadow
323
+ - cinematic-look: Combination of effects for a cinematic appearance
324
+ - text-pop: Effects to make text stand out (glow and shadow)
325
+
326
+ Note: The auto-running panel can be left open in After Effects to continuously listen for commands from external applications.`
327
+ }
328
+ ]
329
+ };
330
+ }
331
+ );
332
+ server.tool(
333
+ "create-composition",
334
+ "Create a new composition in After Effects with specified parameters",
335
+ {
336
+ name: z.string().describe("Name of the composition"),
337
+ width: z.number().int().positive().describe("Width of the composition in pixels"),
338
+ height: z.number().int().positive().describe("Height of the composition in pixels"),
339
+ pixelAspect: z.number().positive().optional().describe("Pixel aspect ratio (default: 1.0)"),
340
+ duration: z.number().positive().optional().describe("Duration in seconds (default: 10.0)"),
341
+ frameRate: z.number().positive().optional().describe("Frame rate in frames per second (default: 30.0)"),
342
+ backgroundColor: z.object({
343
+ r: z.number().int().min(0).max(255),
344
+ g: z.number().int().min(0).max(255),
345
+ b: z.number().int().min(0).max(255)
346
+ }).optional().describe("Background color of the composition (RGB values 0-255)")
347
+ },
348
+ async (params) => {
349
+ try {
350
+ writeCommandFile("createComposition", params);
351
+ return {
352
+ content: [
353
+ {
354
+ type: "text",
355
+ text: `Command to create composition "${params.name}" has been queued.
356
+ Please ensure the "MCP Bridge Auto" panel is open in After Effects.
357
+ Use the "get-results" tool after a few seconds to check for results.`
358
+ }
359
+ ]
360
+ };
361
+ } catch (error) {
362
+ return {
363
+ content: [
364
+ {
365
+ type: "text",
366
+ text: `Error queuing composition creation: ${String(error)}`
367
+ }
368
+ ],
369
+ isError: true
370
+ };
371
+ }
372
+ }
373
+ );
374
+ var LayerIdentifierSchema = {
375
+ compIndex: z.number().int().positive().describe("1-based index of the target composition in the project panel."),
376
+ layerIndex: z.number().int().positive().describe("1-based index of the target layer within the composition.")
377
+ };
378
+ var KeyframeValueSchema = z.unknown().describe("The value for the keyframe (e.g., [x,y] for Position, [w,h] for Scale, angle for Rotation, percentage for Opacity)");
379
+ server.tool(
380
+ "setLayerKeyframe",
381
+ // Corresponds to the function name in ExtendScript
382
+ "Set a keyframe for a specific layer property at a given time.",
383
+ {
384
+ ...LayerIdentifierSchema,
385
+ // Reuse common identifiers
386
+ propertyName: z.string().describe("Name of the property to keyframe (e.g., 'Position', 'Scale', 'Rotation', 'Opacity')."),
387
+ timeInSeconds: z.number().describe("The time (in seconds) for the keyframe."),
388
+ value: KeyframeValueSchema
389
+ },
390
+ async (parameters) => {
391
+ try {
392
+ writeCommandFile("setLayerKeyframe", parameters);
393
+ return {
394
+ content: [
395
+ {
396
+ type: "text",
397
+ text: `Command to set keyframe for "${parameters.propertyName}" on layer ${parameters.layerIndex} in comp ${parameters.compIndex} has been queued.
398
+ Use the "get-results" tool after a few seconds to check for confirmation.`
399
+ }
400
+ ]
401
+ };
402
+ } catch (error) {
403
+ return {
404
+ content: [
405
+ {
406
+ type: "text",
407
+ text: `Error queuing setLayerKeyframe command: ${String(error)}`
408
+ }
409
+ ],
410
+ isError: true
411
+ };
412
+ }
413
+ }
414
+ );
415
+ server.tool(
416
+ "setLayerExpression",
417
+ // Corresponds to the function name in ExtendScript
418
+ "Set or remove an expression for a specific layer property.",
419
+ {
420
+ ...LayerIdentifierSchema,
421
+ // Reuse common identifiers
422
+ propertyName: z.string().describe("Name of the property to apply the expression to (e.g., 'Position', 'Scale', 'Rotation', 'Opacity')."),
423
+ expressionString: z.string().describe('The JavaScript expression string. Provide an empty string ("") to remove the expression.')
424
+ },
425
+ async (parameters) => {
426
+ try {
427
+ writeCommandFile("setLayerExpression", parameters);
428
+ return {
429
+ content: [
430
+ {
431
+ type: "text",
432
+ text: `Command to set expression for "${parameters.propertyName}" on layer ${parameters.layerIndex} in comp ${parameters.compIndex} has been queued.
433
+ Use the "get-results" tool after a few seconds to check for confirmation.`
434
+ }
435
+ ]
436
+ };
437
+ } catch (error) {
438
+ return {
439
+ content: [
440
+ {
441
+ type: "text",
442
+ text: `Error queuing setLayerExpression command: ${String(error)}`
443
+ }
444
+ ],
445
+ isError: true
446
+ };
447
+ }
448
+ }
449
+ );
450
+ server.tool(
451
+ "test-animation",
452
+ "Test animation functionality in After Effects",
453
+ {
454
+ operation: z.enum(["keyframe", "expression"]).describe("The animation operation to test"),
455
+ compIndex: z.number().int().positive().describe("Composition index (usually 1)"),
456
+ layerIndex: z.number().int().positive().describe("Layer index (usually 1)")
457
+ },
458
+ async (params) => {
459
+ try {
460
+ const timestamp = (/* @__PURE__ */ new Date()).getTime();
461
+ const tempFile = path.join(process.env.TEMP || process.env.TMP || os.tmpdir(), `ae_test_${timestamp}.jsx`);
462
+ let scriptContent = "";
463
+ if (params.operation === "keyframe") {
464
+ scriptContent = `
465
+ // Direct keyframe test script
466
+ try {
467
+ var comp = app.project.items[${params.compIndex}];
468
+ var layer = comp.layers[${params.layerIndex}];
469
+ var prop = layer.property("Transform").property("Opacity");
470
+ var time = 1; // 1 second
471
+ var value = 25; // 25% opacity
472
+
473
+ // Set a keyframe
474
+ prop.setValueAtTime(time, value);
475
+
476
+ // Write direct result
477
+ var resultFile = new File("${path.join(process.env.TEMP || process.env.TMP || os.tmpdir(), "ae_test_result.txt").replace(/\\/g, "\\\\")}");
478
+ resultFile.open("w");
479
+ resultFile.write("SUCCESS: Added keyframe at time " + time + " with value " + value);
480
+ resultFile.close();
481
+
482
+ // Visual feedback
483
+ alert("Test successful: Added opacity keyframe at " + time + "s with value " + value + "%");
484
+ } catch (e) {
485
+ var errorFile = new File("${path.join(process.env.TEMP || process.env.TMP || os.tmpdir(), "ae_test_error.txt").replace(/\\/g, "\\\\")}");
486
+ errorFile.open("w");
487
+ errorFile.write("ERROR: " + e.toString());
488
+ errorFile.close();
489
+
490
+ alert("Test failed: " + e.toString());
491
+ }
492
+ `;
493
+ } else if (params.operation === "expression") {
494
+ scriptContent = `
495
+ // Direct expression test script
496
+ try {
497
+ var comp = app.project.items[${params.compIndex}];
498
+ var layer = comp.layers[${params.layerIndex}];
499
+ var prop = layer.property("Transform").property("Position");
500
+ var expression = "wiggle(3, 30)";
501
+
502
+ // Set the expression
503
+ prop.expression = expression;
504
+
505
+ // Write direct result
506
+ var resultFile = new File("${path.join(process.env.TEMP || process.env.TMP || os.tmpdir(), "ae_test_result.txt").replace(/\\/g, "\\\\")}");
507
+ resultFile.open("w");
508
+ resultFile.write("SUCCESS: Added expression: " + expression);
509
+ resultFile.close();
510
+
511
+ // Visual feedback
512
+ alert("Test successful: Added position expression: " + expression);
513
+ } catch (e) {
514
+ var errorFile = new File("${path.join(process.env.TEMP || process.env.TMP || os.tmpdir(), "ae_test_error.txt").replace(/\\/g, "\\\\")}");
515
+ errorFile.open("w");
516
+ errorFile.write("ERROR: " + e.toString());
517
+ errorFile.close();
518
+
519
+ alert("Test failed: " + e.toString());
520
+ }
521
+ `;
522
+ }
523
+ fs.writeFileSync(tempFile, scriptContent);
524
+ console.error(`Written test script to: ${tempFile}`);
525
+ return {
526
+ content: [
527
+ {
528
+ type: "text",
529
+ text: `I've created a direct test script for the ${params.operation} operation.
530
+
531
+ Please run this script manually in After Effects:
532
+ 1. In After Effects, go to File > Scripts > Run Script File...
533
+ 2. Navigate to: ${tempFile}
534
+ 3. You should see an alert confirming the result.
535
+
536
+ This bypasses the MCP Bridge Auto panel and will directly modify the specified layer.`
537
+ }
538
+ ]
539
+ };
540
+ } catch (error) {
541
+ return {
542
+ content: [
543
+ {
544
+ type: "text",
545
+ text: `Error creating test script: ${String(error)}`
546
+ }
547
+ ],
548
+ isError: true
549
+ };
550
+ }
551
+ }
552
+ );
553
+ server.tool(
554
+ "apply-effect",
555
+ "Apply an effect to a layer in After Effects",
556
+ {
557
+ compIndex: z.number().int().positive().describe("1-based index of the target composition in the project panel."),
558
+ layerIndex: z.number().int().positive().describe("1-based index of the target layer within the composition."),
559
+ effectName: z.string().optional().describe("Display name of the effect to apply (e.g., 'Gaussian Blur')."),
560
+ effectMatchName: z.string().optional().describe("After Effects internal name for the effect (more reliable, e.g., 'ADBE Gaussian Blur 2')."),
561
+ effectCategory: z.string().optional().describe("Optional category for filtering effects."),
562
+ presetPath: z.string().optional().describe("Optional path to an effect preset file (.ffx)."),
563
+ effectSettings: z.record(z.string(), z.unknown()).optional().describe("Optional parameters for the effect (e.g., { 'Blurriness': 25 }).")
564
+ },
565
+ async (parameters) => {
566
+ try {
567
+ writeCommandFile("applyEffect", parameters);
568
+ return {
569
+ content: [
570
+ {
571
+ type: "text",
572
+ text: `Command to apply effect to layer ${parameters.layerIndex} in composition ${parameters.compIndex} has been queued.
573
+ Use the "get-results" tool after a few seconds to check for confirmation.`
574
+ }
575
+ ]
576
+ };
577
+ } catch (error) {
578
+ return {
579
+ content: [
580
+ {
581
+ type: "text",
582
+ text: `Error queuing apply-effect command: ${String(error)}`
583
+ }
584
+ ],
585
+ isError: true
586
+ };
587
+ }
588
+ }
589
+ );
590
+ server.tool(
591
+ "apply-effect-template",
592
+ "Apply a predefined effect template to a layer in After Effects",
593
+ {
594
+ compIndex: z.number().int().positive().describe("1-based index of the target composition in the project panel."),
595
+ layerIndex: z.number().int().positive().describe("1-based index of the target layer within the composition."),
596
+ templateName: z.enum([
597
+ "gaussian-blur",
598
+ "directional-blur",
599
+ "color-balance",
600
+ "brightness-contrast",
601
+ "curves",
602
+ "glow",
603
+ "drop-shadow",
604
+ "cinematic-look",
605
+ "text-pop"
606
+ ]).describe("Name of the effect template to apply."),
607
+ customSettings: z.record(z.string(), z.unknown()).optional().describe("Optional custom settings to override defaults.")
608
+ },
609
+ async (parameters) => {
610
+ try {
611
+ writeCommandFile("applyEffectTemplate", parameters);
612
+ return {
613
+ content: [
614
+ {
615
+ type: "text",
616
+ text: `Command to apply effect template '${parameters.templateName}' to layer ${parameters.layerIndex} in composition ${parameters.compIndex} has been queued.
617
+ Use the "get-results" tool after a few seconds to check for confirmation.`
618
+ }
619
+ ]
620
+ };
621
+ } catch (error) {
622
+ return {
623
+ content: [
624
+ {
625
+ type: "text",
626
+ text: `Error queuing apply-effect-template command: ${String(error)}`
627
+ }
628
+ ],
629
+ isError: true
630
+ };
631
+ }
632
+ }
633
+ );
634
+ server.tool(
635
+ "mcp_aftereffects_applyEffect",
636
+ "Apply an effect to a layer in After Effects",
637
+ {
638
+ compIndex: z.number().int().positive().describe("1-based index of the target composition in the project panel."),
639
+ layerIndex: z.number().int().positive().describe("1-based index of the target layer within the composition."),
640
+ effectName: z.string().optional().describe("Display name of the effect to apply (e.g., 'Gaussian Blur')."),
641
+ effectMatchName: z.string().optional().describe("After Effects internal name for the effect (more reliable, e.g., 'ADBE Gaussian Blur 2')."),
642
+ effectSettings: z.record(z.string(), z.unknown()).optional().describe("Optional parameters for the effect (e.g., { 'Blurriness': 25 }).")
643
+ },
644
+ async (parameters) => {
645
+ try {
646
+ writeCommandFile("applyEffect", parameters);
647
+ await new Promise((resolve) => setTimeout(resolve, 1e3));
648
+ const result = readResultsFromTempFile();
649
+ return {
650
+ content: [
651
+ {
652
+ type: "text",
653
+ text: result
654
+ }
655
+ ]
656
+ };
657
+ } catch (error) {
658
+ return {
659
+ content: [
660
+ {
661
+ type: "text",
662
+ text: `Error applying effect: ${String(error)}`
663
+ }
664
+ ],
665
+ isError: true
666
+ };
667
+ }
668
+ }
669
+ );
670
+ server.tool(
671
+ "mcp_aftereffects_applyEffectTemplate",
672
+ "Apply a predefined effect template to a layer in After Effects",
673
+ {
674
+ compIndex: z.number().int().positive().describe("1-based index of the target composition in the project panel."),
675
+ layerIndex: z.number().int().positive().describe("1-based index of the target layer within the composition."),
676
+ templateName: z.enum([
677
+ "gaussian-blur",
678
+ "directional-blur",
679
+ "color-balance",
680
+ "brightness-contrast",
681
+ "curves",
682
+ "glow",
683
+ "drop-shadow",
684
+ "cinematic-look",
685
+ "text-pop"
686
+ ]).describe("Name of the effect template to apply."),
687
+ customSettings: z.record(z.string(), z.unknown()).optional().describe("Optional custom settings to override defaults.")
688
+ },
689
+ async (parameters) => {
690
+ try {
691
+ writeCommandFile("applyEffectTemplate", parameters);
692
+ await new Promise((resolve) => setTimeout(resolve, 1e3));
693
+ const result = readResultsFromTempFile();
694
+ return {
695
+ content: [
696
+ {
697
+ type: "text",
698
+ text: result
699
+ }
700
+ ]
701
+ };
702
+ } catch (error) {
703
+ return {
704
+ content: [
705
+ {
706
+ type: "text",
707
+ text: `Error applying effect template: ${String(error)}`
708
+ }
709
+ ],
710
+ isError: true
711
+ };
712
+ }
713
+ }
714
+ );
715
+ server.tool(
716
+ "mcp_aftereffects_get_effects_help",
717
+ "Get help on using After Effects effects",
718
+ {},
719
+ async () => {
720
+ return {
721
+ content: [
722
+ {
723
+ type: "text",
724
+ text: `# After Effects Effects Help
725
+
726
+ ## Common Effect Match Names
727
+ These are internal names used by After Effects that can be used with the \`effectMatchName\` parameter:
728
+
729
+ ### Blur & Sharpen
730
+ - Gaussian Blur: "ADBE Gaussian Blur 2"
731
+ - Camera Lens Blur: "ADBE Camera Lens Blur"
732
+ - Directional Blur: "ADBE Directional Blur"
733
+ - Radial Blur: "ADBE Radial Blur"
734
+ - Smart Blur: "ADBE Smart Blur"
735
+ - Unsharp Mask: "ADBE Unsharp Mask"
736
+
737
+ ### Color Correction
738
+ - Brightness & Contrast: "ADBE Brightness & Contrast 2"
739
+ - Color Balance: "ADBE Color Balance (HLS)"
740
+ - Color Balance (RGB): "ADBE Pro Levels2"
741
+ - Curves: "ADBE CurvesCustom"
742
+ - Exposure: "ADBE Exposure2"
743
+ - Hue/Saturation: "ADBE HUE SATURATION"
744
+ - Levels: "ADBE Pro Levels2"
745
+ - Vibrance: "ADBE Vibrance"
746
+
747
+ ### Stylistic
748
+ - Glow: "ADBE Glow"
749
+ - Drop Shadow: "ADBE Drop Shadow"
750
+ - Bevel Alpha: "ADBE Bevel Alpha"
751
+ - Noise: "ADBE Noise"
752
+ - Fractal Noise: "ADBE Fractal Noise"
753
+ - CC Particle World: "CC Particle World"
754
+ - CC Light Sweep: "CC Light Sweep"
755
+
756
+ ## Effect Templates
757
+ The following predefined effect templates are available:
758
+
759
+ - \`gaussian-blur\`: Simple Gaussian blur effect
760
+ - \`directional-blur\`: Motion blur in a specific direction
761
+ - \`color-balance\`: Adjust hue, lightness, and saturation
762
+ - \`brightness-contrast\`: Basic brightness and contrast adjustment
763
+ - \`curves\`: Advanced color adjustment using curves
764
+ - \`glow\`: Add a glow effect to elements
765
+ - \`drop-shadow\`: Add a customizable drop shadow
766
+ - \`cinematic-look\`: Combination of effects for a cinematic appearance
767
+ - \`text-pop\`: Effects to make text stand out (glow and shadow)
768
+
769
+ ## Example Usage
770
+ To apply a Gaussian blur effect:
771
+
772
+ \`\`\`json
773
+ {
774
+ "compIndex": 1,
775
+ "layerIndex": 1,
776
+ "effectMatchName": "ADBE Gaussian Blur 2",
777
+ "effectSettings": {
778
+ "Blurriness": 25
779
+ }
780
+ }
781
+ \`\`\`
782
+
783
+ To apply the "cinematic-look" template:
784
+
785
+ \`\`\`json
786
+ {
787
+ "compIndex": 1,
788
+ "layerIndex": 1,
789
+ "templateName": "cinematic-look"
790
+ }
791
+ \`\`\`
792
+ `
793
+ }
794
+ ]
795
+ };
796
+ }
797
+ );
798
+ server.tool(
799
+ "run-bridge-test",
800
+ "Run the bridge test effects script to verify communication and apply test effects",
801
+ {},
802
+ async () => {
803
+ try {
804
+ clearResultsFile();
805
+ writeCommandFile("bridgeTestEffects", {});
806
+ return {
807
+ content: [
808
+ {
809
+ type: "text",
810
+ text: `Bridge test effects command has been queued.
811
+ Please ensure the "MCP Bridge Auto" panel is open in After Effects.
812
+ Use the "get-results" tool after a few seconds to check for the test results.`
813
+ }
814
+ ]
815
+ };
816
+ } catch (error) {
817
+ return {
818
+ content: [
819
+ {
820
+ type: "text",
821
+ text: `Error queuing bridge test command: ${String(error)}`
822
+ }
823
+ ],
824
+ isError: true
825
+ };
826
+ }
827
+ }
828
+ );
829
+ async function main() {
830
+ console.error("After Effects MCP Server starting...");
831
+ console.error(`Scripts directory: ${SCRIPTS_DIR}`);
832
+ console.error(`Temp directory: ${TEMP_DIR}`);
833
+ const transport = new StdioServerTransport();
834
+ await server.connect(transport);
835
+ console.error("After Effects MCP Server running...");
836
+ }
837
+ main().catch((error) => {
838
+ console.error("Fatal error:", error);
839
+ process.exit(1);
840
+ });