File tree Expand file tree Collapse file tree 2 files changed +1
-18
lines changed Expand file tree Collapse file tree 2 files changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { z } from "zod";
22import { CallToolResult } from "@modelcontextprotocol/sdk/types.js" ;
33import { AtlasToolBase } from "./atlasTool.js" ;
44import { ToolArgs } from "../tool.js" ;
5- import { CloudDatabaseUser , DatabaseUserRole , UserScope } from "../../common/atlas/openapi.js" ;
5+ import { CloudDatabaseUser , DatabaseUserRole } from "../../common/atlas/openapi.js" ;
66
77export class CreateDBUserTool extends AtlasToolBase {
88 protected name = "atlas-create-db-user" ;
@@ -60,19 +60,3 @@ export class CreateDBUserTool extends AtlasToolBase {
6060 } ;
6161 }
6262}
63-
64- function formatRoles ( roles ?: DatabaseUserRole [ ] ) {
65- if ( ! roles ?. length ) {
66- return "N/A" ;
67- }
68- return roles
69- . map ( ( role ) => `${ role . roleName } @${ role . databaseName } ${ role . collectionName ? `:${ role . collectionName } ` : "" } ` )
70- . join ( ", " ) ;
71- }
72-
73- function formatScopes ( scopes ?: UserScope [ ] ) {
74- if ( ! scopes ?. length ) {
75- return "All" ;
76- }
77- return scopes . map ( ( scope ) => `${ scope . type } :${ scope . name } ` ) . join ( ", " ) ;
78- }
Original file line number Diff line number Diff line change 11import { z } from "zod" ;
2- import { config } from "../../config.js" ;
32import { CallToolResult } from "@modelcontextprotocol/sdk/types.js" ;
43import { AtlasToolBase } from "./atlasTool.js" ;
54import { ToolArgs } from "../tool.js" ;
You can’t perform that action at this time.
0 commit comments