Skip to content

Conversation

@hallvictoria
Copy link
Contributor

@hallvictoria hallvictoria commented Feb 2, 2026

Added new decorators for mcp_resource_trigger

Examples:

@app.mcp_resource_trigger(
        arg_name="context",
        uri="file://readme.md",
        resource_name="myresource"
)
def mcp_resource_trigger(context) -> None:
    """A generic MCP tool trigger for the hello_mcp tool."""
    pass
@app.mcp_resource_trigger(
        arg_name="context",
        uri="file://readme.md",
        resource_name="myresource",
        title="",
        description="",
        mime_type="",
        size=1024,
        metadata=""
)
def mcp_resource_trigger(context) -> None:
    """A generic MCP tool trigger for the hello_mcp tool."""
    pass

@hallvictoria hallvictoria marked this pull request as ready for review February 2, 2026 20:13
@hallvictoria hallvictoria merged commit 3d3067e into dev Feb 6, 2026
15 checks passed
@hallvictoria hallvictoria deleted the hallvictoria/mcp-resource-decorator branch February 6, 2026 20:09
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.

2 participants