Skip to content

Commit 946f6bd

Browse files
committed
feat(cli): Add Figma tool support in DoCommandHandler and update Tool enum
1 parent 689963e commit 946f6bd

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/Cli/src/Commands/DoCommandHandler.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,17 @@ public async Task<int> InvokeAsync(InvocationContext context)
141141
["arguments"] = $"run -i --rm -e SLACK_BOT_TOKEN={Environment.GetEnvironmentVariable("SLACK_BOT_TOKEN")} -e SLACK_TEAM_ID={Environment.GetEnvironmentVariable("SLACK_TEAM_ID")} -e SLACK_CHANNEL_IDS={Environment.GetEnvironmentVariable("SLACK_CHANNEL_IDS")} mcp/slack",
142142
},
143143
},
144+
Tool.Figma => new McpServerConfig
145+
{
146+
Id = Tool.Figma.ToString(),
147+
Name = Tool.Figma.ToString(),
148+
TransportType = TransportTypes.StdIo,
149+
TransportOptions = new Dictionary<string, string>
150+
{
151+
["command"] = "npx",
152+
["arguments"] = $"-y figma-developer-mcp --figma-api-key={Environment.GetEnvironmentVariable("FIGMA_API_KEY")} --stdio",
153+
},
154+
},
144155
_ => throw new ArgumentException($"Unknown tool: {tool}"),
145156
},
146157
new McpClientOptions

src/Cli/src/Models/Tool.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ internal enum Tool
99
Puppeteer,
1010
SequentialThinking,
1111
Slack,
12+
Figma,
1213
}

0 commit comments

Comments
 (0)