@oxcide-ui/mcp 0.0.3 → 0.0.4
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/dist/index.d.ts +24 -0
- package/dist/index.js +11 -0
- package/package.json +9 -5
- package/CHANGELOG.md +0 -9
- package/src/index.ts +0 -33
- package/tsconfig.json +0 -5
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @oxcide-ui/mcp — Model Context Protocol Service
|
|
3
|
+
*
|
|
4
|
+
* Provides structured component descriptions and API metadata
|
|
5
|
+
* to power AI-assisted coding workflows.
|
|
6
|
+
*
|
|
7
|
+
* Data source: components.json (auto-generated from Zod schemas)
|
|
8
|
+
*/
|
|
9
|
+
interface ComponentMeta {
|
|
10
|
+
name: string;
|
|
11
|
+
description: string;
|
|
12
|
+
props: Record<string, {
|
|
13
|
+
type: string;
|
|
14
|
+
default?: unknown;
|
|
15
|
+
required?: boolean;
|
|
16
|
+
description?: string;
|
|
17
|
+
}>;
|
|
18
|
+
events: string[];
|
|
19
|
+
slots: string[];
|
|
20
|
+
}
|
|
21
|
+
declare function getComponentMeta(_name: string): ComponentMeta | undefined;
|
|
22
|
+
declare function listComponents(): string[];
|
|
23
|
+
|
|
24
|
+
export { type ComponentMeta, getComponentMeta, listComponents };
|
package/dist/index.js
ADDED
package/package.json
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxcide-ui/mcp",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
|
-
"types": "./
|
|
8
|
-
"import": "./
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"import": "./dist/index.js"
|
|
9
9
|
}
|
|
10
10
|
},
|
|
11
|
-
"main": "./
|
|
12
|
-
"types": "./
|
|
11
|
+
"main": "./dist/index.js",
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
13
16
|
"devDependencies": {
|
|
14
17
|
"@biomejs/biome": "^2.3.13",
|
|
15
18
|
"typescript": "^5.8.2"
|
|
@@ -18,6 +21,7 @@
|
|
|
18
21
|
"access": "public"
|
|
19
22
|
},
|
|
20
23
|
"scripts": {
|
|
24
|
+
"build": "tsup src/index.ts --format esm --dts --clean",
|
|
21
25
|
"type-check": "tsc --noEmit",
|
|
22
26
|
"lint": "biome check .",
|
|
23
27
|
"lint:fix": "biome check --write ."
|
package/CHANGELOG.md
DELETED
package/src/index.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @oxcide-ui/mcp — Model Context Protocol Service
|
|
3
|
-
*
|
|
4
|
-
* Provides structured component descriptions and API metadata
|
|
5
|
-
* to power AI-assisted coding workflows.
|
|
6
|
-
*
|
|
7
|
-
* Data source: components.json (auto-generated from Zod schemas)
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
export interface ComponentMeta {
|
|
11
|
-
name: string
|
|
12
|
-
description: string
|
|
13
|
-
props: Record<
|
|
14
|
-
string,
|
|
15
|
-
{
|
|
16
|
-
type: string
|
|
17
|
-
default?: unknown
|
|
18
|
-
required?: boolean
|
|
19
|
-
description?: string
|
|
20
|
-
}
|
|
21
|
-
>
|
|
22
|
-
events: string[]
|
|
23
|
-
slots: string[]
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
// TODO: Load and serve component metadata from generated components.json
|
|
27
|
-
export function getComponentMeta(_name: string): ComponentMeta | undefined {
|
|
28
|
-
return undefined
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export function listComponents(): string[] {
|
|
32
|
-
return []
|
|
33
|
-
}
|