Skip to content

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
bharat2808:main
Open

Adding MCP Remote connections with advanced write tools so remote agent can access and write directly!#7
bharat2808 wants to merge 15 commits intoCodingWithCalvin:mainfrom
bharat2808:main

Conversation

@bharat2808
Copy link

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:

  • Added new settings to package.json and configuration logic to support secure remote access, including allowRemoteConnections, authToken, and enableUnsafeTools. These settings allow the extension to safely expose the MCP server over tunnels like ngrok, with authentication enforced via bearer tokens. [1] [2]
  • Updated the documentation (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:

  • Expanded the tool catalog in the documentation, renamed tools for clarity, and documented many new tool endpoints. Users can now configure which built-in and VS Code tools are exposed via new settings and commands. [1] [2] [3]
  • Added commands for inspecting and configuring tool exposure: MCP Server: Inspect vscode.lm.tools, MCP Server: Configure VS Code Tools…, and MCP 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:

  • Introduced a new command MCP Server: Connection Info to 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]
  • Improved error handling in ensureDocumentOpen to provide more informative error messages when opening documents fails.
  • Added a new VS Code launch configuration for running the extension in the current workspace for easier development. (.vscode/launch.json)

Internal Refactoring and API Usage:

  • Updated the extension to use VS Code’s findTextInFiles API for faster workspace text search when available, controlled by a new setting. [1] [2] [3]
  • Refactored tool loading and configuration logic to support allowlists and dynamic tool exposure. [1] [2]

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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant