@abgov/adsp-sdk-mcp-server 1.39.2 → 1.39.3

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.
@@ -81,7 +81,7 @@ Built-in tools include:
81
81
  - `formDataRetrievalTool` and `formDataUpdateTool`: Retrieve and update form data
82
82
  - `fileDownloadTool`, `fileCopyTool`, and `documentExtractTool`: Download, copy, and extract text from files in the file service
83
83
  - `dataRegisterListTool`, `dataRegisterGetTool`, `dataRegisterCreateTool`, and `dataRegisterUpdateTool`: Manage data registers
84
- - `emailNotificationGenerateTool`: Generates notification email templates
84
+ - `emailNotificationGenerateTool`: Proposes notification email template changes and saves them to the notification type
85
85
  - `searchAdspDocsTool`, `readAdspDocTool`, and `searchAdspSdkReferenceTool`: Search the ADSP documentation and SDK reference
86
86
 
87
87
  Custom API tools can be configured to call external APIs on behalf of the agent.
@@ -374,6 +374,30 @@ socket.on('stream', ({ chunk }) => {
374
374
  curl -H "Authorization: Bearer $TOKEN" "$AGENT_SERVICE_URL/agent/v1/access/guide/token-expiry"
375
375
  ```
376
376
 
377
+ #### Notification email template agent
378
+
379
+ `notificationEmailTemplateAgent` writes and edits the email template of a notification type event from the template editor in the tenant admin app. The editor sends its state with each message as `context`:
380
+
381
+ | Field | Meaning |
382
+ | --------------------- | ---------------------------------------------------------------------------------------------------- |
383
+ | `emailTemplate` | The email template in the editor (`subject`, `title`, `subtitle`, `body`), including unsaved changes |
384
+ | `handlebarsVariables` | Variables the template may use, as full paths such as `event.payload.form.definition.name` |
385
+ | `notificationType` | The event as `namespace:name` |
386
+ | `notificationTypeId` | The notification type; `emailNotificationGenerateTool` saves proposals to this type's event |
387
+
388
+ Each model call gets the agent's instructions followed by this context as text; a body longer than 30,000 characters is cut off with a note not to rebuild it. To keep each call small:
389
+
390
+ - The model gets a one-line summary of each `emailNotificationGenerateTool` result (the fields saved, or why the save failed); the client still gets the full proposal in the `tool-result` chunk.
391
+ - When the model says what it changed in the same response as a proposal that was saved, the reply ends there. Otherwise the next call writes the reply without the template rules, the editor context or the tool.
392
+ - Bodies proposed in earlier turns are replaced with a short note in later requests, since the editor sends the current template with every message. Attachments and pasted content from turns before the previous one are replaced too. The thread keeps every message.
393
+ - Text extracted from an attached document is cut off at 16,000 characters.
394
+ - It keeps its own short history without observational memory, and makes at most 3 model calls per message.
395
+
396
+ | Variable | Default | Meaning |
397
+ | -------------------------------------- | ------- | ----------------------------------------------------------------- |
398
+ | `AGENT_NOTIFICATION_LAST_MESSAGES` | `8` | Messages of the thread the agent reads |
399
+ | `AGENT_NOTIFICATION_MAX_OUTPUT_TOKENS` | `6000` | Longest reply the model may write in one call, including the body |
400
+
377
401
  ### Delete a thread
378
402
 
379
403
  Delete one of your own threads, with its stored messages, context, and workspace, for example when the user starts a new chat. The response is `{ "deleted": false }` when you have no thread with that ID, so repeating the request is harmless. The thread ID is the `threadId` used on socket.io.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/adsp-sdk-mcp-server",
3
- "version": "1.39.2",
3
+ "version": "1.39.3",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Government of Alberta - MCP server for ADSP documentation and Node SDK reference lookup.",
6
6
  "repository": "https://github.com/GovAlta/adsp-monorepo",
package/provenance.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "kind": "release",
3
- "builtAt": "2026-11-18T22:40:55.667Z",
4
- "sourceCommit": "17b5dfae4cf138e35a9396c92729b69ed8872121",
5
- "latestRelease": "1.39.1",
6
- "docsCommit": "1dd532f1f2692b5648143264734a12cd254e19a6",
3
+ "builtAt": "2026-11-19T18:35:40.539Z",
4
+ "sourceCommit": "e82fabfc36163570b6048bba763b39871b8be5a0",
5
+ "latestRelease": "1.39.2",
6
+ "docsCommit": "726a6be30c323f398eda0c5251595eb3e8cdeb87",
7
7
  "sdk": {
8
8
  "version": "2.36.1",
9
9
  "commit": "dd58a2b854c4406b42c0604dba3fa4b941038d6c",