Repository navigation
feat: add application widget registry and examples resource (#73) - #101
Open
jpsiddharth2008 wants to merge 1 commit into
Open
jpsiddharth2008 wants to merge 1 commit into
jpsiddharth2008 wants to merge 1 commit into
Conversation
AadarshM07
self-requested a review
October 29, 2026 12:15
AadarshM07
requested changes
Oct 29, 2026
AadarshM07
left a comment
Collaborator
There was a problem hiding this comment.
The core implementation looks good to me. however the repo does not maintain a doc/ folder. Also issue#73-verfication.md looks more like developer reference. the minimal documentation can be added on the readme.md itself and the additional doc folder can be removed i think.
This branch has not been deployed
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.
Summary
Closes #73.
Adds an application-owned widget registry and a
widget://examplesMCP resource so tooling can discover registered widgets, their metadata, and example inputs and outputs.The registry is built from tools registered during application startup, including helper-generated
@widgetoptions. It does not scan source files or execute tools.Changes
WidgetRegistry,WidgetManifest,WidgetMetadata, andWidgetExample.app.widget_registryandget_widget_registry(app).widget://examples.widget://examplesregistrations in applications containing widgets.Acceptance criteria
python-starter: 1 unique widget.python-pizzaz: 3 unique widgets.python-oauth/flight-booking: 6 unique widgets.order-summaryappear once.Testing
Added 22 tests covering:
Complete test collection succeeds: 847 tests.
Validated locally with official MCP 2.3.0:
The new registry module has 100% statement coverage. No test exclusions, new skips, or
xfailmarkers were added.Windows 3.12 limitation
An existing OAuth localhost HTTP test intermittently raises
WinError 10053. The same test and error were reproduced on unchanged upstreamdevelop(63ecd924) using the same Python and MCP versions.All new widget tests pass. No OAuth implementation or tests were modified to suppress the failure.
Validation