@mastra/mcp-registry-registry 0.0.0-vnext-inngest-20250508122351 → 0.0.0-vnext-20251104230439
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 +1086 -0
- package/LICENSE.md +11 -42
- package/dist/{chunk-JJGHVNUE.js → chunk-7D5IPHZI.js} +20 -9
- package/dist/chunk-7D5IPHZI.js.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -0
- package/dist/registry/fetch-servers.d.ts +20 -0
- package/dist/registry/fetch-servers.d.ts.map +1 -0
- package/dist/registry/index.d.ts +3 -0
- package/dist/registry/index.d.ts.map +1 -0
- package/dist/registry/list-registries.d.ts +28 -0
- package/dist/registry/list-registries.d.ts.map +1 -0
- package/dist/registry/processors/apify.d.ts +7 -0
- package/dist/registry/processors/apify.d.ts.map +1 -0
- package/dist/registry/processors/apitracker.d.ts +7 -0
- package/dist/registry/processors/apitracker.d.ts.map +1 -0
- package/dist/registry/processors/default.d.ts +7 -0
- package/dist/registry/processors/default.d.ts.map +1 -0
- package/dist/registry/processors/docker.d.ts +7 -0
- package/dist/registry/processors/docker.d.ts.map +1 -0
- package/dist/registry/processors/fleur.d.ts +7 -0
- package/dist/registry/processors/fleur.d.ts.map +1 -0
- package/dist/registry/processors/mcprun.d.ts +3 -0
- package/dist/registry/processors/mcprun.d.ts.map +1 -0
- package/dist/registry/processors/pulse.d.ts +7 -0
- package/dist/registry/processors/pulse.d.ts.map +1 -0
- package/dist/registry/processors/utils.d.ts +3 -0
- package/dist/registry/processors/utils.d.ts.map +1 -0
- package/dist/registry/registry.d.ts +3 -0
- package/dist/registry/registry.d.ts.map +1 -0
- package/dist/registry/types.d.ts +35 -0
- package/dist/registry/types.d.ts.map +1 -0
- package/dist/server.d.ts +27 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/stdio.d.ts +2 -0
- package/dist/stdio.d.ts.map +1 -0
- package/dist/stdio.js +8 -6
- package/dist/stdio.js.map +1 -0
- package/dist/tools/list.d.ts +36 -0
- package/dist/tools/list.d.ts.map +1 -0
- package/dist/tools/servers.d.ts +33 -0
- package/dist/tools/servers.d.ts.map +1 -0
- package/dist/utils.d.ts +2 -0
- package/dist/utils.d.ts.map +1 -0
- package/package.json +35 -21
- package/dist/_tsup-dts-rollup.d.ts +0 -249
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"servers.d.ts","sourceRoot":"","sources":["../../src/tools/servers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;EAI7B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAGlE,eAAO,MAAM,WAAW;;;mBAGD,gBAAgB;;;;;;;;;;;;;CA2BtC,CAAC"}
|
package/dist/utils.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAKA,wBAAgB,eAAe,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAE5D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mcp-registry-registry",
|
|
3
|
-
"version": "0.0.0-vnext-
|
|
3
|
+
"version": "0.0.0-vnext-20251104230439",
|
|
4
4
|
"description": "MCP server for registry registry services.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"bin": "dist/stdio.js",
|
|
9
9
|
"files": [
|
|
10
10
|
"dist",
|
|
11
|
-
"README.md"
|
|
11
|
+
"README.md",
|
|
12
|
+
"CHANGELOG.md"
|
|
12
13
|
],
|
|
13
14
|
"exports": {
|
|
14
15
|
".": {
|
|
@@ -21,31 +22,44 @@
|
|
|
21
22
|
},
|
|
22
23
|
"keywords": [],
|
|
23
24
|
"author": "",
|
|
24
|
-
"license": "
|
|
25
|
+
"license": "Apache-2.0",
|
|
25
26
|
"dependencies": {
|
|
26
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
27
|
+
"@modelcontextprotocol/sdk": "^1.17.5",
|
|
27
28
|
"uuid": "^11.1.0",
|
|
28
|
-
"zod": "^3.
|
|
29
|
-
"zod-to-json-schema": "^3.24.
|
|
30
|
-
"@mastra/core": "0.0.0-vnext-inngest-20250508122351"
|
|
29
|
+
"zod": "^3.25.76",
|
|
30
|
+
"zod-to-json-schema": "^3.24.6"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@hono/node-server": "^1.
|
|
34
|
-
"@types/node": "^20.
|
|
35
|
-
"@wong2/mcp-cli": "^1.
|
|
36
|
-
"cross-env": "^
|
|
37
|
-
"eslint": "^9.
|
|
38
|
-
"hono": "^4.7
|
|
39
|
-
"tsup": "^8.
|
|
40
|
-
"tsx": "^4.
|
|
41
|
-
"typescript": "^5.
|
|
42
|
-
"vitest": "^3.
|
|
43
|
-
"@internal/lint": "0.0.0-vnext-
|
|
44
|
-
"@mastra/
|
|
33
|
+
"@hono/node-server": "^1.19.5",
|
|
34
|
+
"@types/node": "^20.19.0",
|
|
35
|
+
"@wong2/mcp-cli": "^1.10.0",
|
|
36
|
+
"cross-env": "^10.1.0",
|
|
37
|
+
"eslint": "^9.37.0",
|
|
38
|
+
"hono": "^4.9.7",
|
|
39
|
+
"tsup": "^8.5.0",
|
|
40
|
+
"tsx": "^4.20.3",
|
|
41
|
+
"typescript": "^5.8.3",
|
|
42
|
+
"vitest": "^3.2.4",
|
|
43
|
+
"@internal/lint": "0.0.0-vnext-20251104230439",
|
|
44
|
+
"@mastra/core": "0.0.0-vnext-20251104230439",
|
|
45
|
+
"@mastra/mcp": "0.0.0-vnext-20251104230439",
|
|
46
|
+
"@internal/types-builder": "0.0.0-vnext-20251104230439"
|
|
47
|
+
},
|
|
48
|
+
"peerDependencies": {
|
|
49
|
+
"@mastra/core": "0.0.0-vnext-20251104230439"
|
|
50
|
+
},
|
|
51
|
+
"homepage": "https://mastra.ai",
|
|
52
|
+
"repository": {
|
|
53
|
+
"type": "git",
|
|
54
|
+
"url": "git+https://github.com/mastra-ai/mastra.git",
|
|
55
|
+
"directory": "packages/mcp-registry-registry"
|
|
56
|
+
},
|
|
57
|
+
"bugs": {
|
|
58
|
+
"url": "https://github.com/mastra-ai/mastra/issues"
|
|
45
59
|
},
|
|
46
60
|
"scripts": {
|
|
47
|
-
"build": "tsup
|
|
48
|
-
"build:cli": "tsup src/stdio.ts --format esm --
|
|
61
|
+
"build": "tsup --silent --config tsup.config.ts",
|
|
62
|
+
"build:cli": "tsup src/stdio.ts --format esm --no-dts --treeshake=smallest --splitting && tsc -p tsconfig.build.json",
|
|
49
63
|
"pretest": "pnpm turbo build --filter @mastra/mcp-registry-registry",
|
|
50
64
|
"test": "vitest run",
|
|
51
65
|
"lint": "eslint ."
|
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
|
|
4
|
-
export declare function createServerEntry(data: Record<string, unknown>): ServerEntry;
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Fetches servers from a registry's servers_url endpoint
|
|
8
|
-
*/
|
|
9
|
-
declare function fetchServersFromRegistry(registryId: string): Promise<ServerEntry[]>;
|
|
10
|
-
export { fetchServersFromRegistry }
|
|
11
|
-
export { fetchServersFromRegistry as fetchServersFromRegistry_alias_1 }
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Filters registry entries based on provided criteria
|
|
15
|
-
*/
|
|
16
|
-
declare function filterRegistries(registries: RegistryEntry[], filters: {
|
|
17
|
-
id?: string;
|
|
18
|
-
tag?: string;
|
|
19
|
-
name?: string;
|
|
20
|
-
}): RegistryEntry[];
|
|
21
|
-
export { filterRegistries }
|
|
22
|
-
export { filterRegistries as filterRegistries_alias_1 }
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Filters server entries based on provided criteria
|
|
26
|
-
*/
|
|
27
|
-
declare function filterServers(servers: ServerEntry[], filters: {
|
|
28
|
-
tag?: string;
|
|
29
|
-
search?: string;
|
|
30
|
-
}): ServerEntry[];
|
|
31
|
-
export { filterServers }
|
|
32
|
-
export { filterServers as filterServers_alias_1 }
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Formats registry entries for API response
|
|
36
|
-
*/
|
|
37
|
-
declare function formatRegistryResponse(registries: RegistryEntry[], detailed?: boolean): any;
|
|
38
|
-
export { formatRegistryResponse }
|
|
39
|
-
export { formatRegistryResponse as formatRegistryResponse_alias_1 }
|
|
40
|
-
|
|
41
|
-
export declare function fromPackageRoot(relativePath: string): string;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Main function to get registry listings with optional filtering
|
|
45
|
-
*/
|
|
46
|
-
declare function getRegistryListings(filters?: {
|
|
47
|
-
id?: string;
|
|
48
|
-
tag?: string;
|
|
49
|
-
name?: string;
|
|
50
|
-
}, options?: {
|
|
51
|
-
detailed?: boolean;
|
|
52
|
-
}): Promise<any>;
|
|
53
|
-
export { getRegistryListings }
|
|
54
|
-
export { getRegistryListings as getRegistryListings_alias_1 }
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Main function to get servers from a registry with optional filtering
|
|
58
|
-
*/
|
|
59
|
-
declare function getServersFromRegistry(registryId: string, filters?: {
|
|
60
|
-
tag?: string;
|
|
61
|
-
search?: string;
|
|
62
|
-
}): Promise<any>;
|
|
63
|
-
export { getServersFromRegistry }
|
|
64
|
-
export { getServersFromRegistry as getServersFromRegistry_alias_1 }
|
|
65
|
-
|
|
66
|
-
export declare const listInputSchema: z.ZodObject<{
|
|
67
|
-
id: z.ZodOptional<z.ZodString>;
|
|
68
|
-
tag: z.ZodOptional<z.ZodString>;
|
|
69
|
-
name: z.ZodOptional<z.ZodString>;
|
|
70
|
-
detailed: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
71
|
-
}, "strip", z.ZodTypeAny, {
|
|
72
|
-
detailed: boolean;
|
|
73
|
-
id?: string | undefined;
|
|
74
|
-
name?: string | undefined;
|
|
75
|
-
tag?: string | undefined;
|
|
76
|
-
}, {
|
|
77
|
-
id?: string | undefined;
|
|
78
|
-
name?: string | undefined;
|
|
79
|
-
tag?: string | undefined;
|
|
80
|
-
detailed?: boolean | undefined;
|
|
81
|
-
}>;
|
|
82
|
-
|
|
83
|
-
export declare const listTool: {
|
|
84
|
-
name: string;
|
|
85
|
-
description: string;
|
|
86
|
-
execute(input: ListToolInput): Promise<{
|
|
87
|
-
content: {
|
|
88
|
-
type: string;
|
|
89
|
-
text: string;
|
|
90
|
-
}[];
|
|
91
|
-
isError?: undefined;
|
|
92
|
-
} | {
|
|
93
|
-
content: {
|
|
94
|
-
type: string;
|
|
95
|
-
text: string;
|
|
96
|
-
}[];
|
|
97
|
-
isError: boolean;
|
|
98
|
-
}>;
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
export declare type ListToolInput = z.infer<typeof listInputSchema>;
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* Returns the registry data from the registry.ts file
|
|
105
|
-
*/
|
|
106
|
-
declare function loadRegistryData(): Promise<RegistryFile>;
|
|
107
|
-
export { loadRegistryData }
|
|
108
|
-
export { loadRegistryData as loadRegistryData_alias_1 }
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Post-processor for Apify registry
|
|
112
|
-
* Handles the specific format of Apify's store data
|
|
113
|
-
*/
|
|
114
|
-
export declare function processApifyServers(data: any): ServerEntry[];
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* Post-processor for APITracker registry
|
|
118
|
-
* Handles the specific format of APITracker's server data
|
|
119
|
-
*/
|
|
120
|
-
export declare function processApiTrackerServers(data: unknown): ServerEntry[];
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* Default processor for registry server data
|
|
124
|
-
* Handles common formats that might be encountered
|
|
125
|
-
*/
|
|
126
|
-
export declare function processDefaultServers(data: unknown): ServerEntry[];
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* Post-processor for Docker MCP Hub registry
|
|
130
|
-
* Transforms Docker Hub API response into standardized ServerEntry format
|
|
131
|
-
*/
|
|
132
|
-
export declare function processDockerServers(data: unknown): ServerEntry[];
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* Post-processor for Fleur registry
|
|
136
|
-
* Handles the specific format of Fleur's app data
|
|
137
|
-
*/
|
|
138
|
-
export declare function processFleurServers(data: unknown): ServerEntry[];
|
|
139
|
-
|
|
140
|
-
export declare function processMcpRunServers(data: any): ServerEntry[];
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Post-processor for Pulse MCP registry
|
|
144
|
-
* Handles the specific format of Pulse MCP's server data
|
|
145
|
-
*/
|
|
146
|
-
export declare function processPulseMcpServers(data: any): ServerEntry[];
|
|
147
|
-
|
|
148
|
-
declare const registryData: RegistryFile;
|
|
149
|
-
export { registryData }
|
|
150
|
-
export { registryData as registryData_alias_1 }
|
|
151
|
-
|
|
152
|
-
export declare interface RegistryEntry {
|
|
153
|
-
id: string;
|
|
154
|
-
name: string;
|
|
155
|
-
description: string;
|
|
156
|
-
url: string;
|
|
157
|
-
servers_url?: string;
|
|
158
|
-
tags?: string[];
|
|
159
|
-
count?: number | string;
|
|
160
|
-
postProcessServers?: (data: unknown) => ServerEntry[];
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
export declare interface RegistryFile {
|
|
164
|
-
registries: RegistryEntry[];
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
export declare function runServer(): Promise<void>;
|
|
168
|
-
|
|
169
|
-
export declare const server: Server<{
|
|
170
|
-
method: string;
|
|
171
|
-
params?: {
|
|
172
|
-
[x: string]: unknown;
|
|
173
|
-
_meta?: {
|
|
174
|
-
[x: string]: unknown;
|
|
175
|
-
progressToken?: string | number | undefined;
|
|
176
|
-
} | undefined;
|
|
177
|
-
} | undefined;
|
|
178
|
-
}, {
|
|
179
|
-
method: string;
|
|
180
|
-
params?: {
|
|
181
|
-
[x: string]: unknown;
|
|
182
|
-
_meta?: {
|
|
183
|
-
[x: string]: unknown;
|
|
184
|
-
} | undefined;
|
|
185
|
-
} | undefined;
|
|
186
|
-
}, {
|
|
187
|
-
[x: string]: unknown;
|
|
188
|
-
_meta?: {
|
|
189
|
-
[x: string]: unknown;
|
|
190
|
-
} | undefined;
|
|
191
|
-
}>;
|
|
192
|
-
|
|
193
|
-
export declare type ServerEntry = z.infer<typeof ServerEntrySchema>;
|
|
194
|
-
|
|
195
|
-
export declare const ServerEntrySchema: z.ZodObject<{
|
|
196
|
-
id: z.ZodString;
|
|
197
|
-
name: z.ZodString;
|
|
198
|
-
description: z.ZodString;
|
|
199
|
-
createdAt: z.ZodString;
|
|
200
|
-
updatedAt: z.ZodString;
|
|
201
|
-
}, "strip", z.ZodTypeAny, {
|
|
202
|
-
id: string;
|
|
203
|
-
name: string;
|
|
204
|
-
description: string;
|
|
205
|
-
createdAt: string;
|
|
206
|
-
updatedAt: string;
|
|
207
|
-
}, {
|
|
208
|
-
id: string;
|
|
209
|
-
name: string;
|
|
210
|
-
description: string;
|
|
211
|
-
createdAt: string;
|
|
212
|
-
updatedAt: string;
|
|
213
|
-
}>;
|
|
214
|
-
|
|
215
|
-
export declare const serversInputSchema: z.ZodObject<{
|
|
216
|
-
registryId: z.ZodString;
|
|
217
|
-
tag: z.ZodOptional<z.ZodString>;
|
|
218
|
-
search: z.ZodOptional<z.ZodString>;
|
|
219
|
-
}, "strip", z.ZodTypeAny, {
|
|
220
|
-
registryId: string;
|
|
221
|
-
tag?: string | undefined;
|
|
222
|
-
search?: string | undefined;
|
|
223
|
-
}, {
|
|
224
|
-
registryId: string;
|
|
225
|
-
tag?: string | undefined;
|
|
226
|
-
search?: string | undefined;
|
|
227
|
-
}>;
|
|
228
|
-
|
|
229
|
-
export declare const serversTool: {
|
|
230
|
-
name: string;
|
|
231
|
-
description: string;
|
|
232
|
-
execute(input: ServersToolInput): Promise<{
|
|
233
|
-
content: {
|
|
234
|
-
type: string;
|
|
235
|
-
text: string;
|
|
236
|
-
}[];
|
|
237
|
-
isError?: undefined;
|
|
238
|
-
} | {
|
|
239
|
-
content: {
|
|
240
|
-
type: string;
|
|
241
|
-
text: string;
|
|
242
|
-
}[];
|
|
243
|
-
isError: boolean;
|
|
244
|
-
}>;
|
|
245
|
-
};
|
|
246
|
-
|
|
247
|
-
export declare type ServersToolInput = z.infer<typeof serversInputSchema>;
|
|
248
|
-
|
|
249
|
-
export { }
|