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
> There are many registries and marketplaces for MCP servers. We recommend starting with these [reference servers](https://github.com/modelcontextprotocol/servers?tab=readme-ov-file#-reference-servers).
74
+
82
75
To use an existing MCP server, follow these steps:
83
76
1. In the **Tools** section, select **+ MCP Server**, and then select **+ Add server** in the quick pick.
84
77
2. Select **Connect to an Existing MCP Server**
@@ -88,6 +81,24 @@ To use an existing MCP server, follow these steps:
88
81
4. Select tools from the MCP server if there are multiple tools available.
89
82
5. Enter your prompts and select **Run** to test the connection.
90
83
84
+
Here is an example of configuring the [Filesystem](https://github.com/modelcontextprotocol/servers/tree/main/src/filesystem) server in AI Toolkit:
85
+
1. In the **Tools** section, select **+ MCP Server**, and then select **+ Add server** in the Quick Pick.
86
+
2. Select **Connect to an Existing MCP Server**
87
+
3. Select **Command (stdio)**
88
+
> [!NOTE]
89
+
> Some servers use the Python runtime and the `uvx` command. The process is the same as using the `npx` command.
90
+
4. Navigate to the [Server instructions](https://github.com/modelcontextprotocol/servers/tree/main/src/filesystem#npx) and locate the `npx` section.
91
+
5. Copy the `command` and `args` into the input box in AI Toolkit. For the Filesystem server example, it will be `npx -y @modelcontextprotocol/server-filesystem /Users/<username>/.aitk/examples`
92
+
6. Input a name for the server.
93
+
7. Optionally, enter additional environment variables.
94
+
Some servers might require additional environment variables such as API keys. In this case, AI Toolkit will fail at the stage of adding tools and a file `mcp.json` will open, where you can enter the required server details following the instructions provided by each server.
1. Navigate back to **Tools** section and select **+ MCP Server**
98
+
2. Select the server you just configured from the dropdown list
99
+
3. Select tools you want to use.
100
+
8. Select tools you want to use.
101
+
91
102

92
103
93
104
AI Toolkit also provides a scaffold to help you build a new MCP server. The scaffold includes a basic implementation of the MCP protocol, which you can customize to suit your needs.
0 commit comments