Building and customizing solutions using Microsoft 365 Copilot APIs and tools
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