@node-in-layers/mcp-server 2.1.15 → 2.2.1
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/docs/node-in-layers-system.json +339 -0
- package/mcp.js +5 -4
- package/mcp.js.map +1 -1
- package/models.d.ts +12 -0
- package/nil.d.ts +13 -0
- package/nil.js +40 -1
- package/nil.js.map +1 -1
- package/package.json +2 -2
- package/types.d.ts +17 -0
- package/types.js.map +1 -1
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "2e19b8bf-2a4f-4f3c-9b7e-0f10c9e55c01",
|
|
4
|
+
"name": "What is a Node-In-Layers (NIL) system?",
|
|
5
|
+
"tags": ["intro", "layers", "models"],
|
|
6
|
+
"details": "A Node-In-Layers (NIL) system organizes application code into cohesive apps and layered responsibilities. Key default layers: globals (shared config and infra), services (talk to the outside world: DBs, APIs, files), features (business flows orchestrating steps), and entries (starting points like REST, CLI, serverless). Models are first-class: they define validated data structures and, when configured with an ORM, expose CRUDS APIs across services and features. This document focuses on how to navigate and use a NIL system via the MCP server tools."
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"id": "7c0c9643-92f4-4603-984d-3a25b9bd3a28",
|
|
10
|
+
"name": "MCP navigation workflow (high level)",
|
|
11
|
+
"tags": ["mcp", "workflow", "discovery"],
|
|
12
|
+
"details": "Typical AI-driven navigation flow: (1) Call list_domains to discover business domains. (2) For the chosen domain, call list_features and list_models to understand available actions and data. (3) Optionally call describe_feature or describe_model to get precise input/output schemas. (4) Execute a feature with execute_feature, or operate on models with save/retrieve/delete/search/bulkInsert/bulkDelete. Prefer describe_* before execution to align arguments correctly."
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"id": "0f9f5b67-9b8e-4b2a-8b28-2a8800d2c3a1",
|
|
16
|
+
"name": "Cross Layer Props (tracing across calls)",
|
|
17
|
+
"tags": ["mcp", "tracing", "crossLayerProps"],
|
|
18
|
+
"details": "crossLayerProps is an optional argument you can send with NIL MCP tool calls to enable end-to-end tracing across layers (features/services) and across multiple tool invocations. It carries correlation ids that the system logs at each hop so you can stitch together a full execution story.",
|
|
19
|
+
"example": {
|
|
20
|
+
"strategy": "Generate a single aiSessionId (uuid) for the entire AI session, and an aiRequestId (uuid) per user request. Reuse both ids for every tool call made while fulfilling that one user request.",
|
|
21
|
+
"idsObject": {
|
|
22
|
+
"crossLayerProps": {
|
|
23
|
+
"logging": {
|
|
24
|
+
"ids": [
|
|
25
|
+
{
|
|
26
|
+
"name": "aiSessionId",
|
|
27
|
+
"value": "8c2ab2c0-6f8e-4a6b-9b4e-3e9c1e3a9d10"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "aiRequestId",
|
|
31
|
+
"value": "f4c7a8e2-1b9c-49bf-9f07-6b9d7f4e2a33"
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"calls": [
|
|
38
|
+
{
|
|
39
|
+
"tool": "list_domains",
|
|
40
|
+
"input": {
|
|
41
|
+
"crossLayerProps": {
|
|
42
|
+
"logging": {
|
|
43
|
+
"ids": [
|
|
44
|
+
{
|
|
45
|
+
"name": "aiSessionId",
|
|
46
|
+
"value": "8c2ab2c0-6f8e-4a6b-9b4e-3e9c1e3a9d10"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "aiRequestId",
|
|
50
|
+
"value": "f4c7a8e2-1b9c-49bf-9f07-6b9d7f4e2a33"
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"tool": "list_features",
|
|
59
|
+
"input": {
|
|
60
|
+
"domain": "inventory",
|
|
61
|
+
"crossLayerProps": {
|
|
62
|
+
"logging": {
|
|
63
|
+
"ids": [
|
|
64
|
+
{
|
|
65
|
+
"name": "aiSessionId",
|
|
66
|
+
"value": "8c2ab2c0-6f8e-4a6b-9b4e-3e9c1e3a9d10"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "aiRequestId",
|
|
70
|
+
"value": "f4c7a8e2-1b9c-49bf-9f07-6b9d7f4e2a33"
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"tool": "execute_feature",
|
|
79
|
+
"input": {
|
|
80
|
+
"domain": "inventory",
|
|
81
|
+
"featureName": "reserveItem",
|
|
82
|
+
"args": { "sku": "ABC-123", "quantity": 1, "userId": "u-42" },
|
|
83
|
+
"crossLayerProps": {
|
|
84
|
+
"logging": {
|
|
85
|
+
"ids": [
|
|
86
|
+
{
|
|
87
|
+
"name": "aiSessionId",
|
|
88
|
+
"value": "8c2ab2c0-6f8e-4a6b-9b4e-3e9c1e3a9d10"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "aiRequestId",
|
|
92
|
+
"value": "f4c7a8e2-1b9c-49bf-9f07-6b9d7f4e2a33"
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"notes": "Do not create a new id per individual tool call during the same user request; that breaks correlation. Keep aiSessionId stable for the chat/session, rotate aiRequestId per top-level user instruction."
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"id": "a0a1c3cf-7f3f-4e4b-9f1e-2b1a9a7b11aa",
|
|
105
|
+
"name": "list_domains",
|
|
106
|
+
"tags": ["mcp", "nil", "discovery"],
|
|
107
|
+
"details": "Lists domains available in the system (from NIL features context). Hidden domains are omitted by server policy.",
|
|
108
|
+
"example": {
|
|
109
|
+
"request": {
|
|
110
|
+
"tool": "list_domains",
|
|
111
|
+
"input": {}
|
|
112
|
+
},
|
|
113
|
+
"response": {
|
|
114
|
+
"domains": [
|
|
115
|
+
{ "name": "auth", "description": "User accounts and authentication" },
|
|
116
|
+
{ "name": "inventory", "description": "Stock and availability" }
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
"notes": "Start here. Use a domain's description to decide next actions."
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"id": "f3b7b0d1-0d4e-4a25-9c76-8a7ef0f2d3c2",
|
|
124
|
+
"name": "list_features",
|
|
125
|
+
"tags": ["mcp", "nil", "discovery", "features"],
|
|
126
|
+
"details": "Lists callable business features for a domain. Use before execute_feature to see options.",
|
|
127
|
+
"example": {
|
|
128
|
+
"request": {
|
|
129
|
+
"tool": "list_features",
|
|
130
|
+
"input": { "domain": "inventory" }
|
|
131
|
+
},
|
|
132
|
+
"response": {
|
|
133
|
+
"features": [
|
|
134
|
+
{
|
|
135
|
+
"name": "checkItemAvailability",
|
|
136
|
+
"description": "Check stock for an item"
|
|
137
|
+
},
|
|
138
|
+
{ "name": "reserveItem", "description": "Place a hold on an item" }
|
|
139
|
+
]
|
|
140
|
+
},
|
|
141
|
+
"notes": "Only function-typed exports are listed; hidden features are omitted."
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"id": "3f2f4a9a-4d75-41f0-b1a9-3b7f5a223c17",
|
|
146
|
+
"name": "describe_feature",
|
|
147
|
+
"tags": ["mcp", "nil", "schema", "features"],
|
|
148
|
+
"details": "Returns an OpenAPI-like schema for a feature. If the feature is NIL-annotated, the full schema is derived; otherwise, a generic schema is produced.",
|
|
149
|
+
"example": {
|
|
150
|
+
"request": {
|
|
151
|
+
"tool": "describe_feature",
|
|
152
|
+
"input": { "domain": "inventory", "featureName": "reserveItem" }
|
|
153
|
+
},
|
|
154
|
+
"response": {
|
|
155
|
+
"schema": {
|
|
156
|
+
"description": "Reserve an item for a user",
|
|
157
|
+
"properties": { "args": { "type": "object" } }
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"notes": "Use before execute_feature to validate arguments."
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"id": "9a1a7b5d-1b2e-4b6c-9f0c-2d3e4f5a6b7c",
|
|
165
|
+
"name": "execute_feature",
|
|
166
|
+
"tags": ["mcp", "nil", "execution", "features"],
|
|
167
|
+
"details": "Executes a specific domain feature. Pass feature-specific args and optional crossLayerProps for tracing.",
|
|
168
|
+
"example": {
|
|
169
|
+
"request": {
|
|
170
|
+
"tool": "execute_feature",
|
|
171
|
+
"input": {
|
|
172
|
+
"domain": "inventory",
|
|
173
|
+
"featureName": "reserveItem",
|
|
174
|
+
"args": { "sku": "ABC-123", "quantity": 1, "userId": "u-42" },
|
|
175
|
+
"crossLayerProps": {
|
|
176
|
+
"logging": { "ids": [{ "name": "traceId", "value": "123e4567" }] }
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"response": {
|
|
181
|
+
"result": { "reservationId": "r-1001", "status": "RESERVED" }
|
|
182
|
+
},
|
|
183
|
+
"notes": "Errors are returned as structured error objects by the server."
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"id": "b0c5c3f3-6a7d-4f0a-8b1c-6d3a2f1e9c88",
|
|
188
|
+
"name": "list_models",
|
|
189
|
+
"tags": ["mcp", "models", "discovery"],
|
|
190
|
+
"details": "Lists ORM-backed models for a domain with optional descriptions. Hidden models/domains are omitted.",
|
|
191
|
+
"example": {
|
|
192
|
+
"request": { "tool": "list_models", "input": { "domain": "inventory" } },
|
|
193
|
+
"response": {
|
|
194
|
+
"models": [
|
|
195
|
+
{
|
|
196
|
+
"modelType": "inventory/Inventories",
|
|
197
|
+
"description": "Inventory records"
|
|
198
|
+
}
|
|
199
|
+
]
|
|
200
|
+
},
|
|
201
|
+
"notes": "Model type strings encode namespace and plural name."
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"id": "d7f2b1c0-1b9d-4ef3-88a9-1c2e3f4a5b6c",
|
|
206
|
+
"name": "describe_model",
|
|
207
|
+
"tags": ["mcp", "models", "schema"],
|
|
208
|
+
"details": "Returns the model schema for a given modelType. Use to learn required fields and types.",
|
|
209
|
+
"example": {
|
|
210
|
+
"request": {
|
|
211
|
+
"tool": "describe_model",
|
|
212
|
+
"input": { "domain": "inventory", "modelType": "inventory/Inventories" }
|
|
213
|
+
},
|
|
214
|
+
"response": {
|
|
215
|
+
"schema": {
|
|
216
|
+
"properties": {
|
|
217
|
+
"id": { "type": "string" },
|
|
218
|
+
"sku": { "type": "string" },
|
|
219
|
+
"quantity": { "type": "number" }
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
"notes": "modelType is parsed into namespace and plural model name."
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"id": "c5b7e0a2-4a6f-4a4e-8629-0f1a2b3c4d5e",
|
|
228
|
+
"name": "Model CRUD: save",
|
|
229
|
+
"tags": ["mcp", "models", "crud", "save"],
|
|
230
|
+
"details": "Creates or updates a model instance. Pass modelType and instance data.",
|
|
231
|
+
"example": {
|
|
232
|
+
"request": {
|
|
233
|
+
"tool": "save",
|
|
234
|
+
"input": {
|
|
235
|
+
"modelType": "inventory/Inventories",
|
|
236
|
+
"instance": { "sku": "ABC-123", "quantity": 10 }
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
"response": { "id": "inv-1", "sku": "ABC-123", "quantity": 10 },
|
|
240
|
+
"notes": "Validation errors are returned as structured error objects."
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"id": "e1d2c3b4-a5f6-4a7b-8c9d-0e1f2a3b4c5d",
|
|
245
|
+
"name": "Model CRUD: retrieve",
|
|
246
|
+
"tags": ["mcp", "models", "crud", "retrieve"],
|
|
247
|
+
"details": "Retrieves a single instance by id.",
|
|
248
|
+
"example": {
|
|
249
|
+
"request": {
|
|
250
|
+
"tool": "retrieve",
|
|
251
|
+
"input": { "modelType": "inventory/Inventories", "id": "inv-1" }
|
|
252
|
+
},
|
|
253
|
+
"response": { "id": "inv-1", "sku": "ABC-123", "quantity": 10 },
|
|
254
|
+
"notes": "If not found, server returns a model-not-found error object."
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"id": "f6a5b4c3-d2e1-4c0b-9a8f-7e6d5c4b3a21",
|
|
259
|
+
"name": "Model CRUD: delete",
|
|
260
|
+
"tags": ["mcp", "models", "crud", "delete"],
|
|
261
|
+
"details": "Deletes an instance by id.",
|
|
262
|
+
"example": {
|
|
263
|
+
"request": {
|
|
264
|
+
"tool": "delete",
|
|
265
|
+
"input": { "modelType": "inventory/Inventories", "id": "inv-1" }
|
|
266
|
+
},
|
|
267
|
+
"response": null,
|
|
268
|
+
"notes": "Returns null on success."
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"id": "1a2b3c4d-5e6f-4701-8a9b-0c1d2e3f4a5b",
|
|
273
|
+
"name": "Model CRUD: search",
|
|
274
|
+
"tags": ["mcp", "models", "crud", "search"],
|
|
275
|
+
"details": "Searches model instances via ORM query format.",
|
|
276
|
+
"example": {
|
|
277
|
+
"request": {
|
|
278
|
+
"tool": "search",
|
|
279
|
+
"input": {
|
|
280
|
+
"modelType": "inventory/Inventories",
|
|
281
|
+
"query": {
|
|
282
|
+
"filters": [{ "field": "sku", "op": "=", "value": "ABC-123" }]
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
"response": {
|
|
287
|
+
"instances": [{ "id": "inv-1", "sku": "ABC-123", "quantity": 10 }],
|
|
288
|
+
"page": { "size": 25, "number": 1, "total": 1 }
|
|
289
|
+
},
|
|
290
|
+
"notes": "The exact search format depends on the ORM configured."
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"id": "6b7c8d9e-0f1a-42b3-8c4d-5e6f7a8b9c0d",
|
|
295
|
+
"name": "Model CRUD: bulkInsert",
|
|
296
|
+
"tags": ["mcp", "models", "crud", "bulk"],
|
|
297
|
+
"details": "Inserts many instances in a single call.",
|
|
298
|
+
"example": {
|
|
299
|
+
"request": {
|
|
300
|
+
"tool": "bulkInsert",
|
|
301
|
+
"input": {
|
|
302
|
+
"modelType": "inventory/Inventories",
|
|
303
|
+
"items": [
|
|
304
|
+
{ "sku": "ABC-123", "quantity": 5 },
|
|
305
|
+
{ "sku": "XYZ-999", "quantity": 2 }
|
|
306
|
+
]
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
"response": null,
|
|
310
|
+
"notes": "Returns null on success; validate inputs with describe_model first."
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"id": "7c8d9e0f-1a2b-43c4-9d5e-6f7a8b9c0d1e",
|
|
315
|
+
"name": "Model CRUD: bulkDelete",
|
|
316
|
+
"tags": ["mcp", "models", "crud", "bulk"],
|
|
317
|
+
"details": "Deletes many instances by ids.",
|
|
318
|
+
"example": {
|
|
319
|
+
"request": {
|
|
320
|
+
"tool": "bulkDelete",
|
|
321
|
+
"input": {
|
|
322
|
+
"modelType": "inventory/Inventories",
|
|
323
|
+
"ids": ["inv-1", "inv-2"]
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
"response": null,
|
|
327
|
+
"notes": "Use search first to decide which ids to delete."
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"id": "0a1b2c3d-4e5f-4607-8a90-b1c2d3e4f506",
|
|
332
|
+
"name": "Putting it together: example conversation flow",
|
|
333
|
+
"tags": ["mcp", "workflow", "examples"],
|
|
334
|
+
"details": "Example of an AI deciding which tools to call and in what order.",
|
|
335
|
+
"example": {
|
|
336
|
+
"markdown": "User asks: \"Reserve 1 unit of ABC-123 if available.\"\n\n1. list_domains {}\n - Choose domain = inventory.\n2. list_features { domain: \"inventory\" } and list_models { domain: \"inventory\" }\n - See feature reserveItem and model Inventories.\n3. describe_feature { domain: \"inventory\", featureName: \"checkItemAvailability\" }\n - Confirm args: { sku: string, quantity: number }.\n4. execute_feature { domain: \"inventory\", featureName: \"checkItemAvailability\", args: { sku: \"ABC-123\", quantity: 1 }, crossLayerProps: { logging: { ids: [{ name: \"aiSessionId\", value: \"8c2ab...\" }, { name: \"aiRequestId\", value: \"f4c7a...\" }] } } }\n - If available: true -> proceed.\n5. execute_feature { domain: \"inventory\", featureName: \"reserveItem\", args: { sku: \"ABC-123\", quantity: 1, userId: \"u-42\" }, crossLayerProps: { logging: { ids: [{ name: \"aiSessionId\", value: \"8c2ab...\" }, { name: \"aiRequestId\", value: \"f4c7a...\" }] } } }\n - Returns reservationId.\n"
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
]
|
package/mcp.js
CHANGED
|
@@ -52,6 +52,11 @@ const create = (context) => {
|
|
|
52
52
|
const modelsMcp = createModelsMcp(systemContext);
|
|
53
53
|
const nilMcp = createNilMcp(systemContext);
|
|
54
54
|
const allTools = [
|
|
55
|
+
nilMcp.startHere(),
|
|
56
|
+
nilMcp.listDomains(),
|
|
57
|
+
nilMcp.listFeatures(),
|
|
58
|
+
nilMcp.describeFeature(),
|
|
59
|
+
nilMcp.executeFeature(),
|
|
55
60
|
modelsMcp.listModels(),
|
|
56
61
|
modelsMcp.describe(),
|
|
57
62
|
modelsMcp.save(),
|
|
@@ -60,10 +65,6 @@ const create = (context) => {
|
|
|
60
65
|
modelsMcp.search(),
|
|
61
66
|
modelsMcp.bulkInsert(),
|
|
62
67
|
modelsMcp.bulkDelete(),
|
|
63
|
-
nilMcp.listDomains(),
|
|
64
|
-
nilMcp.listFeatures(),
|
|
65
|
-
nilMcp.describeFeature(),
|
|
66
|
-
nilMcp.executeFeature(),
|
|
67
68
|
...tools,
|
|
68
69
|
].map(_wrapToolsWithLogger);
|
|
69
70
|
const server = createSimpleServer({
|
package/m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AAM,CAAC,KAAK,EAAE,CAAA;IACtB,CAAC,CAAA,CAAA;IAED,MAAM,MAAM,GAAG,CAAC,OAAoB,EAAE,EAAE;QACtC,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAA;QAClC,aAAa;QACb,IAAI,CAAC,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,CAAA,EAAE,CAAC;YACpB,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAA;QAC3C,CAAC;QACD,aAAa;QACb,OAAO,MAAM,CAAC,MAAM,EAAE,CAAA;IACxB,CAAC,CAAA;IAED,MAAM,GAAG,GAAG,CAAC,GAAW,EAAE,KAAU,EAAE,EAAE;QACtC,qDAAqD;QACrD,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAA;IACzB,CAAC,CAAA;IAED,OAAO;QACL,KAAK;QACL,MAAM;QACN,OAAO;QACP,qBAAqB;QACrB,kBAAkB;QAClB,GAAG;KACJ,CAAA;AACH,CAAC,CAAA;AAED;;;;;GAKG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8BE;AAEF,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
package/models.d.ts
CHANGED
|
@@ -56,6 +56,18 @@ export declare const create: <TConfig extends Readonly<{
|
|
|
56
56
|
}>;
|
|
57
57
|
};
|
|
58
58
|
hiddenPaths?: string[] | undefined;
|
|
59
|
+
systemDescription?: {
|
|
60
|
+
description?: string | undefined;
|
|
61
|
+
version?: string | undefined;
|
|
62
|
+
examplesOfUse?: readonly Readonly<{
|
|
63
|
+
name: string;
|
|
64
|
+
description?: string | undefined;
|
|
65
|
+
value?: string | undefined;
|
|
66
|
+
tags?: string[] | undefined;
|
|
67
|
+
details?: string | undefined;
|
|
68
|
+
example?: string | undefined;
|
|
69
|
+
}>[] | undefined;
|
|
70
|
+
} | undefined;
|
|
59
71
|
logging?: {
|
|
60
72
|
requestLogLevel?: import("@node-in-layers/core/types.js").LogLevelNames | undefined;
|
|
61
73
|
responseLogLevel?: import("@node-in-layers/core/types.js").LogLevelNames | undefined;
|
package/nil.d.ts
CHANGED
|
@@ -56,6 +56,18 @@ export declare const create: <TConfig extends Readonly<{
|
|
|
56
56
|
}>;
|
|
57
57
|
};
|
|
58
58
|
hiddenPaths?: string[] | undefined;
|
|
59
|
+
systemDescription?: {
|
|
60
|
+
description?: string | undefined;
|
|
61
|
+
version?: string | undefined;
|
|
62
|
+
examplesOfUse?: readonly Readonly<{
|
|
63
|
+
name: string;
|
|
64
|
+
description?: string | undefined;
|
|
65
|
+
value?: string | undefined;
|
|
66
|
+
tags?: string[] | undefined;
|
|
67
|
+
details?: string | undefined;
|
|
68
|
+
example?: string | undefined;
|
|
69
|
+
}>[] | undefined;
|
|
70
|
+
} | undefined;
|
|
59
71
|
logging?: {
|
|
60
72
|
requestLogLevel?: import("@node-in-layers/core/types.js").LogLevelNames | undefined;
|
|
61
73
|
responseLogLevel?: import("@node-in-layers/core/types.js").LogLevelNames | undefined;
|
|
@@ -151,4 +163,5 @@ export declare const create: <TConfig extends Readonly<{
|
|
|
151
163
|
describeFeature: () => ServerTool;
|
|
152
164
|
listFeatures: () => ServerTool;
|
|
153
165
|
executeFeature: () => ServerTool;
|
|
166
|
+
startHere: () => ServerTool;
|
|
154
167
|
};
|
package/nil.js
CHANGED
|
@@ -7,8 +7,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { createErrorObject, isErrorObject, } from '@node-in-layers/core';
|
|
10
|
+
import { CoreNamespace, createErrorObject, isErrorObject, } from '@node-in-layers/core';
|
|
11
11
|
import { createDomainNotFoundError, createMcpResponse, createFeatureNotFoundError, isNilAnnotatedFunction, nilAnnotatedFunctionToOpenApi, createOpenApiForNonNilAnnotatedFunction, isDomainHidden, isFeatureHidden, commonMcpExecute, crossLayerPropsOpenApi, } from './libs.js';
|
|
12
|
+
import { default as nilSystem } from './docs/node-in-layers-system.json' with { type: 'json' };
|
|
12
13
|
import { McpNamespace } from './types.js';
|
|
13
14
|
const describeFeatureMcpTool = () => {
|
|
14
15
|
return {
|
|
@@ -194,11 +195,49 @@ export const create = (context) => {
|
|
|
194
195
|
return createMcpResponse(result);
|
|
195
196
|
})) });
|
|
196
197
|
};
|
|
198
|
+
const startHereMcpTool = () => {
|
|
199
|
+
return {
|
|
200
|
+
name: 'START_HERE',
|
|
201
|
+
description: 'BEFORE YOU DO ANYTHING, you should call this tool first!!! It provides a robust description about the system and how to use it.',
|
|
202
|
+
inputSchema: { type: 'object', properties: {}, required: [] },
|
|
203
|
+
// @ts-ignore
|
|
204
|
+
outputSchema: { type: 'object', additionalProperties: true },
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
const _startHereTool = () => {
|
|
208
|
+
return Object.assign(Object.assign({}, startHereMcpTool()), { execute: commonMcpExecute(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
209
|
+
const systemDescription = context.config[McpNamespace].systemDescription;
|
|
210
|
+
const systemName = context.config[CoreNamespace.root].systemName;
|
|
211
|
+
const systemEntries = nilSystem;
|
|
212
|
+
const entries = [
|
|
213
|
+
{
|
|
214
|
+
name: 'systemName',
|
|
215
|
+
value: systemName,
|
|
216
|
+
},
|
|
217
|
+
...(systemDescription
|
|
218
|
+
? [
|
|
219
|
+
{
|
|
220
|
+
name: 'systemDescription',
|
|
221
|
+
value: systemDescription,
|
|
222
|
+
},
|
|
223
|
+
]
|
|
224
|
+
: []),
|
|
225
|
+
...((systemDescription === null || systemDescription === void 0 ? void 0 : systemDescription.examplesOfUse)
|
|
226
|
+
? systemDescription.examplesOfUse
|
|
227
|
+
: []),
|
|
228
|
+
...systemEntries,
|
|
229
|
+
];
|
|
230
|
+
return createMcpResponse({
|
|
231
|
+
entries,
|
|
232
|
+
});
|
|
233
|
+
})) });
|
|
234
|
+
};
|
|
197
235
|
return {
|
|
198
236
|
listDomains: _listDomainsTool,
|
|
199
237
|
describeFeature: _describeFeatureTool,
|
|
200
238
|
listFeatures: _listFeaturesTool,
|
|
201
239
|
executeFeature: _executeFeatureTool,
|
|
240
|
+
startHere: _startHereTool,
|
|
202
241
|
};
|
|
203
242
|
};
|
|
204
243
|
//# sourceMappingURL=nil.js.map
|
package/nil.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nil.js","sourceRoot":"","sources":["../src/nil.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAEL,iBAAiB,EACjB,aAAa,GAEd,MAAM,sBAAsB,CAAA;AAG7B,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,0BAA0B,EAC1B,sBAAsB,EACtB,6BAA6B,EAC7B,uCAAuC,EACvC,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,sBAAsB,GACvB,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,YAAY,EAAmB,MAAM,YAAY,CAAA;AAE1D,MAAM,sBAAsB,GAAG,GAAY,EAAE;IAC3C,OAAO;QACL,IAAI,EAAE,kBAAkB;QACxB,WAAW,EAAE,oCAAoC;QACjD,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC1B,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAChC;YACD,QAAQ,EAAE,CAAC,QAAQ,EAAE,aAAa,CAAC;SACpC;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC3B;SACF;KACF,CAAA;AACH,CAAC,CAAA;AAED,MAAM,mBAAmB,GAAG,GAAY,EAAE;IACxC,OAAO;QACL,IAAI,EAAE,eAAe;QACrB,WAAW,EAAE,4CAA4C;QACzD,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jB,iBAAiB,CAAE,aAAa;wBAClC,CAAC,CAAC,iBAAiB,CAAC,aAAa;wBACjC,CAAC,CAAC,EAAE,CAAC;oBACP,GAAG,aAAa;iBACjB,CAAA;gBACD,OAAO,iBAAiB,CAAC;oBACvB,OAAO;iBACR,CAAC,CAAA;YACJ,CAAC,CAAA,CAAC,IACH;IACH,CAAC,CAAA;IAED,OAAO;QACL,WAAW,EAAE,gBAAgB;QAC7B,eAAe,EAAE,oBAAoB;QACrC,YAAY,EAAE,iBAAiB;QAC/B,cAAc,EAAE,mBAAmB;QACnC,SAAS,EAAE,cAAc;KAC1B,CAAA;AACH,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@node-in-layers/mcp-server",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.1
|
|
4
|
+
"version": "2.2.1",
|
|
5
5
|
"description": "An MCP Server Node In Layers Package, generated by the Node In Layers Toolkit.",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"scripts": {
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"@l4t/mcp-ai": "^1.6.0",
|
|
67
67
|
"@modelcontextprotocol/sdk": "^1.13.2",
|
|
68
|
-
"@node-in-layers/core": "^1.10.
|
|
68
|
+
"@node-in-layers/core": "^1.10.6",
|
|
69
69
|
"express": "^5.1.0",
|
|
70
70
|
"functional-models": "^3.6.0",
|
|
71
71
|
"functional-models-openapi": "^3.0.2",
|
package/types.d.ts
CHANGED
|
@@ -5,6 +5,14 @@ import { Config, LogLevelNames, LayerContext } from '@node-in-layers/core';
|
|
|
5
5
|
import { Express } from 'express';
|
|
6
6
|
import { JsonAble } from 'functional-models';
|
|
7
7
|
type Connection = ServerHttpConfig | ServerCliConfig | ServerSseConfig | ServerStatelessHttpConfig;
|
|
8
|
+
export type SystemUseExample = Readonly<{
|
|
9
|
+
name: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
value?: string;
|
|
12
|
+
tags?: string[];
|
|
13
|
+
details?: string;
|
|
14
|
+
example?: string;
|
|
15
|
+
}>;
|
|
8
16
|
/**
|
|
9
17
|
* Configuration for the MCP server.
|
|
10
18
|
* @interface
|
|
@@ -41,6 +49,15 @@ export type McpServerConfig = Readonly<{
|
|
|
41
49
|
* myDomain.cruds.MyModel - hides a specific model
|
|
42
50
|
*/
|
|
43
51
|
hiddenPaths?: string[];
|
|
52
|
+
/**
|
|
53
|
+
* Ability to set information about the system so that it can be fed to AI consumers.
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
56
|
+
systemDescription?: {
|
|
57
|
+
description?: string;
|
|
58
|
+
version?: string;
|
|
59
|
+
examplesOfUse?: ReadonlyArray<SystemUseExample>;
|
|
60
|
+
};
|
|
44
61
|
/**
|
|
45
62
|
* Logging configuration.
|
|
46
63
|
*/
|
package/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAgGA,MAAM,CAAC,MAAM,YAAY,GAAG,4BAA4B,CAAA"}
|