@a4hgehad/weave-mcp 0.8.2 → 0.8.4
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 +16 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -98,12 +98,11 @@ 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.
|
|
101
|
+
type: z.enum(["stdio", "http"]).optional(),
|
|
102
|
+
command: 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()
|
|
106
|
-
enabled: z.boolean().optional()
|
|
105
|
+
env: z.record(z.string(), z.string()).optional()
|
|
107
106
|
});
|
|
108
107
|
var McpConfigSchema = z.object({
|
|
109
108
|
enabled: BuiltInMcpSchema.optional(),
|
|
@@ -242,16 +241,19 @@ function loadWeaveConfig(directory, _ctx, _homeDir) {
|
|
|
242
241
|
// src/mcp/types.ts
|
|
243
242
|
var BUILTIN_MCP_SERVERS = {
|
|
244
243
|
websearch: {
|
|
245
|
-
type: "
|
|
246
|
-
command:
|
|
244
|
+
type: "stdio",
|
|
245
|
+
command: "npx",
|
|
246
|
+
args: ["-y", "@modelcontextprotocol/server-websearch"]
|
|
247
247
|
},
|
|
248
248
|
context7: {
|
|
249
|
-
type: "
|
|
250
|
-
command:
|
|
249
|
+
type: "stdio",
|
|
250
|
+
command: "npx",
|
|
251
|
+
args: ["-y", "context7-mcp-server"]
|
|
251
252
|
},
|
|
252
253
|
grep_app: {
|
|
253
|
-
type: "
|
|
254
|
-
command:
|
|
254
|
+
type: "stdio",
|
|
255
|
+
command: "npx",
|
|
256
|
+
args: ["-y", "grep-app-mcp"]
|
|
255
257
|
}
|
|
256
258
|
};
|
|
257
259
|
var DEFAULT_MCPS = ["websearch", "context7", "grep_app"];
|
|
@@ -5190,7 +5192,10 @@ function createPluginInterface(args) {
|
|
|
5190
5192
|
});
|
|
5191
5193
|
config.agent = result.agents;
|
|
5192
5194
|
config.command = result.commands;
|
|
5193
|
-
|
|
5195
|
+
if (result.mcps && Object.keys(result.mcps).length > 0) {
|
|
5196
|
+
config.mcp = result.mcps;
|
|
5197
|
+
console.log("[weave-mcp] Registered MCPs:", Object.keys(result.mcps).join(", "));
|
|
5198
|
+
}
|
|
5194
5199
|
if (result.defaultAgent) {
|
|
5195
5200
|
config.default_agent = result.defaultAgent;
|
|
5196
5201
|
}
|