Skip to content

Document MCP preset servers and fixed OAuth callback port range#11428

Merged
quinntracy merged 2 commits into
mendix:developmentfrom
retran:av-mcp-presets-oauth-port
Jun 30, 2026
Merged

Document MCP preset servers and fixed OAuth callback port range#11428
quinntracy merged 2 commits into
mendix:developmentfrom
retran:av-mcp-presets-oauth-port

Conversation

@retran

@retran retran commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds Preset Servers section covering the Mendix Marketplace connection (auto-added, protected, mxid3 auth) and the preset catalog (tile-based selection, auth flow per type, tools disabled by default)
  • Updates Callback URL section: replaces dynamic-port / --web-server-port language with fixed port range 44380–44384; documents --mcp-oauth-ports override flag with link to SEP-991 compatibility warning
  • Adds troubleshooting row for "All OAuth callback ports are in use"

@quinntracy quinntracy self-assigned this Jun 26, 2026
@retran retran force-pushed the av-mcp-presets-oauth-port branch from 144019a to 12bc0ac Compare June 26, 2026 10:59
##### Callback URL {#callback-url}

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.
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. You can find the exact port in the callback URL that Studio Pro shows when you add the server.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding a server comes after registering the app. The callback URL is required while registering the app. How does the user access to this callback URL?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is already fixed, doc has list of callback urls.

@quinntracy

Copy link
Copy Markdown
Collaborator

@retran Is this for 11.12?

Use `--mcp-oauth-ports` to override the port range (for example, `--mcp-oauth-ports=44380-44384` or `--mcp-oauth-ports=44380,39321`).

{{% alert color="warning" %}}
A custom port range breaks compatibility with the [OAuth Client ID Metadata Document (SEP-991)](https://modelcontextprotocol.io/seps/991-enable-url-based-client-registration-using-oauth-c) — MCP servers that validate the callback URL against this document will reject the authorization.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean that users can't use custom ports when there's a validation at server's end and no other way around it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, exactly. For servers that enforce SEP-991 validation, custom ports will always be rejected — the metadata document is hosted by Mendix and lists only 44380–44384 as valid callback URLs, so there's no workaround from the user side. The --mcp-oauth-ports flag is only useful for servers that don't enforce this validation, such as internal or self-hosted servers. I've updated the docs to make this clear.

@retran retran force-pushed the av-mcp-presets-oauth-port branch 2 times, most recently from f2e709b to b58203f Compare June 26, 2026 11:18
@retran

retran commented Jun 26, 2026

Copy link
Copy Markdown
Contributor Author

@quinntracy Yes.

@quinntracy

Copy link
Copy Markdown
Collaborator

@retran thank you. Please let me know when the review is done so I can take a look.

@KONRADS098

Copy link
Copy Markdown
Contributor

@retran do we also want to explain what the new "Mendix Identity" option entails?

@retran

retran commented Jun 26, 2026

Copy link
Copy Markdown
Contributor Author

@retran do we also want to explain what the new "Mendix Identity" option entails?

@KONRADS098 Fixed.

@retran

retran commented Jun 26, 2026

Copy link
Copy Markdown
Contributor Author

@quinntracy I think review is done.


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. All Marketplace tools are enabled by default.

Mendix manages this connection. You cannot remove it, but you can disable it with the checkbox on its card.

@sagarikabathala-creator sagarikabathala-creator Jun 29, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @retran Do we have checkbox on the card? This is not clear

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! Yes, we have. I tried to make text clearer.

@retran retran force-pushed the av-mcp-presets-oauth-port branch from 6a84e02 to c19bd4b Compare June 29, 2026 09:28
@quinntracy quinntracy merged commit d94013c into mendix:development Jun 30, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants