sitepaige-mcp-server 0.7.11 → 0.7.12

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.
@@ -20,11 +20,6 @@ export async function db_init(): Promise<Pool> {
20
20
  // Return a mock pool object that won't cause errors
21
21
  return {} as Pool;
22
22
  }
23
-
24
- // Return existing pool if already initialized
25
- if (pool) {
26
- return pool;
27
- }
28
23
 
29
24
  try {
30
25
  // Create connection configuration
@@ -55,7 +50,8 @@ export async function db_init(): Promise<Pool> {
55
50
 
56
51
  return pool;
57
52
  } catch (error) {
58
- throw error;
53
+ console.error(error);
54
+ return null;
59
55
  }
60
56
  }
61
57
 
@@ -20,11 +20,6 @@ export async function db_init(): Promise<Pool> {
20
20
  // Return a mock pool object that won't cause errors
21
21
  return {} as Pool;
22
22
  }
23
-
24
- // Return existing pool if already initialized
25
- if (pool) {
26
- return pool;
27
- }
28
23
 
29
24
  try {
30
25
  // Create connection configuration
@@ -55,7 +50,8 @@ export async function db_init(): Promise<Pool> {
55
50
 
56
51
  return pool;
57
52
  } catch (error) {
58
- throw error;
53
+ console.error(error);
54
+ return null;
59
55
  }
60
56
  }
61
57
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sitepaige-mcp-server",
3
- "version": "0.7.11",
3
+ "version": "0.7.12",
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": [