Λογότυπο VS MCP Server

VS MCP Server

Οργανισμός
CodingWithCalvin

VS MCP Server exposes Visual Studio features through the Model Context Protocol (MCP), enabling AI assistants like Claude to interact with your IDE programmatically. Open files, read code, build projects, and more - all through natural conversation!

ΕκδότηςCodingWithCalvin
ΑποθετήριοVS-MCPServer
ΓλώσσαC#
Forks
25
Αστέρια
85
Διαθέσιμα εργαλεία
0
Τύπος μεταφοράςstreamable-http
Κατηγορίες
Άδεια χρήσηςMIT
Σύνδεσμοι
  • Συνδέστε εργαλεία σε ροές εργασίας AI

    Το VS MCP Server παρέχει δυνατότητες MCP που μπορούν να χρησιμοποιηθούν από συμβατές εφαρμογές-πελάτες AI και πράκτορες AI.

  • 0 διαθέσιμα εργαλεία

    Περιηγηθείτε παρακάτω στις ενέργειες που μπορούν να κληθούν, μαζί με τα ονόματα και τις περιγραφές τους, όταν παρέχονται από τον διακομιστή.

  • Ρυθμίσεις έτοιμες για αντιγραφή

    Χρησιμοποιήστε τα αποσπάσματα εγκατάστασης για να ρυθμίσετε αυτόν τον διακομιστή στην εφαρμογή-πελάτη MCP που προτιμάτε.

  • Δείκτες ενδιαφέροντος για τον ανοιχτό κώδικα

    85 αστέρια και 25 διακλαδώσεις στο συνδεδεμένο αποθετήριο.


🤔 What is this?

VS MCP Server exposes Visual Studio features through the Model Context Protocol (MCP), enabling AI assistants like Claude to interact with your IDE programmatically. Open files, read code, build projects, and more - all through natural conversation!

✨ Features

📂 Solution Tools

ToolDescription
project_infoGet detailed project information
project_listList all projects in the solution
solution_closeClose the current solution
solution_infoGet information about the current solution
solution_openOpen a solution file
startup_project_getGet the current startup project
startup_project_setSet the startup project for debugging

📝 Document Tools

ToolDescription
document_activeGet the active document
document_cleanupRun code cleanup on a document
document_closeClose a document
document_listList all open documents
document_openOpen a file in the editor
document_readRead document contents
document_saveSaves an open document
document_writeWrite to a document
file_createCreate a file on disk and open it in the editor
folder_createCreate a folder on disk

✏️ Editor Tools

ToolDescription
editor_findSearch within documents
editor_goto_lineNavigate to a specific line
editor_insertInsert text at cursor position
editor_replaceFind and replace text
selection_getGet the current text selection
selection_setSet the selection range

🔨 Build Tools

ToolDescription
build_cancelCancel a running build
build_configuration_getGet the active and available build configuration/platform pairs
build_configuration_setChange the active build configuration and platform
build_projectBuild a specific project
build_solutionBuild the entire solution
build_statusGet current build status
clean_solutionClean the solution

🧭 Navigation Tools

ToolDescription
find_referencesFind all references to a symbol
goto_definitionNavigate to the definition of a symbol
symbol_documentGet all symbols defined in a document
symbol_workspaceSearch for symbols across the solution

🐛 Debugger Tools

ToolDescription
breakpoint_enableEnable or disable a breakpoint at a file and line
debugger_add_breakpointAdd a breakpoint, optionally with a condition and hit-count rule
debugger_breakPause execution (Ctrl+Alt+Break)
debugger_continueContinue execution (F5)
debugger_evaluateEvaluate an expression in the current debug context
debugger_get_callstackGet the call stack
debugger_get_localsGet local variables in current frame
debugger_launchStart debugging (F5), optionally for a specific project
debugger_launch_without_debuggingStart without debugger (Ctrl+F5), optionally for a specific project
debugger_list_breakpointsList all breakpoints, including conditions and hit-count rules
debugger_remove_breakpointRemove a breakpoint
debugger_set_variableSet the value of a local variable
debugger_statusGet current debugger state
debugger_step_intoStep into (F11)
debugger_step_outStep out (Shift+F11)
debugger_step_overStep over (F10)
debugger_stopStop debugging (Shift+F5)

🔍 Diagnostics Tools

