@@ -2,11 +2,7 @@ import type { Integration } from '../../lib/constants';
22import { traceStep } from '../../telemetry' ;
33import { analytics } from '../../utils/analytics' ;
44import clack from '../../utils/clack' ;
5- import {
6- abort ,
7- abortIfCancelled ,
8- askForCloudRegion ,
9- } from '../../utils/clack-utils' ;
5+ import { abort , abortIfCancelled } from '../../utils/clack-utils' ;
106import { MCPClient } from './MCPClient' ;
117import { CursorMCPClient } from './clients/cursor' ;
128import { ClaudeMCPClient } from './clients/claude' ;
@@ -28,17 +24,6 @@ export const addMCPServerToClientsStep = async ({
2824 cloudRegion ?: CloudRegion ;
2925 askPermission ?: boolean ;
3026} ) : Promise < string [ ] > => {
31- const region = cloudRegion ?? ( await askForCloudRegion ( ) ) ;
32-
33- if ( region === 'eu' ) {
34- if ( ! askPermission ) {
35- await abort (
36- 'The MCP server is not available in the EU region. It is coming soon!' ,
37- ) ;
38- }
39- return [ ] ;
40- }
41-
4227 const hasPermission = askPermission
4328 ? await abortIfCancelled (
4429 clack . select ( {
@@ -98,7 +83,7 @@ export const addMCPServerToClientsStep = async ({
9883 clack . log . info ( 'Removed existing installation.' ) ;
9984 }
10085
101- const personalApiKey = await getPersonalApiKey ( { cloudRegion : region } ) ;
86+ const personalApiKey = await getPersonalApiKey ( { region : cloudRegion } ) ;
10287
10388 await traceStep ( 'adding mcp servers' , async ( ) => {
10489 await addMCPServer ( clients , personalApiKey ) ;
0 commit comments