grain-tools 0.0.1 → 0.10.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/package.json CHANGED
@@ -1,12 +1,90 @@
1
1
  {
2
2
  "name": "grain-tools",
3
- "version": "0.0.1",
4
- "description": "Name reservation for Grain — a local SQL execution layer for coding agents. Not yet released; see https://grain.tools",
5
- "keywords": ["grain", "sql", "mcp", "database", "agent"],
3
+ "version": "0.10.0",
4
+ "mcpName": "io.github.pattrnlabs/grain",
5
+ "description": "Standalone Grain MCP database server for VS Code, Claude Desktop, Cursor, and other MCP clients.",
6
+ "main": "out/server/standalone.js",
7
+ "bin": {
8
+ "grain-tools": "out/server/standalone.js",
9
+ "grain": "out/server/standalone.js",
10
+ "grain-server": "out/server/standalone.js"
11
+ },
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "git+https://github.com/pattrnlabs/grain.git"
15
+ },
6
16
  "homepage": "https://grain.tools",
17
+ "bugs": {
18
+ "url": "https://github.com/pattrnlabs/grain/issues"
19
+ },
20
+ "keywords": [
21
+ "sql",
22
+ "database",
23
+ "query",
24
+ "postgresql",
25
+ "postgres",
26
+ "mysql",
27
+ "sqlite",
28
+ "duckdb",
29
+ "trino",
30
+ "presto",
31
+ "snowflake",
32
+ "bigquery",
33
+ "mssql",
34
+ "mcp",
35
+ "model-context-protocol",
36
+ "ai",
37
+ "claude",
38
+ "cursor",
39
+ "agent",
40
+ "data",
41
+ "analytics",
42
+ "data-grid",
43
+ "sql-client",
44
+ "results",
45
+ "viewer"
46
+ ],
47
+ "engines": {
48
+ "vscode": "^1.80.0"
49
+ },
50
+ "author": "pattrnlabs",
7
51
  "license": "MIT",
8
- "files": ["README.md"],
9
52
  "publishConfig": {
10
53
  "access": "public"
54
+ },
55
+ "files": [
56
+ "README.md",
57
+ "Changelog.md",
58
+ "LICENSE",
59
+ "server.json",
60
+ "media/icon.png",
61
+ "out/server/standalone.js",
62
+ "dist/mcp-app.html"
63
+ ],
64
+ "dependencies": {
65
+ "@duckdb/node-api": "^1.5.0-r.1",
66
+ "@google-cloud/bigquery": "^7.9.1",
67
+ "@napi-rs/keyring": "^1.3.0",
68
+ "@modelcontextprotocol/ext-apps": "^1.0.1",
69
+ "@modelcontextprotocol/sdk": "^1.27.1",
70
+ "@opentelemetry/api": "^1.9.1",
71
+ "@opentelemetry/exporter-trace-otlp-http": "^0.217.0",
72
+ "@opentelemetry/resources": "^2.7.1",
73
+ "@opentelemetry/sdk-node": "^0.217.0",
74
+ "@opentelemetry/semantic-conventions": "^1.40.0",
75
+ "@types/json-bigint": "^1.0.4",
76
+ "ajv": "^8.17.1",
77
+ "ajv-formats": "^3.0.1",
78
+ "axios": "^1.16.0",
79
+ "body-parser": "^2.2.1",
80
+ "cors": "^2.8.5",
81
+ "express": "^5.1.0",
82
+ "json-bigint": "^1.0.0",
83
+ "mssql": "^11.0.1",
84
+ "mysql2": "^3.9.0",
85
+ "pg": "^8.17.2",
86
+ "snowflake-sdk": "^1.15.0",
87
+ "sql.js": "^1.14.1",
88
+ "ws": "^8.19.0"
11
89
  }
12
90
  }
package/server.json ADDED
@@ -0,0 +1,58 @@
1
+ {
2
+ "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
3
+ "name": "io.github.pattrnlabs/grain",
4
+ "title": "Grain",
5
+ "description": "Run SQL queries and inspect database schemas through safe, visible MCP tools.",
6
+ "repository": {
7
+ "url": "https://github.com/pattrnlabs/grain",
8
+ "source": "github",
9
+ "id": "1348511592"
10
+ },
11
+ "version": "0.10.0",
12
+ "websiteUrl": "https://grain.tools",
13
+ "packages": [
14
+ {
15
+ "registryType": "npm",
16
+ "registryBaseUrl": "https://registry.npmjs.org",
17
+ "identifier": "grain-tools",
18
+ "version": "0.10.0",
19
+ "runtimeHint": "npx",
20
+ "runtimeArguments": [
21
+ {
22
+ "type": "positional",
23
+ "value": "-y"
24
+ }
25
+ ],
26
+ "packageArguments": [
27
+ {
28
+ "type": "named",
29
+ "name": "--stdio",
30
+ "description": "Run Grain using stdio transport for local MCP clients."
31
+ }
32
+ ],
33
+ "transport": {
34
+ "type": "stdio"
35
+ },
36
+ "environmentVariables": [
37
+ {
38
+ "name": "GRAIN_CONNECTIONS",
39
+ "description": "JSON array of Grain connection profiles for headless use.",
40
+ "format": "string",
41
+ "isSecret": true
42
+ },
43
+ {
44
+ "name": "GRAIN_MCP_SAFE_MODE",
45
+ "description": "Set to false to allow mutating SQL. Defaults to true.",
46
+ "format": "boolean",
47
+ "value": "true"
48
+ },
49
+ {
50
+ "name": "GRAIN_MAX_ROWS",
51
+ "description": "Maximum rows returned by query tools. Defaults to 10000.",
52
+ "format": "number",
53
+ "value": "10000"
54
+ }
55
+ ]
56
+ }
57
+ ]
58
+ }