@bytebase/dbhub 0.16.0 → 0.16.1

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1757,7 +1757,7 @@ var mysqlConnector = new MySQLConnector();
1757
1757
  ConnectorRegistry.register(mysqlConnector);
1758
1758
 
1759
1759
  // src/connectors/mariadb/index.ts
1760
- import mariadb from "mariadb";
1760
+ import * as mariadb from "mariadb";
1761
1761
  var MariadbDSNParser = class {
1762
1762
  async parse(dsn, config) {
1763
1763
  const connectionTimeoutSeconds = config?.connectionTimeoutSeconds;
@@ -3430,9 +3430,6 @@ See documentation for more details on configuring database connections.
3430
3430
  app.use(express.json());
3431
3431
  app.use((req, res, next) => {
3432
3432
  const origin = req.headers.origin;
3433
- if (origin && !origin.startsWith("http://localhost") && !origin.startsWith("https://localhost")) {
3434
- return res.status(403).json({ error: "Forbidden origin" });
3435
- }
3436
3433
  res.header("Access-Control-Allow-Origin", origin || "http://localhost");
3437
3434
  res.header("Access-Control-Allow-Methods", "GET, POST, OPTIONS");
3438
3435
  res.header("Access-Control-Allow-Headers", "Content-Type, Mcp-Session-Id");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebase/dbhub",
3
- "version": "0.16.0",
3
+ "version": "0.16.1",
4
4
  "mcpName": "io.github.bytebase/dbhub",
5
5
  "description": "Minimal, token-efficient Database MCP Server for PostgreSQL, MySQL, SQL Server, SQLite, MariaDB",
6
6
  "repository": {