-
Notifications
You must be signed in to change notification settings - Fork 289
[Declarative Agent] MCP dynamic discovery not working #15592
Description
Trying to follow the documentation to get MCP dynamic discovery working but not having any success
Starting from the docs with this sample https://learn.microsoft.com/en-us/microsoft-365/copilot/extensibility/plugin-manifest-2.4#mcp-execution-spec-object-example-dynamic-discovery gives the following validation message:
Error: Invalid Declarative Agent Document: declarativeAgent.json. Problems discovered: Member run_for_functions in RemoteMCPServerRuntime has 0 items which is less than the 1 required.
Adding "run_for_functions": [ "*"] clears the first validation message but then gets the next validation message BadRequest: Manifest package validations failed. Errors: Declarative Copilot content does not pass our validations; please review and resubmit. ErrorCode: MissingPluginFunction, ErrorDetails: Functions must contain at least one function., Error Mesage,: Functions must contain at least one function.
Adding a single static or fake function clears the validation messages but when chatting to the agent it never sees any other tools. Something just seems broken here or have a missed a step somewhere?
ai-plugin.json schema: v2.4
Declarative agent schema: v1.6
Teams manifest: v1.24
Runtime: RemoteMCPServer