You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/tools/__snapshots__/tool-naming-convention.test.ts.snap
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ exports[`Tool Naming Convention should maintain consistent tool list (snapshot t
24
24
},
25
25
{
26
26
"className": "CreateTokenTool",
27
-
"description": "Create a new Mapbox access token with specified scopes and optional URL restrictions. Token type (public/secret) is automatically determined by scopes: PUBLIC scopes (styles:tiles, styles:read, fonts:read, datasets:read, vision:read) create public tokens; SECRET scopes create secret tokens that are only visible once upon creation.",
27
+
"description": "Create a new Mapbox public access token with specified scopes and optional URL restrictions.",
note: z.string().describe('Description of the token'),
48
14
scopes: z
49
-
.array(z.enum(ALL_SCOPES))
15
+
.array(z.enum(SCOPES))
50
16
.describe(
51
-
'Array of scopes/permissions for the token. PUBLIC scopes (styles:tiles, styles:read, fonts:read, datasets:read, vision:read) create a public token. SECRET scopes (all others) create a secret token. If any secret scope is included, the entire token becomes secret and will only be visible once upon creation.'
17
+
'Array of scopes/permissions for the public token. Valid scopes: styles:tiles, styles:read, fonts:read, datasets:read, vision:read.'
it('should have correct name and description',()=>{
31
31
expect(tool.name).toBe('create_token_tool');
32
32
expect(tool.description).toBe(
33
-
'Create a new Mapbox access token with specified scopes and optional URL restrictions. Token type (public/secret) is automatically determined by scopes: PUBLIC scopes (styles:tiles, styles:read, fonts:read, datasets:read, vision:read) create public tokens; SECRET scopes create secret tokens that are only visible once upon creation.'
33
+
'Create a new Mapbox public access token with specified scopes and optional URL restrictions.'
'Create a new Mapbox access token with specified scopes and optional URL restrictions. Token type (public/secret) is automatically determined by scopes: PUBLIC scopes (styles:tiles, styles:read, fonts:read, datasets:read, vision:read) create public tokens; SECRET scopes create secret tokens that are only visible once upon creation.';
12
+
'Create a new Mapbox public access token with specified scopes and optional URL restrictions.';
14
13
15
14
constructor(){
16
15
super({inputSchema: CreateTokenSchema});
@@ -24,26 +23,9 @@ export class CreateTokenTool extends MapboxApiBasedTool<
24
23
25
24
this.log(
26
25
'info',
27
-
`CreateTokenTool: Starting token creation with note: "${input.note}", scopes: ${JSON.stringify(input.scopes)}`
26
+
`CreateTokenTool: Creating public token with note: "${input.note}", scopes: ${JSON.stringify(input.scopes)}`
0 commit comments