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";

src/tools/atlas/tools.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import { ListClustersTool } from "./listClusters.js";
2-
import { ListProjectsTool } from "./listProjects.js";
3-
import { InspectClusterTool } from "./inspectCluster.js";
4-
import { CreateFreeClusterTool } from "./createFreeCluster.js";
5-
import { CreateAccessListTool } from "./createAccessList.js";
6-
import { InspectAccessListTool } from "./inspectAccessList.js";
7-
import { ListDBUsersTool } from "./listDBUsers.js";
8-
import { CreateDBUserTool } from "./createDBUser.js";
9-
import { CreateProjectTool } from "./createProject.js";
10-
import { ListOrganizationsTool } from "./listOrgs.js";
1+
import { ListClustersTool } from "./read/listClusters.js";
2+
import { ListProjectsTool } from "./read/listProjects.js";
3+
import { InspectClusterTool } from "./read/inspectCluster.js";
4+
import { CreateFreeClusterTool } from "./create/createFreeCluster.js";
5+
import { CreateAccessListTool } from "./create/createAccessList.js";
6+
import { InspectAccessListTool } from "./read/inspectAccessList.js";
7+
import { ListDBUsersTool } from "./read/listDBUsers.js";
8+
import { CreateDBUserTool } from "./create/createDBUser.js";
9+
import { CreateProjectTool } from "./create/createProject.js";
10+
import { ListOrganizationsTool } from "./read/listOrgs.js";
1111

1212
export const AtlasTools = [
1313
ListClustersTool,

0 commit comments

Comments
 (0)