Skip to content

Commit 7da5edf

Browse files
committed
fixes after rebase
1 parent bb7be2b commit 7da5edf

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/tools/mongodb/create/createCollection.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
2-
import { DbOperationArgs, DbOperationType, MongoDBToolBase } from "../mongodbTool.js";
3-
import { ToolArgs } from "../../tool.js";
2+
import { DbOperationArgs, MongoDBToolBase } from "../mongodbTool.js";
3+
import { OperationType, ToolArgs } from "../../tool.js";
44

55
export class CreateCollectionTool extends MongoDBToolBase {
66
protected name = "create-collection";
77
protected description =
88
"Creates a new collection in a database. If the database doesn't exist, it will be created automatically.";
99
protected argsShape = DbOperationArgs;
1010

11-
protected operationType: DbOperationType = "create";
11+
protected operationType: OperationType = "create";
1212

1313
protected async execute({ collection, database }: ToolArgs<typeof this.argsShape>): Promise<CallToolResult> {
1414
const provider = await this.ensureConnected();

tests/integration/helpers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import fs from "fs/promises";
77
import { Session } from "../../src/session.js";
88
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
99
import { MongoClient } from "mongodb";
10+
import { toIncludeAllMembers } from "jest-extended";
1011

1112
interface ParameterInfo {
1213
name: string;

0 commit comments

Comments
 (0)