Skip to content

Commit 01ddc74

Browse files
committed
Documentation: Recommend against CRATEDB_MCP_PERMIT_ALL_STATEMENTS
1 parent 49644f2 commit 01ddc74

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ We do not recommend letting LLM-based agents insert or modify data by itself.
4545
As such, only `SELECT` statements are permitted and forwarded to the database.
4646
All other operations will raise a `ValueError` exception, unless the
4747
`CRATEDB_MCP_PERMIT_ALL_STATEMENTS` environment variable is set to a
48-
truthy value.
48+
truthy value. This is **not** recommended.
4949

5050
# Install
5151
```shell

cratedb_mcp/util/sql.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def sql_is_permitted(expression: str) -> bool:
1515
Validate the SQL expression, only permit read queries by default.
1616
1717
When the `CRATEDB_MCP_PERMIT_ALL_STATEMENTS` environment variable is set,
18-
allow all types of statements.
18+
allow all types of statements. This is **not** recommended.
1919
2020
FIXME: Revisit implementation, it might be too naive or weak.
2121
Issue: https://github.com/crate/cratedb-mcp/issues/10

0 commit comments

Comments
 (0)