File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/tools/atlasLocal/connect Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,15 +9,15 @@ export class ConnectDeploymentTool extends AtlasLocalToolBase {
99 protected description = "Connect to a MongoDB Atlas Local deployment" ;
1010 public operationType : OperationType = "connect" ;
1111 protected argsShape = {
12- deploymentIdOrName : z . string ( ) . describe ( "Name or ID of the deployment to connect to" ) ,
12+ deploymentName : z . string ( ) . describe ( "Name of the deployment to connect to" ) ,
1313 } ;
1414
1515 protected async executeWithAtlasLocalClient (
1616 client : Client ,
17- { deploymentIdOrName } : ToolArgs < typeof this . argsShape >
17+ { deploymentName } : ToolArgs < typeof this . argsShape >
1818 ) : Promise < CallToolResult > {
1919 // Get the connection string for the deployment
20- const connectionString = await client . getConnectionString ( deploymentIdOrName ) ;
20+ const connectionString = await client . getConnectionString ( deploymentName ) ;
2121
2222 // Connect to the deployment
2323 await this . session . connectToMongoDB ( { connectionString } ) ;
@@ -26,7 +26,7 @@ export class ConnectDeploymentTool extends AtlasLocalToolBase {
2626 content : [
2727 {
2828 type : "text" ,
29- text : `Successfully connected to Atlas Local deployment "${ deploymentIdOrName } ".` ,
29+ text : `Successfully connected to Atlas Local deployment "${ deploymentName } ".` ,
3030 } ,
3131 ] ,
3232 } ;
You can’t perform that action at this time.
0 commit comments