Skip to content

Add MCP Resource Trigger Support#408

Merged
swapnil-nagar merged 15 commits intov4.xfrom
v4.x-mcp-preview
Mar 24, 2026
Merged

Add MCP Resource Trigger Support#408
swapnil-nagar merged 15 commits intov4.xfrom
v4.x-mcp-preview

Conversation

@swapnil-nagar
Copy link
Contributor

Summary

This PR adds support for MCP (Model Context Protocol) Resource Triggers in the Azure Functions Node.js library, enabling developers to expose resources via the MCP protocol.

Changes

New Features
[app.mcpResource()] - New function registration method for MCP Resource triggers
[trigger.mcpResource()] - New trigger factory function for creating MCP Resource triggers
Type definitions for McpResourceTriggerOptions, McpResourceFunctionOptions, McpResourceTrigger, and McpResourceTriggerHandler

@swapnil-nagar swapnil-nagar requested a review from a team as a code owner February 3, 2026 01:09
Copy link
Member

@liliankasem liliankasem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly lgtm, have some comments. But otherwise, the binding type and properties align with the host extension contract, and the metadata addition to McpToolTriggerOptionsToRpc also correctly matches the host extension's McpToolTriggerAttribute.Metadata property.

liliankasem
liliankasem previously approved these changes Mar 23, 2026
@swapnil-nagar swapnil-nagar dismissed liliankasem’s stale review March 23, 2026 18:17

The merge-base changed after approval.

hallvictoria
hallvictoria previously approved these changes Mar 24, 2026
@swapnil-nagar swapnil-nagar dismissed hallvictoria’s stale review March 24, 2026 17:19

The merge-base changed after approval.

@swapnil-nagar swapnil-nagar enabled auto-merge (squash) March 24, 2026 17:43
@swapnil-nagar swapnil-nagar merged commit 503d8d4 into v4.x Mar 24, 2026
13 checks passed
@swapnil-nagar swapnil-nagar deleted the v4.x-mcp-preview branch March 24, 2026 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants