Skip to content

Commit 8903d59

Browse files
committed
address feedback on trigger article
1 parent eaa1de2 commit 8903d59

1 file changed

Lines changed: 15 additions & 6 deletions

File tree

articles/azure-functions/functions-bindings-mcp-resource-trigger.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ For information on setup and configuration details, see the [overview](functions
2121
> For C#, the Azure Functions MCP extension supports only the [isolated worker model](dotnet-isolated-process-guide.md).
2222
::: zone-end
2323

24-
::: zone pivot="programming-language-csharp,programming-language-python,programming-language-typescript"
24+
::: zone pivot="programming-language-csharp,programming-language-python,programming-language-typescript,programming-language-javascript"
2525
## Example 1
2626

2727
Example 1 shows how to leverage resource to implement the UI element of MCP Apps.
@@ -125,12 +125,15 @@ In this example, a folder called `assets` containing the `readme` is bundled wit
125125
</ItemGroup>
126126
```
127127

128-
The `PreserveNewest` directive copies everything under `assets` into the build output, preserving the folder structure. When deployed to Azure Functions, these files are extracted to the function app root directory (`%HOME%\site\wwwroot`), so a file at `assets/readme.md` in the project is accessible at runtime via `Path.Combine(AppContext.BaseDirectory, "assets", "readme.md")`. This works the same way both locally and when deployed to Azure. The asset files are packaged with the deployment artifact rather than uploaded separately to external storage. For the complete code example, see the [Azure Functions MCP Extension repo](https://github.com/Azure/azure-functions-mcp-extension/tree/main/test/TestAppIsolated).
128+
For the complete code example, see the [Azure Functions MCP Extension repo](https://github.com/Azure/azure-functions-mcp-extension/tree/main/test/TestAppIsolated).
129129

130130
::: zone-end
131131

132132
::: zone pivot="programming-language-java"
133-
The MCP extention in Java does not support resource today.
133+
134+
> [!IMPORTANT]
135+
> The MCP extension in Java does _not_ support resource today.
136+
134137
::: zone-end
135138

136139
::: zone pivot="programming-language-javascript"
@@ -215,7 +218,9 @@ app.mcpTool("getWeather", {
215218
For the complete code example, see [weatherMcpApp.ts](https://github.com/Azure-Samples/remote-mcp-functions-typescript/blob/McpAppDemo/src/functions/weatherMcpApp.ts).
216219

217220
> [!NOTE]
218-
> The MCP resource trigger for TypeScript requires version `4.12.0-preview.2` or later of the [`@azure/functions`](https://www.npmjs.com/package/@azure/functions/v/4.12.0-preview.2) package, which is in _preview_ extension bundle version `[4.32.0, 5.0.0)`. Check `host.json` to make sure the correct bundle version is specified:
221+
> The MCP resource trigger for TypeScript requires version `4.12.0-preview.2` or later of the [`@azure/functions`](https://www.npmjs.com/package/@azure/functions/v/4.12.0-preview.2) package.
222+
>
223+
> The function app must include the preview extension bundle version `[4.32.0, 5.0.0)`. Check `host.json` to make sure the correct bundle version is specified:
219224
>
220225
> ```json
221226
> "extensionBundle": {
@@ -288,11 +293,15 @@ def get_weather(location: str) -> Dict[str, Any]:
288293
For the complete code example, see [function_app.py](https://github.com/Azure-Samples/remote-mcp-functions-python/blob/main/src).
289294

290295
> [!NOTE]
291-
> The MCP resource trigger for Python requires version `1.25.0b3` or later of the [`azure-functions`](https://pypi.org/project/azure-functions/1.25.0b3/) package, which is in _preview_ extension bundle version `[4.32.0, 5.0.0)`. Check `host.json` to make sure the correct bundle version is specified:
296+
> The MCP resource trigger for Python requires version `1.25.0b3` or later of the [`azure-functions`](https://pypi.org/project/azure-functions/1.25.0b3/) package.
297+
>
298+
> If the app is using Python 3.9 - 3.12, add the following app setting to `local.settings.json` if running locally or as an environment variable if running in production: `PYTHON_ISOLATE_WORKER_DEPENDENCIES: 1`.
299+
>
300+
> Using this feature requires the preview extension bundle version `[4.32.0, 5.0.0)`. Check host.json to make sure the correct bundle version is specified:
292301
>
293302
> ```json
294303
> "extensionBundle": {
295-
> "id": "Microsoft.Azure.Functions.ExtensionBundle.Preview",
304+
> "id": "Microsoft.Azure.Functions.ExtensionBundle.Preview"
296305
> "version": "[4.32.0, 5.0.0)"
297306
> }
298307
> ```

0 commit comments

Comments
 (0)