@a4hgehad/weave-mcp 0.8.1 → 0.8.2
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.js +10 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -98,11 +98,12 @@ var BuiltInMcpSchema = z.object({
|
|
|
98
98
|
grep_app: z.boolean().optional()
|
|
99
99
|
});
|
|
100
100
|
var CustomMcpServerSchema = z.object({
|
|
101
|
-
type: z.enum(["
|
|
102
|
-
command: z.string().optional(),
|
|
101
|
+
type: z.enum(["local", "remote"]).optional(),
|
|
102
|
+
command: z.array(z.string()).optional(),
|
|
103
103
|
args: z.array(z.string()).optional(),
|
|
104
104
|
url: z.string().optional(),
|
|
105
|
-
env: z.record(z.string(), z.string()).optional()
|
|
105
|
+
env: z.record(z.string(), z.string()).optional(),
|
|
106
|
+
enabled: z.boolean().optional()
|
|
106
107
|
});
|
|
107
108
|
var McpConfigSchema = z.object({
|
|
108
109
|
enabled: BuiltInMcpSchema.optional(),
|
|
@@ -241,19 +242,16 @@ function loadWeaveConfig(directory, _ctx, _homeDir) {
|
|
|
241
242
|
// src/mcp/types.ts
|
|
242
243
|
var BUILTIN_MCP_SERVERS = {
|
|
243
244
|
websearch: {
|
|
244
|
-
type: "
|
|
245
|
-
command: "npx",
|
|
246
|
-
args: ["-y", "@modelcontextprotocol/server-websearch"]
|
|
245
|
+
type: "local",
|
|
246
|
+
command: ["npx", "-y", "@modelcontextprotocol/server-websearch"]
|
|
247
247
|
},
|
|
248
248
|
context7: {
|
|
249
|
-
type: "
|
|
250
|
-
command: "npx",
|
|
251
|
-
args: ["-y", "context7-mcp-server"]
|
|
249
|
+
type: "local",
|
|
250
|
+
command: ["npx", "-y", "context7-mcp-server"]
|
|
252
251
|
},
|
|
253
252
|
grep_app: {
|
|
254
|
-
type: "
|
|
255
|
-
command: "npx",
|
|
256
|
-
args: ["-y", "grep-app-mcp"]
|
|
253
|
+
type: "local",
|
|
254
|
+
command: ["npx", "-y", "grep-app-mcp"]
|
|
257
255
|
}
|
|
258
256
|
};
|
|
259
257
|
var DEFAULT_MCPS = ["websearch", "context7", "grep_app"];
|