Commit 55dfebf
authored
feat: MCP-638: TS implement UI resource in server (#77)
* update mcp-ui/server with support to apps sdk
* remove patch mcp-ui issue has been fixed
* feat: implement UI resource functionality in MCP server
- Add UIResourceDefinition type and supporting interfaces for widget configuration
- Implement uiResource() method that registers widgets as both tools and resources
- Add widget prop handling with automatic query parameter conversion
- Create modular type system with separate files for common, resource, tool, and prompt types
- Support widget iframe rendering with configurable frame sizes
- Add widget serving routes for static assets and HTML files
- Export UIResource types from main package index for external consumption
* feat: add new uiresource template
* feat: dynamically list available templates in create-mcp-use-app
- Replace hardcoded template list with dynamic directory scanning
- Add helpful tip about uiresource template for UI resources
- Improve error message when template not found
* feat: create mcp-ui-adapter + tests
* fix: refactor mcp-ui-adapter to be a pure function
* minor
* update uiresource template with all mcp-ui resource types
* add plans
* add test_app
* minor
* changelog
* update package with /server
* add uiresource to readme
* cleanup: move helpers into test file
* remove unused
* fix imports
* never export serrver modules1 parent 1bbe767 commit 55dfebf
File tree
29 files changed
+3175
-117
lines changed- .changeset
- CLAUDE
- packages
- create-mcp-use-app/src
- templates/uiresource
- resources
- src
- mcp-use
- src/server
- adapters
- types
- tests
- helpers
- patches
29 files changed
+3175
-117
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
File renamed without changes.
0 commit comments