44 * Defines all supported MCP clients and their configuration formats
55 */
66
7+ import { BRANDING } from '@/shared/branding'
8+
79export type InstallMethod = 'deeplink' | 'cli' | 'auto-config' | 'manual' | 'coming-soon'
810
911export interface McpClient {
@@ -26,17 +28,17 @@ export const MCP_CLIENTS: Record<string, McpClient> = {
2628 id : 'cursor' ,
2729 displayName : 'Cursor' ,
2830 configFormat : 'deeplink' ,
29- serverName : 'TalkToFigmaDesktop' ,
31+ serverName : BRANDING . mcpServerName ,
3032 installMethod : 'deeplink' ,
3133 description : 'Use Cursor to install the MCP server' ,
32- deepLink : ' cursor://anysphere.cursor-deeplink/mcp/install?name=TalkToFigmaDesktop &config=' +
34+ deepLink : ` cursor://anysphere.cursor-deeplink/mcp/install?name=${ BRANDING . mcpServerName } &config=` +
3335 encodeURIComponent ( JSON . stringify ( {
3436 command : 'node' ,
3537 args : [ '<STDIO_SERVER_PATH>' ] // Will be replaced with actual path
3638 } ) ) ,
3739 config : {
3840 mcpServers : {
39- TalkToFigmaDesktop : {
41+ [ BRANDING . mcpServerName ] : {
4042 command : 'node' ,
4143 args : [ '<STDIO_SERVER_PATH>' ] // Replace with actual path to mcp-stdio-server.js
4244 }
@@ -47,18 +49,18 @@ export const MCP_CLIENTS: Record<string, McpClient> = {
4749 'The server path (~/.talktofigma/server) is automatically configured' ,
4850 'Cursor will open and show the MCP configuration dialog' ,
4951 'Click "Connect" to complete the installation' ,
50- 'TalkToFigmaDesktop will be added to your MCP servers'
52+ ` ${ BRANDING . mcpServerName } will be added to your MCP servers`
5153 ]
5254 } ,
5355
5456 claudeCode : {
5557 id : 'claude-code' ,
5658 displayName : 'Claude Code' ,
5759 configFormat : 'cli' ,
58- serverName : 'TalkToFigmaDesktop' ,
60+ serverName : BRANDING . mcpServerName ,
5961 installMethod : 'cli' ,
6062 description : 'Use Claude Code to install the MCP server' ,
61- cliCommand : ' claude mcp add TalkToFigmaDesktop node <STDIO_SERVER_PATH>' ,
63+ cliCommand : ` claude mcp add ${ BRANDING . mcpServerName } node <STDIO_SERVER_PATH>` ,
6264 instructions : [
6365 'Copy the command above (server path is pre-filled)' ,
6466 'Open your terminal' ,
@@ -72,16 +74,16 @@ export const MCP_CLIENTS: Record<string, McpClient> = {
7274 id : 'codex' ,
7375 displayName : 'Codex CLI' ,
7476 configFormat : 'cli' ,
75- serverName : 'TalkToFigmaDesktop' ,
77+ serverName : BRANDING . mcpServerName ,
7678 installMethod : 'cli' ,
7779 description : 'Use Codex CLI to install the MCP server' ,
78- cliCommand : ' codex mcp add TalkToFigmaDesktop -- node <STDIO_SERVER_PATH>' ,
80+ cliCommand : ` codex mcp add ${ BRANDING . mcpServerName } -- node <STDIO_SERVER_PATH>` ,
7981 instructions : [
8082 'Copy the command above (server path is pre-filled)' ,
8183 'Open your terminal' ,
8284 'Paste and run the command' ,
83- ' Use codex mcp list to verify TalkToFigmaDesktop is enabled' ,
84- ' If a malformed entry exists, run codex mcp remove TalkToFigmaDesktop and add it again'
85+ ` Use codex mcp list to verify ${ BRANDING . mcpServerName } is enabled` ,
86+ ` If a malformed entry exists, run codex mcp remove ${ BRANDING . mcpServerName } and add it again`
8587 ]
8688 } ,
8789
@@ -90,12 +92,12 @@ export const MCP_CLIENTS: Record<string, McpClient> = {
9092 displayName : 'VS Code' ,
9193 configPath : '~/.vscode/mcp.json' , // Approximate - may vary
9294 configFormat : 'json' ,
93- serverName : 'TalkToFigmaDesktop' ,
95+ serverName : BRANDING . mcpServerName ,
9496 installMethod : 'manual' ,
9597 description : 'Use VS Code to install the MCP server' ,
9698 config : {
9799 mcpServers : {
98- TalkToFigmaDesktop : {
100+ [ BRANDING . mcpServerName ] : {
99101 command : 'node' ,
100102 args : [ '<STDIO_SERVER_PATH>' ] // Replace with actual path to mcp-stdio-server.js
101103 }
@@ -115,12 +117,12 @@ export const MCP_CLIENTS: Record<string, McpClient> = {
115117 displayName : 'Antigravity' ,
116118 configPath : '~/Library/Application Support/Antigravity/mcp_config.json' , // macOS
117119 configFormat : 'json' ,
118- serverName : 'TalkToFigmaDesktop' ,
120+ serverName : BRANDING . mcpServerName ,
119121 installMethod : 'manual' ,
120122 description : 'Google Antigravity AI editor' ,
121123 config : {
122124 mcpServers : {
123- TalkToFigmaDesktop : {
125+ [ BRANDING . mcpServerName ] : {
124126 command : 'node' ,
125127 args : [ '<STDIO_SERVER_PATH>' ] // Replace with actual path to mcp-stdio-server.js
126128 }
@@ -139,7 +141,7 @@ export const MCP_CLIENTS: Record<string, McpClient> = {
139141 id : 'coming-soon' ,
140142 displayName : 'Other Clients' ,
141143 configFormat : 'unknown' ,
142- serverName : 'TalkToFigmaDesktop' ,
144+ serverName : BRANDING . mcpServerName ,
143145 installMethod : 'coming-soon' ,
144146 description : 'Support for additional MCP clients coming soon' ,
145147 instructions : [
@@ -201,7 +203,7 @@ export function getCursorDeepLink(): string {
201203 args : [ '<STDIO_SERVER_PATH>' ]
202204 }
203205
204- return `cursor://anysphere.cursor-deeplink/mcp/install?name=TalkToFigmaDesktop &config=${ encodeURIComponent ( JSON . stringify ( config ) ) } `
206+ return `cursor://anysphere.cursor-deeplink/mcp/install?name=${ BRANDING . mcpServerName } &config=${ encodeURIComponent ( JSON . stringify ( config ) ) } `
205207}
206208
207209/**
0 commit comments