You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: impl HTTP transports for mcp server
Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
* fix: tql start, end format
Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
* fix: sql injection in tql params
Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
---------
Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
Copy file name to clipboardExpand all lines: README.md
+58-2Lines changed: 58 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,7 +115,32 @@ Claude will:
115
115
4. Test it with `dryrun_pipeline` tool
116
116
117
117
## Security
118
-
All queries pass through a security gate that:
118
+
119
+
### Database User Configuration (Recommended)
120
+
121
+
For production deployments, create a **read-only database user** for the MCP server. This provides defense-in-depth security at the database level.
122
+
123
+
Configure a read-only user in GreptimeDB using [static user provider](https://docs.greptime.com/user-guide/deployments-administration/authentication/static/#permission-modes):
124
+
125
+
```
126
+
# User format: username:permission_mode=password
127
+
mcp_readonly:readonly=your_secure_password
128
+
```
129
+
130
+
Permission modes:
131
+
-`readonly` (or `ro`) - Can only query data (recommended for MCP server)
132
+
-`writeonly` (or `wo`) - Can only write data
133
+
-`readwrite` (or `rw`) - Full access (default)
134
+
135
+
Then configure the MCP server to use this user:
136
+
```bash
137
+
GREPTIMEDB_USER=mcp_readonly
138
+
GREPTIMEDB_PASSWORD=your_secure_password
139
+
```
140
+
141
+
### Application-Level Security Gate
142
+
143
+
All queries also pass through a security gate that:
0 commit comments