gulliver-mcp 0.0.0-stage → 0.2.0
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/LICENSE +21 -0
- package/README.md +68 -2
- package/bin/gulliver-mcp.js +3 -0
- package/bin/gulliver.js +3 -0
- package/bin/launch.js +72 -0
- package/package.json +54 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Roel
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,69 @@
|
|
|
1
|
-
#
|
|
1
|
+
# gulliver-mcp (npm launcher)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**Test on tiny data before you run on giant data.**
|
|
4
|
+
|
|
5
|
+
Gulliver gives AI agents a dress rehearsal for SQL: estimate the cost, rehearse on 1% → 3% → 10% of the data,
|
|
6
|
+
predict what 100% will do, and only run the full query inside a budget. Local-first, open source, MCP + CLI.
|
|
7
|
+
|
|
8
|
+
This npm package is a small launcher. Gulliver itself is written in Python and published on PyPI as
|
|
9
|
+
[`gulliver-mcp`](https://pypi.org/project/gulliver-mcp/). The launcher starts the matching Python version for you.
|
|
10
|
+
|
|
11
|
+
Full documentation: https://github.com/laaielichter/Gulliver
|
|
12
|
+
|
|
13
|
+
## Requirements
|
|
14
|
+
|
|
15
|
+
- Node 18 or newer
|
|
16
|
+
- [uv](https://docs.astral.sh/uv/getting-started/installation/) (recommended) or pipx
|
|
17
|
+
|
|
18
|
+
No Python setup needed beyond that: uv downloads what it needs the first time.
|
|
19
|
+
|
|
20
|
+
## Use it from your agent (MCP)
|
|
21
|
+
|
|
22
|
+
Claude Code:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
claude mcp add gulliver -- npx -y gulliver-mcp --dsn /abs/path/data.duckdb
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Any MCP client with a JSON config:
|
|
29
|
+
|
|
30
|
+
```json
|
|
31
|
+
{
|
|
32
|
+
"mcpServers": {
|
|
33
|
+
"gulliver": {
|
|
34
|
+
"command": "npx",
|
|
35
|
+
"args": ["-y", "gulliver-mcp", "--config", "/abs/path/gulliver.toml"]
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Use the CLI
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
npx -p gulliver-mcp gulliver demo
|
|
45
|
+
npx -p gulliver-mcp gulliver preflight "select count(*) from events" --dsn gulliver_demo.duckdb
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Warehouse drivers
|
|
49
|
+
|
|
50
|
+
DuckDB works out of the box. For other engines, set `GULLIVER_EXTRAS`:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
GULLIVER_EXTRAS=postgres npx -y gulliver-mcp --dsn postgresql://...
|
|
54
|
+
GULLIVER_EXTRAS=bigquery,snowflake npx -y gulliver-mcp --config gulliver.toml
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Advanced: `GULLIVER_PY_SPEC` overrides the full Python package spec (for example a local path).
|
|
58
|
+
|
|
59
|
+
## Without npm
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
uvx gulliver-mcp --dsn path/to/warehouse.duckdb
|
|
63
|
+
# or
|
|
64
|
+
pip install gulliver-mcp
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## License
|
|
68
|
+
|
|
69
|
+
MIT
|
package/bin/gulliver.js
ADDED
package/bin/launch.js
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// Thin launcher: runs the Python package gulliver-mcp (same version as this npm package)
|
|
4
|
+
// through uv, with pipx as a fallback. stdio is passed straight through, so MCP over stdio works.
|
|
5
|
+
|
|
6
|
+
const { spawnSync, spawn } = require("node:child_process");
|
|
7
|
+
const { version } = require("../package.json");
|
|
8
|
+
|
|
9
|
+
function pythonSpec() {
|
|
10
|
+
if (process.env.GULLIVER_PY_SPEC) return process.env.GULLIVER_PY_SPEC;
|
|
11
|
+
const extras = (process.env.GULLIVER_EXTRAS || "")
|
|
12
|
+
.split(",")
|
|
13
|
+
.map((s) => s.trim())
|
|
14
|
+
.filter(Boolean);
|
|
15
|
+
const name = extras.length ? `gulliver-mcp[${extras.join(",")}]` : "gulliver-mcp";
|
|
16
|
+
return `${name}==${version}`;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function available(cmd) {
|
|
20
|
+
const r = spawnSync(cmd, ["--version"], { stdio: "ignore" });
|
|
21
|
+
return !r.error && r.status === 0;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function runners(command, spec, args) {
|
|
25
|
+
return [
|
|
26
|
+
["uvx", ["--from", spec, command, ...args]],
|
|
27
|
+
["uv", ["tool", "run", "--from", spec, command, ...args]],
|
|
28
|
+
["pipx", ["run", "--spec", spec, command, ...args]],
|
|
29
|
+
];
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
module.exports = function launch(command) {
|
|
33
|
+
const args = process.argv.slice(2);
|
|
34
|
+
const spec = pythonSpec();
|
|
35
|
+
const found = runners(command, spec, args).find(([bin]) => available(bin));
|
|
36
|
+
|
|
37
|
+
if (!found) {
|
|
38
|
+
process.stderr.write(
|
|
39
|
+
[
|
|
40
|
+
"gulliver: this npm package starts the Python package " + spec + ",",
|
|
41
|
+
"but it needs uv (recommended) or pipx, and neither was found.",
|
|
42
|
+
"",
|
|
43
|
+
"Install uv: https://docs.astral.sh/uv/getting-started/installation/",
|
|
44
|
+
" macOS/Linux: curl -LsSf https://astral.sh/uv/install.sh | sh",
|
|
45
|
+
" Windows: powershell -ExecutionPolicy ByPass -c \"irm https://astral.sh/uv/install.ps1 | iex\"",
|
|
46
|
+
"",
|
|
47
|
+
"Or skip npm and install directly: pip install gulliver-mcp",
|
|
48
|
+
"",
|
|
49
|
+
].join("\n")
|
|
50
|
+
);
|
|
51
|
+
process.exit(1);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const [bin, binArgs] = found;
|
|
55
|
+
const child = spawn(bin, binArgs, { stdio: "inherit" });
|
|
56
|
+
|
|
57
|
+
for (const sig of ["SIGINT", "SIGTERM", "SIGHUP"]) {
|
|
58
|
+
process.on(sig, () => {
|
|
59
|
+
if (!child.killed) child.kill(sig);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
child.on("error", (err) => {
|
|
64
|
+
process.stderr.write(`gulliver: could not start ${bin}: ${err.message}\n`);
|
|
65
|
+
process.exit(1);
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
child.on("exit", (code, signal) => {
|
|
69
|
+
if (signal) process.kill(process.pid, signal);
|
|
70
|
+
else process.exit(code === null ? 1 : code);
|
|
71
|
+
});
|
|
72
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,56 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gulliver-mcp",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Test on tiny data before you run on giant data. npm launcher for the Gulliver MCP server and CLI (runs the Python package gulliver-mcp via uv).",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "laaielichter",
|
|
7
|
+
"homepage": "https://laaielichter.github.io/Gulliver/",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/laaielichter/Gulliver.git",
|
|
11
|
+
"directory": "npm"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/laaielichter/Gulliver/issues"
|
|
15
|
+
},
|
|
16
|
+
"mcpName": "io.github.laaielichter/gulliver",
|
|
17
|
+
"keywords": [
|
|
18
|
+
"mcp",
|
|
19
|
+
"mcp-server",
|
|
20
|
+
"model-context-protocol",
|
|
21
|
+
"ai-agents",
|
|
22
|
+
"llm",
|
|
23
|
+
"claude-code",
|
|
24
|
+
"codex",
|
|
25
|
+
"cursor",
|
|
26
|
+
"gemini-cli",
|
|
27
|
+
"sql",
|
|
28
|
+
"sql-linter",
|
|
29
|
+
"text-to-sql",
|
|
30
|
+
"query-optimization",
|
|
31
|
+
"cost-optimization",
|
|
32
|
+
"finops",
|
|
33
|
+
"data-engineering",
|
|
34
|
+
"data-quality",
|
|
35
|
+
"data-lineage",
|
|
36
|
+
"data-diff",
|
|
37
|
+
"schema-drift",
|
|
38
|
+
"dbt",
|
|
39
|
+
"duckdb",
|
|
40
|
+
"postgres",
|
|
41
|
+
"bigquery",
|
|
42
|
+
"snowflake"
|
|
43
|
+
],
|
|
44
|
+
"bin": {
|
|
45
|
+
"gulliver-mcp": "bin/gulliver-mcp.js",
|
|
46
|
+
"gulliver": "bin/gulliver.js"
|
|
47
|
+
},
|
|
48
|
+
"files": [
|
|
49
|
+
"bin",
|
|
50
|
+
"README.md",
|
|
51
|
+
"LICENSE"
|
|
52
|
+
],
|
|
53
|
+
"engines": {
|
|
54
|
+
"node": ">=18"
|
|
55
|
+
}
|
|
56
|
+
}
|