Skip to content

Commit a6f9ce2

Browse files
authored
chore: follow tools structure in atlas tools (#128)
1 parent 084012f commit a6f9ce2

File tree

11 files changed

+37
-37
lines changed

11 files changed

+37
-37
lines changed

src/tools/atlas/createAccessList.ts renamed to src/tools/atlas/create/createAccessList.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { z } from "zod";
22
import { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
3-
import { AtlasToolBase } from "./atlasTool.js";
4-
import { ToolArgs, OperationType } from "../tool.js";
3+
import { AtlasToolBase } from "../atlasTool.js";
4+
import { ToolArgs, OperationType } from "../../tool.js";
55

66
const DEFAULT_COMMENT = "Added by Atlas MCP";
77

src/tools/atlas/createDBUser.ts renamed to src/tools/atlas/create/createDBUser.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { z } from "zod";
22
import { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
3-
import { AtlasToolBase } from "./atlasTool.js";
4-
import { ToolArgs, OperationType } from "../tool.js";
5-
import { CloudDatabaseUser, DatabaseUserRole } from "../../common/atlas/openapi.js";
3+
import { AtlasToolBase } from "../atlasTool.js";
4+
import { ToolArgs, OperationType } from "../../tool.js";
5+
import { CloudDatabaseUser, DatabaseUserRole } from "../../../common/atlas/openapi.js";
66

77
export class CreateDBUserTool extends AtlasToolBase {
88
protected name = "atlas-create-db-user";

src/tools/atlas/createFreeCluster.ts renamed to src/tools/atlas/create/createFreeCluster.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { z } from "zod";
22
import { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
3-
import { AtlasToolBase } from "./atlasTool.js";
4-
import { ToolArgs, OperationType } from "../tool.js";
5-
import { ClusterDescription20240805 } from "../../common/atlas/openapi.js";
3+
import { AtlasToolBase } from "../atlasTool.js";
4+
import { ToolArgs, OperationType } from "../../tool.js";
5+
import { ClusterDescription20240805 } from "../../../common/atlas/openapi.js";
66

77
export class CreateFreeClusterTool extends AtlasToolBase {
88
protected name = "atlas-create-free-cluster";

src/tools/atlas/createProject.ts renamed to src/tools/atlas/create/createProject.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { z } from "zod";
22
import { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
3-
import { AtlasToolBase } from "./atlasTool.js";
4-
import { ToolArgs, OperationType } from "../tool.js";
5-
import { Group } from "../../common/atlas/openapi.js";
3+
import { AtlasToolBase } from "../atlasTool.js";
4+
import { ToolArgs, OperationType } from "../../tool.js";
5+
import { Group } from "../../../common/atlas/openapi.js";
66

77
export class CreateProjectTool extends AtlasToolBase {
88
protected name = "atlas-create-project";

src/tools/atlas/inspectAccessList.ts renamed to src/tools/atlas/read/inspectAccessList.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { z } from "zod";
22
import { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
3-
import { AtlasToolBase } from "./atlasTool.js";
4-
import { ToolArgs, OperationType } from "../tool.js";
3+
import { AtlasToolBase } from "../atlasTool.js";
4+
import { ToolArgs, OperationType } from "../../tool.js";
55

66
export class InspectAccessListTool extends AtlasToolBase {
77
protected name = "atlas-inspect-access-list";

src/tools/atlas/inspectCluster.ts renamed to src/tools/atlas/read/inspectCluster.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { z } from "zod";
22
import { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
3-
import { AtlasToolBase } from "./atlasTool.js";
4-
import { ToolArgs, OperationType } from "../tool.js";
5-
import { ClusterDescription20240805 } from "../../common/atlas/openapi.js";
3+
import { AtlasToolBase } from "../atlasTool.js";
4+
import { ToolArgs, OperationType } from "../../tool.js";
5+
import { ClusterDescription20240805 } from "../../../common/atlas/openapi.js";
66

77
export class InspectClusterTool extends AtlasToolBase {
88
protected name = "atlas-inspect-cluster";

src/tools/atlas/listClusters.ts renamed to src/tools/atlas/read/listClusters.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { z } from "zod";
22
import { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
3-
import { AtlasToolBase } from "./atlasTool.js";
4-
import { ToolArgs, OperationType } from "../tool.js";
5-
import { PaginatedClusterDescription20240805, PaginatedOrgGroupView, Group } from "../../common/atlas/openapi.js";
3+
import { AtlasToolBase } from "../atlasTool.js";
4+
import { ToolArgs, OperationType } from "../../tool.js";
5+
import { PaginatedClusterDescription20240805, PaginatedOrgGroupView, Group } from "../../../common/atlas/openapi.js";
66

77
export class ListClustersTool extends AtlasToolBase {
88
protected name = "atlas-list-clusters";

src/tools/atlas/listDBUsers.ts renamed to src/tools/atlas/read/listDBUsers.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { z } from "zod";
22
import { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
3-
import { AtlasToolBase } from "./atlasTool.js";
4-
import { ToolArgs, OperationType } from "../tool.js";
5-
import { DatabaseUserRole, UserScope } from "../../common/atlas/openapi.js";
3+
import { AtlasToolBase } from "../atlasTool.js";
4+
import { ToolArgs, OperationType } from "../../tool.js";
5+
import { DatabaseUserRole, UserScope } from "../../../common/atlas/openapi.js";
66

77
export class ListDBUsersTool extends AtlasToolBase {
88
protected name = "atlas-list-db-users";

src/tools/atlas/listOrgs.ts renamed to src/tools/atlas/read/listOrgs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
2-
import { AtlasToolBase } from "./atlasTool.js";
3-
import { OperationType } from "../tool.js";
2+
import { AtlasToolBase } from "../atlasTool.js";
3+
import { OperationType } from "../../tool.js";
44

55
export class ListOrganizationsTool extends AtlasToolBase {
66
protected name = "atlas-list-orgs";

src/tools/atlas/listProjects.ts renamed to src/tools/atlas/read/listProjects.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
2-
import { AtlasToolBase } from "./atlasTool.js";
3-
import { OperationType } from "../tool.js";
2+
import { AtlasToolBase } from "../atlasTool.js";
3+
import { OperationType } from "../../tool.js";
44
import { z } from "zod";
5-
import { ToolArgs } from "../tool.js";
5+
import { ToolArgs } from "../../tool.js";
66

77
export class ListProjectsTool extends AtlasToolBase {
88
protected name = "atlas-list-projects";

0 commit comments

Comments
 (0)