QuestionQ74

VerifiedSecure, optimize, and deploy database solutions

You are building an Azure SQL database solution from a locally cloned GitHub repository by using Microsoft Visual Studio Code and GitHub Copilot Chat.

You need to make sure that GitHub Copilot Chat can invoke the hosted GitHub MCP Server tools by using OAuth. The MCP server configuration must be scoped to the repository.

What should you do in Visual Studio Code?

Explanation

A workspace-scoped MCP server is stored in the repository’s .vscode/mcp.json configuration, whereas user settings make the server available across workspaces. Add the hosted GitHub MCP Server as an HTTP/SSE server at https://api.githubcopilot.com/mcp/ and save it to the workspace; Visual Studio Code handles the OAuth authorization flow without requiring a personal access token.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!