Skip to content

Commit fa6d616

Browse files
committed
tool input doesnt take deployment id
1 parent 9ad0257 commit fa6d616

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/tools/atlasLocal/connect/connectDeployment.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
};

0 commit comments

Comments
 (0)