@bytebase/dbhub 0.6.1 → 0.6.2
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 +6 -0
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
</a>
|
|
7
7
|
</p>
|
|
8
8
|
|
|
9
|
+
<p align="center">
|
|
10
|
+
<a href="https://cursor.com/install-mcp?name=dbhub-postgres&config=eyJjb21tYW5kIjoibnB4IC15IEBieXRlYmFzZS9kYmh1YiAtLXRyYW5zcG9ydCBzdGRpbyAtLWRzbiBwb3N0Z3JlczovL3VzZXI6cGFzc3dvcmRAbG9jYWxob3N0OjU0MzIvZGJuYW1lP3NzbG1vZGU9ZGlzYWJsZSJ9"><img src="https://cursor.com/deeplink/mcp-install-dark.svg" alt="Add dbhub-postgres MCP server to Cursor" height="32" /></a>
|
|
11
|
+
</p>
|
|
12
|
+
|
|
9
13
|
DBHub is a universal database gateway implementing the Model Context Protocol (MCP) server interface. This gateway allows MCP-compatible clients to connect to and explore different databases.
|
|
10
14
|
|
|
11
15
|
```bash
|
|
@@ -168,6 +172,8 @@ npx @bytebase/dbhub --transport http --port 8080 --demo
|
|
|
168
172
|
|
|
169
173
|
### Cursor
|
|
170
174
|
|
|
175
|
+
[](https://cursor.com/install-mcp?name=dbhub-postgres&config=eyJjb21tYW5kIjoibnB4IC15IEBieXRlYmFzZS9kYmh1YiAtLXRyYW5zcG9ydCBzdGRpbyAtLWRzbiBwb3N0Z3JlczovL3VzZXI6cGFzc3dvcmRAbG9jYWxob3N0OjU0MzIvZGJuYW1lP3NzbG1vZGU9ZGlzYWJsZSJ9)
|
|
176
|
+
|
|
171
177
|

|
|
172
178
|
|
|
173
179
|
- Cursor supports both `stdio` and `http`.
|
package/dist/index.js
CHANGED
|
@@ -3515,9 +3515,9 @@ See documentation for more details on configuring database connections.
|
|
|
3515
3515
|
const portData = resolvePort();
|
|
3516
3516
|
const port = portData.port;
|
|
3517
3517
|
console.error(`Port source: ${portData.source}`);
|
|
3518
|
-
app.listen(port, "
|
|
3519
|
-
console.error(`DBHub server listening at http://
|
|
3520
|
-
console.error(`Connect to MCP server at http://
|
|
3518
|
+
app.listen(port, "0.0.0.0", () => {
|
|
3519
|
+
console.error(`DBHub server listening at http://0.0.0.0:${port}`);
|
|
3520
|
+
console.error(`Connect to MCP server at http://0.0.0.0:${port}/message`);
|
|
3521
3521
|
});
|
|
3522
3522
|
} else {
|
|
3523
3523
|
const server = createServer();
|