Skip to content

Commit f42e6e6

Browse files
Update snowflake-mcp.md
1 parent 8358ba3 commit f42e6e6

1 file changed

Lines changed: 35 additions & 23 deletions

File tree

  • content/en/docs/marketplace/platform-supported-content/modules/snowflake

content/en/docs/marketplace/platform-supported-content/modules/snowflake/snowflake-mcp.md

Lines changed: 35 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -32,29 +32,7 @@ To configure a Snowflake-managed MCP server, follow these steps:
3232

3333
1. In Snowflake, set up the database and schemas which will be used by the server.
3434

35-
The following is a code sample including test data:
36-
37-
```sql
38-
-- You can run this example under the Sysadmin role. For real production screnarios, use proper authorisation.
39-
CREATE DATABASE IF NOT EXISTS SNOWFLAKE_MCP_DEMO;
40-
CREATE SCHEMA IF NOT EXISTS SNOWFLAKE_MCP_DEMO.TOOLS;
41-
CREATE SCHEMA IF NOT EXISTS SNOWFLAKE_MCP_DEMO.MCPSERVERS;
42-
CREATE SCHEMA IF NOT EXISTS SNOWFLAKE_MCP_DEMO.TESTDATA;
43-
44-
CREATE OR REPLACE TABLE SNOWFLAKE_MCP_DEMO.TESTDATA.TICKETS (
45-
TICKETID NUMBER AUTOINCREMENT START 1 INCREMENT 1,
46-
PRIORITY VARCHAR(10),
47-
TEXT VARCHAR(500)
48-
);
49-
50-
INSERT INTO SNOWFLAKE_MCP_DEMO.TESTDATA.TICKETS (PRIORITY, TEXT)
51-
VALUES
52-
('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)
5836

5937
2. Create the stored procedures which the MCP server will expose as tools.
6038

@@ -372,6 +350,40 @@ To configure a Snowflake-managed MCP server, follow these steps:
372350
```
373351
</details>
374352

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+
375387
## Connecting a Mendix Agent to the MCP Server
376388

377389
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

Comments
 (0)