ToolDescription
errors_listRead errors, warnings, and messages from the Error List, filtered by severity, scope, Build/IntelliSense source, suppression state, code, tool, category, project, path, or text
output_list_panesList all available Output window panes
output_readRead content from an Output window pane
output_writeWrite a message to an Output window pane

🧪 Test Tools

ToolDescription
test_cancelCancel the test run in progress
test_debugDebug the tests in a single class or method
test_debug_allDebug every test in the solution
test_runRun the tests in a single class or method
test_run_allRun every test in the solution
test_statsGet passed, failed, skipped, and not-run counts
test_statusGet the run state plus current counts

📊 Coverage Tools

ToolDescription
coverage_analyzeRun all tests with code coverage collection
coverage_reportRead results as a module / class / method tree with line and block counts
coverage_showOpen the Code Coverage Results window

ℹ️ Running coverage needs an edition that supports it — Enterprise only through VS 2022, all editions from VS 2026. Reading an existing .coverage file with coverage_report works on every edition.

💻 Terminal Tools

ToolDescription
terminal_closeClose a single integrated terminal
terminal_close_allClose every integrated terminal
terminal_createOpen an empty terminal using the default profile
terminal_listList the open terminal identifiers
terminal_runRun a command in a new terminal, inside the VS developer environment
terminal_showBring a terminal into view

⚠️ Terminal output is not captured. The Visual Studio terminal is a raw PTY with no exit code or command boundaries, so terminal_run reports only whether the terminal opened. To read results, redirect output to a file and read it back with document_read.

🪟 Window Tools

ToolDescription
toolwindow_hideHide (close) a tool window by caption
toolwindow_showShow a tool window by name (SolutionExplorer, ErrorList, Output, Terminal, etc.)
window_activateActivate (focus) a window by caption
window_listList all open windows with caption, kind, visibility, and GUID

💬 Dialog Tools

ToolDescription
dialog_listList the modal dialogs Visual Studio is waiting on, with their message and buttons
dialog_respondAnswer a dialog by clicking one of its buttons

💡 Stuck on a dialog? A modal dialog, like "The source code is different from the original version" or "Hot Reload changes not supported", blocks Visual Studio until someone answers it. If a tool call hangs or times out, dialog_list shows what Visual Studio is waiting on and dialog_respond answers it. Both work while the blocked call is still waiting.

🛠️ Installation

Visual Studio Marketplace

  1. Open Visual Studio 2022 or 2026
  2. Go to Extensions > Manage Extensions
  3. Search for "MCP Server"
  4. Click Download and restart Visual Studio

Manual Installation

Download the latest .vsix from the Releases page and double-click to install.

🚀 Usage

▶️ Starting the Server

  1. Open Visual Studio
  2. Go to Tools > MCP Server > Start Server (or enable auto-start in settings)
  3. The MCP server starts on http://localhost:5050

🤖 Configuring Claude Desktop & Claude Code

Add this to your Claude Desktop or Claude Code MCP settings (preferred HTTP method):

json
{
  "mcpServers": {
    "visualstudio": {
      "type": "http",
      "url": "http://localhost:5050"
    }
  }
}

Legacy SSE method (deprecated, but still supported):

json
{
  "mcpServers": {
    "visualstudio": {
      "type": "sse",
      "url": "http://localhost:5050/sse"
    }
  }
}

Claude Code (CLI) - alternate installation technique:

   claude mcp add --transport http visualstudio http://localhost:5050

ℹ️ Note: The HTTP method is the preferred standard. SSE (Server-Sent Events) is a legacy protocol and should only be used for backward compatibility.

⚙️ Settings

Configure the extension at Tools > Options > MCP Server:

SettingDescriptionDefault
Auto-start serverStart the MCP server when Visual Studio launchesOff
Binding AddressAddress the server binds tolocalhost
HTTP PortPort for the MCP server5050
Server NameName reported to MCP clientsVisual Studio MCP
Log LevelMinimum log level for outputInformation
Log RetentionDays to keep log files7

⚠️ terminal_run executes commands on your machine. Combined with a Binding Address other than localhost, this exposes command execution to your network. Leave the binding address at localhost unless you specifically need remote access.

🏗️ Architecture

+------------------+              +----------------------+   named pipes   +------------------+
|  Claude Desktop  |   HTTP/SSE  |  MCPServer.Server    | <-------------> |  VS Extension    |
|  (MCP Client)    | <---------> |  (MCP Server)        |    JSON-RPC     |  (Tool Impl)     |
+------------------+    :5050    +----------------------+                 +------------------+

