Commit Graph

2 Commits

Author SHA1 Message Date
Enrico Toniato ed0fadbb01 Canary (#1200)
* Fix/move-zod-to-peer (#1198)

* chore: update pnpm-lock.yaml and package.json to include zod dependency in mcp-use package and test_app configuration

* feat(cli): implement TypeScript file collection and transpilation with esbuild

- Added `collectTsFiles` function to gather TypeScript files based on tsconfig patterns using Node.js built-ins.
- Introduced `transpileWithEsbuild` function to handle TypeScript transpilation, improving performance and memory usage.
- Updated build command to utilize esbuild for transpilation and added an option to skip TypeScript type checking with `--no-typecheck`.

* chore: enter canary prerelease mode

* chore(typescript): version packages (canary)

* chore: update package dependencies in TypeScript libraries (#1199)

* chore: update package dependencies in TypeScript libraries

- Bump `qs` version from `>=6.14.1` to `>=6.14.2`.
- Add new dependencies: `flatted`, `tar`, `hono`, `@hono/node-server`, `express-rate-limit`, `dompurify`, `minimatch`, `rollup`, `@modelcontextprotocol/sdk`, `ai`, `ajv`, `axios`, `body-parser`, `brace-expansion`, `@isaacs/brace-expansion`, `form-data`, `lodash`, and `@eslint/plugin-kit`.
- Update `tar` version from `^7.5.9` to `^7.5.11` in multiple packages.
- Update `hono` version from `^4.11.10` to `^4.12.7` in relevant packages.
- Update `@modelcontextprotocol/sdk` version from `^1.26.0` to `^1.27.1` in relevant packages.
- Update `express-rate-limit` version from `^7.4.1` to `>=8.2.2` in the example server feature.

* chore: remove ajv dependency from TypeScript libraries

- Removed `ajv` dependency from `package.json` and `pnpm-lock.yaml`.
- Updated peer dependencies for `ajv-formats` to use `^8.0.0` instead of `>=8.18.0`.
- Added new dependencies: `fast-json-stable-stringify`, `json-schema-traverse`, and `uri-js` with their respective versions.

* fix: ensure widget parameter is non-null in setupWidgetRoutes

- Updated the widget parameter retrieval in setupWidgetRoutes to use a non-null assertion, ensuring that the widget variable is always defined when serving static assets and widget index.html files.

* chore(typescript): version packages (canary)

* fix(typescript): use file:// URL in tsImport to fix Windows crash (#1193)

* fix(typescript): use file:// URL in tsImport to fix Windows crash

The tsImport call was passing serverFilePath (raw OS path) instead of
serverFileUrl (file:// URL), causing ERR_UNSUPPORTED_ESM_URL_SCHEME on Windows.

Fixes #1171

* fix(typescript): also fix file:// URL in generate-types and add Windows CI

The original fix addressed tsImport in the dev command but missed the
same bug in generateToolRegistryTypesForServer (used by generate-types
and postinstall). Also adds Windows to the CLI test matrix so
platform-specific path issues are caught in CI.

* fix(typescript): fix Windows path separator issues in CLI tests

- display-package-versions: use path.join instead of hardcoded forward-slash path
- tsx-resolution: use path.join in assertions to handle backslash separators
- cli-integration: skip when dist/index.cjs build artifact is missing

---------

Co-authored-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com>

* chore(typescript): version packages (canary)

* fix(workflows): enhance environment variable usage in GitHub Actions

- Updated multiple workflow files to use environment variables for better readability and maintainability.
- Replaced direct references to GitHub context variables with environment variables in `claude.yml`, `conformance.yml`, `create-app-e2e-canary.yml`, `railway-deploy.yml`, and `typescript-pr-preview.yml`.
- Improved conditional checks in scripts to utilize these environment variables, streamlining the workflow logic.

* refactor(tests): format playwrightArgs for better readability

- Reformatted the addition of `--grep-invert` arguments in the run-test-matrix script to improve code clarity and maintainability.

* refactor(cli, mcp-use): update type generation functions to return success status (#1201)

- Modified `generateToolRegistryTypesForServer` and `generateToolRegistryTypes` to return a boolean indicating success or failure instead of void.
- Updated CLI commands to handle and log success or error messages based on the type generation outcome.
- Enhanced error handling in type generation to prevent server crashes while providing feedback on failures.

* chore(typescript): version packages (canary)

* chore(docs): update changelog for v0.24.5 and v1.21.5 releases

- Added entries for v0.24.5, detailing dependency updates and fixes for security alerts.
- Included v1.21.5 changes, highlighting Zod peer dependency adjustments, esbuild transpilation improvements, and Windows path handling fixes.

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: guoyangzhen <upgyz@qq.com>
2026-03-17 13:06:26 +01:00
Enrico Toniato 2730902bd8 Canary (#565)
* Fix/inspector/scroll (#563)

* refactor: enhance layout structure in PromptsTab, ResourcesTab, and ToolsTab components

- Wrapped header and content sections in a flex container to improve layout consistency and overflow handling.
- Ensured that the UI remains responsive and visually organized across different tabs.

* chore: changeset

* feat: add enum input display in ToolInputForm component

- Introduced a new Select dropdown for enum fields, allowing users to select from predefined options.
- Implemented helper functions to resolve JSON schema references and normalize union types for better handling of input schemas.

* chore: enter canary prerelease mode

* chore(typescript): version packages (canary)

* Feat/server/oauth (#564)

* feat: Add OAuth examples and enhance authentication flow

- Introduced new examples for OAuth integration using Auth0, Supabase, and WorkOS in the mcp-use package.
- Added an OAuthCallback component to handle redirects after user authentication.
- Enhanced the App component to include routing for OAuth callbacks.
- Updated pnpm-lock.yaml and package.json to include the jose library for JWT handling.
- Improved context management for HTTP requests to support OAuth flows.
- Removed outdated notification example files to streamline the examples directory.

* feat: Enhance MCP connection management and add notification examples

- Added a `disconnect` method to the MCPConnection interface for better session management.
- Updated McpConnectionWrapper to include new connection options for improved user experience.
- Implemented connection cleanup logic in McpProvider to handle disconnections properly.
- Introduced a new example demonstrating customized notifications for connected clients using the MCP server.
- Added a WorkOS AuthKit OAuth example to showcase bearer token authentication and dynamic client registration.

* feat: Enhance authentication documentation and add notifications section

- Updated the TypeScript client authentication documentation to include new OAuth flow modes (Popup and Redirect).
- Added examples for manual authentication triggers and OAuth callback handling.
- Introduced a new notifications section in the server documentation with tips and examples for bidirectional notifications.
- Included additional tips for complete implementation examples in both notifications and tools documentation.

* lint & format

* fix: Address linting issues and format code for consistency

* chore(typescript): version packages (canary)

* Fix/canary/deps (#566)

* chore: clean up pnpm workspace and lock file by removing unused packages and examples

* chore: update dependencies and improve example scripts

- Updated zod and related dependencies to version 4.1.13 in pnpm-lock.yaml and package.json.
- Enhanced example scripts by adding notes for required environment variables and removing dotenv imports for clarity.
- Refactored code to use local utility functions for JSON schema conversion and UUID generation.
- Cleaned up unused dependencies in package.json for the mcp-use package.

* chore: update dependencies and improve package configurations

- Added `zod` version 4.1.13 to package.json and pnpm-lock.yaml.
- Removed unused dependencies from various package.json files in the create-mcp-use-app templates.
- Simplified install arguments in the getInstallArgs function for package managers.
- Enhanced error handling for optional dependencies in the McpUseProvider and connect-adapter files.
- Refactored display functions to dynamically import optional dependencies for improved performance and user experience.

* format & lint

* chore: changeset

* chore(typescript): version packages (canary)

* Fix/canary/deps (#567)

* chore: clean up pnpm workspace and lock file by removing unused packages and examples

* chore: update dependencies and improve example scripts

- Updated zod and related dependencies to version 4.1.13 in pnpm-lock.yaml and package.json.
- Enhanced example scripts by adding notes for required environment variables and removing dotenv imports for clarity.
- Refactored code to use local utility functions for JSON schema conversion and UUID generation.
- Cleaned up unused dependencies in package.json for the mcp-use package.

* chore: update dependencies and improve package configurations

- Added `zod` version 4.1.13 to package.json and pnpm-lock.yaml.
- Removed unused dependencies from various package.json files in the create-mcp-use-app templates.
- Simplified install arguments in the getInstallArgs function for package managers.
- Enhanced error handling for optional dependencies in the McpUseProvider and connect-adapter files.
- Refactored display functions to dynamically import optional dependencies for improved performance and user experience.

* format & lint

* chore: changeset

* chore: update TypeScript configuration and clean up project files

- Removed `.vercel/` from `.prettierignore` and `eslint.config.js` for consistency.
- Deleted unused `.trigger` file to streamline project structure.
- Adjusted `tsconfig.json` to maintain only necessary package paths.

* chore: update pnpm workspace and package configurations

- Added new example packages for mcp-use in the pnpm workspace, including client and server examples.
- Updated package.json for mcp-use to reflect the new version of @modelcontextprotocol/sdk.
- Enhanced McpUseProvider to dynamically load react-router-dom, improving error handling and user experience.
- Refactored connect-adapter and mcp-server to utilize createRequire for dynamic imports, ensuring compatibility with user project directories.
- Cleaned up pnpm-lock.yaml to include updated dependencies and improve overall project structure.

* refactor: clean up whitespace and formatting in McpUseProvider, connect-adapter, and mcp-server files

- Removed unnecessary blank lines to improve code readability.
- Standardized formatting for better consistency across the codebase.

* chore(typescript): version packages (canary)

* lint & format

* feat: add URL validation in connection components (#568)

- Implemented URL format validation in InspectorDashboard and ServerConnectionModal to ensure only valid protocols (http, https, ws, wss) are accepted.
- Added error handling with user feedback using toast notifications for invalid URL formats.
- Adjusted collapsedSize property in PromptsTab, ResourcesTab, and ToolsTab components for consistent UI behavior.

* chore(typescript): version packages (canary)

* fix(inspector): use terser for smaller build (#569)

* Enhance create-mcp-use-app e2e tests (#561)

* Add E2E tests for create-mcp-use-app with npm and yarn

Co-authored-by: tonxipad <tonxipad@gmail.com>

* feat: Add E2E tests for multiple create-mcp-use-app templates

Co-authored-by: tonxipad <tonxipad@gmail.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: tonxipad <tonxipad@gmail.com>

* fix docs images

* fix(inspector): enable minification for smaller build

Use esbuild's built-in minifier (minify: true) instead of adding terser.
Results in same compression (8.7MB -> 4.9MB, 44% reduction) with faster builds.

* chore: changeset

* remove test_app

---------

Co-authored-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: tonxipad <tonxipad@gmail.com>
Co-authored-by: pietrozullo <pietro.zullo@gmail.com>

* chore(typescript): version packages (canary)

* Feat/inspecto/combobox models (#570)

* feat(inspector): enhance ConfigurationDialog with model selection and password visibility toggle

- Added a combobox for model selection using a Popover and Command components for improved user experience.
- Implemented a button to toggle password visibility for the API key input field.
- Updated imports to include necessary UI components for the new features.

* fix(inspector): correct models and API keys display in inspector chat

* feat(inspector): add checkbox support and enhance Markdown rendering

- Introduced a new ListItem component to handle task list items with checkboxes in Markdown.
- Updated the MarkdownRenderer to support custom table components and improved code block handling.
- Added dependencies for @radix-ui/react-checkbox and updated package.json and pnpm-lock.yaml accordingly.
- Refined styles in ChatHeader and ChatInputArea for better layout consistency.

* chore(typescript): version packages (canary)

* refactor(create-mcp-use-app): remove --no-install flag from commands and update README for automatic dependency installation (#571)

* Potential fix for code scanning alert no. 32: Clear-text logging of sensitive information

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Signed-off-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com>

* Potential fix for code scanning alert no. 18: Workflow does not contain permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Signed-off-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com>

* Feat/mcp use/update ai sdk (#573)

* chore(dependencies): update ai package version and add overrides for sugarss

- Updated ai package from version 4.3.19 to 5.0.104 in multiple package.json files.
- Added sugarss override to package.json files in apps-sdk, mcp-ui, and starter templates for compatibility.

* feat(ci): add typescript-deno-test workflow for Deno compatibility testing

- Introduced a new CI job to test Deno compatibility for the mcp-use package.
- Updated pnpm-lock.yaml and package.json files to reference the latest version of @modelcontextprotocol/sdk from a new URL.
- Ensured dependencies are installed and built correctly before running Deno tests.

* deno test

* fix(ci): update package command from npm to pnpm for Deno testing

* refactor(mcp-use): replace LangChainAdapter with createTextStreamResponse for AI SDK compatibility

- Updated multiple files to use createTextStreamResponse instead of LangChainAdapter for creating data stream responses.
- Enhanced README and example files to reflect the new usage pattern.
- Adjusted tests to verify compatibility with the new response handling method.

* tests: added deno tests

* fix(create-mcp-use-app): parse PORT environment variable to number

* tests: exclude deno from vitest

* chore(typescript): version packages (canary)

* feat(ci): add deployment markers for canary and main branches (#574)

- Introduced steps to create and upload deployment markers for both canary and main branches in the TypeScript release workflow.
- The markers indicate successful package publication and are retained for one day.

* refactor(mcp-use): update AI SDK integration and enhance Deno testing

- Replaced LangChainAdapter with createTextStreamResponse for improved AI SDK compatibility.
- Updated README and example files to reflect new usage patterns.
- Added Deno compatibility tests and adjusted CI workflow for dependency management.
- Fixed PORT environment variable parsing in create-mcp-use-app.

* feat(ci): enhance workflow security by validating source of automatic triggers

- Added a validation step to ensure that workflow runs triggered automatically are from the same repository, preventing potential security risks from forked repositories.
- Updated conditions for deployment markers to incorporate the new validation step, ensuring only valid runs proceed to deployment.

* Fix/cli/readme (#575)

* chore(cli): update package description for clarity and feature enhancement

* fix(ci): update Deno testing workflow to ensure proper dependency installation and execution

- Adjusted the CI workflow for Deno compatibility testing to ensure all dependencies are correctly installed before running tests.
- Updated commands to use pnpm for consistency across the workflow.

* chore(typescript): version packages (canary)

---------

Signed-off-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Daniel Starns <danielstarns@hotmail.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: tonxipad <tonxipad@gmail.com>
Co-authored-by: pietrozullo <pietro.zullo@gmail.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-11-30 21:26:37 +01:00