Skip to content

[Declarative Agent] MCP dynamic discovery not working #15592

@chull434

Description

@chull434

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

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationfeature-requestThe issue is a feature requestneeds attentionThis issue needs the attention of a contributor.upstreamThe issue is tracked external dependency

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions