mcp-server-motherduck 0.6.1__tar.gz → 0.6.2__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.
Potentially problematic release.
This version of mcp-server-motherduck might be problematic. Click here for more details.
- {mcp_server_motherduck-0.6.1 → mcp_server_motherduck-0.6.2}/.idea/workspace.xml +4 -2
- {mcp_server_motherduck-0.6.1 → mcp_server_motherduck-0.6.2}/PKG-INFO +11 -11
- {mcp_server_motherduck-0.6.1 → mcp_server_motherduck-0.6.2}/README.md +10 -10
- {mcp_server_motherduck-0.6.1 → mcp_server_motherduck-0.6.2}/pyproject.toml +1 -1
- {mcp_server_motherduck-0.6.1 → mcp_server_motherduck-0.6.2}/src/mcp_server_motherduck/configs.py +1 -1
- {mcp_server_motherduck-0.6.1 → mcp_server_motherduck-0.6.2}/src/mcp_server_motherduck/database.py +1 -4
- {mcp_server_motherduck-0.6.1 → mcp_server_motherduck-0.6.2}/uv.lock +1 -1
- {mcp_server_motherduck-0.6.1 → mcp_server_motherduck-0.6.2}/.github/workflows/python-publish.yml +0 -0
- {mcp_server_motherduck-0.6.1 → mcp_server_motherduck-0.6.2}/.gitignore +0 -0
- {mcp_server_motherduck-0.6.1 → mcp_server_motherduck-0.6.2}/.idea/.gitignore +0 -0
- {mcp_server_motherduck-0.6.1 → mcp_server_motherduck-0.6.2}/.idea/mcp-server-motherduck.iml +0 -0
- {mcp_server_motherduck-0.6.1 → mcp_server_motherduck-0.6.2}/.idea/misc.xml +0 -0
- {mcp_server_motherduck-0.6.1 → mcp_server_motherduck-0.6.2}/.idea/modules.xml +0 -0
- {mcp_server_motherduck-0.6.1 → mcp_server_motherduck-0.6.2}/.idea/vcs.xml +0 -0
- {mcp_server_motherduck-0.6.1 → mcp_server_motherduck-0.6.2}/LICENSE +0 -0
- {mcp_server_motherduck-0.6.1 → mcp_server_motherduck-0.6.2}/makefile +0 -0
- {mcp_server_motherduck-0.6.1 → mcp_server_motherduck-0.6.2}/src/mcp_server_motherduck/__init__.py +0 -0
- {mcp_server_motherduck-0.6.1 → mcp_server_motherduck-0.6.2}/src/mcp_server_motherduck/prompt.py +0 -0
- {mcp_server_motherduck-0.6.1 → mcp_server_motherduck-0.6.2}/src/mcp_server_motherduck/server.py +0 -0
|
@@ -13,8 +13,10 @@
|
|
|
13
13
|
</component>
|
|
14
14
|
<component name="ChangeListManager">
|
|
15
15
|
<list default="true" id="8bdee1d4-886c-4093-b4cf-95b120034c9e" name="Changes" comment="">
|
|
16
|
+
<change beforePath="$PROJECT_DIR$/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
|
|
16
17
|
<change beforePath="$PROJECT_DIR$/pyproject.toml" beforeDir="false" afterPath="$PROJECT_DIR$/pyproject.toml" afterDir="false" />
|
|
17
|
-
<change beforePath="$PROJECT_DIR$/
|
|
18
|
+
<change beforePath="$PROJECT_DIR$/src/mcp_server_motherduck/configs.py" beforeDir="false" afterPath="$PROJECT_DIR$/src/mcp_server_motherduck/configs.py" afterDir="false" />
|
|
19
|
+
<change beforePath="$PROJECT_DIR$/src/mcp_server_motherduck/database.py" beforeDir="false" afterPath="$PROJECT_DIR$/src/mcp_server_motherduck/database.py" afterDir="false" />
|
|
18
20
|
</list>
|
|
19
21
|
<option name="SHOW_DIALOG" value="false" />
|
|
20
22
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
@@ -95,7 +97,7 @@
|
|
|
95
97
|
<workItem from="1750084439422" duration="575000" />
|
|
96
98
|
<workItem from="1750086684829" duration="92000" />
|
|
97
99
|
<workItem from="1750099676834" duration="5651000" />
|
|
98
|
-
<workItem from="1750235697329" duration="
|
|
100
|
+
<workItem from="1750235697329" duration="2124000" />
|
|
99
101
|
</task>
|
|
100
102
|
<servers />
|
|
101
103
|
</component>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mcp-server-motherduck
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.2
|
|
4
4
|
Summary: A MCP server for MotherDuck and local DuckDB
|
|
5
5
|
Author-email: tdoehmen <till@motherduck.com>
|
|
6
6
|
License-File: LICENSE
|
|
@@ -54,16 +54,16 @@ All interactions with both DuckDB and MotherDuck are done through writing SQL qu
|
|
|
54
54
|
|
|
55
55
|
The MCP server supports the following parameters:
|
|
56
56
|
|
|
57
|
-
| Parameter | Type | Default | Description
|
|
58
|
-
|
|
59
|
-
| `--transport` | Choice | `stdio` | Transport type. Options: `stdio`, `sse`, `stream`
|
|
60
|
-
| `--port` | Integer | `8000` | Port to listen on for sse and stream transport mode
|
|
61
|
-
| `--db-path` | String | `md:` | Path to local DuckDB database file or MotherDuck database
|
|
62
|
-
| `--motherduck-token` | String | `None` | Access token to use for MotherDuck database connections (uses `motherduck_token` env var by default)
|
|
63
|
-
| `--read-only` | Flag | `False` | Flag for connecting to DuckDB in read-only mode.
|
|
64
|
-
| `--home-dir` | String | `None` | Home directory for DuckDB (uses `HOME` env var by default)
|
|
65
|
-
| `--saas-mode` | Flag | `False` | Flag for connecting to MotherDuck in SaaS mode |
|
|
66
|
-
| `--json-response` | Flag | `False` | Enable JSON responses for HTTP stream. Only supported for `stream` transport
|
|
57
|
+
| Parameter | Type | Default | Description |
|
|
58
|
+
|-----------|------|---------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
59
|
+
| `--transport` | Choice | `stdio` | Transport type. Options: `stdio`, `sse`, `stream` |
|
|
60
|
+
| `--port` | Integer | `8000` | Port to listen on for sse and stream transport mode |
|
|
61
|
+
| `--db-path` | String | `md:` | Path to local DuckDB database file or MotherDuck database |
|
|
62
|
+
| `--motherduck-token` | String | `None` | Access token to use for MotherDuck database connections (uses `motherduck_token` env var by default) |
|
|
63
|
+
| `--read-only` | Flag | `False` | Flag for connecting to DuckDB or MotherDuck in read-only mode. For DuckDB it uses short-lived connections to enable concurrent access |
|
|
64
|
+
| `--home-dir` | String | `None` | Home directory for DuckDB (uses `HOME` env var by default) |
|
|
65
|
+
| `--saas-mode` | Flag | `False` | Flag for connecting to MotherDuck in [SaaS mode](https://motherduck.com/docs/key-tasks/authenticating-and-connecting-to-motherduck/authenticating-to-motherduck/#authentication-using-saas-mode). (disables filesystem and write permissions for local DuckDB) |
|
|
66
|
+
| `--json-response` | Flag | `False` | Enable JSON responses for HTTP stream. Only supported for `stream` transport |
|
|
67
67
|
|
|
68
68
|
### Quick Usage Examples
|
|
69
69
|
|
|
@@ -38,16 +38,16 @@ All interactions with both DuckDB and MotherDuck are done through writing SQL qu
|
|
|
38
38
|
|
|
39
39
|
The MCP server supports the following parameters:
|
|
40
40
|
|
|
41
|
-
| Parameter | Type | Default | Description
|
|
42
|
-
|
|
43
|
-
| `--transport` | Choice | `stdio` | Transport type. Options: `stdio`, `sse`, `stream`
|
|
44
|
-
| `--port` | Integer | `8000` | Port to listen on for sse and stream transport mode
|
|
45
|
-
| `--db-path` | String | `md:` | Path to local DuckDB database file or MotherDuck database
|
|
46
|
-
| `--motherduck-token` | String | `None` | Access token to use for MotherDuck database connections (uses `motherduck_token` env var by default)
|
|
47
|
-
| `--read-only` | Flag | `False` | Flag for connecting to DuckDB in read-only mode.
|
|
48
|
-
| `--home-dir` | String | `None` | Home directory for DuckDB (uses `HOME` env var by default)
|
|
49
|
-
| `--saas-mode` | Flag | `False` | Flag for connecting to MotherDuck in SaaS mode |
|
|
50
|
-
| `--json-response` | Flag | `False` | Enable JSON responses for HTTP stream. Only supported for `stream` transport
|
|
41
|
+
| Parameter | Type | Default | Description |
|
|
42
|
+
|-----------|------|---------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
43
|
+
| `--transport` | Choice | `stdio` | Transport type. Options: `stdio`, `sse`, `stream` |
|
|
44
|
+
| `--port` | Integer | `8000` | Port to listen on for sse and stream transport mode |
|
|
45
|
+
| `--db-path` | String | `md:` | Path to local DuckDB database file or MotherDuck database |
|
|
46
|
+
| `--motherduck-token` | String | `None` | Access token to use for MotherDuck database connections (uses `motherduck_token` env var by default) |
|
|
47
|
+
| `--read-only` | Flag | `False` | Flag for connecting to DuckDB or MotherDuck in read-only mode. For DuckDB it uses short-lived connections to enable concurrent access |
|
|
48
|
+
| `--home-dir` | String | `None` | Home directory for DuckDB (uses `HOME` env var by default) |
|
|
49
|
+
| `--saas-mode` | Flag | `False` | Flag for connecting to MotherDuck in [SaaS mode](https://motherduck.com/docs/key-tasks/authenticating-and-connecting-to-motherduck/authenticating-to-motherduck/#authentication-using-saas-mode). (disables filesystem and write permissions for local DuckDB) |
|
|
50
|
+
| `--json-response` | Flag | `False` | Enable JSON responses for HTTP stream. Only supported for `stream` transport |
|
|
51
51
|
|
|
52
52
|
### Quick Usage Examples
|
|
53
53
|
|
{mcp_server_motherduck-0.6.1 → mcp_server_motherduck-0.6.2}/src/mcp_server_motherduck/database.py
RENAMED
|
@@ -53,13 +53,10 @@ class DatabaseClient:
|
|
|
53
53
|
logger.error(f"❌ Read-only check failed: {e}")
|
|
54
54
|
raise
|
|
55
55
|
|
|
56
|
-
if self._read_only:
|
|
57
|
-
raise ValueError(
|
|
58
|
-
"Read-only mode is only supported for local DuckDB databases. See `saas_mode` for similar functionality with MotherDuck."
|
|
59
|
-
)
|
|
60
56
|
conn = duckdb.connect(
|
|
61
57
|
self.db_path,
|
|
62
58
|
config={"custom_user_agent": f"mcp-server-motherduck/{SERVER_VERSION}"},
|
|
59
|
+
read_only=self._read_only,
|
|
63
60
|
)
|
|
64
61
|
|
|
65
62
|
logger.info(f"✅ Successfully connected to {self.db_type} database")
|
{mcp_server_motherduck-0.6.1 → mcp_server_motherduck-0.6.2}/.github/workflows/python-publish.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mcp_server_motherduck-0.6.1 → mcp_server_motherduck-0.6.2}/src/mcp_server_motherduck/__init__.py
RENAMED
|
File without changes
|
{mcp_server_motherduck-0.6.1 → mcp_server_motherduck-0.6.2}/src/mcp_server_motherduck/prompt.py
RENAMED
|
File without changes
|
{mcp_server_motherduck-0.6.1 → mcp_server_motherduck-0.6.2}/src/mcp_server_motherduck/server.py
RENAMED
|
File without changes
|