Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d471cdd

Browse files
authored
fix: allow connect tool on readOnly mode (#499)
1 parent 4a54404 commit d471cdd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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}\`,`;

‎tests/integration/common/connectionManager.oidc.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ describe.skipIf(process.platform !== "linux")("ConnectionManager OIDC Tests", as
9898
...defaultTestConfig,
9999
oidcRedirectURi: "http://localhost:0/",
100100
authenticationMechanism: "MONGODB-OIDC",
101-
maxIdleTimeMS: "1",
101+
maxIdleTimeMS: "10000",
102102
minPoolSize: "0",
103103
username: "testuser",
104104
browser: fetchBrowserFixture,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /