@maplezzk/mcps 1.0.2 → 1.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/dist/core/config.js +2 -1
- package/dist/types/config.js +2 -2
- package/package.json +1 -1
package/dist/core/config.js
CHANGED
|
@@ -30,9 +30,10 @@ export class ConfigManager {
|
|
|
30
30
|
servers = json.servers;
|
|
31
31
|
}
|
|
32
32
|
else if (json.mcpServers && typeof json.mcpServers === 'object') {
|
|
33
|
-
// Convert map to array
|
|
33
|
+
// Convert map to array and add default type='stdio' if missing
|
|
34
34
|
servers = Object.entries(json.mcpServers).map(([name, config]) => ({
|
|
35
35
|
name,
|
|
36
|
+
type: config.type || (config.command ? 'stdio' : undefined), // Auto-detect type
|
|
36
37
|
...config
|
|
37
38
|
}));
|
|
38
39
|
}
|
package/dist/types/config.js
CHANGED
|
@@ -2,9 +2,9 @@ import { z } from 'zod';
|
|
|
2
2
|
export const ServerConfigSchema = z.union([
|
|
3
3
|
z.object({
|
|
4
4
|
name: z.string(),
|
|
5
|
-
type: z.literal('stdio'),
|
|
5
|
+
type: z.literal('stdio').optional().default('stdio'),
|
|
6
6
|
command: z.string(),
|
|
7
|
-
args: z.array(z.string()).default([]),
|
|
7
|
+
args: z.array(z.string()).optional().default([]),
|
|
8
8
|
env: z.record(z.string()).optional(),
|
|
9
9
|
}).passthrough(),
|
|
10
10
|
z.object({
|