You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: learn-pr/wwl-data-ai/design-implement-sql-solutions-ai-assisted-tools/includes/5-configure-model-mcp-tool-options.md
+23-15Lines changed: 23 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,21 +2,20 @@ Now that you have GitHub Copilot and Fabric Copilot enabled, you can customize h
2
2
3
3
## Understanding model selection
4
4
5
-
GitHub Copilot supports multiple AI models, each with different capabilities and performance characteristics. You can select which model to use for different scenarios based on your needs.
5
+
GitHub Copilot supports multiple AI models, each with different capabilities and performance characteristics. You can select which model to use for different scenarios based on your needs. Available models typically include:
6
6
7
-
**Available models typically include:**
8
7
-**GPT**: Advanced reasoning capabilities, excellent for complex T-SQL generation and database design questions
9
8
-**Claude models**: Strong at explaining code and providing detailed documentation
10
9
-**Gemini models**: Available in some configurations with different strengths
11
10
12
-
To change models in a Copilot chat session:
11
+
To change models in a Copilot chat session in **SSMS**:
13
12
14
-
**In SSMS:**
15
13
1. Open the Copilot Chat window
16
14
2. Look for the model selector dropdown at the top of the chat
17
15
3. Select the model you want to use for your current session
18
16
19
-
**In VS Code:**
17
+
To change models in a Copilot chat session in **VS Code**:
18
+
20
19
1. Open the Copilot Chat panel (**Ctrl+Alt+I**)
21
20
2. Use the model picker in the chat interface
22
21
3. Switch models as needed for different tasks
@@ -42,18 +41,27 @@ MCP follows a client-server architecture:
42
41
43
42
GitHub Copilot supports MCP integration through agent mode in VS Code. To [use MCP servers in VS Code](/azure/data-api-builder/mcp/quickstart-visual-studio-code?azure-portal=true):
44
43
45
-
**Enable Agent Mode:**
44
+
### Enable agent mode
45
+
46
+
Agent mode allows GitHub Copilot to use external tools, including MCP servers, to gather context and perform actions on your behalf.
47
+
46
48
1. Open the Copilot Chat panel in VS Code
47
49
2. Look for the mode selector (Ask, Edit, or Agent)
48
50
3. Switch to **Agent** mode to access MCP tools
49
51
50
-
**Add an MCP Server:**
52
+
### Add an MCP Server
53
+
54
+
You can add MCP servers to your VS Code workspace using the Command Palette or by manually editing the configuration file.
55
+
51
56
1. Open the Command Palette (**Ctrl+Shift+P**)
52
57
2. Type **MCP: Add Server** and select it
53
58
3. Choose the server type (HTTP or Stdio)
54
59
4. Enter the server URL or configuration
55
60
56
-
**Manage MCP Tools:**
61
+
### Manage MCP Tools
62
+
63
+
Once MCP servers are added, you can control which tools are active for each chat session.
64
+
57
65
1. In Agent mode, select the tools icon in the chat panel
58
66
2. View available MCP servers and their tools
59
67
3. Enable or disable specific tools as needed
@@ -64,11 +72,11 @@ When MCP tools are configured, you'll see them listed when you click the tools i
64
72
65
73
Several MCP server options are available for connecting AI assistants to SQL databases:
66
74
67
-
**SQL MCP Server**: Connects to SQL Server and Azure SQL databases using Microsoft's open-source solution built on Data API builder. This option provides a secure, managed way to expose database metadata to AI assistants.
75
+
-**SQL MCP Server**: Connects to SQL Server and Azure SQL databases using Microsoft's open-source solution built on Data API builder. This option provides a secure, managed way to expose database metadata to AI assistants.
68
76
69
-
**Microsoft Fabric MCP Server**: Connects to [Fabric data agents as MCP servers](/fabric/data-science/data-agent-mcp-server?azure-portal=true), enabling AI assistants to query lakehouses, warehouses, and SQL databases within Fabric workspaces.
77
+
-**Microsoft Fabric MCP Server**: Connects to [Fabric data agents as MCP servers](/fabric/data-science/data-agent-mcp-server?azure-portal=true), enabling AI assistants to query lakehouses, warehouses, and SQL databases within Fabric workspaces.
@@ -104,13 +112,13 @@ This approach allows you to use the same data agent from both the Fabric portal
104
112
105
113
## Best practices for model and MCP configuration
106
114
107
-
**Start with defaults**: Begin with default model and MCP settings, then adjust based on your experience. Not every scenario requires the most advanced configuration.
115
+
-**Start with defaults**: Begin with default model and MCP settings, then adjust based on your experience. Not every scenario requires the most advanced configuration.
108
116
109
-
**Match models to tasks**: Use more capable models for complex design decisions, simpler models for routine code completion.
117
+
-**Match models to tasks**: Use more capable models for complex design decisions, simpler models for routine code completion.
110
118
111
-
**Limit MCP scope**: Configure MCP connections with least-privilege access. If your AI workflow only needs schema information, don't grant data read permissions.
119
+
-**Limit MCP scope**: Configure MCP connections with least-privilege access. If your AI workflow only needs schema information, don't grant data read permissions.
112
120
113
-
**Test configurations**: After changing model or MCP settings, verify the assistant still provides accurate suggestions. Different models might interpret prompts differently.
121
+
-**Test configurations**: After changing model or MCP settings, verify the assistant still provides accurate suggestions. Different models might interpret prompts differently.
114
122
115
123
> [!IMPORTANT]
116
124
> MCP servers establish direct connections to your databases. Ensure your network security policies allow these connections and that authentication follows the security best practices covered earlier in this module.
0 commit comments