Skip to content

Commit c3efcd1

Browse files
use the @mongodb-js/atlas-local package instead of the @mongodb-js-preview/atlas-local package, use string union version of CreationSourceType
1 parent e33df95 commit c3efcd1

File tree

12 files changed

+44
-44
lines changed

12 files changed

+44
-44
lines changed

knip.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
"eslint-rules/*.js"
88
],
99
"ignore": ["tests/integration/fixtures/curl.mjs", "tests/vitest.d.ts"],
10-
"ignoreDependencies": ["@mongodb-js-preview/atlas-local"],
10+
"ignoreDependencies": ["@mongodb-js/atlas-local"],
1111
"ignoreExportsUsedInFile": true
1212
}

package-lock.json

Lines changed: 30 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
"node": "^20.19.0 || ^22.12.0 || >= 23.0.0"
124124
},
125125
"optionalDependencies": {
126-
"@mongodb-js-preview/atlas-local": "^0.0.0-preview.7",
126+
"@mongodb-js/atlas-local": "^1.0.2",
127127
"kerberos": "^2.2.2"
128128
}
129129
}

src/common/atlasLocal.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Client } from "@mongodb-js-preview/atlas-local";
1+
import type { Client } from "@mongodb-js/atlas-local";
22

33
export type AtlasLocalClientFactoryFn = () => Promise<Client | undefined>;
44

@@ -8,7 +8,7 @@ export const defaultCreateAtlasLocalClient: AtlasLocalClientFactoryFn = async ()
88
// Import Atlas Local client asyncronously
99
// This will fail on unsupported platforms
1010
// also measure the time it takes to import the client
11-
const { Client: AtlasLocalClient } = await import("@mongodb-js-preview/atlas-local");
11+
const { Client: AtlasLocalClient } = await import("@mongodb-js/atlas-local");
1212

1313
try {
1414
// Connect to Atlas Local client

src/common/session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import type {
1515
import type { NodeDriverServiceProvider } from "@mongosh/service-provider-node-driver";
1616
import { ErrorCodes, MongoDBError } from "./errors.js";
1717
import type { ExportsManager } from "./exportsManager.js";
18-
import type { Client } from "@mongodb-js-preview/atlas-local";
18+
import type { Client } from "@mongodb-js/atlas-local";
1919
import type { Keychain } from "./keychain.js";
2020

2121
export interface SessionOptions {

src/tools/atlasLocal/atlasLocalTool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
22
import type { TelemetryToolMetadata, ToolArgs, ToolCategory } from "../tool.js";
33
import { ToolBase } from "../tool.js";
44
import type { ToolCallback } from "@modelcontextprotocol/sdk/server/mcp.js";
5-
import type { Client } from "@mongodb-js-preview/atlas-local";
5+
import type { Client } from "@mongodb-js/atlas-local";
66
import { LogId } from "../../common/logger.js";
77
import { z } from "zod";
88

src/tools/atlasLocal/connect/connectDeployment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
22
import { AtlasLocalToolBase } from "../atlasLocalTool.js";
33
import type { OperationType, ToolArgs } from "../../tool.js";
4-
import type { Client } from "@mongodb-js-preview/atlas-local";
4+
import type { Client } from "@mongodb-js/atlas-local";
55
import { CommonArgs } from "../../args.js";
66

77
export class ConnectDeploymentTool extends AtlasLocalToolBase {

src/tools/atlasLocal/create/createDeployment.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
22
import { AtlasLocalToolBase } from "../atlasLocalTool.js";
33
import type { OperationType, ToolArgs, TelemetryToolMetadata } from "../../tool.js";
4-
import type { Client, CreateDeploymentOptions, CreationSourceType } from "@mongodb-js-preview/atlas-local";
4+
import type { Client, CreateDeploymentOptions } from "@mongodb-js/atlas-local";
55
import { CommonArgs } from "../../args.js";
66
import type { ToolCallback } from "@modelcontextprotocol/sdk/server/mcp.js";
77

@@ -22,7 +22,7 @@ export class CreateDeploymentTool extends AtlasLocalToolBase {
2222
const deploymentOptions: CreateDeploymentOptions = {
2323
name: deploymentName,
2424
creationSource: {
25-
type: "MCPServer" as CreationSourceType,
25+
type: "MCPServer",
2626
source: "MCPServer",
2727
},
2828
doNotTrack: !this.telemetry.isTelemetryEnabled(),

src/tools/atlasLocal/delete/deleteDeployment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
22
import { AtlasLocalToolBase } from "../atlasLocalTool.js";
33
import type { OperationType, ToolArgs } from "../../tool.js";
4-
import type { Client } from "@mongodb-js-preview/atlas-local";
4+
import type { Client } from "@mongodb-js/atlas-local";
55
import { CommonArgs } from "../../args.js";
66

77
export class DeleteDeploymentTool extends AtlasLocalToolBase {

src/tools/atlasLocal/read/listDeployments.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import type { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
22
import { AtlasLocalToolBase } from "../atlasLocalTool.js";
33
import type { OperationType } from "../../tool.js";
44
import { formatUntrustedData } from "../../tool.js";
5-
import type { Deployment } from "@mongodb-js-preview/atlas-local";
6-
import type { Client } from "@mongodb-js-preview/atlas-local";
5+
import type { Deployment } from "@mongodb-js/atlas-local";
6+
import type { Client } from "@mongodb-js/atlas-local";
77

88
export class ListDeploymentsTool extends AtlasLocalToolBase {
99
public name = "atlas-local-list-deployments";

0 commit comments

Comments
 (0)