Make account level MCPs generally available (#8493)
Remove @continue.dev filter for account level MCPs - Made remote sessions (account-level MCPs) generally available to all authenticated users - Removed email domain restriction from shouldEnableRemoteSessions() and listRemoteSessions() in ControlPlaneClient - Removed email domain restriction from getRemoteSessions() in CLI session management Generated with [Continue](https://continue.dev) Co-authored-by: continue[bot] <continue[bot]@users.noreply.github.com> Co-authored-by: Continue <noreply@continue.dev> Co-authored-by: Nate <nate@continue.dev>
This commit is contained in:
@@ -352,7 +352,6 @@ export class ControlPlaneClient {
|
||||
|
||||
/**
|
||||
* Check if remote sessions should be enabled based on feature flags
|
||||
* Requires: PostHog feature flag AND @continue.dev email
|
||||
*/
|
||||
public async shouldEnableRemoteSessions(): Promise<boolean> {
|
||||
// Check if user is signed in
|
||||
@@ -360,17 +359,13 @@ export class ControlPlaneClient {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Check if user has @continue.dev email
|
||||
try {
|
||||
const sessionInfo = await this.sessionInfoPromise;
|
||||
if (isOnPremSession(sessionInfo) || !sessionInfo) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const hubSession = sessionInfo as HubSessionInfo;
|
||||
const email = hubSession.account?.id;
|
||||
|
||||
return email ? email.includes("@continue.dev") : false;
|
||||
return true;
|
||||
} catch (e) {
|
||||
Logger.error(e, {
|
||||
context: "control_plane_check_remote_sessions_enabled",
|
||||
@@ -388,7 +383,6 @@ export class ControlPlaneClient {
|
||||
|
||||
/**
|
||||
* Fetch remote agents/sessions from the control plane
|
||||
* Currently restricted to @continue.dev emails for internal use
|
||||
*/
|
||||
public async listRemoteSessions(): Promise<RemoteSessionMetadata[]> {
|
||||
if (!(await this.isSignedIn())) {
|
||||
@@ -396,8 +390,6 @@ export class ControlPlaneClient {
|
||||
}
|
||||
|
||||
try {
|
||||
// Note: This endpoint is currently restricted to internal @continue.dev users
|
||||
// In the future, this may be expanded to support broader remote session access
|
||||
const resp = await this.requestAndHandleError("agents/devboxes", {
|
||||
method: "GET",
|
||||
});
|
||||
|
||||
@@ -337,11 +337,7 @@ export async function getRemoteSessions(): Promise<ExtendedSessionMetadata[]> {
|
||||
const authConfig = loadAuthConfig();
|
||||
const accessToken = getAccessToken(authConfig);
|
||||
|
||||
if (
|
||||
!accessToken ||
|
||||
!isAuthenticatedConfig(authConfig) ||
|
||||
!authConfig.userEmail.endsWith("@continue.dev")
|
||||
) {
|
||||
if (!accessToken || !isAuthenticatedConfig(authConfig)) {
|
||||
return [];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user