@a4hgehad/weave-mcp 0.8.5 → 0.8.6

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 +19 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -244,9 +244,11 @@ function loadWeaveConfig(directory, _ctx, _homeDir) {
244
244
  // src/mcp/types.ts
245
245
  var BUILTIN_MCP_SERVERS = {
246
246
  websearch: {
247
- type: "local",
248
- command: ["npx", "-y", "@modelcontextprotocol/server-websearch"],
249
- enabled: true
247
+ type: "remote",
248
+ url: "https://mcp.exa.ai/mcp?tools=web_search_exa",
249
+ enabled: true,
250
+ headers: undefined,
251
+ oauth: false
250
252
  },
251
253
  context7: {
252
254
  type: "remote",
@@ -1983,7 +1985,20 @@ class ConfigHandler {
1983
1985
  const result = {};
1984
1986
  for (const [name, config] of servers) {
1985
1987
  if (!disabledSet.has(name)) {
1986
- result[name] = config;
1988
+ if (name === "websearch" && config) {
1989
+ const serverConfig = { ...config };
1990
+ const exaApiKey = process.env.EXA_API_KEY;
1991
+ if (exaApiKey) {
1992
+ serverConfig.headers = {
1993
+ ...serverConfig.headers || {},
1994
+ "x-api-key": exaApiKey
1995
+ };
1996
+ }
1997
+ serverConfig.oauth = false;
1998
+ result[name] = serverConfig;
1999
+ } else {
2000
+ result[name] = config;
2001
+ }
1987
2002
  }
1988
2003
  }
1989
2004
  return result;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a4hgehad/weave-mcp",
3
- "version": "0.8.5",
3
+ "version": "0.8.6",
4
4
  "description": "Weave-MCP — lean OpenCode plugin with multi-agent orchestration and MCP support",
5
5
  "author": "3r3bu5",
6
6
  "license": "MIT",