iflow-mcp_yugabyte-yugabytedb-mcp-server 1.0.6__py3-none-any.whl → 1.0.8__py3-none-any.whl

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: iflow-mcp_yugabyte-yugabytedb-mcp-server
3
- Version: 1.0.6
3
+ Version: 1.0.8
4
4
  Summary: Add your description here
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
@@ -0,0 +1,7 @@
1
+ server.py,sha256=idYv-PO0c6_3z8B5hkk8Bc4-H17QQxsPJYdu04T59yU,9612
2
+ iflow_mcp_yugabyte_yugabytedb_mcp_server-1.0.8.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
3
+ iflow_mcp_yugabyte_yugabytedb_mcp_server-1.0.8.dist-info/METADATA,sha256=FKIjMRvtdt3veock8suOhI9IZdeqOnpCYI_uUL1fXg4,9655
4
+ iflow_mcp_yugabyte_yugabytedb_mcp_server-1.0.8.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
5
+ iflow_mcp_yugabyte_yugabytedb_mcp_server-1.0.8.dist-info/entry_points.txt,sha256=0qR8G3C-z5Jb99iC45ysBZsnVGYgPefWGinP2Bhq9hE,54
6
+ iflow_mcp_yugabyte_yugabytedb_mcp_server-1.0.8.dist-info/top_level.txt,sha256=StKOSmRhvWS5IPcvhsDRbtxUTEofJgYFGOu5AAJdSWo,7
7
+ iflow_mcp_yugabyte_yugabytedb_mcp_server-1.0.8.dist-info/RECORD,,
server.py CHANGED
@@ -13,9 +13,6 @@ from fastapi import FastAPI
13
13
  from starlette.responses import JSONResponse
14
14
  import boto3
15
15
 
16
- # Global config variable
17
- CONFIG: ServerConfig | None = None
18
-
19
16
  @dataclass
20
17
  class AppContext:
21
18
  conn: psycopg2.extensions.connection | None = None
@@ -30,6 +27,9 @@ class ServerConfig:
30
27
  ssl_root_cert_path: str
31
28
  ssl_root_cert_secret_region: str
32
29
 
30
+ # Global config variable
31
+ CONFIG: ServerConfig | None = None
32
+
33
33
  def normalize_pem(pem: str) -> str:
34
34
  # Remove surrounding spaces
35
35
  pem = pem.strip()
@@ -86,9 +86,9 @@ def write_root_cert():
86
86
  @asynccontextmanager
87
87
  async def app_lifespan(server: FastMCP) -> AsyncIterator[AppContext]:
88
88
  global CONFIG
89
- # Skip database connection for testing if YUGABYTEDB_URL is not set
90
- if not CONFIG or not CONFIG.yugabytedb_url:
91
- print("YUGABYTEDB_URL is not set, running in demo mode without database connection", file=sys.stderr)
89
+ # Skip database connection for testing if YUGABYTEDB_URL is not set or is a demo value
90
+ if not CONFIG or not CONFIG.yugabytedb_url or "dbname=yugabyte host=localhost" in CONFIG.yugabytedb_url:
91
+ print("YUGABYTEDB_URL is not set or using demo value, running in demo mode without database connection", file=sys.stderr)
92
92
  yield AppContext(conn=None)
93
93
  return
94
94
 
@@ -1,7 +0,0 @@
1
- server.py,sha256=ZDllYa-YCwuY6GUFIksIu6vx6Up1vnTQy-mn1Ig8qDo,9512
2
- iflow_mcp_yugabyte_yugabytedb_mcp_server-1.0.6.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
3
- iflow_mcp_yugabyte_yugabytedb_mcp_server-1.0.6.dist-info/METADATA,sha256=fW6z57OKws3W6VN8DqnJCTwZddtMCGry69teMHViCkQ,9655
4
- iflow_mcp_yugabyte_yugabytedb_mcp_server-1.0.6.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
5
- iflow_mcp_yugabyte_yugabytedb_mcp_server-1.0.6.dist-info/entry_points.txt,sha256=0qR8G3C-z5Jb99iC45ysBZsnVGYgPefWGinP2Bhq9hE,54
6
- iflow_mcp_yugabyte_yugabytedb_mcp_server-1.0.6.dist-info/top_level.txt,sha256=StKOSmRhvWS5IPcvhsDRbtxUTEofJgYFGOu5AAJdSWo,7
7
- iflow_mcp_yugabyte_yugabytedb_mcp_server-1.0.6.dist-info/RECORD,,