You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-bindings-mcp-resource-trigger.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ For information on setup and configuration details, see the [overview](functions
24
24
::: zone pivot="programming-language-csharp,programming-language-python,programming-language-typescript,programming-language-javascript"
25
25
## Example 1
26
26
27
-
Example 1 shows how to leverage resource to implement the UI element of MCP Apps.
27
+
Example 1 shows how to use resource to implement the UI element of MCP Apps.
28
28
::: zone-end
29
29
::: zone pivot="programming-language-csharp"
30
30
@@ -132,7 +132,7 @@ For the complete code example, see the [Azure Functions MCP Extension repo](http
132
132
::: zone pivot="programming-language-java"
133
133
134
134
> [!IMPORTANT]
135
-
> The MCP extension in Java does _not_ support resource today.
135
+
> The MCP extension in Java doesn't_ support resource today.
136
136
137
137
::: zone-end
138
138
@@ -142,7 +142,7 @@ Example code for JavaScript isn't currently available. See the TypeScript exampl
142
142
143
143
::: zone pivot="programming-language-typescript"
144
144
145
-
The following code registers a resource named `Weather Widget` that serves an interactive weather display as bundled HTML content. The resource uses the `ui://` scheme to indicate it's an MCP App UI resource.
145
+
The code below registers a resource named `Weather Widget` that serves an interactive weather display as bundled HTML content. The resource uses the `ui://` scheme to indicate it's an MCP App UI resource.
146
146
147
147
```typescript
148
148
// Constants for the Weather Widget resource
@@ -333,7 +333,7 @@ The attribute also supports the following named properties:
333
333
| **Size** | (Optional) The size of the resource content in bytes. |
334
334
| **Metadata** | (Optional) A JSON-serialized string of metadata for the resource. You can also use the `McpMetadata` attribute as an alternative way to provide metadata. |
335
335
336
-
You can use the `[McpMetadata]` attribute to provide additional metadata for resources. This metadata is included in the meta field of each resource when clients call `resources/list`, and can influence how the resource content is displayed or processed.
336
+
You can use the `[McpMetadata]` attribute to provide more metadata for resources. This metadata is included in the meta field of each resource when clients call `resources/list`, and can influence how the resource content is displayed or processed.
337
337
338
338
See [Usage](#usage) to learn how the resource trigger provides data to your function.
0 commit comments