@bytebase/dbhub 0.0.1-20250312.929c614 → 0.0.2-20250312

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/README.md CHANGED
@@ -58,9 +58,8 @@ npm install -g @bytebase/dbhub@dev
58
58
 
59
59
  # Run from anywhere
60
60
  dbhub --dsn="postgres://user:password@localhost:5432/dbname"
61
- ```
62
61
 
63
- ```bash
62
+ # Run via npx
64
63
  npx @bytebase/dbhub --dsn="postgres://user:password@localhost:5432/dbname"
65
64
  ```
66
65
 
@@ -68,7 +67,7 @@ npx @bytebase/dbhub --dsn="postgres://user:password@localhost:5432/dbname"
68
67
 
69
68
  ### Configure your database connection
70
69
 
71
- DBHub requires a Database Source Name (DSN) to connect to your database. You can provide this in several ways:
70
+ Database Source Name (DSN) is required to connect to your database. You can provide this in several ways:
72
71
 
73
72
  - **Command line argument** (highest priority):
74
73
 
@@ -106,7 +105,7 @@ DBHub requires a Database Source Name (DSN) to connect to your database. You can
106
105
  ### Command line options
107
106
 
108
107
  | Option | Description | Default |
109
- | --------- | --------------------------------------------------------------- | ----------------------------------- |
108
+ | :-------- | :-------------------------------------------------------------- | :---------------------------------- |
110
109
  | dsn | Database connection string | Required if not set via environment |
111
110
  | transport | Transport mode: `stdio` or `sse` | `stdio` |
112
111
  | port | HTTP server port (only applicable when using `--transport=sse`) | `8080` |
@@ -2,7 +2,6 @@ import dotenv from "dotenv";
2
2
  import path from 'path';
3
3
  import fs from 'fs';
4
4
  import { fileURLToPath } from 'url';
5
- import { parseArgs } from 'node:util';
6
5
  // Create __dirname equivalent for ES modules
7
6
  const __filename = fileURLToPath(import.meta.url);
8
7
  const __dirname = path.dirname(__filename);
@@ -30,22 +29,8 @@ export function parseCommandLineArgs() {
30
29
  }
31
30
  }
32
31
  }
33
- // Also try parseArgs for normal node execution
34
- try {
35
- const { values } = parseArgs({
36
- options: {
37
- dsn: { type: 'string' },
38
- transport: { type: 'string' },
39
- port: { type: 'string' }
40
- }
41
- });
42
- // Merge both results, with manually parsed taking precedence
43
- return { ...values, ...parsedManually };
44
- }
45
- catch (err) {
46
- // If parseArgs fails, just return the manually parsed args
47
- return parsedManually;
48
- }
32
+ // Just use the manually parsed args - removed parseArgs dependency for Node.js <18.3.0 compatibility
33
+ return parsedManually;
49
34
  }
50
35
  /**
51
36
  * Load environment files from various locations
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebase/dbhub",
3
- "version": "0.0.1-20250312.929c614",
3
+ "version": "0.0.2-20250312",
4
4
  "description": "Universal Database MCP Server",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",