Document recommended extension tools and install-time credentials
This commit is contained in:
@@ -54,6 +54,8 @@ Example:
|
||||
The optional `modelRecommendations` field is documented in
|
||||
[section 4.7](#47-model-recommendations).
|
||||
|
||||
Use `toolRecommendations` to suggest library connections or your own MCP server during dashboard installation. [Tool recommendations](#49-tool-recommendations)
|
||||
|
||||
The optional `modEntry` field is valid only with the `mod` permission and is documented in [section 4.8](#48-privileged-host-modules).
|
||||
|
||||
The optional `minimumIsaWardenVersion` field is the install-time compatibility gate and declares the oldest compatible ISA Warden host as an exact semantic version, for example `"0.7.39"`. Discovery, validation, preview, install, and update reject a malformed value or a manifest whose minimum is newer than the running host. Dashboard packages copy this field into their distribution manifest, and the public and payload values must match exactly. This gate does not version runtime command APIs; extensions must continue detecting runtime capabilities by checking the host-advertised command arrays. Omit the field when the extension has no explicit minimum beyond the host's existing manifest contract.
|
||||
@@ -330,3 +332,17 @@ The registration `extensionId` must exactly match the installed manifest. The ho
|
||||
The activation context contains `extensionId`, `document`, `mountPoints`, `minimizeExtensionView()`, `onDispose(callback)`, `appendStyle(cssText)`, `appendRoot(mountPointName = 'appShell')`, and `addEventListener(target, type, listener, options)`. The named `appShell` and `extensionToolbar` mount points are backed by host elements marked `data-isa-extension-mod-mount="appShell"` and `data-isa-extension-mod-mount="extensionToolbar"`. A mod whose primary result is a host theme may call `minimizeExtensionView()` after activation so the themed host becomes visible while the extension and its tracked contributions remain active. `appendStyle`, `appendRoot`, and `addEventListener` create tracked contributions owned by the extension; `activate` may additionally return one cleanup function. The host runs registered and returned cleanup and removes all tracked contributions when the view reloads, closes, is uninstalled, fails activation, or is replaced.
|
||||
|
||||
These lifecycle helpers reduce accidental leaks; they are not a security sandbox. Once accepted, a mod runs in the host realm and can directly access the document. Request `mod` only when iframe theme tokens and bridge APIs cannot implement the feature.
|
||||
|
||||
### 4.9 Tool recommendations
|
||||
|
||||
The optional `toolRecommendations` block lists connections that the administrator can set up while adding, replacing or editing an extension. Each item contains a `kind` and may include a user-facing `reason`.
|
||||
|
||||
| `kind` | Required fields | Supported schema versions |
|
||||
| --- | --- | --- |
|
||||
| `mcp` | `catalogId` for an ISA MCP library service, for example `pdok` | 1 and 2 |
|
||||
| `api` | `catalogId` for a published API definition, for example `wefact` | 1 and 2 |
|
||||
| `customMcp` | `name`, fixed HTTPS `url` and `auth` (`none` or `bearer`) for a server implementing MCP over Streamable HTTP | 2 |
|
||||
|
||||
Use `schemaVersion` as a JSON integer and `items` as an array of 1–32 distinct recommendations. Catalog IDs are case-sensitive and contain 1–64 ASCII letters, digits, underscores or hyphens. A custom server name contains 1–128 UTF-8 bytes of readable text. The URL accepts up to 4,096 UTF-8 bytes and excludes credentials, query strings and fragments. An optional reason must contain non-whitespace text within 1,024 UTF-8 bytes. The packager validates these fields and includes the block in the public distribution manifest.
|
||||
|
||||
For a custom MCP server the installer displays the destination and handles credential entry, action selection and optional group linking. Bridge permissions govern runtime access. See the authoring examples, administrator walkthrough and compatibility notes. [Tool recommendations](24-tool-recommendations.md) · [Example extension.json](examples/tool-recommendations-v2.json)
|
||||
|
||||
Reference in New Issue
Block a user