Mount an existing hive craft addon (hive-photocraft, hive-vectorcraft, ...) behind artcraft:
construct it through its own manifest ctor, keep its one tool handler, and forward commands.
No delegate code is copied; only the config handed to the ctor is derived here.
Mount an existing hive craft addon (hive-photocraft, hive-vectorcraft, ...) behind `artcraft`: construct it through its own manifest ctor, keep its one tool handler, and forward commands. No delegate code is copied; only the config handed to the ctor is derived here.
(forward mounted args)Send string-keyed tool args (minus "app", with request defaults) to the mounted tool's own handler.
Send string-keyed tool args (minus "app", with request defaults) to the mounted tool's own handler.
(mount! module delegate-config)Resolve the module's ctor, construct and initialize the delegate addon, and return its tool.
Resolve the module's ctor, construct and initialize the delegate addon, and return its tool.
(mount-config module app-cfg port-res)Config for the delegate ctor: the app's :apps override, plus the resolved control port only when every key the delegate's live port requires (:port-requires) is present.
Config for the delegate ctor: the app's :apps override, plus the resolved control port only when every key the delegate's live port requires (:port-requires) is present.
What a call/control request carries when the caller omits it: request id 0 and empty params. Native dispatch and mounted forwarding share it, so every app sees the same request shape.
What a call/control request carries when the caller omits it: request id 0 and empty params. Native dispatch and mounted forwarding share it, so every app sees the same request shape.
(tool-result reply)Normalise a delegate's reply into an MCP tool result: MCP content passes through, an {:ok ..}/{:error ..} envelope is rendered the way hive-vectorcraft renders it.
Normalise a delegate's reply into an MCP tool result: MCP content passes through,
an {:ok ..}/{:error ..} envelope is rendered the way hive-vectorcraft renders it.(unmount! mounted)Shut the delegate addon down.
Shut the delegate addon down.
(with-request-defaults args)Fill in id and params for a call/control request when the caller left them out; a
supplied value (nil included) is kept as given. Other commands pass through unchanged.
Fill in `id` and `params` for a call/control request when the caller left them out; a supplied value (nil included) is kept as given. Other commands pass through unchanged.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |