@bimatrix-aud-platform/aud_mcp_server 1.0.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.
- package/README.md +128 -0
- package/dist/generators/datasource.d.ts +19 -0
- package/dist/generators/datasource.js +72 -0
- package/dist/generators/defaults.d.ts +163 -0
- package/dist/generators/defaults.js +187 -0
- package/dist/generators/element.d.ts +31 -0
- package/dist/generators/element.js +152 -0
- package/dist/generators/grid-column.d.ts +22 -0
- package/dist/generators/grid-column.js +87 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +713 -0
- package/dist/utils/color.d.ts +19 -0
- package/dist/utils/color.js +18 -0
- package/dist/utils/docking.d.ts +15 -0
- package/dist/utils/docking.js +34 -0
- package/dist/utils/uuid.d.ts +5 -0
- package/dist/utils/uuid.js +8 -0
- package/package.json +43 -0
- package/schemas/mtsd.schema.json +949 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface ColorRGBA {
|
|
2
|
+
R: number;
|
|
3
|
+
G: number;
|
|
4
|
+
B: number;
|
|
5
|
+
A: number;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* "#RRGGBB" 또는 "#RRGGBBAA" → { R, G, B, A }
|
|
9
|
+
*/
|
|
10
|
+
export declare function parseHexColor(hex: string): ColorRGBA;
|
|
11
|
+
/**
|
|
12
|
+
* "#RRGGBB" → Background 스타일 { ColorR, ColorG, ColorB, ColorA }
|
|
13
|
+
*/
|
|
14
|
+
export declare function parseHexToBackground(hex: string): {
|
|
15
|
+
ColorR: number;
|
|
16
|
+
ColorG: number;
|
|
17
|
+
ColorB: number;
|
|
18
|
+
ColorA: number;
|
|
19
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* "#RRGGBB" 또는 "#RRGGBBAA" → { R, G, B, A }
|
|
3
|
+
*/
|
|
4
|
+
export function parseHexColor(hex) {
|
|
5
|
+
const cleaned = hex.replace("#", "");
|
|
6
|
+
const r = parseInt(cleaned.substring(0, 2), 16) || 0;
|
|
7
|
+
const g = parseInt(cleaned.substring(2, 4), 16) || 0;
|
|
8
|
+
const b = parseInt(cleaned.substring(4, 6), 16) || 0;
|
|
9
|
+
const a = cleaned.length >= 8 ? (parseInt(cleaned.substring(6, 8), 16) || 0) : 255;
|
|
10
|
+
return { R: r, G: g, B: b, A: a };
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* "#RRGGBB" → Background 스타일 { ColorR, ColorG, ColorB, ColorA }
|
|
14
|
+
*/
|
|
15
|
+
export function parseHexToBackground(hex) {
|
|
16
|
+
const c = parseHexColor(hex);
|
|
17
|
+
return { ColorR: c.R, ColorG: c.G, ColorB: c.B, ColorA: c.A };
|
|
18
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface DockingObject {
|
|
2
|
+
Left: boolean;
|
|
3
|
+
Right: boolean;
|
|
4
|
+
Top: boolean;
|
|
5
|
+
Bottom: boolean;
|
|
6
|
+
Margin: string;
|
|
7
|
+
HoldSize: boolean;
|
|
8
|
+
MinWidth: number;
|
|
9
|
+
MinHeight: number;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* 단축 표기를 완전한 Docking 객체로 변환
|
|
13
|
+
* 지원: "left", "right", "top", "bottom", "fill", "left+right", "top+bottom" 등
|
|
14
|
+
*/
|
|
15
|
+
export declare function parseDocking(shorthand: string): DockingObject;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const BASE_DOCKING = {
|
|
2
|
+
Left: false,
|
|
3
|
+
Right: false,
|
|
4
|
+
Top: false,
|
|
5
|
+
Bottom: false,
|
|
6
|
+
Margin: "0,0,0,0",
|
|
7
|
+
HoldSize: false,
|
|
8
|
+
MinWidth: 0,
|
|
9
|
+
MinHeight: 0,
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* 단축 표기를 완전한 Docking 객체로 변환
|
|
13
|
+
* 지원: "left", "right", "top", "bottom", "fill", "left+right", "top+bottom" 등
|
|
14
|
+
*/
|
|
15
|
+
export function parseDocking(shorthand) {
|
|
16
|
+
const docking = { ...BASE_DOCKING };
|
|
17
|
+
if (!shorthand || shorthand === "none")
|
|
18
|
+
return docking;
|
|
19
|
+
if (shorthand === "fill") {
|
|
20
|
+
return { ...docking, Left: true, Right: true, Top: true, Bottom: true };
|
|
21
|
+
}
|
|
22
|
+
const parts = shorthand.toLowerCase().split("+").map((s) => s.trim());
|
|
23
|
+
for (const part of parts) {
|
|
24
|
+
if (part === "left")
|
|
25
|
+
docking.Left = true;
|
|
26
|
+
else if (part === "right")
|
|
27
|
+
docking.Right = true;
|
|
28
|
+
else if (part === "top")
|
|
29
|
+
docking.Top = true;
|
|
30
|
+
else if (part === "bottom")
|
|
31
|
+
docking.Bottom = true;
|
|
32
|
+
}
|
|
33
|
+
return docking;
|
|
34
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@bimatrix-aud-platform/aud_mcp_server",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "MCP Server for i-AUD MTSD document validation and generation",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"bin": {
|
|
8
|
+
"aud_mcp_server": "dist/index.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"schemas",
|
|
13
|
+
"README.md"
|
|
14
|
+
],
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "tsc",
|
|
17
|
+
"start": "node dist/index.js",
|
|
18
|
+
"dev": "tsc --watch",
|
|
19
|
+
"prepublishOnly": "npm run build"
|
|
20
|
+
},
|
|
21
|
+
"keywords": [
|
|
22
|
+
"mcp",
|
|
23
|
+
"mcp-server",
|
|
24
|
+
"mtsd",
|
|
25
|
+
"i-aud",
|
|
26
|
+
"validator",
|
|
27
|
+
"model-context-protocol",
|
|
28
|
+
"claude"
|
|
29
|
+
],
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">=18.0.0"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
36
|
+
"ajv": "^8.17.1",
|
|
37
|
+
"ajv-formats": "^3.0.1"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@types/node": "^20.10.0",
|
|
41
|
+
"typescript": "^5.3.0"
|
|
42
|
+
}
|
|
43
|
+
}
|