🤝 Contributing

Contributions are welcome! Whether it's bug reports, feature requests, or pull requests - all feedback helps make this extension better.

🔧 Development Setup

  1. Clone the repository
  2. Open src/CodingWithCalvin.MCPServer.slnx in Visual Studio 2022
  3. Ensure you have the "Visual Studio extension development" workload installed
  4. Ensure you have .NET 10.0 SDK installed
  5. Press F5 to launch the experimental instance

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


👥 Contributors


Χρησιμοποιήστε το MCP VS MCP Server με πολλά μοντέλα AI

Το TypingMind συνδέει τα εργαλεία MCP σε επίπεδο χώρου εργασίας. Έτσι, μόλις συνδεθεί το VS MCP Server, μπορείτε να το χρησιμοποιείτε με διαφορετικά μοντέλα AI στο TypingMind, αντί να το ρυθμίζετε ξεχωριστά για κάθε μοντέλο. Αυτή η ενσωμάτωση MCP συνδέεται στο TypingMind μέσω του URL ενός απομακρυσμένου διακομιστή MCP.

Προσθέστε URL διακομιστή MCP

Επιλέξτε αυτή τη μέθοδο όταν το VS MCP Server φιλοξενείται ήδη απομακρυσμένα ή η ομάδα σας θέλει έναν κοινόχρηστο σύνδεσμο στον οποίο μπορούν να έχουν πρόσβαση πολλοί χρήστες.

1

Ανοίξτε τους συνδέσμους MCP

Στο TypingMind, μεταβείτε στα «Πρόσθετα», ανοίξτε τους «Συνδέσμους MCP» και επιλέξτε «Προσθήκη URL».

  1. Ανοίξτε το TypingMind στο πρόγραμμα περιήγησής σας.
  2. Μεταβείτε στα «Πρόσθετα».
  3. Ανοίξτε τους συνδέσμους MCP.
  4. Κάντε κλικ στην επιλογή «Προσθήκη URL».
Φόρμα προσθήκης URL προσαρμοσμένου διακομιστή MCP στο TypingMind
2

Επικολλήστε το URL του διακομιστή

Εισαγάγετε το το URL διακομιστή MCP από τον πάροχο στο πεδίο «URL διακομιστή». Προσθέστε όνομα σύνδεσης, περιγραφή, εικόνα, προσαρμοσμένες κεφαλίδες HTTP ή ρυθμίσεις πελάτη OAuth, εφόσον απαιτούνται από τον διακομιστή.

  1. Επικολλήστε το το URL διακομιστή MCP από τον πάροχο στο πεδίο «URL διακομιστή».
  2. Εισαγάγετε ένα όνομα σύνδεσης για το VS MCP Server.
  3. Προσθέστε περιγραφή και εικόνα για να αναγνωρίζετε ευκολότερα τη σύνδεση.
  4. Προσθέστε προσαρμοσμένες κεφαλίδες HTTP ή στοιχεία πελάτη OAuth, αν ο διακομιστής απαιτεί έλεγχο ταυτότητας.
3

Δημιουργήστε τη σύνδεση

Κάντε κλικ στην επιλογή «Δημιουργία σύνδεσης», επιστρέψτε στη λίστα προσθέτων και επιβεβαιώστε ότι η νέα σύνδεση MCP είναι ενεργή.

  1. Κάντε κλικ στην επιλογή «Δημιουργία σύνδεσης».
  2. Επιστρέψτε στη λίστα συνδέσμων MCP.
  3. Επιβεβαιώστε ότι η σύνδεση VS MCP Server εμφανίζεται ως ενεργή.
  4. Ανανεώστε τη λίστα προσθέτων αν η σύνδεση δεν εμφανιστεί αμέσως.
4

Αλλάξτε μοντέλα χωρίς επανασύνδεση

Ξεκινήστε μια συνομιλία με το μοντέλο που προτιμάτε, ενεργοποιήστε τα εργαλεία του VS MCP Server από τα «Πρόσθετα» και μεταβείτε σε άλλο μοντέλο όποτε χρειάζεται. Η σύνδεση MCP παραμένει διαθέσιμη στον χώρο εργασίας του TypingMind.

  1. Ξεκινήστε μια νέα συνομιλία στο TypingMind.
  2. Επιλέξτε το μοντέλο AI που θέλετε να χρησιμοποιήσετε.
  3. Ενεργοποιήστε τα εργαλεία του VS MCP Server από τα «Πρόσθετα».
  4. Ζητήστε από το μοντέλο να χρησιμοποιήσει το εργαλείο όταν χρειάζεται.
  5. Μεταβείτε σε άλλο μοντέλο AI και χρησιμοποιήστε ξανά την ίδια σύνδεση MCP.
