mcp-dbutils 0.2.3__py3-none-any.whl → 0.2.4__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: mcp-dbutils
3
- Version: 0.2.3
3
+ Version: 0.2.4
4
4
  Summary: MCP Database Utilities Service
5
5
  Author: Dong Hao
6
6
  License-Expression: MIT
@@ -16,7 +16,7 @@ Description-Content-Type: text/markdown
16
16
 
17
17
  ![GitHub Repo stars](https://img.shields.io/github/stars/donghao1393/mcp-dbutils)
18
18
  ![PyPI version](https://img.shields.io/pypi/v/mcp-dbutils)
19
- ![Python versions](https://img.shields.io/pypi/pyversions/mcp-dbutils)
19
+ ![Python](https://img.shields.io/badge/Python-3.10%2B-blue)
20
20
  ![License](https://img.shields.io/github/license/donghao1393/mcp-dbutils)
21
21
 
22
22
  [中文文档](README_CN.md)
@@ -45,9 +45,16 @@ uvx mcp-dbutils --config /path/to/config.yaml
45
45
  Add to Claude configuration:
46
46
  ```json
47
47
  "mcpServers": {
48
- "database": {
48
+ "dbutils": {
49
49
  "command": "uvx",
50
- "args": ["mcp-dbutils", "--config", "/path/to/config.yaml"]
50
+ "args": [
51
+ "mcp-dbutils",
52
+ "--config",
53
+ "/path/to/config.yaml"
54
+ ],
55
+ "env": {
56
+ "MCP_DEBUG": "1" // Optional: Enable debug mode
57
+ }
51
58
  }
52
59
  }
53
60
  ```
@@ -60,9 +67,17 @@ pip install mcp-dbutils
60
67
  Add to Claude configuration:
61
68
  ```json
62
69
  "mcpServers": {
63
- "database": {
70
+ "dbutils": {
64
71
  "command": "python",
65
- "args": ["-m", "mcp_dbutils", "--config", "/path/to/config.yaml"]
72
+ "args": [
73
+ "-m",
74
+ "mcp_dbutils",
75
+ "--config",
76
+ "/path/to/config.yaml"
77
+ ],
78
+ "env": {
79
+ "MCP_DEBUG": "1" // Optional: Enable debug mode
80
+ }
66
81
  }
67
82
  }
68
83
  ```
@@ -71,16 +86,28 @@ Add to Claude configuration:
71
86
  ```bash
72
87
  docker run -i --rm \
73
88
  -v /path/to/config.yaml:/app/config.yaml \
89
+ -e MCP_DEBUG=1 \ # Optional: Enable debug mode
74
90
  mcp/dbutils --config /app/config.yaml
75
91
  ```
76
92
 
77
93
  Add to Claude configuration:
78
94
  ```json
79
95
  "mcpServers": {
80
- "database": {
96
+ "dbutils": {
81
97
  "command": "docker",
82
- "args": ["run", "-i", "--rm", "-v", "/path/to/config.yaml:/app/config.yaml",
83
- "mcp/dbutils", "--config", "/app/config.yaml"]
98
+ "args": [
99
+ "run",
100
+ "-i",
101
+ "--rm",
102
+ "-v",
103
+ "/path/to/config.yaml:/app/config.yaml",
104
+ "mcp/dbutils",
105
+ "--config",
106
+ "/app/config.yaml"
107
+ ],
108
+ "env": {
109
+ "MCP_DEBUG": "1" // Optional: Enable debug mode
110
+ }
84
111
  }
85
112
  }
86
113
  ```
@@ -117,6 +144,23 @@ Set environment variable `MCP_DEBUG=1` to enable debug mode for detailed logging
117
144
  ## Architecture Design
118
145
 
119
146
  ### Core Concept: Abstraction Layer
147
+
148
+ ```mermaid
149
+ graph TD
150
+ Client[Client] --> DatabaseServer[Database Server]
151
+ subgraph MCP Server
152
+ DatabaseServer
153
+ DatabaseHandler[Database Handler]
154
+ PostgresHandler[PostgreSQL Handler]
155
+ SQLiteHandler[SQLite Handler]
156
+ DatabaseServer --> DatabaseHandler
157
+ DatabaseHandler --> PostgresHandler
158
+ DatabaseHandler --> SQLiteHandler
159
+ end
160
+ PostgresHandler --> PostgreSQL[(PostgreSQL)]
161
+ SQLiteHandler --> SQLite[(SQLite)]
162
+ ```
163
+
120
164
  The abstraction layer design is the core architectural concept in MCP Database Utilities. Just like a universal remote control that works with different devices, users only need to know the basic operations without understanding the underlying complexities.
121
165
 
122
166
  #### 1. Simplified User Interaction
@@ -216,3 +260,26 @@ Provides SQLite-specific features:
216
260
  - File path handling
217
261
  - URI scheme support
218
262
  - Password protection support (optional)
263
+
264
+ ## Contributing
265
+ Contributions are welcome! Here's how you can help:
266
+
267
+ 1. 🐛 Report bugs: Open an issue describing the bug and how to reproduce it
268
+ 2. 💡 Suggest features: Open an issue to propose new features
269
+ 3. 🛠️ Submit PRs: Fork the repo and create a pull request with your changes
270
+
271
+ ### Development Setup
272
+ 1. Clone the repository
273
+ 2. Create a virtual environment using `uv venv`
274
+ 3. Install dependencies with `uv sync --all-extras`
275
+ 4. Run tests with `pytest`
276
+
277
+ For detailed guidelines, see [CONTRIBUTING.md](.github/CONTRIBUTING.md)
278
+
279
+ ## Acknowledgments
280
+ - [MCP Servers](https://github.com/modelcontextprotocol/servers) for inspiration and demonstration
281
+ - AI Editors:
282
+ * [Claude Desktop](https://claude.ai/download)
283
+ * [5ire](https://5ire.app/)
284
+ * [Cline](https://cline.bot)
285
+ - [Model Context Protocol](https://modelcontextprotocol.io/) for comprehensive interfaces
@@ -10,8 +10,8 @@ mcp_dbutils/sqlite/__init__.py,sha256=QV4th2ywzUmCCa3GHCcBf8blJ_E8OYy0dJ2fSf1TfS
10
10
  mcp_dbutils/sqlite/config.py,sha256=QK1JlY-ZBB5VyhydbiU-aAKNESTWMtyBfawbv2DAVCQ,2452
11
11
  mcp_dbutils/sqlite/handler.py,sha256=v2fFHxepNSUuK65UPo4fwyeBCDG6fit5IuLdBRIKUsY,4220
12
12
  mcp_dbutils/sqlite/server.py,sha256=Q29O2YOW4kqDGc3z1hMXVv4M0KSkuZbqvVDMgZE8Fd8,7593
13
- mcp_dbutils-0.2.3.dist-info/METADATA,sha256=TqDZw19V4rPsI5zS89McSFqHBSk73KOWTiaS3tE3dzw,6051
14
- mcp_dbutils-0.2.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
- mcp_dbutils-0.2.3.dist-info/entry_points.txt,sha256=XTjt0QmYRgKOJQT6skR9bp1EMUfIrgpHeZJPZ3CJffs,49
16
- mcp_dbutils-0.2.3.dist-info/licenses/LICENSE,sha256=1A_CwpWVlbjrKdVEYO77vYfnXlW7oxcilZ8FpA_BzCI,1065
17
- mcp_dbutils-0.2.3.dist-info/RECORD,,
13
+ mcp_dbutils-0.2.4.dist-info/METADATA,sha256=Eq2rC77Wrf6UAUSiJVhWNU0N-nQKZw7rSUadOD5Bm4Y,7718
14
+ mcp_dbutils-0.2.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
+ mcp_dbutils-0.2.4.dist-info/entry_points.txt,sha256=XTjt0QmYRgKOJQT6skR9bp1EMUfIrgpHeZJPZ3CJffs,49
16
+ mcp_dbutils-0.2.4.dist-info/licenses/LICENSE,sha256=1A_CwpWVlbjrKdVEYO77vYfnXlW7oxcilZ8FpA_BzCI,1065
17
+ mcp_dbutils-0.2.4.dist-info/RECORD,,