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
('High', 'Server is down in production environment'),
53
-
('Medium', 'User unable to reset password'),
54
-
('Low', 'Request for additional monitor'),
55
-
('High', 'Database connection timeout on checkout page'),
56
-
('Medium', 'Email notifications not being sent');
57
-
```
35
+
For a code sample with test data, see [Database and Schema Setup](#code-db-schema)
58
36
59
37
2. Create the stored procedures which the MCP server will expose as tools.
60
38
@@ -372,6 +350,40 @@ To configure a Snowflake-managed MCP server, follow these steps:
372
350
```
373
351
</details>
374
352
353
+
### Sample Code
354
+
355
+
In this section, you can find sample code to help you configure a Snowflake-managed MCP server.
356
+
357
+
{{% alert color="info" %}}
358
+
The scripts are intended to show the range of available deployment options. They are presented as examples only, and may require significant adaptation to work in your own environment.
359
+
{{% /alert %}}
360
+
361
+
#### Database and Schema Setup {#code-db-schema}
362
+
363
+
The following is a code sample including test data:
364
+
365
+
```sql
366
+
-- You can run this example under the Sysadmin role. For real production screnarios, use proper authorisation.
367
+
CREATE DATABASE IF NOT EXISTS SNOWFLAKE_MCP_DEMO;
368
+
CREATE SCHEMA IF NOT EXISTS SNOWFLAKE_MCP_DEMO.TOOLS;
369
+
CREATE SCHEMA IF NOT EXISTS SNOWFLAKE_MCP_DEMO.MCPSERVERS;
370
+
CREATE SCHEMA IF NOT EXISTS SNOWFLAKE_MCP_DEMO.TESTDATA;
371
+
372
+
CREATE OR REPLACE TABLE SNOWFLAKE_MCP_DEMO.TESTDATA.TICKETS (
373
+
TICKETID NUMBER AUTOINCREMENT START 1 INCREMENT 1,
374
+
PRIORITY VARCHAR(10),
375
+
TEXT VARCHAR(500)
376
+
);
377
+
378
+
INSERT INTO SNOWFLAKE_MCP_DEMO.TESTDATA.TICKETS (PRIORITY, TEXT)
379
+
VALUES
380
+
('High', 'Server is down in production environment'),
381
+
('Medium', 'User unable to reset password'),
382
+
('Low', 'Request for additional monitor'),
383
+
('High', 'Database connection timeout on checkout page'),
384
+
('Medium', 'Email notifications not being sent');
385
+
```
386
+
375
387
## Connecting a Mendix Agent to the MCP Server
376
388
377
389
After setting up the MCP server, you can now create a Mendix AI agent and connect it to the MCP server by performing the following steps:
0 commit comments