This commit is contained in:
@@ -43,6 +43,7 @@ export function createAdminRouter(deps: McpApiDeps): Router {
|
||||
oauthClientSecret: string;
|
||||
oauthScopes: string;
|
||||
staticToken: string;
|
||||
authHeaderName: string;
|
||||
enabled: boolean;
|
||||
}>;
|
||||
|
||||
@@ -83,6 +84,7 @@ export function createAdminRouter(deps: McpApiDeps): Router {
|
||||
oauthClientSecret: body.oauthClientSecret,
|
||||
oauthScopes: body.oauthScopes ?? null,
|
||||
staticToken: body.staticToken,
|
||||
authHeaderName: body.authHeaderName ?? null,
|
||||
enabled: body.enabled !== false,
|
||||
createdBy: adminId,
|
||||
});
|
||||
@@ -263,6 +265,7 @@ export function createUserServersRouter(deps: McpApiDeps): Router {
|
||||
oauthClientSecret: string;
|
||||
oauthScopes: string;
|
||||
staticToken: string;
|
||||
authHeaderName: string;
|
||||
enabled: boolean;
|
||||
}>;
|
||||
|
||||
@@ -309,6 +312,7 @@ export function createUserServersRouter(deps: McpApiDeps): Router {
|
||||
oauthClientSecret: body.oauthClientSecret,
|
||||
oauthScopes: body.oauthScopes ?? null,
|
||||
staticToken: body.staticToken,
|
||||
authHeaderName: body.authHeaderName ?? null,
|
||||
enabled: body.enabled !== false,
|
||||
createdBy: userId,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user