@abgov/adsp-sdk-mcp-server 1.14.0 → 1.15.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.
@@ -13,16 +13,24 @@ Value service provides an append only time series data store. It serves as the u
13
13
 
14
14
  client `urn:ads:platform:value-service`
15
15
 
16
- | name | description |
17
- | :----------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
18
- | value-reader | Reader role for value service. This role is used to allow users to read values from the values. It is part of the tenant-admin composite role and allows tenant administrators to read and search the event log. |
19
- | value-writer | Writer role for value service. This role is used to allow service accounts to write values to the value service. |
16
+ | name | description |
17
+ | :----------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
18
+ | value-reader | Reader role for value service. This role is used to allow users to read values and value definitions. It is part of the tenant-admin composite role and allows tenant administrators to read and search the event log. |
19
+ | value-writer | Writer role for value service. This role is used to allow service accounts to write values to the value service. It also allows users to create, update and delete value definitions, and to read them, since a user with the writer role can also read. |
20
20
 
21
21
  ## Concepts
22
22
 
23
23
  ### Value definition
24
24
 
25
- Value definition is an optional metadata description for a particular _value_ (identified by a specific namespace and name). The definition provides write-time validation via json schema. Value definitions are configured in the [configuration service](configuration-service.md) under the `platform:value-service` namespace and name.
25
+ Value definition is an optional metadata description for a particular _value_ (identified by a specific namespace and name). The definition provides write-time validation via json schema, and can enable a `value-written` event on each write with `sendWriteEvent`.
26
+
27
+ Value definitions are managed through the value service definitions API (`/value/v1/definitions`). The value service checks the user's roles and then stores the definitions in the [configuration service](configuration-service.md) under the `platform:value-service` namespace and name, using its own service account. Clients do not need configuration service roles to manage value definitions.
28
+
29
+ - Reading definitions requires `value-reader` or `value-writer`. Listing returns tenant and core definitions separately; getting a single definition returns the tenant definition if one exists, otherwise the core definition, with `isCore` indicating which.
30
+ - Creating, updating and deleting definitions requires `value-writer` and applies to tenant definitions only. Core definitions are read-only through this API.
31
+ - The `jsonSchema` of a created or updated definition must be a valid JSON schema, otherwise the request is rejected with a 400.
32
+ - Creating a definition adds its namespace if it does not exist, and fails with a 409 if a tenant or core definition with the same namespace and name already exists.
33
+ - Deleting the last definition in a namespace removes the namespace.
26
34
 
27
35
  ### Value
28
36
 
