@abgov/adsp-sdk-mcp-server 1.39.7 → 1.39.8
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"openapi":"3.0.0","info":{"title":"Push service","version":"0.0.0","description":"The push service is a gateway for push mode connections to projections of domain events. Server side events and WebSockets are supported."},"paths":{"/stream/v1/streams":{"get":{"tags":["Stream"],"description":"Retrieves the streams that the caller can subscribe to, keyed by stream ID. The result combines the tenant's streams with the streams in the core (platform) configuration; when both have a stream with the same ID, the core stream is used. Core streams listed for a tenant only include that tenant's events.\n\nAny caller can list streams, including anonymous callers, but the result only includes streams the caller can subscribe to: public streams (`publicSubscribe`), and streams for which the caller has the `stream-listener` role or one of the stream's `subscriberRoles`. Those roles must be held in the stream's tenant, or by a core user.\n\nThe tenant is the `tenant` parameter if it is set, otherwise the tenant of the caller's token. Without either, the request responds 400.\n","parameters":[{"$ref":"#/components/parameters/PushStreamsTenant"}],"responses":{"200":{"description":"Streams that the caller can subscribe to, keyed by stream ID.","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/Stream"}},"example":{"application-health":{"id":"application-health","name":"Application health","description":"Events indicating the health of my applications.","publicSubscribe":false,"subscriberRoles":["urn:ads:my-tenant:my-app:health-reader"],"events":[{"namespace":"status-service","name":"health-check-started"}]}}}}},"400":{"$ref":"#/components/responses/PushBadRequest"}}}},"/stream/v1/streams/{stream}":{"get":{"tags":["Stream"],"description":"Subscribes to a stream using server-sent events. The response stays open, and each domain event that matches the stream and the `criteria` parameter is sent as a `data:` line holding the JSON stream item. Messages use the default `message` event type.\n\nThe caller must be allowed to subscribe to the stream: the stream is public (`publicSubscribe`), or the caller has the `stream-listener` role or one of the stream's `subscriberRoles`, held in the stream's tenant or by a core user. Anonymous callers can only subscribe to public streams.\n\nThe tenant is the tenant named in the `tenant` parameter, otherwise the tenant of the caller's token. Anonymous and tenant callers without either receive 400. A core user without a tenant subscribes to a cross-tenant stream from the core configuration, which needs the `stream-listener` role or one of the stream's `subscriberRoles`, and includes matching events from every tenant.\n\nThe access token is read from the `Authorization` header. Browser `EventSource` cannot set headers, so use an `EventSource` polyfill that can, or use socket.io (see the push service guide).\n","parameters":[{"in":"path","required":true,"name":"stream","description":"ID of the stream to subscribe to.","schema":{"type":"string","pattern":"^[a-zA-Z0-9-_ ]{1,50}$"},"example":"application-health"},{"$ref":"#/components/parameters/PushStreamTenant"},{"in":"query","name":"criteria","required":false,"description":"JSON encoded criteria. Only stream items that match every criterion are sent. Must be valid JSON.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StreamEventCriteria"},"example":{"context":{"applicationId":"64b1f2e3a8c9b1d2e3f4a5b6"}}}}}],"responses":{"200":{"description":"Subscribed. The response is a stream of server-sent events, one per stream item.","content":{"text/event-stream":{"schema":{"type":"string","description":"Server-sent events. Each event is a `data:` line with a JSON stream item (see the StreamItem schema), followed by a blank line.\n"},"example":"data: {\"tenantId\":\"urn:ads:platform:tenant-service:v2:/tenants/61f2e3a8c9b1d2e3f4a5b6c7\",\"namespace\":\"status-service\",\"name\":\"health-check-started\",\"timestamp\":\"2026-10-01T15:04:05.000Z\",\"correlationId\":\"64b1f2e3a8c9b1d2e3f4a5b6\",\"context\":{\"applicationId\":\"64b1f2e3a8c9b1d2e3f4a5b6\"},\"payload\":{\"application\":{\"id\":\"64b1f2e3a8c9b1d2e3f4a5b6\",\"name\":\"My application\"}}}\n"}}},"400":{"$ref":"#/components/responses/PushBadRequest"},"404":{"$ref":"#/components/responses/PushNotFound"}}}}},"components":{"securitySchemes":{"accessToken":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"parameters":{"PushStreamTenant":{"name":"tenant","description":"Name of the tenant that the stream belongs to, in kebab case (for example `my-tenant` for the tenant named \"My Tenant\"). When it matches a tenant, it is used for every caller. When it is not set or matches no tenant, the tenant of the caller's token is used. Required for anonymous callers. A core (platform) caller who leaves it out connects to a cross-tenant stream configured in the core configuration.\n","in":"query","required":false,"schema":{"type":"string"},"example":"my-tenant"},"PushStreamsTenant":{"name":"tenant","description":"ID of the tenant to list streams for: the last segment of the tenant URN, for example `61f2e3a8c9b1d2e3f4a5b6c7` for `urn:ads:platform:tenant-service:v2:/tenants/61f2e3a8c9b1d2e3f4a5b6c7`. When it is set, it is used for every caller. When it is not set, the tenant of the caller's token is used. Required for anonymous and core (platform) callers.\n","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-zA-Z0-9]+$"},"example":"61f2e3a8c9b1d2e3f4a5b6c7"}},"responses":{"PushBadRequest":{"description":"No tenant context. The request has no tenant and the caller's token is not for a tenant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushError"},"example":{"errorMessage":"No tenant specified for request."}}}},"PushNotFound":{"description":"The stream is not configured for the tenant, or in the core configuration. Streams of another tenant are only found when that tenant is named in the `tenant` parameter.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushError"},"example":{"errorMessage":"stream with ID 'application-updates' could not be found."}}}}},"schemas":{"PushError":{"type":"object","properties":{"errorMessage":{"type":"string"}}},"Stream":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-zA-Z0-9-_ ]{1,50}$"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"events":{"type":"array","items":{"$ref":"#/components/schemas/StreamEvent"}},"subscriberRoles":{"type":"array","description":"Roles that allow a user of the stream's tenant to subscribe, in addition to the `stream-listener` role.\n","items":{"type":"string"}},"publicSubscribe":{"type":"boolean","description":"Whether anyone, including anonymous callers, can subscribe."}},"required":["id","name","events","subscriberRoles"],"example":{"id":"application-health","name":"Application health","description":"Events indicating the health of my applications.","publicSubscribe":false,"subscriberRoles":["urn:ads:my-tenant:my-app:health-reader"],"events":[{"namespace":"status-service","name":"health-check-started"},{"namespace":"status-service","name":"application-status-changed","map":{"application":"payload.application.name","status":"payload.newStatus"}}]}},"StreamEvent":{"type":"object","properties":{"namespace":{"type":"string","description":"Namespace of the domain event to include."},"name":{"type":"string","description":"Name of the domain event to include."},"map":{"type":"object","description":"Optional projection of the event. Each key is a property of the stream item, and each value is a path into the domain event (for example `payload.application.name`). When it is set, the stream item includes `tenantId`, `namespace`, `name`, `correlationId`, `context`, and the mapped properties only.\n","additionalProperties":{"type":"string"}},"criteria":{"$ref":"#/components/schemas/StreamEventCriteria"}},"required":["namespace","name"],"example":{"namespace":"status-service","name":"health-check-started","map":{"application":"payload.application.name"},"criteria":{"context":{"applicationId":"64b1f2e3a8c9b1d2e3f4a5b6"}}}},"StreamEventCriteria":{"type":"object","description":"Domain events are included only when they match every criterion that is set.","properties":{"correlationId":{"type":"string","description":"Correlation ID that the event must have."},"context":{"type":"object","description":"Context values that the event must have.","additionalProperties":{"oneOf":[{"type":"string"},{"type":"boolean"},{"type":"number"}]}}},"example":{"correlationId":"application-1234","context":{"applicationId":"64b1f2e3a8c9b1d2e3f4a5b6"}}},"StreamItem":{"type":"object","description":"A domain event included in the stream. It is the full domain event, or the projection defined by the stream event's `map`. `tenantId` is the tenant URN.\n","properties":{"tenantId":{"type":"string"},"namespace":{"type":"string"},"name":{"type":"string"},"timestamp":{"type":"string","format":"date-time"},"correlationId":{"type":"string"},"context":{"type":"object"},"payload":{"type":"object"}},"additionalProperties":true,"required":["namespace","name"],"example":{"tenantId":"urn:ads:platform:tenant-service:v2:/tenants/61f2e3a8c9b1d2e3f4a5b6c7","namespace":"status-service","name":"health-check-started","timestamp":"2026-10-01T15:04:05.000Z","correlationId":"64b1f2e3a8c9b1d2e3f4a5b6","context":{"applicationId":"64b1f2e3a8c9b1d2e3f4a5b6"},"payload":{"application":{"id":"64b1f2e3a8c9b1d2e3f4a5b6","name":"My application","url":"https://my-application.alberta.ca"}}}}}},"security":[{"accessToken":[]}],"tags":[{"name":"Stream","description":"API to connect to streams."}]}
|
|
1
|
+
{"openapi":"3.0.0","info":{"title":"Push service","version":"0.0.0","description":"The push service is a gateway for push mode connections to projections of domain events. Server side events and WebSockets are supported."},"paths":{"/stream/v1/streams":{"get":{"tags":["Stream"],"description":"Retrieves the streams that the caller can subscribe to, keyed by stream ID. The result combines the tenant's streams with the streams in the core (platform) configuration; when both have a stream with the same ID, the core stream is used. Core streams listed for a tenant only include that tenant's events.\n\nAny caller can list streams, including anonymous callers, but the result only includes streams the caller can subscribe to: public streams (`publicSubscribe`), and streams for which the caller has the `stream-listener` role or one of the stream's `subscriberRoles`. Those roles must be held in the stream's tenant, or by a core user.\n\nThe tenant is the `tenant` parameter if it is set, otherwise the tenant of the caller's token. Without either, the request responds 400.\n","parameters":[{"$ref":"#/components/parameters/PushStreamsTenant"}],"responses":{"200":{"description":"Streams that the caller can subscribe to, keyed by stream ID.","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/Stream"}},"example":{"application-health":{"id":"application-health","name":"Application health","description":"Events indicating the health of my applications.","publicSubscribe":false,"subscriberRoles":["urn:ads:my-tenant:my-app:health-reader"],"events":[{"namespace":"status-service","name":"health-check-started"}]}}}}},"400":{"$ref":"#/components/responses/PushBadRequest"}}}},"/stream/v1/streams/{stream}":{"get":{"tags":["Stream"],"description":"Subscribes to a stream using server-sent events. The response stays open, and each domain event that matches the stream and the `criteria` parameter is sent as a `data:` line holding the JSON stream item. Messages use the default `message` event type.\n\nThe caller must be allowed to subscribe to the stream: the stream is public (`publicSubscribe`), or the caller has the `stream-listener` role or one of the stream's `subscriberRoles`, held in the stream's tenant or by a core user. Anonymous callers can only subscribe to public streams.\n\nThe tenant is the tenant named in the `tenant` parameter, otherwise the tenant of the caller's token. Anonymous and tenant callers without either receive 400. A core user without a tenant subscribes to a cross-tenant stream from the core configuration, which needs the `stream-listener` role or one of the stream's `subscriberRoles`, and includes matching events from every tenant.\n\nThe access token is read from the `Authorization` header. Browser `EventSource` cannot set headers, so use an `EventSource` polyfill that can, or use socket.io (see the push service guide).\n","parameters":[{"in":"path","required":true,"name":"stream","description":"ID of the stream to subscribe to.","schema":{"type":"string","pattern":"^[a-zA-Z0-9-_ ]{1,50}$"},"example":"application-health"},{"$ref":"#/components/parameters/PushStreamTenant"},{"in":"query","name":"criteria","required":false,"description":"JSON encoded criteria. Only stream items that match every criterion are sent. Must be valid JSON.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StreamEventCriteria"},"example":{"context":{"applicationId":"64b1f2e3a8c9b1d2e3f4a5b6"}}}}}],"responses":{"200":{"description":"Subscribed. The response is a stream of server-sent events, one per stream item.","content":{"text/event-stream":{"schema":{"type":"string","description":"Server-sent events. Each event is a `data:` line with a JSON stream item (see the StreamItem schema), followed by a blank line.\n"},"example":"data: {\"tenantId\":\"urn:ads:platform:tenant-service:v2:/tenants/61f2e3a8c9b1d2e3f4a5b6c7\",\"namespace\":\"status-service\",\"name\":\"health-check-started\",\"timestamp\":\"2026-10-01T15:04:05.000Z\",\"correlationId\":\"64b1f2e3a8c9b1d2e3f4a5b6\",\"context\":{\"applicationId\":\"64b1f2e3a8c9b1d2e3f4a5b6\"},\"payload\":{\"application\":{\"id\":\"64b1f2e3a8c9b1d2e3f4a5b6\",\"name\":\"My application\"}}}\n"}}},"400":{"$ref":"#/components/responses/PushBadRequest"},"403":{"description":"The caller is not allowed to subscribe to the stream. Returned before any server-sent event headers are sent.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushError"}}}},"404":{"$ref":"#/components/responses/PushNotFound"}}}}},"components":{"securitySchemes":{"accessToken":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"parameters":{"PushStreamTenant":{"name":"tenant","description":"Name of the tenant that the stream belongs to, in kebab case (for example `my-tenant` for the tenant named \"My Tenant\"). When it matches a tenant, it is used for every caller. When it is not set or matches no tenant, the tenant of the caller's token is used. Required for anonymous callers. A core (platform) caller who leaves it out connects to a cross-tenant stream configured in the core configuration.\n","in":"query","required":false,"schema":{"type":"string"},"example":"my-tenant"},"PushStreamsTenant":{"name":"tenant","description":"ID of the tenant to list streams for: the last segment of the tenant URN, for example `61f2e3a8c9b1d2e3f4a5b6c7` for `urn:ads:platform:tenant-service:v2:/tenants/61f2e3a8c9b1d2e3f4a5b6c7`. When it is set, it is used for every caller. When it is not set, the tenant of the caller's token is used. Required for anonymous and core (platform) callers.\n","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-zA-Z0-9]+$"},"example":"61f2e3a8c9b1d2e3f4a5b6c7"}},"responses":{"PushBadRequest":{"description":"No tenant context. The request has no tenant and the caller's token is not for a tenant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushError"},"example":{"errorMessage":"No tenant specified for request."}}}},"PushNotFound":{"description":"The stream is not configured for the tenant, or in the core configuration. Streams of another tenant are only found when that tenant is named in the `tenant` parameter.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushError"},"example":{"errorMessage":"stream with ID 'application-updates' could not be found."}}}}},"schemas":{"PushError":{"type":"object","properties":{"errorMessage":{"type":"string"}}},"Stream":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-zA-Z0-9-_ ]{1,50}$"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"events":{"type":"array","items":{"$ref":"#/components/schemas/StreamEvent"}},"subscriberRoles":{"type":"array","description":"Roles that allow a user of the stream's tenant to subscribe, in addition to the `stream-listener` role.\n","items":{"type":"string"}},"publicSubscribe":{"type":"boolean","description":"Whether anyone, including anonymous callers, can subscribe."}},"required":["id","name","events","subscriberRoles"],"example":{"id":"application-health","name":"Application health","description":"Events indicating the health of my applications.","publicSubscribe":false,"subscriberRoles":["urn:ads:my-tenant:my-app:health-reader"],"events":[{"namespace":"status-service","name":"health-check-started"},{"namespace":"status-service","name":"application-status-changed","map":{"application":"payload.application.name","status":"payload.newStatus"}}]}},"StreamEvent":{"type":"object","properties":{"namespace":{"type":"string","description":"Namespace of the domain event to include."},"name":{"type":"string","description":"Name of the domain event to include."},"map":{"type":"object","description":"Optional projection of the event. Each key is a property of the stream item, and each value is a path into the domain event (for example `payload.application.name`). When it is set, the stream item includes `tenantId`, `namespace`, `name`, `correlationId`, `context`, and the mapped properties only.\n","additionalProperties":{"type":"string"}},"criteria":{"$ref":"#/components/schemas/StreamEventCriteria"}},"required":["namespace","name"],"example":{"namespace":"status-service","name":"health-check-started","map":{"application":"payload.application.name"},"criteria":{"context":{"applicationId":"64b1f2e3a8c9b1d2e3f4a5b6"}}}},"StreamEventCriteria":{"type":"object","description":"Domain events are included only when they match every criterion that is set.","properties":{"correlationId":{"type":"string","description":"Correlation ID that the event must have."},"context":{"type":"object","description":"Context values that the event must have.","additionalProperties":{"oneOf":[{"type":"string"},{"type":"boolean"},{"type":"number"}]}}},"example":{"correlationId":"application-1234","context":{"applicationId":"64b1f2e3a8c9b1d2e3f4a5b6"}}},"StreamItem":{"type":"object","description":"A domain event included in the stream. It is the full domain event, or the projection defined by the stream event's `map`. `tenantId` is the tenant URN.\n","properties":{"tenantId":{"type":"string"},"namespace":{"type":"string"},"name":{"type":"string"},"timestamp":{"type":"string","format":"date-time"},"correlationId":{"type":"string"},"context":{"type":"object"},"payload":{"type":"object"}},"additionalProperties":true,"required":["namespace","name"],"example":{"tenantId":"urn:ads:platform:tenant-service:v2:/tenants/61f2e3a8c9b1d2e3f4a5b6c7","namespace":"status-service","name":"health-check-started","timestamp":"2026-10-01T15:04:05.000Z","correlationId":"64b1f2e3a8c9b1d2e3f4a5b6","context":{"applicationId":"64b1f2e3a8c9b1d2e3f4a5b6"},"payload":{"application":{"id":"64b1f2e3a8c9b1d2e3f4a5b6","name":"My application","url":"https://my-application.alberta.ca"}}}}}},"security":[{"accessToken":[]}],"tags":[{"name":"Stream","description":"API to connect to streams."}]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/adsp-sdk-mcp-server",
|
|
3
|
-
"version": "1.39.
|
|
3
|
+
"version": "1.39.8",
|
|
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,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"kind": "release",
|
|
3
|
-
"builtAt": "2026-11-
|
|
4
|
-
"sourceCommit": "
|
|
5
|
-
"latestRelease": "1.39.
|
|
3
|
+
"builtAt": "2026-11-20T20:17:20.860Z",
|
|
4
|
+
"sourceCommit": "995595124506d8acc291759506a811226394af82",
|
|
5
|
+
"latestRelease": "1.39.7",
|
|
6
6
|
"docsCommit": "757a35b7c7e1e0f89effbf9b7b8dbda4d603a1a0",
|
|
7
7
|
"sdk": {
|
|
8
8
|
"version": "2.36.1",
|