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";
2
2
import { CallToolResult } from "@modelcontextprotocol/sdk/types.js" ;
3
3
import { AtlasToolBase } from "./atlasTool.js" ;
4
4
import { ToolArgs } from "../tool.js" ;
5
- import { CloudDatabaseUser , DatabaseUserRole , UserScope } from "../../common/atlas/openapi.js" ;
5
+ import { CloudDatabaseUser , DatabaseUserRole } from "../../common/atlas/openapi.js" ;
6
6
7
7
export class CreateDBUserTool extends AtlasToolBase {
8
8
protected name = "atlas-create-db-user" ;
@@ -60,19 +60,3 @@ export class CreateDBUserTool extends AtlasToolBase {
60
60
} ;
61
61
}
62
62
}
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 1
1
import { z } from "zod" ;
2
- import { config } from "../../config.js" ;
3
2
import { CallToolResult } from "@modelcontextprotocol/sdk/types.js" ;
4
3
import { AtlasToolBase } from "./atlasTool.js" ;
5
4
import { ToolArgs } from "../tool.js" ;
You can’t perform that action at this time.
0 commit comments