@@ -102,3 +110,69 @@ const response = await fetch(`https://value-service.adsp.alberta.ca/value/v1/${n
102
110
 
103
111
  const { results, page } = await response.json();
104
112
  ```
113
+
114
+ ### Create a value definition
115
+
116
+ ```typescript
117
+ const response = await fetch('https://value-service.adsp.alberta.ca/value/v1/definitions', {
118
+ method: 'POST',
119
+ headers: {
120
+ Authorization: `Bearer ${accessToken}`,
121
+ 'Content-Type': 'application/json',
122
+ },
123
+ body: JSON.stringify({
124
+ namespace: 'support',
125
+ name: 'application-stats',
126
+ description: 'Statistics for support applications.',
127
+ jsonSchema: {
128
+ type: 'object',
129
+ properties: { property: { type: 'number' } },
130
+ },
131
+ sendWriteEvent: false,
132
+ }),
133
+ });
134
+
135
+ const { namespace, name, jsonSchema, isCore } = await response.json();
136
+ ```
137
+
138
+ ### Read value definitions
139
+
140
+ ```typescript
141
+ const response = await fetch('https://value-service.adsp.alberta.ca/value/v1/definitions', {
142
+ method: 'GET',
143
+ headers: { Authorization: `Bearer ${accessToken}` },
144
+ });
145
+
146
+ // Each is a map of namespace name to { name, definitions }.
147
+ const { tenant, core } = await response.json();
148
+ ```
149
+
150
+ ### Update a value definition
151
+
152
+ Properties not included in the request are left unchanged.
153
+
154
+ ```typescript
155
+ const namespace = 'support';
156
+ const name = 'application-stats';
157
+ const response = await fetch(`https://value-service.adsp.alberta.ca/value/v1/definitions/${namespace}/${name}`, {
158
+ method: 'PATCH',
159
+ headers: {
160
+ Authorization: `Bearer ${accessToken}`,
161
+ 'Content-Type': 'application/json',
162
+ },
163
+ body: JSON.stringify({ description: 'Updated statistics for support applications.' }),
164
+ });
165
+ ```
166
+
167
+ ### Delete a value definition
168
+
169
+ ```typescript
170
+ const namespace = 'support';
171
+ const name = 'application-stats';
172
+ const response = await fetch(`https://value-service.adsp.alberta.ca/value/v1/definitions/${namespace}/${name}`, {
173
+ method: 'DELETE',
174
+ headers: { Authorization: `Bearer ${accessToken}` },
175
+ });
176
+
177
+ const { deleted } = await response.json();
178
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/adsp-sdk-mcp-server",
3
- "version": "1.14.0",
3
+ "version": "1.15.0",
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",
@@ -10,6 +10,7 @@
10
10
  "dependencies": {
11
11
  "@abgov/adsp-cli": "^1.7.0",
12
12
  "@modelcontextprotocol/sdk": "^1.29.0",
13
+ "express": "^4.21.0",
13
14
  "tslib": "^2.3.0",
14
15
  "zod": "^3.25.76"
15
16
  },
package/src/main.js CHANGED
@@ -2,14 +2,123 @@
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const stdio_js_1 = require("@modelcontextprotocol/sdk/server/stdio.js");
5
+ const streamableHttp_js_1 = require("@modelcontextprotocol/sdk/server/streamableHttp.js");
6
+ const express = require("express");
7
+ const crypto_1 = require("crypto");
5
8
  const server_1 = require("./server");
