redash-mcp 3.1.6 → 3.1.7

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 CHANGED
@@ -8611,6 +8611,7 @@ ${c}
8611
8611
  var setup_exports = {};
8612
8612
  __export(setup_exports, {
8613
8613
  buildClaudeMcpAddArgs: () => buildClaudeMcpAddArgs,
8614
+ buildClaudeMcpRemoveArgs: () => buildClaudeMcpRemoveArgs,
8614
8615
  main: () => main
8615
8616
  });
8616
8617
  import * as fs from "fs";
@@ -8732,13 +8733,21 @@ function setupDesktop(mcpEntry) {
8732
8733
  config2.mcpServers["redash-mcp"] = mcpEntry;
8733
8734
  fs.writeFileSync(configPath, JSON.stringify(config2, null, 2), "utf8");
8734
8735
  }
8736
+ function buildClaudeMcpRemoveArgs() {
8737
+ return ["mcp", "remove", "--scope", "user", "redash-mcp"];
8738
+ }
8735
8739
  function setupClaudeCode(mcpEntry) {
8740
+ try {
8741
+ execFileSync("claude", buildClaudeMcpRemoveArgs(), { stdio: "pipe" });
8742
+ } catch {
8743
+ }
8736
8744
  const args = buildClaudeMcpAddArgs(mcpEntry);
8737
8745
  try {
8738
8746
  execFileSync("claude", args, { stdio: "pipe" });
8739
- } catch {
8747
+ } catch (e2) {
8748
+ const stderr = e2?.stderr?.toString().trim();
8740
8749
  throw new Error(
8741
- `Failed to run "claude mcp add". Make sure the Claude Code CLI is installed, or run manually:
8750
+ `Failed to run "claude mcp add".${stderr ? ` (${stderr})` : ""} Make sure the Claude Code CLI is installed, or run manually:
8742
8751
  claude ${args.join(" ")}`
8743
8752
  );
8744
8753
  }
package/manifest.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": "0.3",
3
3
  "name": "redash-mcp",
4
- "version": "3.1.6",
4
+ "version": "3.1.7",
5
5
  "description": "MCP server for Redash -- query data, manage dashboards, and run SQL with natural language. 24 tools including BIRD SQL methodology.",
6
6
  "long_description": "Connects an MCP client to a Redash instance: list data sources, inspect schemas, run SQL, manage saved queries / dashboards / alerts, and use BIRD SQL helpers (smart_query, keyword maps, few-shot examples, feedback, evaluation). Built-in SQL safety guards flag PII access and expensive scans; safety mode can be tuned per install. **Third-party data flow:** if you also set ANTHROPIC_API_KEY in the shell environment, the BIRD smart_query tool may send table-name lists (never query results or row data) to the Anthropic API as a fallback for table selection. Leave ANTHROPIC_API_KEY unset to disable this entirely.",
7
7
  "icon": "icon.png",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "redash-mcp",
3
3
  "mcpName": "io.github.seob717/redash-mcp",
4
- "version": "3.1.6",
4
+ "version": "3.1.7",
5
5
  "description": "MCP server that connects Redash to Claude AI — query data, manage dashboards, and run SQL with natural language, with built-in SQL safety guards.",
6
6
  "license": "MIT",
7
7
  "author": "seob717",