@oxcide-ui/mcp 0.0.3
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/CHANGELOG.md +9 -0
- package/package.json +25 -0
- package/src/index.ts +33 -0
- package/tsconfig.json +5 -0
package/CHANGELOG.md
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@oxcide-ui/mcp",
|
|
3
|
+
"version": "0.0.3",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"exports": {
|
|
6
|
+
".": {
|
|
7
|
+
"types": "./src/index.ts",
|
|
8
|
+
"import": "./src/index.ts"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"main": "./src/index.ts",
|
|
12
|
+
"types": "./src/index.ts",
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"@biomejs/biome": "^2.3.13",
|
|
15
|
+
"typescript": "^5.8.2"
|
|
16
|
+
},
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"access": "public"
|
|
19
|
+
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"type-check": "tsc --noEmit",
|
|
22
|
+
"lint": "biome check .",
|
|
23
|
+
"lint:fix": "biome check --write ."
|
|
24
|
+
}
|
|
25
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
}
|