Skip to content

Commit f09b4f4

Browse files
chore: use correct arg in agg tool
1 parent 13d8408 commit f09b4f4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/tools/mongodb/read/aggregate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class AggregateTool extends MongoDBToolBase {
5454
this.countAggregationResultDocuments({ provider, database, collection, pipeline }),
5555
iterateCursorUntilMaxBytes({
5656
cursor: aggregationCursor,
57-
maxBytesPerQuery: this.config.maxDocumentsPerQuery,
57+
maxBytesPerQuery: this.config.maxBytesPerQuery,
5858
abortSignal: signal,
5959
}),
6060
]);

tests/integration/tools/mongodb/read/aggregate.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ describeWithMongoDB("aggregate tool", (integration) => {
158158
vi.resetAllMocks();
159159
});
160160

161-
it("should abort discard count operation and respond with indeterminable count", async () => {
161+
it("should abort count operation and respond with indeterminable count", async () => {
162162
vi.spyOn(constants, "AGG_COUNT_MAX_TIME_MS_CAP", "get").mockReturnValue(0.1);
163163
await integration.connectMcpClient();
164164
const response = await integration.mcpClient().callTool({

0 commit comments

Comments
 (0)