Skip to content

Commit c2dcad3

Browse files
committed
fix: allow connect tool on readOnly mode
1 parent 4a54404 commit c2dcad3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/tool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export abstract class ToolBase {
149149
let errorClarification: string | undefined;
150150

151151
// Check read-only mode first
152-
if (this.config.readOnly && !["read", "metadata"].includes(this.operationType)) {
152+
if (this.config.readOnly && !["read", "metadata", "connect"].includes(this.operationType)) {
153153
errorClarification = `read-only mode is enabled, its operation type, \`${this.operationType}\`,`;
154154
} else if (this.config.disabledTools.includes(this.category)) {
155155
errorClarification = `its category, \`${this.category}\`,`;

0 commit comments

Comments
 (0)