The package tree in CONTRIBUTING still lists packages/mcp-use, which the
v2 merge deleted, and omits server, client and agent. A new contributor
following it looks for a directory that is not there and misses three of
the six packages.
Also corrects the build order note: the root build script runs
@mcp-use/client first, then mcp-use, then the rest.
* Potential fix for code scanning alert no. 28: Incomplete multi-character sanitization (#577)
Signed-off-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
* chore: enter canary prerelease mode
* feat(inspector): add sampling tab and enhance navigation (#590)
* feat(inspector): add sampling tab and enhance navigation
- Introduced a new Sampling tab in the inspector layout, allowing users to manage sampling requests.
- Implemented event listeners for custom navigation events to switch between tabs based on user actions.
- Updated the LayoutContent component to conditionally render the Sampling tab and handle its state.
- Enhanced the LayoutHeader to include the Sampling tab in the navigation.
- Refactored the NotificationsTab to remove redundant time formatting logic by utilizing a utility function.
- Updated the ToolsTab to filter results based on the selected tool, improving user experience.
This commit enhances the inspector's functionality by integrating sampling management and improving tab navigation.
* feat(inspector): enhance SamplingTab and SamplingRequestDisplay with LLM integration
- Added `mcpServerUrl` prop to `LayoutContent` and `SamplingTab` components for LLM configuration.
- Integrated LLM functionality in `SamplingRequestDisplay`, allowing users to generate responses using LLM with a new response mode toggle.
- Implemented loading states and error handling for LLM generation, improving user experience during response generation.
- Updated UI elements to reflect the new LLM capabilities, including dynamic content updates based on LLM responses.
This commit enhances the sampling functionality by incorporating LLM capabilities, providing users with more powerful response generation options.
* feat(mcp-server): enhance progress token handling and SSE streaming support
- Added support for progress tokens in the McpServer class, allowing for better tracking of tool call progress.
- Implemented a mechanism to extract progress tokens from both request metadata and session context.
- Enhanced the response handling to support Server-Sent Events (SSE) streaming, allowing for real-time progress notifications.
- Updated the handling of response headers to accommodate SSE, ensuring proper streaming behavior.
- Introduced a no-op progress callback in BaseConnector to trigger progress token addition when required.
This commit improves the server's ability to manage and notify progress during tool calls, enhancing the overall user experience.
* refactor(inspector): clean up event handling and formatting in components
- Updated event handling in Layout, SamplingTab, and related components to use globalThis for event types, improving type safety.
- Enhanced formatting consistency across multiple components by standardizing JSX structure and removing unnecessary whitespace.
- Improved readability of conditional rendering in LayoutContent and SamplingRequestDisplay components.
This commit refines the codebase by enhancing type safety and ensuring consistent formatting, contributing to better maintainability.
* feat: implement unified pre-commit strategy for Python and TypeScript (#600)
- Create root .pre-commit-config.yaml with file-based filtering
- Add Python hooks (ruff format/lint) for .py files only
- Add TypeScript hooks (prettier/eslint) for .ts/.tsx/.js/.jsx files
- Include changeset validation for TypeScript code changes
- Update CONTRIBUTING.md with unified setup instructions
- Both hooks run independently based on staged file patterns
* chore: format TypeScript files
* fix(typescript): resolve Promise type errors in MCP UI adapter
- Make createUIResourceFromDefinition async
- Make createWidgetUIResource async
- Add Promise.resolve wrapping for createUIResource calls
- Update all call sites to await async functions
- Fixes TypeScript build errors
* chore(typescript): version packages (canary)
---------
Signed-off-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- Added a new workflow for TypeScript changeset checks to ensure changesets are present for modified packages.
- Removed the outdated beta release workflow and replaced it with a canary release workflow for prereleases.
- Updated the contributing guide to clarify the process for creating changesets and managing versioning.
- Enhanced the README with details on stable and canary release channels, including installation instructions for canary versions.
- Cleaned up the TypeScript release workflow to streamline prerelease mode management and versioning processes.