@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.
Files changed (2) hide show
  1. package/dist/index.js +10 -12
  2. 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(["stdio", "http"]).optional(),
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: "stdio",
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: "stdio",
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: "stdio",
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"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a4hgehad/weave-mcp",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "description": "Weave-MCP — lean OpenCode plugin with multi-agent orchestration and MCP support",
5
5
  "author": "3r3bu5",
6
6
  "license": "MIT",