MCP server URL Questions

David Johnson 20 Reputation points
2026-06-30T13:21:26.3166667+00:00

Hi,

We're completing our MCP build and have 2 questions:

Can the MCP server URL can be templated rather than static?

Can the OAuth client ID and secret can be dynamic rather than static?

Thank you,

Dave

Microsoft Copilot | Microsoft 365 Copilot | Development
0 comments No comments

Answer accepted by question author
Marcin Policht 109.3K Reputation points MVP Volunteer Moderator
2026-06-30T14:26:23.0233333+00:00

AFAIK, the Server URL itself cannot be dynamically templated within Copilot Studio's base MCP connection. The MCP onboarding wizard uses a static host/base URL for the orchestrator to route traffic. You should be able though to pass dynamic parameters at the tool level via Prompt Templates or by defining URI-addressable dynamic content for Resources. If you need dynamic routing, consider wrapping your MCP server in an API Gateway or Reverse Proxy that handles path resolution based on the user's context.

Regarding your second question, my understanding is that Copilot Studio requires static Client IDs and Secrets for manual OAuth 2.0 connection configurations. The credentials are tied directly to an identity provider's app registration. Dynamic Client Registration is not natively supported for manual MCP tool setups.

To avoid hardcoding or exposing these secrets in manifests, use Azure Key Vault to store and rotate your MCP server credentials.


If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

hth

Marcin

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.