File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 11import { 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
55export 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 ( ) ;
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import fs from "fs/promises";
77import { Session } from "../../src/session.js" ;
88import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js" ;
99import { MongoClient } from "mongodb" ;
10+ import { toIncludeAllMembers } from "jest-extended" ;
1011
1112interface ParameterInfo {
1213 name : string ;
You can’t perform that action at this time.
0 commit comments