@sassoftware/sas-score-mcp-serverjs 1.0.1-32 → 1.0.1-33

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sassoftware/sas-score-mcp-serverjs",
3
- "version": "1.0.1-32",
3
+ "version": "1.0.1-33",
4
4
  "description": "A mcp server for SAS Viya",
5
5
  "author": "Deva Kumar <deva.kumar@sas.com>",
6
6
  "license": "Apache-2.0",
@@ -1,49 +1,49 @@
1
- import matplotlib
2
- matplotlib.use('Agg')
3
- import matplotlib.pyplot as plt
4
- from pathlib import Path
5
-
6
- data = [
7
- ("Cadillac", 50474.375),
8
- ("Hummer", 49995.0),
9
- ("Lincoln", 42875.555556),
10
- ("Buick", 30537.777778),
11
- ("GMC", 29560.5),
12
- ("Mercury", 27972.777778),
13
- ("Chrysler", 27252.0),
14
- ("Chevrolet", 26587.037037),
15
- ("Dodge", 26253.846154),
16
- ("Jeep", 24518.333333),
17
- ("Pontiac", 24156.363636),
18
- ("Ford", 24015.869565),
19
- ("Oldsmobile", 23763.333333),
20
- ("Saturn", 17234.375),
21
- ]
22
-
23
- # Sort by value descending
24
- data.sort(key=lambda x: x[1], reverse=True)
25
- makes = [d[0] for d in data]
26
- values = [d[1] for d in data]
27
-
28
- out_dir = Path('outputs')
29
- out_dir.mkdir(parents=True, exist_ok=True)
30
- out_file = out_dir / 'make_avg_msrp_usa.png'
31
-
32
- plt.figure(figsize=(12, 6))
33
- bars = plt.bar(makes, values, color='tab:blue')
34
- plt.title('Average MSRP by Make (Origin = USA)')
35
- plt.ylabel('Average MSRP')
36
- plt.xticks(rotation=45, ha='right')
37
- plt.tight_layout()
38
-
39
- # Annotate bars
40
- for bar in bars:
41
- height = bar.get_height()
42
- plt.annotate(f'{height:,.0f}',
43
- xy=(bar.get_x() + bar.get_width() / 2, height),
44
- xytext=(0, 3),
45
- textcoords='offset points',
46
- ha='center', va='bottom', fontsize=8)
47
-
48
- plt.savefig(out_file)
49
- print(f'Plot saved to {out_file}')
1
+ import matplotlib
2
+ matplotlib.use('Agg')
3
+ import matplotlib.pyplot as plt
4
+ from pathlib import Path
5
+
6
+ data = [
7
+ ("Cadillac", 50474.375),
8
+ ("Hummer", 49995.0),
9
+ ("Lincoln", 42875.555556),
10
+ ("Buick", 30537.777778),
11
+ ("GMC", 29560.5),
12
+ ("Mercury", 27972.777778),
13
+ ("Chrysler", 27252.0),
14
+ ("Chevrolet", 26587.037037),
15
+ ("Dodge", 26253.846154),
16
+ ("Jeep", 24518.333333),
17
+ ("Pontiac", 24156.363636),
18
+ ("Ford", 24015.869565),
19
+ ("Oldsmobile", 23763.333333),
20
+ ("Saturn", 17234.375),
21
+ ]
22
+
23
+ # Sort by value descending
24
+ data.sort(key=lambda x: x[1], reverse=True)
25
+ makes = [d[0] for d in data]
26
+ values = [d[1] for d in data]
27
+
28
+ out_dir = Path('outputs')
29
+ out_dir.mkdir(parents=True, exist_ok=True)
30
+ out_file = out_dir / 'make_avg_msrp_usa.png'
31
+
32
+ plt.figure(figsize=(12, 6))
33
+ bars = plt.bar(makes, values, color='tab:blue')
34
+ plt.title('Average MSRP by Make (Origin = USA)')
35
+ plt.ylabel('Average MSRP')
36
+ plt.xticks(rotation=45, ha='right')
37
+ plt.tight_layout()
38
+
39
+ # Annotate bars
40
+ for bar in bars:
41
+ height = bar.get_height()
42
+ plt.annotate(f'{height:,.0f}',
43
+ xy=(bar.get_x() + bar.get_width() / 2, height),
44
+ xytext=(0, 3),
45
+ textcoords='offset points',
46
+ ha='center', va='bottom', fontsize=8)
47
+
48
+ plt.savefig(out_file)
49
+ print(f'Plot saved to {out_file}')
@@ -1,12 +1,12 @@
1
- /*
2
- * Copyright © 2025, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
-
6
- import _listMas from './_listMas.js';
7
- async function _findMas(params) {
8
- let r = await _listMas(params);
9
- console.log ("findMas result:" , r);
10
- return r;
11
- }
1
+ /*
2
+ * Copyright © 2025, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+
6
+ import _listMas from './_listMas.js';
7
+ async function _findMas(params) {
8
+ let r = await _listMas(params);
9
+ console.log ("findMas result:" , r);
10
+ return r;
11
+ }
12
12
  export default _findMas;