From e4e347a8a4f9f26714275be9cbbc19fc9829503e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Barreiro?= <52393857+BarreiroT@users.noreply.github.com> Date: Fri, 7 Nov 2025 19:33:07 -0300 Subject: [PATCH] Add Remote Server MCPs to the remote config (#7357) --- src/shared/remote-config/schema.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/shared/remote-config/schema.ts b/src/shared/remote-config/schema.ts index 7f014c17..0d1e930d 100644 --- a/src/shared/remote-config/schema.ts +++ b/src/shared/remote-config/schema.ts @@ -113,6 +113,13 @@ export const AllowedMCPServerSchema = z.object({ id: z.string(), }) +export const RemoteMCPServerSchema = z.object({ + // The name of the MCP server + name: z.string(), + // The URL of the MCP server + url: z.string(), +}) + // Settings for a global cline rules or workflow file. export const GlobalInstructionsFileSchema = z.object({ // When this is enabled, the user cannot turn off this rule or workflow. @@ -137,6 +144,7 @@ export const RemoteConfigSchema = z.object({ // MCP settings mcpMarketplaceEnabled: z.boolean().optional(), allowedMCPServers: z.array(AllowedMCPServerSchema).optional(), + remoteMCPServers: z.array(RemoteMCPServerSchema).optional(), // If the user is allowed to enable YOLO mode. Note this is different from the extension setting // yoloModeEnabled, because we do not want to force YOLO enabled for the user. @@ -167,6 +175,7 @@ export const RemoteConfigSchema = z.object({ // Type inference from schemas export type RemoteConfig = z.infer export type MCPServer = z.infer +export type RemoteMCPServer = z.infer export type GlobalInstructionsFile = z.infer export type ProviderSettings = z.infer