9
+ function resolveTransport() {
10
+ const raw = process.env['MCP_TRANSPORT'] ?? 'stdio';
11
+ if (raw === 'stdio' || raw === 'http')
12
+ return raw;
13
+ console.error(`[adsp-sdk-mcp-server] Unknown MCP_TRANSPORT="${raw}". Valid values: stdio, http. Defaulting to stdio.`);
14
+ return 'stdio';
15
+ }
6
16
  async function main() {
7
- const server = (0, server_1.createAdspMcpServer)();
8
- const transport = new stdio_js_1.StdioServerTransport();
9
- await server.connect(transport);
17
+ const transport = resolveTransport();
18
+ console.error(`[adsp-sdk-mcp-server] transport=${transport} sessionTtlMs=${SESSION_TTL_MS}`);
19
+ if (transport === 'http') {
20
+ await startHttp();
21
+ }
22
+ else {
23
+ const server = (0, server_1.createAdspMcpServer)();
24
+ await server.connect(new stdio_js_1.StdioServerTransport());
25
+ }
26
+ }
27
+ const SESSION_TTL_MS = parseInt(process.env['SESSION_TTL_MINUTES'] ?? '30', 10) * 60 * 1000;
28
+ async function startHttp() {
29
+ const port = parseInt(process.env['PORT'] ?? '3000', 10);
30
+ const app = express();
31
+ app.use(express.json({ limit: '1mb' }));
32
+ app.use((_req, res, next) => {
33
+ res.setHeader('Access-Control-Allow-Origin', process.env['CORS_ORIGIN'] ?? '*');
34
+ res.setHeader('Access-Control-Allow-Methods', 'GET, POST, DELETE, OPTIONS');
35
+ res.setHeader('Access-Control-Allow-Headers', 'Content-Type, mcp-session-id');
36
+ res.setHeader('Access-Control-Expose-Headers', 'mcp-session-id');
37
+ if (_req.method === 'OPTIONS') {
38
+ res.sendStatus(204);
39
+ return;
40
+ }
41
+ next();
42
+ });
43
+ app.get('/health', (_req, res) => {
44
+ res.json({ status: 'ok' });
45
+ });
46
+ const sessions = new Map();
47
+ const cleanupTimer = setInterval(() => {
48
+ const now = Date.now();
49
+ for (const [id, entry] of sessions) {
50
+ if (now - entry.lastActivity > SESSION_TTL_MS) {
51
+ sessions.delete(id);
52
+ entry.server.close();
53
+ }
54
+ }
55
+ }, 60_000);
56
+ cleanupTimer.unref();
57
+ app.post('/mcp', async (req, res) => {
58
+ const sessionId = req.headers['mcp-session-id'];
59
+ if (sessionId && sessions.has(sessionId)) {
60
+ const entry = sessions.get(sessionId);
61
+ entry.lastActivity = Date.now();
62
+ await entry.transport.handleRequest(req, res, req.body);
63
+ return;
64
+ }
65
+ const newId = (0, crypto_1.randomUUID)();
66
+ const sessionServer = (0, server_1.createAdspMcpServer)();
67
+ const transport = new streamableHttp_js_1.StreamableHTTPServerTransport({
68
+ sessionIdGenerator: () => newId,
69
+ onsessioninitialized: (id) => {
70
+ sessions.set(id, { server: sessionServer, transport, lastActivity: Date.now() });
71
+ },
72
+ });
73
+ transport.onclose = () => {
74
+ const found = [...sessions.entries()].find(([, e]) => e.transport === transport);
75
+ if (found) {
76
+ sessions.delete(found[0]);
77
+ found[1].server.close();
78
+ }
79
+ };
80
+ await sessionServer.connect(transport);
81
+ await transport.handleRequest(req, res, req.body);
82
+ });
83
+ app.get('/mcp', async (req, res) => {
84
+ const sessionId = req.headers['mcp-session-id'];
85
+ if (!sessionId || !sessions.has(sessionId)) {
86
+ res.status(400).json({ error: 'Invalid or missing session ID' });
87
+ return;
88
+ }
89
+ const entry = sessions.get(sessionId);
90
+ entry.lastActivity = Date.now();
91
+ await entry.transport.handleRequest(req, res);
92
+ });
93
+ app.delete('/mcp', async (req, res) => {
94
+ const sessionId = req.headers['mcp-session-id'];
95
+ if (!sessionId || !sessions.has(sessionId)) {
96
+ res.status(400).json({ error: 'Invalid or missing session ID' });
97
+ return;
98
+ }
99
+ const entry = sessions.get(sessionId);
100
+ sessions.delete(sessionId);
101
+ await entry.transport.handleRequest(req, res);
102
+ });
103
+ return new Promise((resolve) => {
104
+ const httpServer = app.listen(port, () => {
105
+ console.error(`[adsp-sdk-mcp-server] HTTP server listening on :${port}`);
106
+ resolve();
107
+ });
108
+ function shutdown() {
109
+ clearInterval(cleanupTimer);
110
+ for (const [id, entry] of sessions) {
111
+ sessions.delete(id);
112
+ entry.server.close();
113
+ }
114
+ httpServer.close(() => process.exit(0));
115
+ setTimeout(() => process.exit(1), 5_000).unref();
116
+ }
117
+ process.on('SIGTERM', shutdown);
118
+ process.on('SIGINT', shutdown);
119
+ });
10
120
  }
11
121
  main().catch((err) => {
12
- // eslint-disable-next-line no-console
13
122
  console.error('Failed to start adsp-sdk-mcp-server:', err);
14
123
  process.exit(1);
15
124
  });
package/src/main.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../../../../libs/adsp-sdk-mcp-server/src/main.ts"],"names":[],"mappings":";;;AACA,wEAAiF;AACjF,qCAA+C;AAE/C,KAAK,UAAU,IAAI;IACjB,MAAM,MAAM,GAAG,IAAA,4BAAmB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