Language

HtmlWidgetPayload.McpUrl Property

Definition

Optional MCP server URL. When set, the Teams client combines it with the owner id ("ownerId-mcpUrl") as the input for deriving the widget hosting origin. A widget produced by an MCP server must set it to that server's URL to get its own hosting scope.

[System.Text.Json.Serialization.JsonIgnore(Condition=System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)]
[System.Text.Json.Serialization.JsonPropertyName("mcpUrl")]
public string? McpUrl { get; set; }
[<System.Text.Json.Serialization.JsonIgnore(Condition=System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)>]
[<System.Text.Json.Serialization.JsonPropertyName("mcpUrl")>]
member this.McpUrl : string with get, set
Public Property McpUrl As String

Property Value

Attributes

Applies to