Skip to content

Commit 8a5617e

Browse files
committed
alerts testing
1 parent a82bec4 commit 8a5617e

13 files changed

+66
-31
lines changed

ords-mcp/2-environment-set-up.md

Lines changed: 66 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -46,29 +46,11 @@ This lab assumes you have:
4646
- Username
4747
- Password
4848

49-
> [!NOTE]
50-
51-
> [!TIP]
52-
> Tip
53-
54-
> [!IMPORTANT]
55-
> Info
56-
57-
> [!NOTE]
58-
> Note
59-
60-
61-
> ![NOTE]
62-
> You must click the Regenerate button to create a new password.
63-
> Please save this password, as it will only be displayed once.
64-
> It will not be saved or displayed across sessions.
65-
49+
![2-copying-your-free-sql-credentials.png](./images/lab-2/2-copying-your-free-sql-credentials.png " ")
6650

67-
![2-copying-your-free-sql-credentials.png](./images/lab-2/2-copying-your-free-sql-credentials.png " ")
6851

69-
70-
> ![NOTE]
71-
> You must click the Regenerate button to create a new password. Please save this password, as it will only be displayed once. It will not be saved or displayed across sessions.
52+
> ![NOTE]
53+
> You must click the Regenerate button to create a new password. Please save this password, as it will only be displayed once. It will not be saved or displayed across sessions.
7254
7355
## Task 2: Oracle SQL Developer for VS Code
7456

@@ -138,14 +120,6 @@ This lab assumes you have:
138120
EOF
139121
```
140122

141-
```mermaid
142-
graph TD;
143-
A-->B;
144-
A-->C;
145-
B-->D;
146-
C-->D;
147-
```
148-
149123
*Manual installation*
150124

151125
```sh
@@ -181,7 +155,7 @@ graph TD;
181155

182156
![13-searching-for-cline-vs-code-extension](./images/lab-2/13-searching-for-cline-vs-code-extension.png " ")
183157

184-
2. After selecting, Install the extension. Once installed, navigate to the Cline extension (found in the Activity bar)
158+
2. Install the extension. Once installed, navigate to the Cline extension (found in the Activity bar)
185159

186160
3. Click the "Scale" icon to select an API provider.
187161

@@ -197,10 +171,71 @@ graph TD;
197171

198172
![17-successful-authentication-detail-of-the-default-model-used](./images/lab-2/17-successful-authentication-detail-of-the-default-model-used.png " ")
199173

174+
5. Next, you'll configure the SQLcl MCP Server.
175+
176+
## Task 6: Configuring the SQLcl MCP server
177+
178+
1. Click the MCP Servers icon, then on the Installed tab.
179+
180+
<!-- Needs edit, to highlight both icons. -->
181+
182+
![18-successful-authentication-detail-of-the-default-model-used](./images/lab-2/18-successful-authentication-detail-of-the-default-model-used.png " ")
183+
184+
![19-navigating-to-installed-mcp-servers-tab](./images/lab-2/19-navigating-to-installed-mcp-servers-tab.png " ")
185+
186+
2. Click the <button style="color: Gainsboro; background-color: DimGray;">Configure MCP Servers</button> botton. The `cline_mcp_settings.json` MCP Server configuration file will appear.
187+
188+
![20-empty-cline-mcp-servers-json-file](./images/lab-2/20-empty-cline-mcp-servers-json-file.png " ")
189+
190+
3. You will replace the empty JSON object with that of your SQLcl `/bin/sql` directory
191+
192+
In this example, we have chosen to install SQLcl via Homebrew. Thus our SQLcl's `/bin` directory is located at:
193+
194+
```sh
195+
opt/homebrew/Caskroom/sqlcl/25.2.2.199.0918/sqlcl/bin/sql
196+
```
197+
198+
4. Update your `cline_mcp_settings.json` so it points to the correct location. Use the following `JSON` as template:
199+
200+
```JSON
201+
<copy>
202+
{
203+
"mcpServers": {
204+
"sqlcl": {
205+
"command": "[path to your SQLcl installation]/bin/sql",
206+
"args": ["-mcp"],
207+
"disabled": false
208+
}
209+
210+
}
211+
}
212+
</copy>
213+
```
214+
215+
5. Save your configuration settings. In doing so, you may notice an "Updating MCP Servers..." message following by a "MCP Servers updated..." message.
216+
217+
![21-updating-the-installed-cline-mcp-servers](./images/lab-2/21-updating-the-installed-cline-mcp-servers.png " ")
218+
219+
220+
You should now see `sqlcl` listed under the Installed MCP Servers tab.
221+
222+
![22-focus-on-sqlcl-tools-radio-button](./images/lab-2/22-focus-on-sqlcl-tools-radio-button.png " ")
223+
224+
6. Click the anywhere in the SQLcl bar to expand it. You'll see a list of SQLcl MCP Sever "Tools", their parameters, and definitions.
225+
226+
![23-expanding-the-installed-mcp-server-to-reveal-tools](./images/lab-2/23-expanding-the-installed-mcp-server-to-reveal-tools.png " ")
200227

