Skip to content

Commit cb2b329

Browse files
author
Lasim
committed
fix(backend): update token scopes to include categories read access
1 parent 8db15b8 commit cb2b329

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

services/backend/src/services/oauth/tokenService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ export class TokenService {
346346
.where(eq(schema.oauthRefreshTokens.id, validRefreshToken.id));
347347

348348
// Generate new tokens
349-
const scope = 'mcp:read account:read user:read teams:read offline_access';
349+
const scope = 'mcp:read mcp:categories:read account:read user:read teams:read offline_access';
350350
const accessToken = await this.generateAccessToken(
351351
validRefreshToken.user_id,
352352
scope,

services/gateway/src/utils/auth-config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export const DEFAULT_AUTH_CONFIG: AuthConfig = {
2323
redirectUri: 'http://localhost:8976/oauth/callback',
2424
scopes: [
2525
'mcp:read',
26+
'mcp:categories:read',
2627
'account:read',
2728
'user:read',
2829
'teams:read',
@@ -52,6 +53,7 @@ export function buildAuthConfig(baseUrl: string): AuthConfig {
5253
*/
5354
export const SCOPE_DESCRIPTIONS: Record<string, string> = {
5455
'mcp:read': 'Access your MCP server installations and configurations',
56+
'mcp:categories:read': 'Read MCP server categories and organization',
5557
'account:read': 'Read your account information',
5658
'user:read': 'Read your user profile information',
5759
'teams:read': 'Read your team memberships and information',

0 commit comments

Comments
 (0)