sitepaige-mcp-server 0.7.10 → 0.7.11
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/defaultapp/db-mysql.ts
CHANGED
|
@@ -44,11 +44,7 @@ export async function db_init(): Promise<mysql.Pool> {
|
|
|
44
44
|
// Create the pool
|
|
45
45
|
pool = mysql.createPool(poolConfig);
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
const connection = await pool.getConnection();
|
|
49
|
-
await connection.ping();
|
|
50
|
-
connection.release();
|
|
51
|
-
|
|
47
|
+
|
|
52
48
|
return pool;
|
|
53
49
|
} catch (error) {
|
|
54
50
|
throw error;
|
|
@@ -51,9 +51,7 @@ export async function db_init(): Promise<Pool> {
|
|
|
51
51
|
|
|
52
52
|
// Create the pool
|
|
53
53
|
pool = new Pool(poolConfig);
|
|
54
|
-
|
|
55
|
-
// Test the connection
|
|
56
|
-
await pool.query('SELECT NOW()');
|
|
54
|
+
|
|
57
55
|
|
|
58
56
|
return pool;
|
|
59
57
|
} catch (error) {
|
|
@@ -102,10 +100,9 @@ export async function db_query(
|
|
|
102
100
|
|
|
103
101
|
} catch (error) {
|
|
104
102
|
// If table doesn't exist for SELECT, return empty array
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
throw error;
|
|
103
|
+
console.error(error);
|
|
104
|
+
return [];
|
|
105
|
+
|
|
109
106
|
}
|
|
110
107
|
}
|
|
111
108
|
|
|
@@ -44,11 +44,7 @@ export async function db_init(): Promise<mysql.Pool> {
|
|
|
44
44
|
// Create the pool
|
|
45
45
|
pool = mysql.createPool(poolConfig);
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
const connection = await pool.getConnection();
|
|
49
|
-
await connection.ping();
|
|
50
|
-
connection.release();
|
|
51
|
-
|
|
47
|
+
|
|
52
48
|
return pool;
|
|
53
49
|
} catch (error) {
|
|
54
50
|
throw error;
|
|
@@ -51,9 +51,7 @@ export async function db_init(): Promise<Pool> {
|
|
|
51
51
|
|
|
52
52
|
// Create the pool
|
|
53
53
|
pool = new Pool(poolConfig);
|
|
54
|
-
|
|
55
|
-
// Test the connection
|
|
56
|
-
await pool.query('SELECT NOW()');
|
|
54
|
+
|
|
57
55
|
|
|
58
56
|
return pool;
|
|
59
57
|
} catch (error) {
|
|
@@ -102,10 +100,9 @@ export async function db_query(
|
|
|
102
100
|
|
|
103
101
|
} catch (error) {
|
|
104
102
|
// If table doesn't exist for SELECT, return empty array
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
throw error;
|
|
103
|
+
console.error(error);
|
|
104
|
+
return [];
|
|
105
|
+
|
|
109
106
|
}
|
|
110
107
|
}
|
|
111
108
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sitepaige-mcp-server",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "MCP server for generating web applications using SitePaige AI. Generate frontend (FREE/12 credits) then optionally add backend (50 credits)",
|
|
6
6
|
"keywords": [
|