Commit Graph

3 Commits

Author SHA1 Message Date
Andrew Khadder 68afda5885 docs(typescript): review and rewrite TypeScript docs (MCP-2466) (#1780)
* docs: remove stale feedback block and orphaned anchor from docs.json

* chore(docs): make Typescript more prominent

* chore(docs): Update `welcome.mdx`

* docs: rewrite TypeScript quickstart and welcome pages

Refocus the quickstart on create-mcp-use-app (scaffold, run, and deploy a
first MCP server) and drop the agent/client/server primer table and
diagram. Convert the welcome page's server + widget example from Tabs to
CodeGroup and tighten the intro wording.

* docs: remove stale server templates page and fix its references

Delete the typescript/server/templates page and repoint the home
templates tip to the quickstart, which now covers create-mcp-use-app.

* docs(typescript): fix dead example links to real example paths

The 'see a full example' links pointed at GitHub folders that 404 or
contain only a README. Corrected to the real runnable examples under
libraries/typescript/packages/mcp-use/examples/, verified against
origin/main (incl. matching cd commands):

- installation: examples/server -> packages/.../examples/server
- client-configuration: a .py link -> real TS multi-server example
- code-mode: examples/client/* -> examples/agent/code-mode/*
- elicitation, sampling, notifications: server/X -> server/features/X
- supabase: server/supabase -> server/deployment/supabase
- clerk: restore missing packages/mcp-use/ path segment

Quickstart links were already fixed by the quickstart rewrite (e6903716).
Part of the docs audit (MCP-2466).

* docs(typescript): rewrite Agent and Client introduction pages

Rewrite the Agent and Client intro pages to be task-oriented and
scannable: concise feature lists with cross-links, runnable quick-start
examples, and added API reference sections. Drop stale CodeSandbox
embeds and outdated model names.

* docs(typescript): fix MCPServer class name casing in server reference

The API Reference heading, prose, and class signature used McpServer;
the real SDK export is MCPServer. Corrected all three occurrences in
server/index.mdx.

* docs: add redirect for bare /typescript/server path

Routes the bare /typescript/server path to its index page now that the
server section has been restructured.

Claude-Session: https://claude.ai/code/session_015uioJjKTAZXGQpbXHUHZWp

* docs(typescript): fix broken code examples across MCP Server & Apps section

Fix all 102 confirmed code defects found in the MCP Server & MCP Apps
documentation audit (47 pages, 401 code blocks), verified against the
mcp-use@1.32 SDK source. The recurring patterns that made copy-pasted
examples fail to compile or run are now corrected everywhere they appeared:

- server.start() -> await server.listen() (no start() method exists)
- bare-object tool returns wrapped in object()/text() response helpers;
  catch blocks renamed so they no longer shadow the error() helper
- prompt messages use role:"user" with typed { type:"text" } content
  instead of the invalid role:"system" + bare-string shape
- auth reads ctx.auth.user.userId (not ctx.auth.userId); user fields live
  under ctx.auth.user, scopes/permissions stay top-level
- security: remove verifyJwt: process.env.NODE_ENV === 'production' from all
  six OAuth provider pages (off-prod it skips signature verification and
  accepts forged tokens); rely on the secure default, with a warning never
  to disable it
- correct import subpaths: Logger/MCPClient from mcp-use, response helpers
  and server symbols from mcp-use/server, MCPClient as BrowserMCPClient from
  mcp-use/browser; drop the unexported getMcpAppsBridge
- useWidget generics use the real <TProps, TState, TOutput, ...> order;
  remove the non-existent notifyIntrinsicHeight (auto-size via McpUseProvider)
- fix the deployment URL to <id>.run.mcp-use.com/mcp, add missing z/helper
  imports, add the --branch/--dockerfile CLI options, and clean up em dashes
  and bare/malformed code fences

Each page was fixed and then independently re-verified against the SDK
source, with a repo-wide pattern sweep confirming no instances remain.
Structural IA changes (moving widget-components to /react/, orphan
redirects) are intentionally deferred to the docs rewrite.

* docs(typescript): restructure MCP Server & MCP Apps IA

Promote MCP Apps to its own top-level section in the TypeScript SDK Docs tab and move the 9 React widget-component pages out of /server/widget-components/ into /typescript/react/.

- Move 9 React component pages to typescript/react/ (git renames) with 9 redirects
- Promote MCP Apps to a top-level group (Overview pages + React subgroup)
- Remove the duplicate MCP Apps group from the Home product nav; rehome guides/chatgpt-apps-flow under MCP Apps so it no longer orphans
- Move cli-reference out of MCP Server into a new Tooling group
- Relocate response-helpers -> Core Components, openapi -> Advanced Features, nextjs-drop-in -> Deployment
- Repoint all widget-components links to /typescript/react/
- Fix 3 broken anchor links (inspector CLI env var, mcp-apps metadata, auth providers)

Structure-only change; no page content rewrites. Refs MCP-2466.

* docs: refresh TypeScript server app docs

* docs: add TypeScript API reference

* docs: streamline TypeScript server navigation

* docs: rewrite core TypeScript server guides

* docs: rewrite advanced TypeScript server guides

* docs: rewrite TypeScript server OAuth guides

* docs: rewrite TypeScript server session storage guides

* docs: rewrite MCP Apps section

* docs: add TypeScript MCP client API reference

* docs: add TypeScript MCP agent API reference

* docs: reorder TypeScript API reference nav

* docs: reorganize TypeScript tooling nav

* docs: rewrite inspector guides

* docs: rewrite MCP server tunneling guide

* docs: rewrite CLI client and reference docs

* docs: finalize TypeScript documentation rewrite

* docs: move inspector updates under get started

* Fix Mintlify validation errors

* Fix Mintlify broken links

* docs: update Manufact Cloud deployment guide

* chore: retrigger Mintlify docs preview

* Fix MDX comment syntax on home page

* docs: rework TypeScript server examples

* docs: fix server docs links

* docs: restore SDK links in home sidebar

* docs: move SDK links to end of home sidebar
2026-06-29 10:05:13 -07:00
Enrico Toniato 53fb6703be Merge canary: Multi-server MCP client, telemetry refactor, and UI enhancements (#730)
* Feat/inspector/open in (#717)

* fix(docs): update title and description for Google Cloud Run deployment guide

* feat(docs): enhance command palette with "Add to Client" functionality

- Introduced new "Add to Client" section in the command palette documentation, detailing actions for adding the current MCP server to various AI clients and code editors.
- Updated the index and command palette files to reflect the new feature, including installation methods and usage instructions.
- Added visual aids to improve user understanding of the new functionality.

* chore: enter canary prerelease mode

* chore(typescript): version packages (canary)

* test: add tests to ensure mcp-use/react and mcp-use/browser do not import Node.js dependencies (#729)

* test: add tests to ensure mcp-use/react and mcp-use/browser do not import Node.js dependencies

- Introduced a new test file to verify that the built outputs of mcp-use/react and mcp-use/browser do not include Node.js built-in modules or Node.js-specific npm packages.
- Implemented checks for both static analysis and runtime behavior to ensure compliance with browser compatibility.
- The tests are expected to fail initially, highlighting any existing Node.js dependencies in the bundles.

* refactor(logging): remove Winston dependency and enhance SimpleConsoleLogger

- Eliminated the Winston logger integration, simplifying the logging mechanism to use only the SimpleConsoleLogger across all environments.
- Updated the Logger class to configure and manage instances of SimpleConsoleLogger, allowing for customizable log formats (minimal, detailed, emoji).
- Adjusted the logging methods to ensure consistent behavior without relying on Node.js-specific modules, improving compatibility with browser environments.
- Cleaned up the codebase by removing unused imports and functions related to Winston.

* feat(telemetry): enhance browser compatibility and logging functionality

- Updated the telemetry system to ensure compatibility with both browser and Node.js environments by introducing a new `telemetry-browser.ts` file.
- Refactored the logging methods in `SimpleConsoleLogger` to support additional arguments, improving log message formatting.
- Adjusted the `RemoteAgent` and various utility functions to safely access environment variables, ensuring they work seamlessly in browser contexts.
- Added tests to verify that the `mcp-use/react` and `mcp-use/browser` modules do not import Node.js dependencies, reinforcing browser compatibility.

* fix(inspector): update imports for server-side compatibility

- Changed the import statements for MCPAgent and MCPClient to use the main entry point instead of the browser-specific version, ensuring proper functionality in server-side contexts.

* chore(pnpm-lock): remove unused dependencies and clean up lock file

- Removed several unused packages from the pnpm-lock.yaml file, including Winston and related dependencies, to streamline the project and reduce potential security vulnerabilities.
- Cleaned up the lock file by eliminating optional dependencies that are no longer required, ensuring a more efficient package management experience.

* refactor(telemetry): improve compatibility checks and logging

- Enhanced the `telemetry-browser.ts` and `telemetry-node.ts` files to ensure better compatibility with various environments by adding checks for `localStorage` and `crypto` availability.
- Updated logging to provide more informative debug messages for potential issues, particularly in private browsing scenarios.
- Refactored the `secureRandomString` function to handle ESM-only environments gracefully, ensuring consistent behavior across different Node.js versions.

* feat(inspector): integrate MCP proxy utilities and enhance configuration handling

- Added utility functions from `mcp-use/utils` to streamline proxy configuration in the Inspector components.
- Updated `vite.config.ts` to include the new utility path and optimize dependencies.
- Refactored `InspectorDashboard` and `McpContext` to utilize the new `applyProxyConfig` function for cleaner URL and header management.
- Mounted MCP proxy middleware in `shared-routes.ts` to handle proxy requests more efficiently.
- Exported utility functions from `mcp-use` for better accessibility across the project.

* feat(auth): add OAuth token handling to useMcp hook

- Introduced `authTokens` state in the `useMcp` hook to store OAuth tokens upon successful authentication.
- Updated the `UseMcpResult` type to include `authTokens` for better integration with OAuth workflows.
- Enhanced error handling in the `HttpConnector` by removing SSE fallback message for clarity.

* feat(inspector): add server icon support in Inspector components

- Enhanced `ServerIcon` component to accept a `serverIcon` prop for displaying a Base64-encoded icon.
- Updated `InspectorDashboard` and `ServerList` components to pass the `serverIcon` from `connection.serverInfo`.
- Introduced `ensureIconLoaded` method in `useMcp` hook to manage icon loading and availability.
- Added utility function for favicon detection to improve icon handling.

* fix(inspector): clean up imports and enhance component structure

- Removed duplicate imports in `ServerList.tsx` for better clarity and organization.
- Adjusted the export statement in `index.ts` to ensure `proxy-config.js` is included, improving utility accessibility.
- Reformatted import statements in `types.ts` for consistency and readability.

* feat(inspector): implement embedded mode support and enhance component interactions

- Added support for embedded mode in the `App`, `Layout`, and `McpProvider` components, allowing for dynamic configuration based on URL parameters.
- Updated `LayoutHeader` and `AddToClientDropdown` components to conditionally render elements based on the embedded state, improving user experience in embedded contexts.
- Refactored utility functions for generating deep links and configuration commands to streamline integration with various clients.
- Introduced new utility functions in `mcpClientUtils` for better handling of server configurations and commands.

* chore: changeset

* chore(typescript): version packages (canary)

* fix(inspector): update root path redirection to preserve query parameters

* chore: changeset (#731)

* chore(typescript): version packages (canary)

* Potential fix for code scanning alert no. 55: Shell command built from environment values

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/client-react-provider (#733)

* refactor(inspector): enhance application structure and multi-server support

- Introduced McpClientProvider to manage multiple MCP server connections, allowing dynamic addition and removal of servers.
- Updated App component to include McpClientProvider and reorganized routing structure for better clarity.
- Refactored InspectorDashboard to simplify server connection handling and improve UI responsiveness.
- Enhanced McpContext to support new server management features, including notification and request handling.
- Added a new example demonstrating multi-server management in a React application.

This refactor improves the overall architecture and usability of the inspector, facilitating better server management and user experience.

* refactor(inspector): update components for improved server management and UI enhancements

- Refactored App component to integrate LocalStorageProvider for managing server connections.
- Updated InspectorDashboard and related components to utilize new McpClientProvider for better server state handling.
- Simplified connection settings by removing deprecated transport types and ensuring consistent use of HTTP.
- Enhanced CommandPalette and ServerDropdown components to improve server icon handling and display.
- Removed obsolete McpContext and adjusted imports across components for cleaner architecture.

These changes enhance the overall structure and usability of the inspector, facilitating better server management and user experience.

* feat(logging): filter out noisy endpoints from request logging

- Added functionality to skip logging for specific noisy endpoints that generate excessive log entries, such as telemetry and RPC stream paths.
- Ensured that requests to these paths are still processed without logging, improving log clarity and reducing spam.

* feat(logging): enhance debugging in Layout and useAutoConnect components

- Added detailed logging in the Layout component to track MCP client context values, including server status and storage loading.
- Improved logging in the useAutoConnect hook to provide insights during the auto-connect process, including checks for configuration loading and query parameters.
- These enhancements facilitate better debugging and monitoring of server connection states and application behavior.

* fix(inspector): correct server connection retrieval in OpenAIComponentRenderer

- Updated the method for retrieving the server connection in OpenAIComponentRenderer to directly access the connections array, improving clarity and functionality in server management.

* feat(mcp-agent): export MCPAgent for browser usage with BrowserMCPClient

- Updated the browser entry point to export MCPAgent, enabling its use in the browser when provided with a BrowserMCPClient instance or through RemoteAgent.
- Adjusted import statements in mcp_agent.ts to dynamically import MCPClient, ensuring compatibility with browser environments.

* feat(inspector): enhance UI components and improve responsiveness

- Updated AddToClientDropdown to include new icons and improved button layout for better user experience.
- Adjusted LayoutHeader to change visibility of the Github label based on screen size.
- Refactored LogoAnimated to hide additional information on smaller screens.
- Enhanced PromptsTab and ResourcesTab with new imports and improved error handling for results.
- Updated ServerDropdown to adjust padding for better alignment.
- Improved ToolsTab with additional imports and responsive design adjustments.

These changes collectively enhance the user interface and responsiveness of the inspector components.

* fix(inspector): resolve layout issues in responsive components

- Corrected alignment and visibility issues in various inspector components to enhance user experience on different screen sizes.
- Adjusted styles in AddToClientDropdown, LayoutHeader, and ServerDropdown for improved responsiveness.
- Ensured consistent behavior across PromptsTab and ResourcesTab with better error handling.

These fixes collectively improve the layout and usability of the inspector on various devices.

* fix(server-lifecycle): remove SSE endpoint from server startup logs

- Updated the server startup log message to exclude the SSE endpoint, simplifying the output for clarity.
- This change enhances the readability of the server's listening information during startup.

* feat(inspector): add global sampling and elicitation request handling

- Implemented toast notifications for sampling and elicitation requests in the App component, enhancing user interaction and response management.
- Updated McpClientProvider to support global callbacks for handling sampling and elicitation requests, allowing for centralized processing.
- Refactored server handling in McpServerWrapper to include new global request handlers, improving the overall request management architecture.
- Adjusted package.json scripts in the elicitation example for consistency with the mcp-use command structure.

These changes collectively improve the user experience by providing immediate feedback on sampling and elicitation requests, while also enhancing the underlying architecture for better request handling.

* chore(typescript): version packages (canary)

* feat(inspector): enhance URL parameter handling in Inspector components

- Updated InspectorDashboard, Layout, and useAutoConnect to preserve both tunnelUrl and tab parameters in navigation.
- Improved query parameter management by utilizing URLSearchParams for cleaner and more maintainable code.
- Added validation for tab parameters to ensure only valid tab types are set, enhancing user experience and navigation consistency.

* chore(typescript): version packages (canary)

* feat(inspector): improve URL navigation handling in useAutoConnect hook

- Enhanced the useAutoConnect hook to utilize URLSearchParams for constructing navigation URLs, preserving tunnelUrl and tab parameters.
- This change simplifies the URL management and improves the overall user experience during navigation.

* chore(typescript): version packages (canary)

* feat(inspector): update AddToClientDropdown and LayoutHeader for improved SDK integration

- Modified AddToClientDropdown to accept serverId and enhance dropdown item handling.
- Updated LayoutHeader to integrate TypeScript and Python SDK options, improving user experience for adding clients.
- Enhanced modal rendering and button interactions for better usability.
- Adjusted code formatting in dropdown content for improved readability.

* fix(inspector): resolve layout and responsiveness issues in inspector components

- Corrected alignment and visibility problems in AddToClientDropdown, LayoutHeader, and ServerDropdown for improved user experience across devices.
- Enhanced error handling in PromptsTab and ResourcesTab to ensure consistent behavior.
- Adjusted styles for better responsiveness and usability in various screen sizes.

* chore(typescript): version packages (canary)

* fix(http): reduce default timeout for HttpConnector from 30 seconds to 10 seconds and adjust connection timeout handling

* chore(typescript): version packages (canary)

* fix(react): optimize mcpOptions handling in McpClientProvider to prevent render loops

- Memoized the options passed to useMcp to avoid unnecessary re-renders.
- Extracted callback options to streamline the component's performance.

* fix(react): prevent duplicate scheduling of auto-retry in useMcp hook

- Introduced a ref to track if a retry is already scheduled, avoiding potential render loops.
- Reset the scheduling ref when the connection state changes from failed to another state.

* fix(react): enhance state management in McpClientProvider and useMcp hook

- Renamed variable for clarity in McpClientProvider to improve readability.
- Updated state comparison logic to use a single reference for previous server state, reducing redundancy.
- Introduced refs for function callbacks in useMcp to prevent stale closures and circular dependencies.
- Ensured that retry logic utilizes updated refs to maintain correct behavior during connection attempts.

* fix(react): improve error handling and state management in useMcp hook

- Enhanced error handling logic in useMcp to provide clearer feedback during connection failures.
- Updated state management to ensure accurate tracking of connection status and retries.
- Refactored code for better readability and maintainability.

* chore(typescript): version packages (canary)

* Refactor: Use 'open' package to open browser

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

* feat(widgets): enhance HMR configuration for better cross-platform support

- Added explicit HMR configuration with WebSocket protocol for improved compatibility.
- Enabled polling for file watching on Linux to address reliability issues in various environments.
- Set polling interval to 100ms for more responsive updates during development.

* feat(inspector): add parsePortFromArgs function to handle port argument parsing

- Introduced a new utility function to parse the port from command line arguments, allowing for dynamic port configuration.
- Updated server.ts to import the new function for enhanced server setup flexibility.

* chore(typescript): version packages (canary)

* 📝 Add docstrings to `canary`

Docstrings generation was requested by @tonxxd.

* https://github.com/mcp-use/mcp-use/pull/730#issuecomment-3711382419

The following files were modified:

* `libraries/typescript/packages/inspector/src/client/App.tsx`
* `libraries/typescript/packages/inspector/src/client/components/CommandPalette.tsx`
* `libraries/typescript/packages/inspector/src/client/components/ConnectionSettingsForm.tsx`
* `libraries/typescript/packages/inspector/src/client/components/InspectorDashboard.tsx`
* `libraries/typescript/packages/inspector/src/client/components/Layout.tsx`
* `libraries/typescript/packages/inspector/src/client/components/LayoutHeader.tsx`
* `libraries/typescript/packages/inspector/src/client/components/LogoAnimated.tsx`
* `libraries/typescript/packages/inspector/src/client/components/OpenAIComponentRenderer.tsx`
* `libraries/typescript/packages/inspector/src/client/components/PromptsTab.tsx`
* `libraries/typescript/packages/inspector/src/client/components/ResourcesTab.tsx`
* `libraries/typescript/packages/inspector/src/client/components/SdkIntegrationModal.tsx`
* `libraries/typescript/packages/inspector/src/client/components/ServerCapabilitiesModal.tsx`
* `libraries/typescript/packages/inspector/src/client/components/ServerConnectionModal.tsx`
* `libraries/typescript/packages/inspector/src/client/components/ServerDropdown.tsx`
* `libraries/typescript/packages/inspector/src/client/components/ServerIcon.tsx`
* `libraries/typescript/packages/inspector/src/client/components/ServerList.tsx`
* `libraries/typescript/packages/inspector/src/client/components/ToolsTab.tsx`
* `libraries/typescript/packages/inspector/src/client/components/chat/AssistantMessage.tsx`
* `libraries/typescript/packages/inspector/src/client/components/logging/JsonRpcLoggerView.tsx`
* `libraries/typescript/packages/inspector/src/client/components/prompts/PromptMessageCard.tsx`
* `libraries/typescript/packages/inspector/src/client/components/prompts/PromptResultDisplay.tsx`
* `libraries/typescript/packages/inspector/src/client/components/shared/MarkdownRenderer.tsx`
* `libraries/typescript/packages/inspector/src/client/components/ui/client-icons.tsx`
* `libraries/typescript/packages/inspector/src/client/context/InspectorContext.tsx`
* `libraries/typescript/packages/inspector/src/client/hooks/useAutoConnect.ts`
* `libraries/typescript/packages/inspector/src/server/server.ts`
* `libraries/typescript/packages/inspector/src/server/shared-static.ts`
* `libraries/typescript/packages/inspector/src/server/shared-utils-browser.ts`
* `libraries/typescript/packages/inspector/src/server/utils.ts`
* `libraries/typescript/packages/mcp-use/src/agents/utils/llm_provider.ts`
* `libraries/typescript/packages/mcp-use/src/logging.ts`
* `libraries/typescript/packages/mcp-use/src/observability/langfuse.ts`
* `libraries/typescript/packages/mcp-use/src/react/McpClientProvider.tsx`
* `libraries/typescript/packages/mcp-use/src/react/rpc-logger.ts`
* `libraries/typescript/packages/mcp-use/src/server/logging.ts`
* `libraries/typescript/packages/mcp-use/src/server/utils/server-lifecycle.ts`
* `libraries/typescript/packages/mcp-use/src/server/widgets/mount-widgets-dev.ts`
* `libraries/typescript/packages/mcp-use/src/telemetry/telemetry-browser.ts`
* `libraries/typescript/packages/mcp-use/src/telemetry/telemetry-node.ts`
* `libraries/typescript/packages/mcp-use/src/utils/favicon-detector.ts`
* `libraries/typescript/packages/mcp-use/src/utils/mcpClientUtils.ts`

* feat(inspector, layout): implement updateServer functionality for connection management

- Added `updateServer` method to handle server configuration updates in both InspectorDashboard and Layout components.
- Introduced state management to track concurrent updates and prevent race conditions during connection updates and reconnections.
- Enhanced error handling for connection updates to provide clearer feedback in case of failures.

* fix: ensure consistent formatting by adding missing newlines at the end of multiple files

- Added newlines at the end of several TypeScript files to adhere to coding standards and improve compatibility with various tools.
- Files modified include components, hooks, and server utilities across the inspector and mcp-use packages.

* chore(typescript): version packages (canary)

* chore(deps): add @types/node@25.0.2 to package.json and pnpm-lock.yaml

* chore(typescript): version packages (canary)

* refactor: update modelcontextprotocol-sdk references to new package name

- Replaced all instances of `@mcp-use/modelcontextprotocol-sdk` with `@modelcontextprotocol/sdk` across various files.
- Updated version in `package.json` and `pnpm-lock.yaml` to `1.25.1`.
- Adjusted import paths in components, utilities, and tests to reflect the new package structure.
- Ensured compatibility with existing code by maintaining type imports and functionality.

* feat(inspector): enhance client configuration and UI components

- Added support for client exports in the build process by introducing a new build script for client exports in `package.json`.
- Enhanced the `CommandPalette` and `SdkIntegrationModal` components to utilize local utility functions instead of external dependencies.
- Introduced a new CSS animation for status indicators in `index.css`.
- Updated the `LayoutHeader` component to conditionally display notification dots based on tab activity.
- Removed the deprecated `AddToClientDropdown` component and adjusted related imports accordingly.
- Improved client configuration examples in the `notification-client` and `sampling-client` files to include client identification for better server-side logging.
- Cleaned up unused imports and ensured consistent formatting across several files.

* fix: pin zod version to 3.24.4 for compatibility with modelcontextprotocol/sdk

- Updated the temporary deno.json in the TypeScript PR preview workflow to use zod@3.24.4, ensuring compatibility with @modelcontextprotocol/sdk@1.25.1.
- Adjusted import URLs to include the pinned zod version as a dependency.

* chore(typescript): version packages (canary)

* fix: update zod version handling in TypeScript PR preview workflow

- Modified the temporary deno.json to use zod from npm instead of pinning to a specific version, resolving potential version conflicts between mcp-use and @modelcontextprotocol/sdk.
- Adjusted import paths to accommodate the new zod versioning and subpath imports.

* fix: refine zod version mapping in TypeScript PR preview workflow

- Updated the temporary deno.json to implement a hybrid mapping for zod, addressing conflicting version requirements between SDK and other dependencies.
- Adjusted import paths to ensure compatibility with both zod v3 and v4, utilizing esm.sh for consistent environment resolution.

* fix: enhance zod version mapping in TypeScript PR preview workflow

- Updated the deno.json to include additional zod subpath imports, ensuring compatibility with both zod v4 and its mini version.
- Adjusted import URLs to reflect the new zod versioning structure, maintaining consistency in the PR preview environment.

* docs: add troubleshooting section for Zod version conflicts in Supabase deployment

- Introduced a new section addressing the "custom is not a function" error related to Zod version conflicts during Deno/Supabase deployments.
- Provided solutions for using npm specifiers in deno.json to resolve compatibility issues between Zod v3 and v4.
- Included example configurations for both npm and esm.sh imports to guide users in managing dependencies effectively.

* chore(typescript): version packages (canary)

* docs: update inspector documentation and changelog

- Added a new "Changelog" section to the inspector documentation for version history and updates.
- Expanded the changelog with multiple updates, including bug fixes, documentation enhancements, and major improvements in browser compatibility and multi-server support.

* docs: improve elicitation documentation for TypeScript client

- Enhanced clarity and formatting in the elicitation documentation, including better structure for modes and parameters.
- Updated code examples for consistency in quotation marks and improved readability.
- Added notes on validation flows and best practices for client-side and server-side validation.
- Ensured all sections are clearly defined and easy to follow for users implementing elicitation in their applications.

* docs: format pages in docs.json for improved readability

- Reformatted the "pages" entries in the docs.json file to use a consistent multi-line structure for better clarity and organization.
- Ensured all groups have a uniform format, enhancing the overall maintainability of the documentation structure.

* ci: add dev command testing to CI workflow

- Implemented a new job in the CI workflow to test the development command without the --dev flag.
- The job starts the dev server in the background, waits for it to initialize, and then stops it, ensuring the server starts and stops successfully.
- Adjusted the shell option in the TypeScript CLI to use the platform-specific shell on Windows for better compatibility.

* ci: add dev command testing to CI workflow & fix issue [#742](https://github.com/mcp-use/mcp-use/issues/742)

* chore(typescript): version packages (canary)

* fix(ci): improve Windows process termination in CI workflow

- Enhanced the method for killing the development server on Windows by using port-based identification for more reliable process termination.
- Added a fallback to the existing process tree kill method to ensure robustness in stopping the server.

* chore(typescript): version packages (canary)

* chore(docs): update changelog for TypeScript and inspector

- Updated changelog entries for TypeScript and inspector documentation to include new features, enhancements, and bug fixes.
- Improved clarity by adding descriptions to version labels and restructuring sections for better readability.
- Notable updates include multi-server support, browser compatibility improvements, and enhanced RPC logging.

* chore(docs): update changelog for inspector and TypeScript

- Revised changelog entries to reflect recent updates, including new features, enhancements, and bug fixes.
- Improved organization and clarity of version labels and descriptions.
- Notable changes include the addition of browser telemetry, improved server middleware, and various bug fixes across components.

---------

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: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: tonxipad <tonxipad@gmail.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-01-06 10:11:10 +01:00
Enrico Toniato a145cc7884 Docs/inspector (#492)
* refactor: reorganize documentation structure for Inspector and Dev Tools

- Updated the docs.json file to consolidate Inspector and Tunneling pages under a new "Dev Tools" group.
- Removed redundant entries for Inspector and Tunneling from the documentation structure.
- Added a sidebar title for the Inspector page to enhance navigation.

* docs: enhance Inspector documentation and add new CLI usage guides

- Updated `docs.json` to include new pages for CLI usage, connection settings, keyboard shortcuts, command palette, integration, debugging ChatGPT apps, and development under the Inspector section.
- Expanded the Inspector documentation to cover new features, including CLI usage and detailed guides for keyboard shortcuts and integration.
- Improved the `self-hosting` documentation to reference the new CLI usage guide.
- Enhanced the `apps-sdk-resources` documentation with additional details on widget state and testing procedures using the Inspector.

* fix broken links
2025-11-19 19:22:35 +01:00