Skip to content

Commit c19bd4b

Browse files
committed
Document MCP preset servers and fixed OAuth callback port range
1 parent d5ed1de commit c19bd4b

1 file changed

Lines changed: 40 additions & 3 deletions

File tree

  • content/en/docs/refguide/mendix-ai-assistance/maia-make

content/en/docs/refguide/mendix-ai-assistance/maia-make/maia-mcp.md

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,25 @@ There are two ways to open the MCP Client panel:
2626
* Click the **Configure MCP Connections** ({{% icon name="plug" %}}) icon under the **Maia Chat** tab.
2727
* Go to the **View** menu and click **MCP Settings**.
2828

29+
### Preset Servers {#preset-servers}
30+
31+
Preset MCP servers let you connect to common services without entering URLs or credentials.
32+
33+
#### Mendix Marketplace {#mendix-marketplace-preset}
34+
35+
Studio Pro adds the **Mendix Marketplace** connection automatically when you open the MCP Client panel. It authenticates with your Mendix ID — no extra credentials needed. Marketplace tools are disabled by default — enable the ones you need from the expanded card.
36+
37+
Mendix manages this connection. You cannot remove it, but you can enable or disable it using the checkbox on the **Mendix Marketplace** card.
38+
39+
#### Preset Catalog {#preset-catalog}
40+
41+
Click **+ Add MCP Server** to open the catalog alongside the manual entry form. Each preset appears as a tile. Click a tile to select it — Studio Pro sets the URL, connection type, and authentication type automatically. Only the server name remains editable.
42+
43+
* For OAuth presets: click **Authenticate** to authorize in your browser, then click **OK** to save.
44+
* For bearer token presets: enter your token, then click **OK**.
45+
46+
Tools from new preset connections are **disabled by default**. Enable the tools you need from the expanded connection card.
47+
2948
### Adding an MCP Server {#adding-server}
3049

3150
To add a server, click **+ Add MCP Server**, fill in the following fields, and click **OK**:
@@ -41,6 +60,7 @@ Choose how Studio Pro authenticates with the MCP server:
4160

4261
* **No Auth** — select this for servers that do not require credentials.
4362
* **Bearer Token** — paste an API token or personal access token. The token is stored securely and is not exposed after entry.
63+
* **Mendix Identity** — authenticates using the Mendix account you are already signed in to Studio Pro with. No extra credentials are needed. Use this option when connecting to MCP services provided by Mendix.
4464
* **OAuth 2.1** — a browser window opens so you can authorize Studio Pro with the server's provider. Two optional fields appear:
4565
* **Client ID** — required if the server does not support automatic client registration.
4666
* **Client Secret** — required by some providers (for example, GitHub).
@@ -53,7 +73,7 @@ Most major providers — including GitHub and Figma — do not support automatic
5373
2. Fill in the following information:
5474
* **Application name** — for example, `Mendix Studio Pro`
5575
* **Homepage URL** — for example, `https://mendix.com`
56-
* **Authorization callback URL**`http://localhost:{port}/mcp/oauth/callback` (see the [Callback URL](#callback-url) section below)
76+
* **Authorization callback URL**`http://localhost:44380/mcp/oauth/callback` (GitHub allows only one; see [Callback URL](#callback-url))
5777
3. Click **Register application**, then copy the **Client ID**.
5878
4. Click **Generate a new client secret** and copy it — GitHub shows it only once.
5979
5. In Studio Pro, add a server with the following details:
@@ -68,10 +88,26 @@ For Figma MCP, the simplest option is to generate a personal access token in Fig
6888

6989
##### Callback URL {#callback-url}
7090

71-
The OAuth callback URL format is `http://localhost:{port}/mcp/oauth/callback`. The port is assigned by Studio Pro's built-in web server. You can find the actual port within the callback URL that Studio Pro generates when you add the server.
91+
The OAuth callback URL format is `http://localhost:{port}/mcp/oauth/callback`. Studio Pro uses a fixed port from the range **44380–44384** — one port per running Studio Pro instance, starting from 44380.
92+
93+
When registering an OAuth app with a provider, enter all five callback URLs if the provider allows multiple:
94+
95+
* `http://localhost:44380/mcp/oauth/callback`
96+
* `http://localhost:44381/mcp/oauth/callback`
97+
* `http://localhost:44382/mcp/oauth/callback`
98+
* `http://localhost:44383/mcp/oauth/callback`
99+
* `http://localhost:44384/mcp/oauth/callback`
100+
101+
If the provider allows only one callback URL, use `http://localhost:44380/mcp/oauth/callback` — Studio Pro always tries port 44380 first.
72102

73103
{{% alert color="info" %}}
74-
If your OAuth app requires a fixed callback URL, you can start Studio Pro with the `--web-server-port=45678` command-line flag to use a specific port.
104+
If all ports in the range 44380–44384 are occupied (for example, when multiple Studio Pro instances are open), Studio Pro shows an error. Close another instance or free a port and try connecting again.
105+
{{% /alert %}}
106+
107+
Use `--mcp-oauth-ports` to override the port range (for example, `--mcp-oauth-ports=44380-44384` or `--mcp-oauth-ports=44380,39321`).
108+
109+
{{% alert color="warning" %}}
110+
For servers that validate the callback URL against the [OAuth Client ID Metadata Document (SEP-991)](https://modelcontextprotocol.io/seps/991-enable-url-based-client-registration-using-oauth-c), custom ports will always be rejected — the metadata document is hosted by Mendix and lists only ports 44380–44384 as valid callback URLs. Custom ports are only useful for servers that do not enforce this validation, such as internal or self-hosted servers.
75111
{{% /alert %}}
76112

77113
### Managing Connections {#managing-connections}
@@ -118,6 +154,7 @@ You see the answer from Maia, not the raw tool output.
118154
| "Token exchange failed" or "incorrect_client_credentials" | Verify your Client ID and Client Secret. Check that the callback URL matches. |
119155
| Authentication stuck in "Authenticating..." | Check that no firewall blocks localhost. Remove the server and add it again to restart the flow. |
120156
| Connection fails immediately | Verify the URL. Try switching between **HTTP (Streamable)** and **SSE (Legacy)**. |
157+
| "All OAuth callback ports are in use" | Close another Studio Pro instance to free a port in range 44380–44384, then try connecting again. |
121158

122159
## Limitations {#limitations}
123160

0 commit comments

Comments
 (0)