Add WithAppTool helper for MCP Apps - #1815
Open
KirschBluteX wants to merge 4 commits into
Open
Conversation
KirschBluteX
force-pushed
the
feat/with-app-tool-1607
branch
from
August 14, 2026 18:31
7fc29e4 to
f19fc75
Compare
Author
|
@mikekistler Could you review PR #1815 when you have a chance? It adds the ergonomic |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1607
Summary
Add an ergonomic
WithAppToolhelper for registering an MCP Apps tool and its linked HTML resource in one call.The helper composes the existing tool, resource, and MCP Apps registration paths while keeping the lower-level
WithToolsandWithResourcesAPIs unchanged.Behavior
ui://resource URI.resourceUrias the authoritative tool/resource link._meta.ui.resourceUrimetadata.text/html;profile=mcp-app.stringTask<string>ValueTask<string>CancellationToken.Testing
net10.0,net9.0,net8.0, andnetstandard2.0: 0 warnings, 0 errorsGitHub Actions are currently waiting for maintainer approval (
action_required), so no hosted CI result is available yet.