@a4hgehad/weave-mcp 0.8.4 → 0.8.5
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 -13
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -98,11 +98,14 @@ 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(),
|
|
103
|
-
args: z.array(z.string()).optional(),
|
|
101
|
+
type: z.enum(["local", "remote"]).optional(),
|
|
102
|
+
command: z.array(z.string()).optional(),
|
|
104
103
|
url: z.string().optional(),
|
|
105
|
-
|
|
104
|
+
environment: z.record(z.string(), z.string()).optional(),
|
|
105
|
+
enabled: z.boolean().optional(),
|
|
106
|
+
timeout: z.number().optional(),
|
|
107
|
+
headers: z.record(z.string(), z.string()).optional(),
|
|
108
|
+
oauth: z.union([z.record(z.string(), z.unknown()), z.literal(false)]).optional()
|
|
106
109
|
});
|
|
107
110
|
var McpConfigSchema = z.object({
|
|
108
111
|
enabled: BuiltInMcpSchema.optional(),
|
|
@@ -241,19 +244,19 @@ function loadWeaveConfig(directory, _ctx, _homeDir) {
|
|
|
241
244
|
// src/mcp/types.ts
|
|
242
245
|
var BUILTIN_MCP_SERVERS = {
|
|
243
246
|
websearch: {
|
|
244
|
-
type: "
|
|
245
|
-
command: "npx",
|
|
246
|
-
|
|
247
|
+
type: "local",
|
|
248
|
+
command: ["npx", "-y", "@modelcontextprotocol/server-websearch"],
|
|
249
|
+
enabled: true
|
|
247
250
|
},
|
|
248
251
|
context7: {
|
|
249
|
-
type: "
|
|
250
|
-
|
|
251
|
-
|
|
252
|
+
type: "remote",
|
|
253
|
+
url: "https://mcp.context7.com/mcp",
|
|
254
|
+
enabled: true
|
|
252
255
|
},
|
|
253
256
|
grep_app: {
|
|
254
|
-
type: "
|
|
255
|
-
|
|
256
|
-
|
|
257
|
+
type: "remote",
|
|
258
|
+
url: "https://mcp.grep.app",
|
|
259
|
+
enabled: true
|
|
257
260
|
}
|
|
258
261
|
};
|
|
259
262
|
var DEFAULT_MCPS = ["websearch", "context7", "grep_app"];
|