@firfi/huly-mcp 0.53.0 → 0.55.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.
- package/README.md +15 -0
- package/dist/index.cjs +129337 -166409
- package/package.json +11 -4
package/README.md
CHANGED
|
@@ -220,6 +220,12 @@ Use this exact command even when a newer Node.js version is active on the host.
|
|
|
220
220
|
exact Node.js versions certified by CI; this is intentionally narrower than the package's runtime requirement. See
|
|
221
221
|
the [production release guide](docs/NPM_PRODUCTION_RELEASE.md) for preflight checks, rerun behavior, and verification.
|
|
222
222
|
|
|
223
|
+
## Manual resident backend
|
|
224
|
+
|
|
225
|
+
The experimental [manual resident backend path](docs/resident-manual.md) lets
|
|
226
|
+
independent stdio hosts select one explicitly started local backend through a
|
|
227
|
+
private attachment file. Full qualification remains pending.
|
|
228
|
+
|
|
223
229
|
## HTTP Transport
|
|
224
230
|
|
|
225
231
|
By default, the server uses stdio transport. For HTTP transport:
|
|
@@ -294,6 +300,7 @@ For a Smithery publish schema example, see [docs/SMITHERY_URL_PUBLISH.md](docs/S
|
|
|
294
300
|
| `HULY_WORKSPACE` | Yes | Workspace identifier |
|
|
295
301
|
| `HULY_CONNECTION_TIMEOUT` | No | Connection timeout in ms. Omit to use the package default. |
|
|
296
302
|
| `MCP_TRANSPORT` | No | Transport type: `stdio` (default) or `http` |
|
|
303
|
+
| `MCP_PRELOAD_TOOLS` | No | Load every tool handler before serving requests. Defaults to `false`; use `true` for smoke tests that check all handler imports. |
|
|
297
304
|
| `MCP_HTTP_PORT` | No | HTTP server port (falls back to `PORT`, then 3000) |
|
|
298
305
|
| `MCP_HTTP_HOST` | No | HTTP server host. Omit to bind to the package default loopback host. |
|
|
299
306
|
| `MCP_AUTH_TOKEN` | No | Optional bearer token required by HTTP clients for `/mcp`. This protects the MCP endpoint only; it is not a Huly API token. |
|
|
@@ -306,6 +313,14 @@ For a Smithery publish schema example, see [docs/SMITHERY_URL_PUBLISH.md](docs/S
|
|
|
306
313
|
*Auth: Prefer `HULY_TOKEN`. Use `HULY_EMAIL` + `HULY_PASSWORD` only when the Huly deployment does not support a
|
|
307
314
|
managed API token or another compatibility constraint requires password authentication.
|
|
308
315
|
|
|
316
|
+
## Startup and initialization
|
|
317
|
+
|
|
318
|
+
Tool discovery reads a generated catalog without loading operation handlers or waiting for Huly. Handlers load by tool group on demand; concurrent calls share the group's load. Run `pnpm update-tool-catalog` after changing tool definitions. Builds reject a stale catalog.
|
|
319
|
+
|
|
320
|
+
For stdio, the first tool-list request starts the process-owned Huly connection in the background. Calls that need the full Huly model wait for the same initialization. Cancelling a waiting call does not cancel initialization for other calls. A failed model initialization can be retried by a later call. Project listing uses a separate REST read and does not wait for the full model. Other operations retain the full model and their existing behavior.
|
|
321
|
+
|
|
322
|
+
The default transport remains stdio: each process launched by an MCP host owns its connection and model. HTTP lets clients share one running server. Connections created from request credential headers initialize the model only when needed; the CLI also uses this on-demand policy.
|
|
323
|
+
|
|
309
324
|
## Built-in Diagnostic Tools
|
|
310
325
|
|
|
311
326
|
`get_version` returns the current server version and latest npm version.
|