Skip to content

Add support for remote MCP servers via npx snippet - #38122

Closed
clicktodev wants to merge 2 commits into
zed-industries:mainfrom
clicktodev:remote-mcp-command-template
Closed

Add support for remote MCP servers via npx snippet#38122
clicktodev wants to merge 2 commits into
zed-industries:mainfrom
clicktodev:remote-mcp-command-template

Conversation

@clicktodev

@clicktodev clicktodev commented Sep 13, 2025

Copy link
Copy Markdown
Contributor

Closes #37770

Release Notes:

  • Introduce functionality to add remote mcp servers through the UI via an example snippet

Introduce server type selection and template switching for context server configuration. This update allows users to choose between local and remote server templates, improving flexibility in server setup. The editor content updates dynamically based on the selected template type.

btw i can confirm that the server command is run twice when adding a server causing 2 browser auth tabs to open (notice in the video below how 2 tabs are opened after adding the server entry) which is different from the behavior in the latest Zed 0.203.5 release which correctly only opens one auth tab

image
Screen.Recording.2025-09-14.at.1.07.42.AM.mp4

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Sep 13, 2025
@clicktodev
clicktodev marked this pull request as ready for review September 13, 2025 23:13
@clicktodev clicktodev changed the title Enhance context server configuration with server type selection and template switching Add support for remote MCP servers via npx snippet Sep 13, 2025
"command": "npx",
/// The arguments to pass to the MCP server
"args": [
"mcp-remote",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using this doesn't seem right IMO. We should either add our own http transport or simply use the rust-sdk official lib.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the benefit here is it allows people to use any transport if needed as sometimes you'll need special behaviour baked into a custom transport layer

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah also the main purpose of this is to guide users into a quick workaround for remote servers until built-in support is added.

@clicktodev

clicktodev commented Sep 15, 2025

Copy link
Copy Markdown
Contributor Author

@MrSubidubi MrSubidubi added the area:ai Related to Agent Panel, Edit Prediction, Copilot, or other AI features label Sep 17, 2025
@benbrandt

Copy link
Copy Markdown
Member

Same comment: going to close this PR in favor of #39021

Thanks for taking a stab at this! we'd rather take the approach of communicating with the remote servers natively, rather than call out to another binary though.

@benbrandt benbrandt closed this Sep 29, 2025
@clicktodev
clicktodev deleted the remote-mcp-command-template branch September 29, 2025 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ai Related to Agent Panel, Edit Prediction, Copilot, or other AI features cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MCP: Support Remote MCPs via URL

5 participants