-
Notifications
You must be signed in to change notification settings - Fork 304
[Declarative Agent] MCP dynamic discovery not working #15592
Copy link
Copy link
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationfeature-requestThe issue is a feature requestThe issue is a feature requestneeds attentionThis issue needs the attention of a contributor.This issue needs the attention of a contributor.upstreamThe issue is tracked external dependencyThe issue is tracked external dependency
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationfeature-requestThe issue is a feature requestThe issue is a feature requestneeds attentionThis issue needs the attention of a contributor.This issue needs the attention of a contributor.upstreamThe issue is tracked external dependencyThe issue is tracked external dependency
Type
Fields
Give feedbackNo fields configured for issues without a type.
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 messageBadRequest: 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