VS Code with GitHub Copilot Agent supports MCP servers via theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/A-Point-Systems-ltd/ms-sql-mcp/llms.txt
Use this file to discover all available pages before exploring further.
mcp.servers section in Settings JSON. You can register MSSQL MCP Server at either User scope (applies to every workspace on the machine) or Workspace scope (stored in .vscode/settings.json and scoped to the open folder). Both approaches use identical JSON — only the file location differs.
Build or publish the server
Follow the steps in Build and Publish to produce a
MssqlMcp.exe binary. Note the full path to the executable — you will need it in the next step.Open VS Code Settings JSON
Open the Command Palette (Ctrl+Shift+P) and choose one of:
- Preferences: Open User Settings (JSON) — edits the global user settings file.
- Preferences: Open Workspace Settings (JSON) — edits
.vscode/settings.jsonin the current workspace.
mcp key shown in the next step.Add the server configuration
Inside the settings JSON object, add (or merge) the following block, replacing the You can add optional environment variables to the
command path and connection string with values for your environment:env block as needed:Reload VS Code or restart the Copilot extension
Save the settings file. VS Code should detect the change automatically. If the server does not appear immediately, reload the window (Ctrl+Shift+P → Developer: Reload Window) or restart the GitHub Copilot extension from the Extensions panel.
Verify the server in Copilot Agent mode
Open a Copilot Chat panel and switch to Agent mode. The MSSQL MCP tools (such as
ListObjects, ReadData, and DescribeTable) should appear in the tool list. Send a prompt to confirm:List tables in the databaseThe agent should call
ListObjects with objectType=Table and return your table names.