228+
Available tools summary:
201229

202-
<mark>Cline or VS Chat?</mark>
230+
|Tool | Parameters | Definition |
231+
| --- | ---------- | ---------- |
232+
| `list-connections` | <ul><li>`filter`</li><li>`mcp_client`</li><li>`model`</li></ul> | <ul><li>This is the filter that will be used to refine the list of connections</li><li>Specify the name and version of the MCP client implementation being used (e.g. Copilot, Claude, Cline...)</li><li>The name (and version) of the language model being used by the MCP client to process requests (e.g. gpt-4.1, claude-sonnet-4, llama4...</li></ul>|
233+
| `connect` | <ul><li>`connection_name`</li><li>`mcp_client`</li><li>`model`</li></ul> | <ul><li>Specify the name and version of the MCP client implementation being used (e.g. Copilot, Claude, Cline...)</li><li>The name (and version) of the language model being used by the MCP client to process requests (e.g. gpt-4.1, claude-sonnet-4, llama4...</li></ul>|
234+
| `disconnect` | <ul><li>`mcp_client`</li><li>`model`</li></ul> | <ul><li>The name of the saved connection you want to connect to</li><li>The name (and version) of the language model being used by the MCP client to process requests (e.g. gpt-4.1, claude-sonnet-4, llama4...</li></ul>|
235+
| `run-sqlcl` | <ul><li>`sqlcl`</li><li>`mcp_client`</li><li>`model`</li></ul> | <ul><li>The SQLcl command to execute</li><li>Specify the name and version of the MCP client implementation being used (e.g. Copilot, Claude, Cline...)</li><li>The name (and version) of the language model being used by the MCP client to process requests (e.g. gpt-4.1, claude-sonnet-4, llama4...</li></ul>|
236+
| `sql` | <ul><li>`sql`</li><li>`mcp_client`</li><li>`model`</li></ul> | <ul><li>The SQL query to execute</li><li>Specify the name and version of the MCP client implementation being used (e.g. Copilot, Claude, Cline...)</li><li>The name (and version) of the language model being used by the MCP client to process requests (e.g. gpt-4.1, claude-sonnet-4, llama4...</li></ul>|
203237

238+
7. With your SQLcl MCP Server configured, you may now proceed to the next lab.
204239

205240

206241
<!-- (optional) Step 1 opening paragraph.

ords-mcp/images/lab-2/17-successful-authentication-detail-of-the-default-model-used.png renamed to ords-mcp/images/lab-2/18-successful-authentication-detail-of-the-default-model-used.png

File renamed without changes.

ords-mcp/images/lab-2/18-navigating-to-installed-mcp-servers-tab.png renamed to ords-mcp/images/lab-2/19-navigating-to-installed-mcp-servers-tab.png

File renamed without changes.
321 KB
Loading
Binary file not shown.
Binary file not shown.

ords-mcp/images/lab-2/26-updating-the-installed-cline-mcp-servers.png renamed to ords-mcp/images/lab-2/21-updating-the-installed-cline-mcp-servers.png

File renamed without changes.
Binary file not shown.

ords-mcp/images/lab-2/27-focus-on-sqlcl-tools-radio-button.png renamed to ords-mcp/images/lab-2/22-focus-on-sqlcl-tools-radio-button.png

File renamed without changes.
Binary file not shown.

0 commit comments

Comments
 (0)