@toolsdk.ai/registry 1.0.18 → 1.0.20
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 +3 -1
- package/schema.ts +42 -0
- package/types.ts +3 -41
package/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toolsdk.ai/registry",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.20",
|
|
4
4
|
"description": "An Open, Structured, and Standard Registry for MCP Servers and Packages.",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./*": "./*",
|
|
7
|
+
"./schema": "./schema.ts",
|
|
7
8
|
"./types": "./types.ts"
|
|
8
9
|
},
|
|
9
10
|
"files": [
|
|
10
11
|
"types.ts",
|
|
12
|
+
"schema.ts",
|
|
11
13
|
"indexes/",
|
|
12
14
|
"config/",
|
|
13
15
|
"packages/",
|
package/schema.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export const PackageKeySchema = z.string();
|
|
4
|
+
|
|
5
|
+
export const HostingBlackListSchema = z.array(PackageKeySchema);
|
|
6
|
+
|
|
7
|
+
export const FeaturedListSchema = z.array(PackageKeySchema);
|
|
8
|
+
|
|
9
|
+
export const CategoryConfigSchema = z.object({
|
|
10
|
+
key: z.string(),
|
|
11
|
+
name: z.string(),
|
|
12
|
+
description: z.string().optional(),
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
export const MCPServerPackageConfigSchema = z.object({
|
|
16
|
+
type: z.literal('mcp-server'),
|
|
17
|
+
// if no custom key then would use name
|
|
18
|
+
key: z.string().optional(),
|
|
19
|
+
name: z.string(),
|
|
20
|
+
description: z.string().optional(),
|
|
21
|
+
url: z.string().optional(),
|
|
22
|
+
runtime: z.enum(['node', 'python', 'java']),
|
|
23
|
+
license: z.string().optional(),
|
|
24
|
+
logo: z.string().optional().describe('URL to custom logo image, if undefined and the URL is Github, then it will use the Github logo'),
|
|
25
|
+
author: z.string().optional(),
|
|
26
|
+
env: z
|
|
27
|
+
.record(
|
|
28
|
+
z.object({
|
|
29
|
+
description: z.string(),
|
|
30
|
+
required: z.boolean(),
|
|
31
|
+
}),
|
|
32
|
+
)
|
|
33
|
+
.optional(),
|
|
34
|
+
});
|
|
35
|
+
export const PackageConfigSchema = z.discriminatedUnion('type', [
|
|
36
|
+
MCPServerPackageConfigSchema,
|
|
37
|
+
z.object({
|
|
38
|
+
type: z.literal('toolapp'),
|
|
39
|
+
packageName: z.string(),
|
|
40
|
+
url: z.string().optional(),
|
|
41
|
+
}),
|
|
42
|
+
]);
|
package/types.ts
CHANGED
|
@@ -1,44 +1,6 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
1
|
|
|
3
|
-
|
|
2
|
+
import { z } from 'zod'
|
|
3
|
+
import type { CategoryConfigSchema, PackageConfigSchema } from './schema';
|
|
4
4
|
|
|
5
|
-
export const HostingBlackListSchema = z.array(PackageKeySchema);
|
|
6
|
-
|
|
7
|
-
export const FeaturedListSchema = z.array(PackageKeySchema);
|
|
8
|
-
|
|
9
|
-
export const CategoryConfigSchema = z.object({
|
|
10
|
-
key: z.string(),
|
|
11
|
-
name: z.string(),
|
|
12
|
-
description: z.string().optional(),
|
|
13
|
-
});
|
|
14
|
-
export type CategoryConfig = z.infer<typeof CategoryConfigSchema>;
|
|
15
|
-
|
|
16
|
-
export const MCPServerPackageConfigSchema = z.object({
|
|
17
|
-
type: z.literal('mcp-server'),
|
|
18
|
-
// if no custom key then would use name
|
|
19
|
-
key: z.string().optional(),
|
|
20
|
-
name: z.string(),
|
|
21
|
-
description: z.string().optional(),
|
|
22
|
-
url: z.string().optional(),
|
|
23
|
-
runtime: z.enum(['node', 'python', 'java']),
|
|
24
|
-
license: z.string().optional(),
|
|
25
|
-
logo: z.string().optional().describe('URL to custom logo image, if undefined and the URL is Github, then it will use the Github logo'),
|
|
26
|
-
author: z.string().optional(),
|
|
27
|
-
env: z
|
|
28
|
-
.record(
|
|
29
|
-
z.object({
|
|
30
|
-
description: z.string(),
|
|
31
|
-
required: z.boolean(),
|
|
32
|
-
}),
|
|
33
|
-
)
|
|
34
|
-
.optional(),
|
|
35
|
-
});
|
|
36
|
-
export const PackageConfigSchema = z.discriminatedUnion('type', [
|
|
37
|
-
MCPServerPackageConfigSchema,
|
|
38
|
-
z.object({
|
|
39
|
-
type: z.literal('toolapp'),
|
|
40
|
-
packageName: z.string(),
|
|
41
|
-
url: z.string().optional(),
|
|
42
|
-
}),
|
|
43
|
-
]);
|
|
44
5
|
export type PackageConfig = z.infer<typeof PackageConfigSchema>;
|
|
6
|
+
export type CategoryConfig = z.infer<typeof CategoryConfigSchema>;
|