mcp-server-motherduck 0.5__py3-none-any.whl → 0.5.1__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.
Potentially problematic release.
This version of mcp-server-motherduck might be problematic. Click here for more details.
- mcp_server_motherduck/server.py +3 -2
- {mcp_server_motherduck-0.5.dist-info → mcp_server_motherduck-0.5.1.dist-info}/METADATA +2 -4
- mcp_server_motherduck-0.5.1.dist-info/RECORD +8 -0
- mcp_server_motherduck-0.5.dist-info/RECORD +0 -8
- {mcp_server_motherduck-0.5.dist-info → mcp_server_motherduck-0.5.1.dist-info}/WHEEL +0 -0
- {mcp_server_motherduck-0.5.dist-info → mcp_server_motherduck-0.5.1.dist-info}/entry_points.txt +0 -0
- {mcp_server_motherduck-0.5.dist-info → mcp_server_motherduck-0.5.1.dist-info}/licenses/LICENSE +0 -0
mcp_server_motherduck/server.py
CHANGED
|
@@ -5,6 +5,7 @@ from pydantic import AnyUrl
|
|
|
5
5
|
from typing import Literal, Optional
|
|
6
6
|
import io
|
|
7
7
|
from contextlib import redirect_stdout
|
|
8
|
+
from tabulate import tabulate
|
|
8
9
|
import mcp.server.stdio
|
|
9
10
|
import mcp.types as types
|
|
10
11
|
from mcp.server import NotificationOptions, Server
|
|
@@ -12,7 +13,7 @@ from mcp.server.models import InitializationOptions
|
|
|
12
13
|
from .prompt import PROMPT_TEMPLATE
|
|
13
14
|
|
|
14
15
|
|
|
15
|
-
SERVER_VERSION = "0.5"
|
|
16
|
+
SERVER_VERSION = "0.5.1"
|
|
16
17
|
|
|
17
18
|
logger = logging.getLogger("mcp_server_motherduck")
|
|
18
19
|
|
|
@@ -130,7 +131,7 @@ class DatabaseClient:
|
|
|
130
131
|
q = self.conn.execute(query)
|
|
131
132
|
|
|
132
133
|
if self.result_format == "markdown":
|
|
133
|
-
out = q.
|
|
134
|
+
out = tabulate(q.fetchall(), headers=[d[0]+'\n'+d[1] for d in q.description], tablefmt="pretty")
|
|
134
135
|
elif self.result_format == "duckbox":
|
|
135
136
|
# Duckbox version of the output
|
|
136
137
|
buffer = io.StringIO()
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mcp-server-motherduck
|
|
3
|
-
Version: 0.5
|
|
3
|
+
Version: 0.5.1
|
|
4
4
|
Summary: A MCP server for MotherDuck and local DuckDB
|
|
5
5
|
Author-email: tdoehmen <till@motherduck.com>
|
|
6
6
|
License-File: LICENSE
|
|
7
7
|
Requires-Python: >=3.10
|
|
8
|
-
Requires-Dist: duckdb==1.
|
|
8
|
+
Requires-Dist: duckdb==1.3.0
|
|
9
9
|
Requires-Dist: mcp>=1.3.0
|
|
10
|
-
Requires-Dist: pandas>=2.0.0
|
|
11
10
|
Requires-Dist: tabulate>=0.9.0
|
|
12
11
|
Description-Content-Type: text/markdown
|
|
13
12
|
|
|
@@ -185,7 +184,6 @@ Optionally, you can add it to a file called `.vscode/mcp.json` in your workspace
|
|
|
185
184
|
**Important Notes**:
|
|
186
185
|
|
|
187
186
|
- Replace `YOUR_MOTHERDUCK_TOKEN_HERE` with your actual MotherDuck token
|
|
188
|
-
- Replace `YOUR_HOME_FOLDER_PATH` with the path to your home directory (needed by DuckDB for file operations). For example, on macOS, it would be `/Users/your_username`
|
|
189
187
|
- The `HOME` environment variable is required for DuckDB to function properly.
|
|
190
188
|
|
|
191
189
|
## Securing your MCP Server when querying MotherDuck
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
mcp_server_motherduck/__init__.py,sha256=Yd_ron4Fy7mV_p48z0IFNKNbqC7fYfjNnPv4pJ6dRCg,2208
|
|
2
|
+
mcp_server_motherduck/prompt.py,sha256=P7BrmhVXwDkPeSHQ3f25WMP6lpBpN2BxDzYPOQ3fxX8,56699
|
|
3
|
+
mcp_server_motherduck/server.py,sha256=jkMN5gxs7NW5Nk5Drt6OxJ3wY7TRTkUNuAd-hNf0oXI,10857
|
|
4
|
+
mcp_server_motherduck-0.5.1.dist-info/METADATA,sha256=a3lpQCcqKON01lFpH4d7zvsM-cPASlXE6rIzwVL7vH8,12327
|
|
5
|
+
mcp_server_motherduck-0.5.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
6
|
+
mcp_server_motherduck-0.5.1.dist-info/entry_points.txt,sha256=dRTgcvWJn40bz0PVuKPylK6w92cFN32lwunZOgo5j4s,69
|
|
7
|
+
mcp_server_motherduck-0.5.1.dist-info/licenses/LICENSE,sha256=Tj68w9jCiceFKTvZ3jET-008NjhozcQMXpm-fyL9WUI,1067
|
|
8
|
+
mcp_server_motherduck-0.5.1.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
mcp_server_motherduck/__init__.py,sha256=Yd_ron4Fy7mV_p48z0IFNKNbqC7fYfjNnPv4pJ6dRCg,2208
|
|
2
|
-
mcp_server_motherduck/prompt.py,sha256=P7BrmhVXwDkPeSHQ3f25WMP6lpBpN2BxDzYPOQ3fxX8,56699
|
|
3
|
-
mcp_server_motherduck/server.py,sha256=hPZkx1WafvNx8LCLRdq0ftQV_C4qz7x18kqY5ACgZDk,10760
|
|
4
|
-
mcp_server_motherduck-0.5.dist-info/METADATA,sha256=Rg2d2t94aFpd1ArzkAoWY5su_J7n8SoXz9YBY4hGLws,12523
|
|
5
|
-
mcp_server_motherduck-0.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
6
|
-
mcp_server_motherduck-0.5.dist-info/entry_points.txt,sha256=dRTgcvWJn40bz0PVuKPylK6w92cFN32lwunZOgo5j4s,69
|
|
7
|
-
mcp_server_motherduck-0.5.dist-info/licenses/LICENSE,sha256=Tj68w9jCiceFKTvZ3jET-008NjhozcQMXpm-fyL9WUI,1067
|
|
8
|
-
mcp_server_motherduck-0.5.dist-info/RECORD,,
|
|
File without changes
|
{mcp_server_motherduck-0.5.dist-info → mcp_server_motherduck-0.5.1.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{mcp_server_motherduck-0.5.dist-info → mcp_server_motherduck-0.5.1.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|