Skip to main content

GitHub Copilot (Visual Studio)

Learn how to connect SQAI Suite to GitHub Copilot in Visual Studio using the Model Context Protocol (MCP). This guide covers the solution-level setup required for the Visual Studio environment and includes troubleshooting for common configuration issues.

Updated this week

The SQAI Suite MCP (Model Context Protocol) server acts as a centralized intelligence layer for your development environment. It connects your code, user stories, and test management tools into a single, real-time understanding of the system under development.

Added Value: A Context-Aware Bridge

By connecting the SQAI MCP to Visual Studio, you create a direct link between your workspace and your broader project data:

  • Unified Intelligence: It connects code repositories, user stories, and documentation so your AI assistant understands the relationship between different artifacts.

  • Automated Traceability: Easily perform tasks like automated test generation, impact analysis, or documentation creation without leaving your editor.

  • Continuous Updates: As you change your code or update a user story, the MCP enables you to keep the system model updated, ensuring your AI is never working with stale information.

1. Generate Your API Key

You need an authentication key to securely connect Visual Studio to the SQAI Platform.

  1. Log in to the SQAI Platform.

  2. Go to the MCP Configuration page: app.sqai-suite.com/mcp.

  3. Generate and copy your unique API Key.

2. Setup Instructions

In Visual Studio, the MCP configuration is managed via a .mcp.json file. You can apply this at the solution level for team sharing or at the user level for personal use.

Important Configuration Note: It is advised to only add the config in one place (locally per project OR globally), otherwise the MCP server may appear twice.

The advantage of solution-level installation is that you can check the configuration into your repository so all team members share the same setup. The API key is never included in this JSON; the inputs array refers to a locally encrypted and stored input unique to each user, making it safe to commit to version control.

2.1 Choose Your Method

  • Local (Per Solution): Create or update the file .mcp.json in the root of your solution.

  • Global (All Solutions): Create or update the file .mcp.json in your user profile directory: %USERPROFILE%\.mcp.json.

2.2 Configuration Snippet

Paste the following into your .mcp.json file.

Note: Ensure you use underscores (sqai_api_key) for the input ID as hyphens are not supported for parameters in this environment.

JSON

{
"inputs": [
{
"type": "promptString",
"id": "sqai_api_key",
"description": "API key for SQAI MCP",
"password": true
}
],
"servers": {
"SQAI-Suite": {
"type": "http",
"url": "https://api.sqai-suite.com/mcp",
"headers": {
"Authorization": "Bearer ${input:sqai_api_key}"
}
}
}
}

3. How to Use

  1. Open Copilot Chat: Open the GitHub Copilot Chat window in Visual Studio.

  2. Enable Agent Mode: Switch the chat mode to Agent.

  3. Authenticate: When prompted on the first run, enter the API key you generated in Step 1.

  4. Select Tools: Click the tools icon (wrench) in the chat window. Visual Studio will automatically recognize SQAI's MCP capabilities; ensure the SQAI-Suite tools are selected.

  5. Interact: Ask Copilot to utilize your SQAI data.

    • Example: "Based on the user story for this feature, generate the necessary test cases and sync them to our test management tool."

4. Troubleshooting

Issue

Potential Cause

Solution

Server not appearing

Incorrect Chat mode.

Ensure Copilot Chat is set to Agent mode. Standard chat modes do not support MCP discovery.

Input ID Errors

Hyphen usage.

Verify the input ID uses underscores (sqai_api_key). Hyphens (-) will prevent the parameter from loading.

Repeated auth prompts

Config conflict.

Check for .mcp.json files in both global profile and local solution folders. Delete one to avoid duplicates.

Connection failed

Network/Proxy restrictions.

Verify access to https://api.sqai-suite.com/mcp. Check Visual Studio proxy settings if on a corporate network.

Logs and Debugging

Startup errors.

Check the Output Window (select "GitHub Copilot" from the dropdown) to view connection logs and error messages.

Did this answer your question?