Συνομιλία στο TypingMind με ενεργοποιημένα εργαλεία MCP και επιλεγμένο μοντέλο AI
Θα με βοηθήσετε σε αυτό μέσω VS MCP Server;
VS MCP Server
Βεβαίως. Το διάβασα.
Δείτε τι βρήκα μέσω του VS MCP Server.

Συχνές ερωτήσεις

Σε τι χρησιμεύει ο διακομιστής MCP VS MCP Server;

Το VS MCP Server είναι ένας διακομιστής MCP που επιτρέπει σε συμβατές εφαρμογές AI να συνδέονται με εξωτερικά εργαλεία και πληροφορίες πλαισίου. Στο TypingMind, μπορείτε να προσθέσετε αυτόν τον διακομιστή MCP μία φορά και να κάνετε τα εργαλεία του διαθέσιμα στον χώρο εργασίας AI σας.

Μπορώ να χρησιμοποιήσω το VS MCP Server MCP με πολλά μοντέλα AI στο TypingMind;

Ναι. Το TypingMind συνδέει τα εργαλεία MCP σε επίπεδο χώρου εργασίας, ώστε να μπορείτε να χρησιμοποιείτε το VS MCP Server με διαφορετικά μοντέλα AI, όπως τα Claude, ChatGPT, Gemini ή άλλα μοντέλα που έχετε ρυθμίσει στο TypingMind, χωρίς να ρυθμίζετε τον διακομιστή MCP ξεχωριστά για κάθε μοντέλο.

Γιατί να χρησιμοποιήσετε τον σύνδεσμο MCP VS MCP Server με το TypingMind;

Το TypingMind είναι ένα από τα καλύτερα περιβάλλοντα συνομιλίας με μεγάλα γλωσσικά μοντέλα, καθώς συγκεντρώνει πολλά μοντέλα AI, προτροπές, πρόσθετα, πράκτορες AI, κλειδιά API και εργαλεία MCP σε έναν χώρο εργασίας. Συνδέοντας το VS MCP Server, μπορείτε να χρησιμοποιείτε τα εργαλεία MCP του με τα μοντέλα που προτιμάτε, διατηρώντας οργανωμένη τη ροή εργασίας των συνομιλιών σας στο TypingMind.

Πώς συνδέω το VS MCP Server MCP στο TypingMind;

Μπορείτε να συνδέσετε το VS MCP Server στο TypingMind προσθέτοντας το URL του απομακρυσμένου διακομιστή MCP. Αυτό είναι χρήσιμο όταν θέλετε μια απομακρυσμένη σύνδεση MCP διαθέσιμη από τον χώρο εργασίας σας στο TypingMind.

Ποια εργαλεία παρέχει το VS MCP Server MCP στο TypingMind;

Το VS MCP Server διαθέτει δυνατότητες MCP που μπορείτε να ενεργοποιήσετε από τη σελίδα Πρόσθετα του TypingMind και να χρησιμοποιήσετε σε συνομιλίες ή να αναθέσετε σε πράκτορες AI.

Χρειάζεται να κοινοποιήσω τα κλειδιά API μου στο TypingMind για να χρησιμοποιήσω το VS MCP Server MCP;

Όχι. Το TypingMind δίνει προτεραιότητα στην τοπική λειτουργία και σας επιτρέπει να διατηρείτε τον έλεγχο των παρόχων μοντέλων, των κλειδιών API, των προτροπών και των ρυθμίσεων MCP σας. Αν το VS MCP Server απαιτεί έλεγχο ταυτότητας, προσθέστε τις απαιτούμενες κεφαλίδες, τις ρυθμίσεις OAuth ή τις τοπικές ρυθμίσεις για τον συγκεκριμένο διακομιστή MCP κατά τη δημιουργία της σύνδεσης.

Σχετικοί διακομιστές MCP

Προβολή όλων

Στήστε δικό σας χώρο εργασίας AI τώρα

Εγγραφείτε στο ενημερωτικό μας δελτίο για να ενημερώνεστε για νέες λειτουργίες και μελλοντικές κληρώσεις δώρων 👇