Skip to content

Comments

Add McpResourceTrigger and McpMetadata annotations#231

Open
ahmedmuhsin wants to merge 3 commits intoAzure:devfrom
ahmedmuhsin:feature/mcp-resource-and-metadata
Open

Add McpResourceTrigger and McpMetadata annotations#231
ahmedmuhsin wants to merge 3 commits intoAzure:devfrom
ahmedmuhsin:feature/mcp-resource-and-metadata

Conversation

@ahmedmuhsin
Copy link
Contributor

@ahmedmuhsin ahmedmuhsin commented Feb 18, 2026

Summary

Adds two new annotations for MCP (Model Context Protocol) support:

McpResourceTrigger

Trigger annotation for MCP resource functions. Applied to the parameter that receives the resource request data.

Members: name(), dataType(), uri(), resourceName(), mimeType(), description(), size(), metadata()

McpMetadata

Companion annotation for attaching arbitrary JSON metadata to MCP triggers. Placed on the same parameter as the trigger annotation. The metadata is surfaced as the _meta field in the MCP protocol responses (tools/list, resources/list).

Members: name(), dataType(), json()

Version

Library version bumped to 3.2.4.

Related PRs

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.

1 participant