mcp-postgresql-ops 3.2.4__tar.gz → 3.2.5__tar.gz

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 (19) hide show
  1. {mcp_postgresql_ops-3.2.4/src/mcp_postgresql_ops.egg-info → mcp_postgresql_ops-3.2.5}/PKG-INFO +3 -3
  2. {mcp_postgresql_ops-3.2.4 → mcp_postgresql_ops-3.2.5}/README.md +2 -2
  3. {mcp_postgresql_ops-3.2.4 → mcp_postgresql_ops-3.2.5}/pyproject.toml +1 -1
  4. {mcp_postgresql_ops-3.2.4 → mcp_postgresql_ops-3.2.5/src/mcp_postgresql_ops.egg-info}/PKG-INFO +3 -3
  5. {mcp_postgresql_ops-3.2.4 → mcp_postgresql_ops-3.2.5}/tests/test_tools_integration.py +46 -40
  6. {mcp_postgresql_ops-3.2.4 → mcp_postgresql_ops-3.2.5}/LICENSE +0 -0
  7. {mcp_postgresql_ops-3.2.4 → mcp_postgresql_ops-3.2.5}/MANIFEST.in +0 -0
  8. {mcp_postgresql_ops-3.2.4 → mcp_postgresql_ops-3.2.5}/setup.cfg +0 -0
  9. {mcp_postgresql_ops-3.2.4 → mcp_postgresql_ops-3.2.5}/src/mcp_postgresql_ops/__init__.py +0 -0
  10. {mcp_postgresql_ops-3.2.4 → mcp_postgresql_ops-3.2.5}/src/mcp_postgresql_ops/__main__.py +0 -0
  11. {mcp_postgresql_ops-3.2.4 → mcp_postgresql_ops-3.2.5}/src/mcp_postgresql_ops/functions.py +0 -0
  12. {mcp_postgresql_ops-3.2.4 → mcp_postgresql_ops-3.2.5}/src/mcp_postgresql_ops/mcp_main.py +0 -0
  13. {mcp_postgresql_ops-3.2.4 → mcp_postgresql_ops-3.2.5}/src/mcp_postgresql_ops/version_compat.py +0 -0
  14. {mcp_postgresql_ops-3.2.4 → mcp_postgresql_ops-3.2.5}/src/mcp_postgresql_ops.egg-info/SOURCES.txt +0 -0
  15. {mcp_postgresql_ops-3.2.4 → mcp_postgresql_ops-3.2.5}/src/mcp_postgresql_ops.egg-info/dependency_links.txt +0 -0
  16. {mcp_postgresql_ops-3.2.4 → mcp_postgresql_ops-3.2.5}/src/mcp_postgresql_ops.egg-info/entry_points.txt +0 -0
  17. {mcp_postgresql_ops-3.2.4 → mcp_postgresql_ops-3.2.5}/src/mcp_postgresql_ops.egg-info/requires.txt +0 -0
  18. {mcp_postgresql_ops-3.2.4 → mcp_postgresql_ops-3.2.5}/src/mcp_postgresql_ops.egg-info/top_level.txt +0 -0
  19. {mcp_postgresql_ops-3.2.4 → mcp_postgresql_ops-3.2.5}/tests/test_version_compat.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mcp-postgresql-ops
3
- Version: 3.2.4
3
+ Version: 3.2.5
4
4
  Summary: Add your description here
5
5
  Author-email: JungJungIn <call518@gmail.com>
6
6
  Requires-Python: >=3.12
@@ -932,7 +932,7 @@ cd MCP-PostgreSQL-Ops
932
932
  uv sync
933
933
 
934
934
  # Test with MCP Inspector (loads .env automatically)
935
- ./scripts/run-mcp-inspector-local.sh
935
+ ./run-mcp-inspector-local.sh
936
936
 
937
937
  # Direct execution methods:
938
938
  # 1. Using uv run (recommended for development)
@@ -1189,7 +1189,7 @@ Add your tool description to `src/mcp_postgresql_ops/prompt_template.md` for bet
1189
1189
 
1190
1190
  ```bash
1191
1191
  # Local testing with MCP Inspector
1192
- ./scripts/run-mcp-inspector-local.sh
1192
+ ./run-mcp-inspector-local.sh
1193
1193
 
1194
1194
  # Or test with Docker stack
1195
1195
  docker-compose up -d
@@ -916,7 +916,7 @@ cd MCP-PostgreSQL-Ops
916
916
  uv sync
917
917
 
918
918
  # Test with MCP Inspector (loads .env automatically)
919
- ./scripts/run-mcp-inspector-local.sh
919
+ ./run-mcp-inspector-local.sh
920
920
 
921
921
  # Direct execution methods:
922
922
  # 1. Using uv run (recommended for development)
@@ -1173,7 +1173,7 @@ Add your tool description to `src/mcp_postgresql_ops/prompt_template.md` for bet
1173
1173
 
1174
1174
  ```bash
1175
1175
  # Local testing with MCP Inspector
1176
- ./scripts/run-mcp-inspector-local.sh
1176
+ ./run-mcp-inspector-local.sh
1177
1177
 
1178
1178
  # Or test with Docker stack
1179
1179
  docker-compose up -d
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "mcp-postgresql-ops"
3
- version = "3.2.4"
3
+ version = "3.2.5"
4
4
  description = "Add your description here"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.12"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mcp-postgresql-ops
3
- Version: 3.2.4
3
+ Version: 3.2.5
4
4
  Summary: Add your description here
5
5
  Author-email: JungJungIn <call518@gmail.com>
6
6
  Requires-Python: >=3.12
@@ -932,7 +932,7 @@ cd MCP-PostgreSQL-Ops
932
932
  uv sync
933
933
 
934
934
  # Test with MCP Inspector (loads .env automatically)
935
- ./scripts/run-mcp-inspector-local.sh
935
+ ./run-mcp-inspector-local.sh
936
936
 
937
937
  # Direct execution methods:
938
938
  # 1. Using uv run (recommended for development)
@@ -1189,7 +1189,7 @@ Add your tool description to `src/mcp_postgresql_ops/prompt_template.md` for bet
1189
1189
 
1190
1190
  ```bash
1191
1191
  # Local testing with MCP Inspector
1192
- ./scripts/run-mcp-inspector-local.sh
1192
+ ./run-mcp-inspector-local.sh
1193
1193
 
1194
1194
  # Or test with Docker stack
1195
1195
  docker-compose up -d
@@ -4,46 +4,52 @@ Requires Docker Compose test stack running (tests/docker/docker-compose.test.yml
4
4
  """
5
5
  import pytest
6
6
 
7
- # Import all tool functions directly
8
- from mcp_postgresql_ops.mcp_main import (
9
- get_lock_monitoring,
10
- get_wal_status,
11
- get_replication_status,
12
- get_server_info,
13
- get_current_database_info,
14
- get_database_list,
15
- get_table_list,
16
- get_user_list,
17
- get_table_schema_info,
18
- get_database_schema_info,
19
- get_table_relationships,
20
- get_active_connections,
21
- get_pg_stat_statements_top_queries,
22
- get_pg_stat_monitor_recent_queries,
23
- get_database_size_info,
24
- get_table_size_info,
25
- get_postgresql_config,
26
- get_index_usage_stats,
27
- get_vacuum_analyze_stats,
28
- get_table_bloat_analysis,
29
- get_database_bloat_overview,
30
- get_autovacuum_status,
31
- get_autovacuum_activity,
32
- get_running_vacuum_operations,
33
- get_vacuum_effectiveness_analysis,
34
- get_database_stats,
35
- get_bgwriter_stats,
36
- get_io_stats,
37
- get_table_io_stats,
38
- get_index_io_stats,
39
- get_all_tables_stats,
40
- get_user_functions_stats,
41
- get_database_conflicts_stats,
42
- get_wait_events,
43
- get_wal_summarizer_status,
44
- get_async_io_status,
45
- get_per_backend_io_stats,
46
- )
7
+ import mcp_postgresql_ops.mcp_main as _mcp_main
8
+
9
+
10
+ def _fn(name: str):
11
+ """Extract the raw callable from a FunctionTool (fastmcp >= 2.14) or return as-is."""
12
+ tool = getattr(_mcp_main, name)
13
+ return getattr(tool, "fn", tool)
14
+
15
+
16
+ get_lock_monitoring = _fn("get_lock_monitoring")
17
+ get_wal_status = _fn("get_wal_status")
18
+ get_replication_status = _fn("get_replication_status")
19
+ get_server_info = _fn("get_server_info")
20
+ get_current_database_info = _fn("get_current_database_info")
21
+ get_database_list = _fn("get_database_list")
22
+ get_table_list = _fn("get_table_list")
23
+ get_user_list = _fn("get_user_list")
24
+ get_table_schema_info = _fn("get_table_schema_info")
25
+ get_database_schema_info = _fn("get_database_schema_info")
26
+ get_table_relationships = _fn("get_table_relationships")
27
+ get_active_connections = _fn("get_active_connections")
28
+ get_pg_stat_statements_top_queries = _fn("get_pg_stat_statements_top_queries")
29
+ get_pg_stat_monitor_recent_queries = _fn("get_pg_stat_monitor_recent_queries")
30
+ get_database_size_info = _fn("get_database_size_info")
31
+ get_table_size_info = _fn("get_table_size_info")
32
+ get_postgresql_config = _fn("get_postgresql_config")
33
+ get_index_usage_stats = _fn("get_index_usage_stats")
34
+ get_vacuum_analyze_stats = _fn("get_vacuum_analyze_stats")
35
+ get_table_bloat_analysis = _fn("get_table_bloat_analysis")
36
+ get_database_bloat_overview = _fn("get_database_bloat_overview")
37
+ get_autovacuum_status = _fn("get_autovacuum_status")
38
+ get_autovacuum_activity = _fn("get_autovacuum_activity")
39
+ get_running_vacuum_operations = _fn("get_running_vacuum_operations")
40
+ get_vacuum_effectiveness_analysis = _fn("get_vacuum_effectiveness_analysis")
41
+ get_database_stats = _fn("get_database_stats")
42
+ get_bgwriter_stats = _fn("get_bgwriter_stats")
43
+ get_io_stats = _fn("get_io_stats")
44
+ get_table_io_stats = _fn("get_table_io_stats")
45
+ get_index_io_stats = _fn("get_index_io_stats")
46
+ get_all_tables_stats = _fn("get_all_tables_stats")
47
+ get_user_functions_stats = _fn("get_user_functions_stats")
48
+ get_database_conflicts_stats = _fn("get_database_conflicts_stats")
49
+ get_wait_events = _fn("get_wait_events")
50
+ get_wal_summarizer_status = _fn("get_wal_summarizer_status")
51
+ get_async_io_status = _fn("get_async_io_status")
52
+ get_per_backend_io_stats = _fn("get_per_backend_io_stats")
47
53
 
48
54
 
49
55
  pytestmark = pytest.mark.asyncio