@sassoftware/sas-score-mcp-serverjs 1.1.8 → 1.1.9
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/.skills/skills/find-library-server/SKILL.md +3 -1
- package/.skills/skills/find-resources/SKILL.md +2 -1
- package/package.json +1 -1
- package/src/toolSet/listJobdefs.js +2 -0
- package/src/toolSet/listJobs.js +2 -0
- package/src/toolSet/listLibraries.js +2 -0
- package/src/toolSet/listMas.js +2 -0
- package/src/toolSet/listScr.js +4 -1
- package/src/toolSet/listTables.js +2 -0
|
@@ -20,7 +20,9 @@ description: >
|
|
|
20
20
|
- ✅ Found → return `{ lib: "<lib>", server: "cas" }`
|
|
21
21
|
- ❌ Not found → go to step 2
|
|
22
22
|
|
|
23
|
-
2.
|
|
23
|
+
2. Look in SAS
|
|
24
|
+
- Uppercase the library name
|
|
25
|
+
- call `sas-score-find-library({ name: "<LIB_UPPERCASED>", server: "sas" })`
|
|
24
26
|
- ✅ Found → return `{ lib: "<LIB_UPPERCASED>", server: "sas" }`
|
|
25
27
|
- ❌ Not found → library does not exist; **stop** and report not found to the user
|
|
26
28
|
|
|
@@ -39,7 +39,8 @@ Step 1. Use find-library-server skill to verify the library exists and in which
|
|
|
39
39
|
- ✅ Found → return go to Step 2
|
|
40
40
|
- ❌ Not found → library does not exist; **stop** and report not found to the user
|
|
41
41
|
|
|
42
|
-
Step 2. Use sas-score-find-table tool with the library and server from step 1:
|
|
42
|
+
Step 2. Use sas-score-find-table tool with the library and server from step 1:
|
|
43
|
+
- If server is sas, then uppercase the table name before calling `sas-score-find-table({ lib: "<lib>", name: "<TABLE_NAME>", server: <server })`
|
|
43
44
|
- ✅ Found → return success with confirmed lib, table, and server
|
|
44
45
|
- ❌ Not found → table does not exist; **stop** and report not found to the user
|
|
45
46
|
|
package/package.json
CHANGED
|
@@ -60,6 +60,8 @@ Surface backend error directly; never fabricate jobdef names.
|
|
|
60
60
|
handler: async (params) => {
|
|
61
61
|
// _listJobdefs handles all validation and defaults
|
|
62
62
|
const { intent, ...rest } = params;
|
|
63
|
+
rest.start = rest.start ?? 1;
|
|
64
|
+
rest.limit = rest.limit ?? 10;
|
|
63
65
|
const result = await _listJobdefs(rest);
|
|
64
66
|
return result;
|
|
65
67
|
}
|
package/src/toolSet/listJobs.js
CHANGED
|
@@ -58,6 +58,8 @@ Surface backend error directly; never fabricate job names.
|
|
|
58
58
|
handler: async (params) => {
|
|
59
59
|
// _listJob handles all validation and defaults
|
|
60
60
|
const { intent, ...rest } = params;
|
|
61
|
+
rest.start = rest.start ?? 1;
|
|
62
|
+
rest.limit = rest.limit ?? 10;
|
|
61
63
|
const result = await _listJobs(rest);
|
|
62
64
|
return result;
|
|
63
65
|
}
|
|
@@ -73,6 +73,8 @@ Return structured error with a message field. Never hallucinate library names.
|
|
|
73
73
|
// 'server' has a default so we don't mark it required
|
|
74
74
|
handler: async (params) => {
|
|
75
75
|
const { intent, ...rest } = params;
|
|
76
|
+
rest.start = rest.start ?? 1;
|
|
77
|
+
rest.limit = rest.limit ?? 10;
|
|
76
78
|
rest.server = (rest.server || 'all').toLowerCase();
|
|
77
79
|
let r = await _listLibrary(rest);
|
|
78
80
|
return r;
|
package/src/toolSet/listMas.js
CHANGED
package/src/toolSet/listScr.js
CHANGED
|
@@ -49,7 +49,10 @@ Returns empty array if no scrs found.
|
|
|
49
49
|
start: z.number().optional()
|
|
50
50
|
}),
|
|
51
51
|
handler: async (params) => {
|
|
52
|
-
|
|
52
|
+
const { intent, ...rest } = params;
|
|
53
|
+
rest.start = rest.start ?? 1;
|
|
54
|
+
rest.limit = rest.limit ?? 10;
|
|
55
|
+
let r = await _listScr(rest);
|
|
53
56
|
return r;
|
|
54
57
|
}
|
|
55
58
|
}
|