Add custom MCP server management for Studio Code - #3288
Draft
chubes4 wants to merge 2 commits into
Draft
Conversation
This was referenced Apr 30, 2026
Derive rig lease resources from declared symlinks, services, and components
Extra-Chill/homeboy#1983
Closed
chubes4
force-pushed
the
feat-studio-code-custom-mcps
branch
from
April 30, 2026 17:47
7565d55 to
b16f0fb
Compare
Collaborator
📊 Performance Test ResultsComparing e3b4dc7 vs trunk app-size
site-editor
site-startup
Results are median values from multiple test runs. Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff) |
chubes4
force-pushed
the
feat-studio-code-custom-mcps
branch
from
June 23, 2026 12:32
b16f0fb to
3d02341
Compare
chubes4
force-pushed
the
feat-studio-code-custom-mcps
branch
from
June 23, 2026 12:50
3d02341 to
e3b4dc7
Compare
Contributor
Author
|
@youknowriad if we add support for any custom MCP server, then we can easily test it with Figma. What do you think, instead of hardcoding Figma MCP like #2781? |
Contributor
|
I'm personally ok with custom MCP support, the only thing I would note though is that we should avoid surfacing this extra complexity (configuring MCPs) by default to users, it should some advanced flow. |
Contributor
|
But I think Figma should be first party support ideally. Figma to WordPress is a common flow. |
Contributor
|
Marking as draft until conflicts are fixed. |
wojtekn
marked this pull request as draft
July 14, 2026 07:46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
studio code mcpcommands to manage user-defined MCP servers for Studio Code.getStudioCodeMcpConfigPath()using the standardmcpServersshape.stdio,http, andsseserver definitions while reserving Studio's built-instudioMCP server name.mcp__<server>__<tool>custom tools.Behavior
Users can configure generic MCP servers without Studio hardcoding a single provider. This covers Figma and other MCP servers through the same path:
At agent startup, Studio Code reads the config, connects to each custom MCP server, lists its tools, and registers them with PI alongside Studio's built-in tools. A Figma server tool such as
get_design_contextis exposed to the agent asmcp__figma__get_design_context.The command validates transport-specific requirements and reports clean CLI errors for invalid definitions instead of surfacing raw stack traces.
Tests
npx vitest run apps/cli/ai/tests/mcp-config.test.ts apps/cli/commands/ai/tests/mcp.test.ts apps/cli/ai/tests/pi-runtime.test.ts --config apps/cli/vitest.config.tsnpx tsc -p apps/cli/tsconfig.json --noEmitnpx eslint apps/cli/ai/mcp-config.ts apps/cli/ai/mcp-client-tools.ts apps/cli/ai/runtimes/pi/index.ts apps/cli/commands/ai/mcp.ts apps/cli/ai/tests/mcp-config.test.ts apps/cli/commands/ai/tests/mcp.test.ts apps/cli/ai/tests/pi-runtime.test.ts apps/cli/index.tsCloses #3279.
AI assistance