Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/wren/src/wren/policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def basic_safety_check(sql: str) -> None:
)
stmt = stmts[0]

if not isinstance(stmt, (exp.Select, exp.Explain)):
if not isinstance(stmt, (exp.Query, exp.Explain, exp.Subquery)):
raise WrenError(
ErrorCode.POLICY_VIOLATION,
f"Only read-only queries are allowed, got: {type(stmt).__name__}",
Expand Down
1 change: 1 addition & 0 deletions docs/core/reference/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@ Requires the `mcp` extra: `pip install 'wrenai[mcp]'`.
| `--transport` | `stdio` | `stdio` or `http` |
| `--host` | `127.0.0.1` | Bind host, `--transport http` only |
| `--port` | `8080` | Bind port, `--transport http` only |
| `--api-key` | — | Bearer-token secret for HTTP requests, `--transport http` only |
| `--project` | discovered | Override project root |
| `--profile` | active profile | Connection profile name |
| `--allow-write` | off | Enable the `store_query` write tool |
Expand Down