Adding MCP Remote connections with advanced write tools so remote agent can access and write directly!#7
Open
bharat2808 wants to merge 15 commits intoCodingWithCalvin:mainfrom
Open
Adding MCP Remote connections with advanced write tools so remote agent can access and write directly!#7bharat2808 wants to merge 15 commits intoCodingWithCalvin:mainfrom
bharat2808 wants to merge 15 commits intoCodingWithCalvin:mainfrom
Conversation
- Add `execute_command` and `get_terminal_output` (gated by `enableUnsafeTools`). - Add debug session tools: `list_debug_sessions`, `start_debug_session`, `stop_debug_session`, `restart_debug_session`. - Add editor/workspace helpers: `focus_editor`, `text_editor`, `list_directory`, `preview_url`. - Add VS Code command tools: `list_vscode_commands`, `execute_vscode_command` (gated). - Add `codingwithcalvin.mcp.enableUnsafeTools` setting and tests.
Fixed tools
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.
This pull request introduces significant enhancements to the VS Code MCP extension, focusing on improved security for remote/tunnel access, expanded configuration options, and a richer set of commands and documentation. Key updates include new settings for secure remote connections, a broader and more customizable toolset, new commands for managing tool exposure, and detailed documentation for advanced usage scenarios such as ngrok with Google OAuth.
Security and Remote Access Enhancements:
package.jsonand configuration logic to support secure remote access, includingallowRemoteConnections,authToken, andenableUnsafeTools. These settings allow the extension to safely expose the MCP server over tunnels like ngrok, with authentication enforced via bearer tokens. [1] [2]README.md) with detailed instructions for exposing the MCP endpoint securely to ChatGPT Web using ngrok and Google OAuth, including example ngrok traffic policies and best practices for authentication. [1] [2]Tool Management and Customization:
MCP Server: Inspect vscode.lm.tools,MCP Server: Configure VS Code Tools…, andMCP Server: Configure Built-in Tools…. These commands allow fine-grained control over which tools are available through the MCP server. [1] [2]Developer Experience Improvements:
MCP Server: Connection Infoto quickly view and copy local and ngrok URLs for the MCP server, with automatic detection of ngrok public URLs and dashboard access. [1] [2] [3]ensureDocumentOpento provide more informative error messages when opening documents fails.Internal Refactoring and API Usage:
findTextInFilesAPI for faster workspace text search when available, controlled by a new setting. [1] [2] [3]These changes collectively make the extension more secure, flexible, and user-friendly, particularly for advanced scenarios involving remote access and integration with external clients.
References:
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]