Skip to content
Merged
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 src/tools/tool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export abstract class ToolBase {
let errorClarification: string | undefined;

// Check read-only mode first
if (this.config.readOnly && !["read", "metadata"].includes(this.operationType)) {
if (this.config.readOnly && !["read", "metadata", "connect"].includes(this.operationType)) {
errorClarification = `read-only mode is enabled, its operation type, \`${this.operationType}\`,`;
} else if (this.config.disabledTools.includes(this.category)) {
errorClarification = `its category, \`${this.category}\`,`;
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/common/connectionManager.oidc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ describe.skipIf(process.platform !== "linux")("ConnectionManager OIDC Tests", as
...defaultTestConfig,
oidcRedirectURi: "http://localhost:0/",
authenticationMechanism: "MONGODB-OIDC",
maxIdleTimeMS: "1",
maxIdleTimeMS: "10000",
minPoolSize: "0",
username: "testuser",
browser: fetchBrowserFixture,
Expand Down
Loading