mirror of
https://github.com/mcp-use/mcp-use.git
synced 2026-09-14 18:06:01 +08:00
codex/oauth-proxy-example-docs
182 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
33e4a6860e |
Canary (#496)
* chore: enter canary prerelease mode * Feature/mcp 709 fix mobile view on inspector (#494) * refactor: enhance UI responsiveness and layout across components * fix format * chore(typescript): version packages (canary) * Fix/remove debugger from pip (#495) * fix: update console visibility condition in OpenAIComponentRenderer - Modified the condition for displaying the console to exclude the "pip" display mode, ensuring the console only appears in appropriate contexts. * refactor: improve console visibility condition in OpenAIComponentRenderer - Cleaned up the conditional rendering for the console to enhance readability while maintaining the same functionality. The console will only display in appropriate contexts based on the current display mode and origin. * chore(typescript): version packages (canary) * feat: docker file version * feat: sync inspector to landing repo * fix: exclude .git directory from rsync in sync-inspector workflow * fix: update MIRROR_TOKEN in sync-inspector workflow to use INSPECTOR_MIRROR_TOKEN * add icon to inspector * refactor: simplify favicon service list in ServerIcon component * fix: improve file filtering and prompt behavior in CLI commands (#499) * chore(typescript): version packages (canary) * Fix missing dev dependencies for mcp use app (#502) * Feat/python/pretty display (#497) * pretty display implementation * docs update * fix recusion limit configuration override in mcpagent (#500) * feat: Add Vite and Tailwind CSS to app templates Co-authored-by: tonxipad <tonxipad@gmail.com> * Update package.json Signed-off-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com> * Update package.json Signed-off-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com> * Update package.json Signed-off-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com> * Update index.ts Signed-off-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com> * Update index.ts Signed-off-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com> * Update package.json Signed-off-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com> * Add dev deps --------- Signed-off-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com> Co-authored-by: Pietro Zullo <62951181+pietrozullo@users.noreply.github.com> Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: tonxipad <tonxipad@gmail.com> * chore(typescript): version packages (canary) * feat: introduce Code Mode with integration tests (#504) - Add Code Mode functionality with code execution support - Implement E2B and VM executors - Add integration tests for stream events and code mode - Update documentation and examples - Add changeset for version tracking * chore(typescript): version packages (canary) * fix links * fix: correct Markdown formatting for code display in pretty print function --------- 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: Pietro Zullo <62951181+pietrozullo@users.noreply.github.com> Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: tonxipad <tonxipad@gmail.com> |
||
|
|
835d367b8f | Squash all commits: Add CLI deploy functionality, server tool inspector, and various improvements (#467) | ||
|
|
57c54801e7 | chore: update GitHub Actions workflow to fetch and checkout PR branches when a PR comment is detected | ||
|
|
fabc310c7d | chore: update GitHub Actions workflow to grant write permissions for contents, pull-requests, and issues; add repository checkout step | ||
|
|
e4eb66a95a | read | ||
|
|
8c77235136 | fix: https://github.com/anthropics/claude-code-action/issues/46 | ||
|
|
bd247d5a87 |
CI: approve fork PRs by promotion + call reusable CI (#442)
* ci: add approval workflow to promote fork PRs and call reusable CI; make CI callable via workflow_call * ci(approve-fork-pr): fix slash normalization regex * Update ci.yml Signed-off-by: Salvatore Gabriele Karra <86735558+gabrielekarra@users.noreply.github.com> --------- Signed-off-by: Salvatore Gabriele Karra <86735558+gabrielekarra@users.noreply.github.com> Co-authored-by: Gabriele Karra <gabrielekarra@MacBook-Air-di-Gabriele.local> |
||
|
|
ceed51b3c3 |
chore(release): @mcp-use/inspector@0.4.11 + mcp-use@1.2.2 (#425)
* feat/use mcp uses mcp use (#411) * feat(connectors): add OAuth provider support and capability-aware methods - Add authProvider option to ConnectorInitOptions - Thread authProvider through BrowserMCPClient → HttpConnector → SDK transport - Add capabilitiesCache to BaseConnector for checking server capabilities - Make listAllResources() and listPrompts() capability-aware - Return empty arrays for unsupported features instead of throwing - Preserve 401 errors in HttpConnector (don't wrap in generic message) - Skip SSE fallback on 401 errors (both transports will fail) This enables automatic OAuth with token refresh and Dynamic Client Registration (DCR) when servers support it, while gracefully handling servers that don't implement resources or prompts. * feat(react): refactor useMcp to use BrowserMCPClient and accept LLM instances BREAKING CHANGE: sendChatMessage now accepts LangChain model instance instead of config object. Callers must create LLM instance themselves. Before: mcp.sendChatMessage('hello', { provider: 'openai', model: 'gpt-4', apiKey: '...' }) After: const llm = new ChatOpenAI({ model: 'gpt-4', apiKey: '...' }) mcp.sendChatMessage('hello', llm) Changes: - Replace official SDK Client with BrowserMCPClient for multi-server foundation - Add sendChatMessage() method that creates MCPAgent with existing client - Add clearChatHistory() method for conversation management - Thread authProvider through to SDK transport for automatic OAuth - Simplify 401 error handling (OAuth delegated to SDK) - Add comprehensive JSDoc documentation to all methods - Document all useEffect blocks with explanations - Remove unused AUTH_QUICK_TIMEOUT constant - Add missing listResources to return statement - Change sendChatMessage parameter from config to BaseLanguageModelInterface Benefits: - Smaller bundle (~2KB reduction, LLM creation moved to caller) - More flexible (supports any LangChain-compatible model) - Shared connection across tools/resources/chat (87% faster) - Conversation memory works (agent persists across messages) - Better separation of concerns * feat(inspector): integrate shared connection and LLM instance chat - Update MCPConnection to use BaseLanguageModelInterface for sendChatMessage - Move LLM creation from useMcp to useChatMessagesClientSide - Support OpenAI, Anthropic, and Google models via dynamic imports - Remove debug console.log statements - Skip auto-switch for authentication errors (instant feedback) - Chat now reuses existing MCP connection (no reconnection overhead) Chat performance improvements: - First message: ~900ms (down from 3.3s, 73% faster) - Subsequent messages: <100ms (down from 3.3s, 97% faster) - Conversation history preserved across messages * docs: add technical blog posts on client architecture - Add client-vs-sdk.mdx explaining multi-server value proposition - Add client_side.mdx on client-side inspector architecture Topics covered: - Why mcp-use has its own client (multi-server orchestration) - Session management and config file support - OAuth integration and browser security model - Client-side architecture benefits (privacy, performance, simplicity) - AsyncLocalStorage for request context - Real-world performance metrics * fix(inspector): improve error messages in server-side chat - Add detailed HTTP status codes to error messages - Detect 401 errors and suggest checking Authorization header - Better error context for debugging connection issues * docs: add useMcp hook and blog posts to navigation - Add typescript/client/usemcp to client documentation - Add client_side and client-vs-sdk blog posts to navigation * removed unused var * nullable chat interface * Update libraries/typescript/packages/mcp-use/src/react/useMcp.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Pietro Zullo <62951181+pietrozullo@users.noreply.github.com> * refactor(react): extract maxSteps to constant and improve LLM comparison - Extract DEFAULT_MAX_STEPS constant (10) to avoid magic number - Add comment explaining LLM reference equality comparison - Callers should use useMemo() to keep same LLM instance * fix(agents): update langchain imports to use modular packages - Change 'langchain' imports to '@langchain/core/messages' for message types - Add @ts-ignore for legacy langchain imports pending full migration - Fixes TypeScript compilation errors with langchain package * fix(inspector): clean up placeholder methods and remove unused ref - Use empty generator (yield* []) for disconnected sendChatMessage placeholder - Remove unused toolsMetadataRef from useChatMessagesClientSide - Keep sendChatMessage required (consistent with other methods) * chore: update pnpm lockfile with test_app workspace * revert: |
||
|
|
28e104a6a4 | fix checkout step (#408) | ||
|
|
708cc5bc25 |
release(typescript): mcp-use 1.2.0 + @mcp-use/inspector 0.4.9 (#399)
* feat: Add support for Langchain 1.0.0 (#396) * feat(tests): add integration tests for MCPAgent functionality * chore: update dependencies and improve observability integration - Updated `@langfuse/langchain` to version 4.3.0 in package.json and README. - Changed import statements from `langfuse-langchain` to `@langfuse/langchain` for consistency. - Added new integration test commands in package.json for better test organization. - Increased test and hook timeout in vitest configuration for improved stability. - Updated observability README to reflect new package structure. * refactor(mcp_agent): WIP update agent implementation and improve streaming functionality * feat(mcp_agent): enhance agent execution with structured output and dynamic tool management - Introduced new interfaces `AgentStep` and `AgentFinish` to represent execution steps and final outputs. - Implemented `_normalizeOutput` method for consistent output formatting. - Enhanced streaming execution to handle dynamic tool updates during agent operation. - Improved logging for tool calls and results, providing better observability during execution. - Updated conversation history management to include final outputs and structured results. * minor * fix * refactor(mcp_agent): streamline tool management and enhance agent state tracking - Removed the `AgentFinish` interface and associated unused imports for cleaner code. - Introduced `toolsUsedNames` property to track tools utilized during agent execution. * refactor(tests): simplify agent test logging and enhance tool usage validation * simplify input * refactor(mcp_agent): enhance stream configuration and observability integration - Introduced `StreamConfiguration` type for better stream management. - Updated stream options to use a configurable object for callbacks, metadata, and tags. - Made `observabilityManager` public for improved access. - Streamlined input handling for event streaming with observability support. * feat(observability): add integration tests for observability with Langfuse - Introduced a new integration test `test_agent_observability.test.ts` to verify observability features. - Updated `package.json` to include a new test command for observability integration. - Enhanced `ObservabilityManager` with a `getStatus` method to retrieve current observability status, metadata, and tags. * fix(mcp_agent): make callbacks work in stream * fix: use old langfuse packages * feat(tests): enhance agent observability integration tests - Updated `getRecentTraces` function to query traces using session tags instead of session IDs. - Added a new manual test for verifying Langfuse connection and trace submission. - Improved logging for trace verification and added checks for trace metadata and tags. - Adjusted existing tests to ensure proper observability validation and logging. * feat(observability): enhance Langfuse integration with trace name and metadata - Added `runName` to `MCPAgent` for trace identification in LangChain/Langfuse. - Improved `initializeLangfuse` to set trace name and handle initial metadata and tags. - Updated observability test logging to include trace name and manual verification details. * chore(types): update .npmrc suppress warning for old version of langfuse (the one working) * refactor(tests): improve observability test logging and trace querying - Updated `getRecentTraces` function to simplify query parameters and enhance logging. - Improved trace verification logic to provide clearer output on found traces and their metadata. - Adjusted logging to reflect the use of tags in trace queries and added checks for session-specific traces. * docs(observability): update Langfuse integration details and package requirements - Clarified version compatibility for Langfuse, specifying required versions (3.38.x+). - Added notes on correct package names to avoid common installation mistakes. - Included installation commands for npm, pnpm, and yarn with version specifications. - Highlighted expected peer dependency warnings and their safe disregard during installation. * changeset * fix lint * chore: update TypeScript configuration to enable incremental builds and improve library checks * fix: solve circular import, implement IServerManager interface for ServerManager and update related tools * fix: improve build configuration - Added Langchain packages as dependencies in package.json for better integration. - Enhanced tsup configuration to keep Langchain packages external, optimizing memory usage during builds. * chore: edit package.json to include Langchain dependencies since lanchain and lanchain/core are now set as external in tsup.config.ts which means that won't be bundled at build time but installed when installing mcp-use * chore: update TypeScript configuration to refine excluded test directories * fix: tests * chore: enhance CI configuration and add agent integration tests - Added a new output for typescript-agent in CI workflow to detect changes. - Introduced a dedicated job for running agent integration tests, triggered only when agent-related files change. * chore: update CI workflow and package.json for unit and integration tests - Modified CI workflow to use new test commands for unit and agent integration tests. - Added a new script for running unit tests in package.json, excluding integration tests. * chore: enter canary prerelease mode * chore(typescript): version packages (canary) * fix: Inspector CSP for Apps SDK (#398) * feat(inspector): enhance widget CSP handling and security headers - Added support for extracting and passing widget-specific Content Security Policy (CSP) metadata in the OpenAIComponentRenderer. - Updated the storeWidgetData function to include widgetCSP in the stored data. - Modified getWidgetSecurityHeaders to accept widgetCSP, allowing for dynamic security header generation based on widget-specific domains. - Improved header handling in registerInspectorRoutes to utilize widget-specific CSP for enhanced security. * changeset * chore(typescript): version packages (canary) * fix structured output and streamEvents * Better structured output example * fix: model type (#400) * refactor(mcp_agent): update agent type definitions and improve structured output handling - Replaced `BaseLanguageModelInterface` with a more flexible `LanguageModel` type to accommodate various LangChain models. - Consolidated the `AgentStep` interface definition for clarity and consistency. - Enhanced logging for raw results during structured output attempts to improve observability. - Removed unused `StreamConfiguration` type to streamline the codebase. * changeset * chore(typescript): version packages (canary) * remove useless log * canary2: removed useless logs * chore(typescript): version packages (canary) * chore: create-mcp-use-app update package.json * chore(typescript): version packages (canary) * chore: set again cli and inspector as dependencies * changeset * chore(typescript): version packages (canary) * changeset * chore(typescript): version packages (canary) * chore: inspector update langchain dependencies * chore(typescript): version packages (canary) * refactor(mcp_agent): improve imports and update tool type to DynamicTool * feat(types): add BaseMessage type and update remote agent imports * fix(types): update imports to use type-only imports for clarity * chore(typescript): version packages (canary) * fix: Apps sdk metadata handling improvements (#407) * feat(mcp-server): add server base URL to widget connect domains * fix(templates): add baseUrl to createMCPServer important for apps-sdk CSP * correctly build all the widgetMetadata * feat(templates): update project structure for different templates in create-mcp-use-app * feat(types): add WidgetMetadata interface for widget configuration * refactor(mcp-server): fix apps-sdk metadata build * changeset * fix lint * chore(typescript): version packages (canary) --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: pietrozullo <pietro.zullo@gmail.com> |
||
|
|
9b473bc562 |
Release ts (#403)
* chore(release): exit prerelease mode and version packages * chore(release): add workflow_dispatch input for force publishing packages |
||
|
|
65dc9430fd | chore: remove action on PRs | ||
|
|
e695881b89 | chore: action sugar | ||
|
|
f08e870e09 |
feat: Upgrade to Langchain 1.0.0 (#393)
* chore: update imports * refactor(mcpagent): update agent creation logic and imports - Replaced `create_tool_calling_agent` with `create_agent` for improved agent instantiation. - Simplified the `_create_agent` method by removing the `AgentExecutor` and directly returning the created agent. - Adjusted type annotations for `_agent_executor` to initialize as `None` instead of using a union type. * feat(mcpagent): migrate to LangChain 1.0.0 and simplify agent methods - Updated MCPAgent to utilize LangChain 1.0.0's `create_agent()` for improved agent instantiation. - Introduced new methods `astream_simplified()` and `run_v2()` that leverage the built-in `astream()` for internal agent loop handling. - Retained legacy methods `stream()` and `run()` for backward compatibility with manual execution. - Enhanced documentation to reflect changes and provide clearer usage examples. * feat(mcpagent): implement dynamic tool updates during agent execution - Enhanced the MCPAgent to support dynamic tool updates when using server_manager mode. - Implemented logic to check for tool changes before and during execution, allowing for immediate updates and safe restarts. - Introduced a maximum restart limit to prevent infinite loops during tool updates. - Updated documentation to reflect the new behavior and usage of dynamic tool management. * refactor(mcpagent): clean up imports and streamline logging - Removed unused imports and organized existing ones for better clarity in `mcpagent.py`. - Simplified logging statements for consistency and improved readability. - Enhanced the overall structure of the code by eliminating unnecessary whitespace. - Updated unit tests to reflect changes in imports and ensure compatibility with the refactored code. * feat(mcpagent): enhance agent execution with step tracking and middleware - Introduced `ModelCallLimitMiddleware` to enforce a maximum number of model calls during agent execution. - Updated the `_consume_and_return` method to return a tuple of the final result and the number of steps taken. - Enhanced telemetry tracking to include steps taken and execution time for better performance insights. - Simplified agent creation logic by integrating middleware directly into the `create_agent` function. - Improved logging for agent execution details, including steps and tool usage. * fix(mcpagent): add null check for node output messages extraction - Updated the MCPAgent to include a null check for `node_output` before attempting to access the "messages" key, preventing potential errors during message extraction. * minor * feat(mcpagent): filter out ToolMessage from history - Updated the MCPAgent to exclude ToolMessage instances from being added to the message history, ensuring that only relevant messages are recorded. - This change helps maintain a cleaner history by avoiding intermediate tool execution details. * fix(mcpagent): set max_steps assignment * ruff * docs * e2e tests for agent * key in tests * fix manager test and split ci tests * telemetry off for tests * fix server manager test * feat(mcpagent): delegate query streaming to remote agent in remote mode - recreated functionality to the MCPAgent to yield results from a remote agent when operating in remote mode, enhancing the agent's capability to handle queries efficiently. * fix: agent unit tests * Print inputs * rollback, wrong repo * fix streaming output * stricter streaming test * pass observability callbacks * fix tests mock --------- Co-authored-by: pietrozullo <pietro.zullo@gmail.com> |
||
|
|
3c87c42735 |
feat: Apps SDK widgets & Automatic Widget Registration (#383)
* chore: enter canary prerelease mode * Allow develop of apps sdk experiences (#371) * chore: enter canary prerelease mode * fix(chat): improve formatting and refactor inspector components (#357) * chore(inspector): update dependencies and refactor components - Updated pnpm-lock.yaml to reflect changes in dependency versions, including zod and added markdown-to-jsx. - Refactored inspector components for improved code quality and consistency, including formatting adjustments and import organization. - Enhanced TypeScript configuration by enabling composite builds for better module resolution. - Cleaned up unused code and improved overall readability across various components. * changeset * chore: enter canary prerelease mode --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * feat: tests cmua (#356) * feat: enhance create-mcp-use-app with package manager detection and commands - Added functions to detect the package manager used and provide corresponding install and dev commands. - Updated the CLI options to allow users to specify their preferred package manager (yarn, npm, pnpm). - Introduced a new test command in package.json for CLI testing. - Enhanced package installation logic to handle different package managers more gracefully. * changeset * fix test * fix windows path * fix: correct Windows path handling in create-mcp-use-app workflow * fix: update yarn command syntax in create-mcp-use-app workflow for consistency * chore(typescript): version packages (canary) * feat: introduce new starter templates for MCP server + cleanup (#360) * feat: introduce new starter and apps-sdk templates for MCP server - Added a comprehensive starter template that includes tools, resources, and UI components for building MCP servers. - Introduced an apps-sdk template demonstrating OpenAI Apps SDK integration with pizzaz reference widgets. - Updated documentation to reflect new templates and quick start instructions. - Refactored existing templates to streamline usage and improve clarity. - Enhanced package.json scripts for testing and development workflows. * add changeset * fix: update pnpm-lock.yaml to correct template paths and remove unused dependencies * fix: lint * refactor: standardize quotes and update template names in GitHub Actions workflow - Changed single quotes to double quotes for consistency in paths. - Updated template names from 'ui', 'uiresource', 'apps_sdk' to 'starter', 'ui-resource', 'apps-sdk-demo' for clarity. - Cleaned up whitespace in script sections for improved readability. * refactor: update template options in workflow and clean up whitespace in TypeScript files - Expanded the template options in the GitHub Actions workflow to include 'starter', 'ui-resource', and 'apps-sdk-demo'. - Removed unnecessary whitespace in TypeScript files for improved readability and consistency. * fix types * fix(inspector): update callPrompt reference and add new methods to MCPConnection - Changed the reference of callPrompt in LayoutContent to use getPrompt. - Added listPrompts and getPrompt methods to the MCPConnection interface and their implementations in McpProvider, throwing errors when not connected. * chore(typescript): version packages (canary) * fix: prompts * fix template * chore(typescript): version packages (canary) * feat(inspector): enhance PromptsTab with saved prompts functionality - Added functionality to load and save prompts from localStorage. - Introduced a new state for managing saved prompts and updated the UI to display them. - Refactored prompt execution logic to accommodate saved prompts. - Improved error handling and user feedback for prompt execution. - Updated the server.ts to dynamically listen on a specified port from environment variables. * Update khaki-baths-follow.md Signed-off-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com> * Update fine-cougars-change.md Signed-off-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com> * feat: vite hot reloading widget * refactor: update tool naming conventions by removing 'ui_' prefix from widget tools - Changed references from 'ui_[widget-name]' to '[widget-name]' across documentation and code. - Updated examples and usage instructions to reflect the new naming scheme for better clarity and consistency. * fix: update zod version and enhance widget manifest descriptions - Updated zod dependency version from 4.1.12 to 3.25.76 in pnpm-lock.yaml. - Enhanced widget manifest generation by including enum values and validation rules in the property descriptions. - Modified schema extraction to support additional metadata inputs and improved handling of Zod schemas. * chore: update pnpm-lock and workspace configuration for weather template - Added new weather template to pnpm workspace. - Updated pnpm-lock.yaml with dependencies for the weather template, including zod, express, and various @mcp-ui packages. - Ensured compatibility with existing dependencies by aligning zod versions across multiple packages. * refactor: streamline widget HTML generation and enhance logging - Removed inline styles from the HTML template in build.ts for cleaner structure. - Improved logging in OpenAIComponentRenderer to provide better insights into tool execution and data handling. - Updated ToolResultRenderer to pass parsed results correctly. - Enhanced useChatMessagesClientSide to extract tool arguments from various event data formats. - Added new methods in shared-utils for handling external links and improved metadata handling in widget content generation. - Updated McpServer to support dynamic widget registration with improved configuration options for host and base URL. * Typescript/server/cors issue (#367) * chore: enter canary prerelease mode * fix(chat): improve formatting and refactor inspector components (#357) * chore(inspector): update dependencies and refactor components - Updated pnpm-lock.yaml to reflect changes in dependency versions, including zod and added markdown-to-jsx. - Refactored inspector components for improved code quality and consistency, including formatting adjustments and import organization. - Enhanced TypeScript configuration by enabling composite builds for better module resolution. - Cleaned up unused code and improved overall readability across various components. * changeset * chore: enter canary prerelease mode --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * feat: tests cmua (#356) * feat: enhance create-mcp-use-app with package manager detection and commands - Added functions to detect the package manager used and provide corresponding install and dev commands. - Updated the CLI options to allow users to specify their preferred package manager (yarn, npm, pnpm). - Introduced a new test command in package.json for CLI testing. - Enhanced package installation logic to handle different package managers more gracefully. * changeset * fix test * fix windows path * fix: correct Windows path handling in create-mcp-use-app workflow * fix: update yarn command syntax in create-mcp-use-app workflow for consistency * chore(typescript): version packages (canary) * feat: introduce new starter templates for MCP server + cleanup (#360) * feat: introduce new starter and apps-sdk templates for MCP server - Added a comprehensive starter template that includes tools, resources, and UI components for building MCP servers. - Introduced an apps-sdk template demonstrating OpenAI Apps SDK integration with pizzaz reference widgets. - Updated documentation to reflect new templates and quick start instructions. - Refactored existing templates to streamline usage and improve clarity. - Enhanced package.json scripts for testing and development workflows. * add changeset * fix: update pnpm-lock.yaml to correct template paths and remove unused dependencies * fix: lint * refactor: standardize quotes and update template names in GitHub Actions workflow - Changed single quotes to double quotes for consistency in paths. - Updated template names from 'ui', 'uiresource', 'apps_sdk' to 'starter', 'ui-resource', 'apps-sdk-demo' for clarity. - Cleaned up whitespace in script sections for improved readability. * refactor: update template options in workflow and clean up whitespace in TypeScript files - Expanded the template options in the GitHub Actions workflow to include 'starter', 'ui-resource', and 'apps-sdk-demo'. - Removed unnecessary whitespace in TypeScript files for improved readability and consistency. * fix types * fix(inspector): update callPrompt reference and add new methods to MCPConnection - Changed the reference of callPrompt in LayoutContent to use getPrompt. - Added listPrompts and getPrompt methods to the MCPConnection interface and their implementations in McpProvider, throwing errors when not connected. * chore(typescript): version packages (canary) * fix: prompts * fix template * chore(typescript): version packages (canary) * feat(inspector): enhance PromptsTab with saved prompts functionality - Added functionality to load and save prompts from localStorage. - Introduced a new state for managing saved prompts and updated the UI to display them. - Refactored prompt execution logic to accommodate saved prompts. - Improved error handling and user feedback for prompt execution. - Updated the server.ts to dynamically listen on a specified port from environment variables. * Update khaki-baths-follow.md Signed-off-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com> * Update fine-cougars-change.md Signed-off-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com> * fix cors issues * changeset * remove changeset * changeset --------- 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: Enrico Toniato <2827496+tonxxd@users.noreply.github.com> Co-authored-by: Luigi Pederzani <luigipederzani@gmail.com> * chore: enter canary prerelease mode * chore(typescript): version packages (canary) * feat: add ph to inspector (#368) * feat(inspector): enhance telemetry tracking and update dependencies - Introduced new telemetry events for tracking inspector interactions, including server connections, tool executions, and resource reads. - Added a new test_app with specified dependencies in pnpm-lock.yaml to support development. - Updated inspector components to utilize the new telemetry system for better analytics and debugging. * feat(inspector): enhance README with updated descriptions and usage instructions * feat: add workflow step to sync main branch changes to canary - Introduced a new job in the TypeScript release workflow to automatically merge updates from the main branch into the canary branch when publishing is triggered. - Configured git settings and added commands to fetch, merge, and push changes to the canary branch, ensuring it stays up-to-date with the latest version updates from main. * feat: add GitHub release creation step to TypeScript workflow - Implemented a new step in the TypeScript release workflow to automatically create a GitHub release when publishing is triggered. - The step fetches tags from the last commit, generates release notes from changelogs of published packages, and consolidates them into a single release. - Ensures that the release title and notes are formatted correctly, enhancing the release process for better visibility and documentation. * chore: add changeset for '@mcp-use/inspector' patch * fix(inspector): add __INSPECTOR_VERSION__ to ESLint globals and clean up logger file - Added __INSPECTOR_VERSION__ as a readonly global in the ESLint configuration for better version management. - Removed unnecessary eslint-disable comment from the logger utility file to improve code clarity. * chore(eslint): add __INSPECTOR_VERSION__ global for inspector package TypeScript files - Introduced __INSPECTOR_VERSION__ as a readonly global in the ESLint configuration specifically for TypeScript files in the inspector package, enhancing version management. * chore(typescript): version packages (canary) * changeset * chore(typescript): version packages (canary) * fix deps * server vite from express server * refactor: clean up and enhance widget handling in MCP server - Removed unused HTML template and entry content functions from build.ts. - Updated runCommand function in index.ts to accept an optional environment parameter. - Enhanced OpenAIComponentRenderer to utilize resource data and improved structured content extraction. - Updated ToolResultDisplay to pass resource data correctly. - Refactored MCP server to streamline widget serving and registration, including improved handling of widget metadata and HTML templates. - Cleaned up commented-out code and improved overall readability across multiple files. * chore: update dependencies and remove unused files - Added esbuild dependency with version >=0.25.0 in package.json and pnpm-lock.yaml. - Removed build.ts and schema-generator.ts files as they are no longer needed for widget handling. - Refactored MCP server to streamline widget serving with a shared Vite server for improved performance. * feat: enhance widget metadata extraction in MCP server - Added functionality to extract and convert Zod schema to JSON schema for widget props. - Improved error handling for loading widget metadata and schema conversion. - Updated widget description handling to ensure accurate metadata representation. * chore: remove python cli * chore: generate_docs removes stale docs * chore:docs: remove stale docs * chore: docs: fix broken links * release(typescript): @mcp-use/inspector 0.4.6 + mcp-use 1.1.6 + create-mcp-use-app 0.4.5 (#376) * Typescript/server/cors issue (#367) * chore: enter canary prerelease mode * fix(chat): improve formatting and refactor inspector components (#357) * chore(inspector): update dependencies and refactor components - Updated pnpm-lock.yaml to reflect changes in dependency versions, including zod and added markdown-to-jsx. - Refactored inspector components for improved code quality and consistency, including formatting adjustments and import organization. - Enhanced TypeScript configuration by enabling composite builds for better module resolution. - Cleaned up unused code and improved overall readability across various components. * changeset * chore: enter canary prerelease mode --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * feat: tests cmua (#356) * feat: enhance create-mcp-use-app with package manager detection and commands - Added functions to detect the package manager used and provide corresponding install and dev commands. - Updated the CLI options to allow users to specify their preferred package manager (yarn, npm, pnpm). - Introduced a new test command in package.json for CLI testing. - Enhanced package installation logic to handle different package managers more gracefully. * changeset * fix test * fix windows path * fix: correct Windows path handling in create-mcp-use-app workflow * fix: update yarn command syntax in create-mcp-use-app workflow for consistency * chore(typescript): version packages (canary) * feat: introduce new starter templates for MCP server + cleanup (#360) * feat: introduce new starter and apps-sdk templates for MCP server - Added a comprehensive starter template that includes tools, resources, and UI components for building MCP servers. - Introduced an apps-sdk template demonstrating OpenAI Apps SDK integration with pizzaz reference widgets. - Updated documentation to reflect new templates and quick start instructions. - Refactored existing templates to streamline usage and improve clarity. - Enhanced package.json scripts for testing and development workflows. * add changeset * fix: update pnpm-lock.yaml to correct template paths and remove unused dependencies * fix: lint * refactor: standardize quotes and update template names in GitHub Actions workflow - Changed single quotes to double quotes for consistency in paths. - Updated template names from 'ui', 'uiresource', 'apps_sdk' to 'starter', 'ui-resource', 'apps-sdk-demo' for clarity. - Cleaned up whitespace in script sections for improved readability. * refactor: update template options in workflow and clean up whitespace in TypeScript files - Expanded the template options in the GitHub Actions workflow to include 'starter', 'ui-resource', and 'apps-sdk-demo'. - Removed unnecessary whitespace in TypeScript files for improved readability and consistency. * fix types * fix(inspector): update callPrompt reference and add new methods to MCPConnection - Changed the reference of callPrompt in LayoutContent to use getPrompt. - Added listPrompts and getPrompt methods to the MCPConnection interface and their implementations in McpProvider, throwing errors when not connected. * chore(typescript): version packages (canary) * fix: prompts * fix template * chore(typescript): version packages (canary) * feat(inspector): enhance PromptsTab with saved prompts functionality - Added functionality to load and save prompts from localStorage. - Introduced a new state for managing saved prompts and updated the UI to display them. - Refactored prompt execution logic to accommodate saved prompts. - Improved error handling and user feedback for prompt execution. - Updated the server.ts to dynamically listen on a specified port from environment variables. * Update khaki-baths-follow.md Signed-off-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com> * Update fine-cougars-change.md Signed-off-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com> * fix cors issues * changeset * remove changeset * changeset --------- 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: Enrico Toniato <2827496+tonxxd@users.noreply.github.com> Co-authored-by: Luigi Pederzani <luigipederzani@gmail.com> * chore: enter canary prerelease mode * chore(typescript): version packages (canary) * feat: add ph to inspector (#368) * feat(inspector): enhance telemetry tracking and update dependencies - Introduced new telemetry events for tracking inspector interactions, including server connections, tool executions, and resource reads. - Added a new test_app with specified dependencies in pnpm-lock.yaml to support development. - Updated inspector components to utilize the new telemetry system for better analytics and debugging. * feat(inspector): enhance README with updated descriptions and usage instructions * feat: add workflow step to sync main branch changes to canary - Introduced a new job in the TypeScript release workflow to automatically merge updates from the main branch into the canary branch when publishing is triggered. - Configured git settings and added commands to fetch, merge, and push changes to the canary branch, ensuring it stays up-to-date with the latest version updates from main. * feat: add GitHub release creation step to TypeScript workflow - Implemented a new step in the TypeScript release workflow to automatically create a GitHub release when publishing is triggered. - The step fetches tags from the last commit, generates release notes from changelogs of published packages, and consolidates them into a single release. - Ensures that the release title and notes are formatted correctly, enhancing the release process for better visibility and documentation. * chore: add changeset for '@mcp-use/inspector' patch * fix(inspector): add __INSPECTOR_VERSION__ to ESLint globals and clean up logger file - Added __INSPECTOR_VERSION__ as a readonly global in the ESLint configuration for better version management. - Removed unnecessary eslint-disable comment from the logger utility file to improve code clarity. * chore(eslint): add __INSPECTOR_VERSION__ global for inspector package TypeScript files - Introduced __INSPECTOR_VERSION__ as a readonly global in the ESLint configuration specifically for TypeScript files in the inspector package, enhancing version management. * chore(typescript): version packages (canary) * changeset * chore(typescript): version packages (canary) * Fix/scarf (#369) * feat(inspector): integrate Scarf telemetry with proxy endpoint - Added support for Scarf telemetry in the inspector package, including a new proxy endpoint to handle telemetry events without CORS issues. - Updated the pnpm-lock.yaml to include the @scarf/scarf dependency. - Removed the stub for @scarf/scarf as it is no longer needed. - Enhanced the telemetry implementation to forward events to the Scarf gateway from the server-side. * feat(inspector): try to fix ph * chore: add changeset for '@mcp-use/inspector' patch to fix Scarf integration * chore(typescript): version packages (canary) * fix(inspector): improve header handling in registerInspectorRoutes (#370) * fix(inspector): improve header handling in registerInspectorRoutes - Updated header processing to exclude 'accept-encoding' to prevent compression issues. - Added explicit request for uncompressed responses by setting 'Accept-Encoding' to 'identity'. - Enhanced response header forwarding by omitting compression-related headers to ensure accurate body state representation. * Update libraries/typescript/packages/inspector/src/server/shared-routes.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Pietro Zullo <62951181+pietrozullo@users.noreply.github.com> * changeset --------- Signed-off-by: Pietro Zullo <62951181+pietrozullo@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * chore(typescript): version packages (canary) * refactor(inspector): replace posthog-js with posthog-node and enhance telemetry logging (#372) - Updated the telemetry implementation to use posthog-node for server-side event logging. - Introduced a new proxy endpoint for forwarding telemetry events to PostHog. - Removed the logger utility file and streamlined error handling in telemetry methods to ensure silent failures do not disrupt application flow. - Added a new test_app with specified dependencies in pnpm-lock.yaml to support development. * chore(typescript): version packages (canary) * createapp: init git repository * chore(typescript): version packages (canary) * chore: push not pushed changeset (#373) * chore(typescript): version packages (canary) * chore: inspector server logging (#374) * refactor(inspector): streamline logging middleware usage - Removed global logger middleware from the main server file. - Applied logger middleware specifically to proxy routes in shared-routes.ts for improved performance and clarity. - Cleaned up error handling in the streaming response section for better readability. * changeset * chore(typescript): version packages (canary) * fix logging (#375) * refactor(inspector): apply logger middleware to proxy routes only - Updated logger middleware usage to apply only to '/inspector/api/proxy/*' routes, enhancing performance and clarity in logging. * changeset * chore(typescript): version packages (canary) * fix lint --------- Signed-off-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com> Signed-off-by: Pietro Zullo <62951181+pietrozullo@users.noreply.github.com> Co-authored-by: Pietro Zullo <62951181+pietrozullo@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com> Co-authored-by: pietrozullo <pietro.zullo@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * chore(release): exit prerelease mode and version packages (#377) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * chore(release): reset canary branch to main and re-enter prerelease mode (#380) - Removed the workflow path exclusion for typescript-release.yml. - Updated the workflow to reset the canary branch to match the main branch instead of merging. - Added steps to re-enter prerelease mode on the canary branch after the reset. - Committed the changes to reflect the new prerelease state and force pushed to the canary branch. * chore(release): simplify canary reset process in TypeScript workflow (#381) - Updated the TypeScript release workflow to reset the canary branch to match the main branch without re-entering prerelease mode. - Removed unnecessary steps related to prerelease mode, streamlining the workflow for better clarity and efficiency. * feat: add new weather template to test_app scripts in TypeScript package * feat: enhance OpenAIComponentRenderer and useWidget for improved URL parameter handling - Updated OpenAIComponentRenderer to pass tool input and output as URL parameters for better widget integration. - Refactored useWidget to extract parameters from the URL, allowing for dynamic tool input and output handling. - Cleaned up code and improved readability across multiple files, ensuring better maintainability. * feat: update pnpm-lock.yaml and package.json for mcp-use integration - Added '@mcp-use/cli' as a dependency in pnpm-lock.yaml and package.json for improved CLI functionality. - Updated the mcp-server to simplify the temporary directory path. - Removed unnecessary peer dependencies and cleaned up the package.json for better clarity. * feat: remove weather template files from create-mcp-use-app - Deleted the weather template files including index.ts, package.json, README.md, tsconfig.json, and display-weather.tsx to streamline the project structure and remove unused components. * docs wip * change folder name * add tsconfig * fix build * feat: update resource domains in mcp-server for enhanced widget integration - Modified the resource_domains array to include wildcard domains for better flexibility in widget loading. - Added support for dynamic server base URL to ensure proper resource access. * docs: update installation and quickstart guides for mcp-use - Enhanced the installation section to include `create-mcp-use-app` for easier project scaffolding. - Updated the quickstart guide to reflect new project structure and setup instructions. - Improved clarity on installing LangChain providers and setting up environment variables. - Standardized references to `mcp-use` throughout the documentation. * docs: reorganize UI Widgets section in documentation - Added a new "Apps SDK" tag under the UI Widgets group for better categorization. - Moved "mcp-ui-resources" and "apps-sdk-resources" pages into a new "References" group for improved structure and clarity. * docs: update installation and widget documentation for mcp-use - Revised the installation guide to emphasize the use of `create-mcp-use-app` for setting up new projects. - Enhanced the UI Widgets section to clarify automatic widget registration and usage of the `useWidget` hook. - Updated titles and descriptions for better consistency and clarity across documentation. - Added a new image example for Apps SDK widgets to illustrate usage. - Removed outdated content and improved overall structure for easier navigation. * feat: improve templates * refactor: update project templates and improve CLI tips - Replaced outdated template names in package.json and pnpm-workspace.yaml. - Added new "mcp-ui" and "apps-sdk" templates for better project scaffolding. - Updated console tips in index.ts to reflect the new template names. * docs: enhance template documentation with detailed features and examples * chore: update project templates and dependencies - Renamed template directories for consistency and clarity. - Removed outdated dependencies and added new ones, including React, TailwindCSS, and Zod. - Updated TypeScript configuration to include new paths and server file. - Introduced a new CSS file for custom styles in the starter template. * release(typescript): @mcp-use/inspector 0.4.6 + mcp-use 1.1.6 + create-mcp-use-app 0.4.5 (#376) * Typescript/server/cors issue (#367) * chore: enter canary prerelease mode * fix(chat): improve formatting and refactor inspector components (#357) * chore(inspector): update dependencies and refactor components - Updated pnpm-lock.yaml to reflect changes in dependency versions, including zod and added markdown-to-jsx. - Refactored inspector components for improved code quality and consistency, including formatting adjustments and import organization. - Enhanced TypeScript configuration by enabling composite builds for better module resolution. - Cleaned up unused code and improved overall readability across various components. * changeset * chore: enter canary prerelease mode --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * feat: tests cmua (#356) * feat: enhance create-mcp-use-app with package manager detection and commands - Added functions to detect the package manager used and provide corresponding install and dev commands. - Updated the CLI options to allow users to specify their preferred package manager (yarn, npm, pnpm). - Introduced a new test command in package.json for CLI testing. - Enhanced package installation logic to handle different package managers more gracefully. * changeset * fix test * fix windows path * fix: correct Windows path handling in create-mcp-use-app workflow * fix: update yarn command syntax in create-mcp-use-app workflow for consistency * chore(typescript): version packages (canary) * feat: introduce new starter templates for MCP server + cleanup (#360) * feat: introduce new starter and apps-sdk templates for MCP server - Added a comprehensive starter template that includes tools, resources, and UI components for building MCP servers. - Introduced an apps-sdk template demonstrating OpenAI Apps SDK integration with pizzaz reference widgets. - Updated documentation to reflect new templates and quick start instructions. - Refactored existing templates to streamline usage and improve clarity. - Enhanced package.json scripts for testing and development workflows. * add changeset * fix: update pnpm-lock.yaml to correct template paths and remove unused dependencies * fix: lint * refactor: standardize quotes and update template names in GitHub Actions workflow - Changed single quotes to double quotes for consistency in paths. - Updated template names from 'ui', 'uiresource', 'apps_sdk' to 'starter', 'ui-resource', 'apps-sdk-demo' for clarity. - Cleaned up whitespace in script sections for improved readability. * refactor: update template options in workflow and clean up whitespace in TypeScript files - Expanded the template options in the GitHub Actions workflow to include 'starter', 'ui-resource', and 'apps-sdk-demo'. - Removed unnecessary whitespace in TypeScript files for improved readability and consistency. * fix types * fix(inspector): update callPrompt reference and add new methods to MCPConnection - Changed the reference of callPrompt in LayoutContent to use getPrompt. - Added listPrompts and getPrompt methods to the MCPConnection interface and their implementations in McpProvider, throwing errors when not connected. * chore(typescript): version packages (canary) * fix: prompts * fix template * chore(typescript): version packages (canary) * feat(inspector): enhance PromptsTab with saved prompts functionality - Added functionality to load and save prompts from localStorage. - Introduced a new state for managing saved prompts and updated the UI to display them. - Refactored prompt execution logic to accommodate saved prompts. - Improved error handling and user feedback for prompt execution. - Updated the server.ts to dynamically listen on a specified port from environment variables. * Update khaki-baths-follow.md Signed-off-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com> * Update fine-cougars-change.md Signed-off-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com> * fix cors issues * changeset * remove changeset * changeset --------- 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: Enrico Toniato <2827496+tonxxd@users.noreply.github.com> Co-authored-by: Luigi Pederzani <luigipederzani@gmail.com> * chore: enter canary prerelease mode * chore(typescript): version packages (canary) * feat: add ph to inspector (#368) * feat(inspector): enhance telemetry tracking and update dependencies - Introduced new telemetry events for tracking inspector interactions, including server connections, tool executions, and resource reads. - Added a new test_app with specified dependencies in pnpm-lock.yaml to support development. - Updated inspector components to utilize the new telemetry system for better analytics and debugging. * feat(inspector): enhance README with updated descriptions and usage instructions * feat: add workflow step to sync main branch changes to canary - Introduced a new job in the TypeScript release workflow to automatically merge updates from the main branch into the canary branch when publishing is triggered. - Configured git settings and added commands to fetch, merge, and push changes to the canary branch, ensuring it stays up-to-date with the latest version updates from main. * feat: add GitHub release creation step to TypeScript workflow - Implemented a new step in the TypeScript release workflow to automatically create a GitHub release when publishing is triggered. - The step fetches tags from the last commit, generates release notes from changelogs of published packages, and consolidates them into a single release. - Ensures that the release title and notes are formatted correctly, enhancing the release process for better visibility and documentation. * chore: add changeset for '@mcp-use/inspector' patch * fix(inspector): add __INSPECTOR_VERSION__ to ESLint globals and clean up logger file - Added __INSPECTOR_VERSION__ as a readonly global in the ESLint configuration for better version management. - Removed unnecessary eslint-disable comment from the logger utility file to improve code clarity. * chore(eslint): add __INSPECTOR_VERSION__ global for inspector package TypeScript files - Introduced __INSPECTOR_VERSION__ as a readonly global in the ESLint configuration specifically for TypeScript files in the inspector package, enhancing version management. * chore(typescript): version packages (canary) * changeset * chore(typescript): version packages (canary) * Fix/scarf (#369) * feat(inspector): integrate Scarf telemetry with proxy endpoint - Added support for Scarf telemetry in the inspector package, including a new proxy endpoint to handle telemetry events without CORS issues. - Updated the pnpm-lock.yaml to include the @scarf/scarf dependency. - Removed the stub for @scarf/scarf as it is no longer needed. - Enhanced the telemetry implementation to forward events to the Scarf gateway from the server-side. * feat(inspector): try to fix ph * chore: add changeset for '@mcp-use/inspector' patch to fix Scarf integration * chore(typescript): version packages (canary) * fix(inspector): improve header handling in registerInspectorRoutes (#370) * fix(inspector): improve header handling in registerInspectorRoutes - Updated header processing to exclude 'accept-encoding' to prevent compression issues. - Added explicit request for uncompressed responses by setting 'Accept-Encoding' to 'identity'. - Enhanced response header forwarding by omitting compression-related headers to ensure accurate body state representation. * Update libraries/typescript/packages/inspector/src/server/shared-routes.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Pietro Zullo <62951181+pietrozullo@users.noreply.github.com> * changeset --------- Signed-off-by: Pietro Zullo <62951181+pietrozullo@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * chore(typescript): version packages (canary) * refactor(inspector): replace posthog-js with posthog-node and enhance telemetry logging (#372) - Updated the telemetry implementation to use posthog-node for server-side event logging. - Introduced a new proxy endpoint for forwarding telemetry events to PostHog. - Removed the logger utility file and streamlined error handling in telemetry methods to ensure silent failures do not disrupt application flow. - Added a new test_app with specified dependencies in pnpm-lock.yaml to support development. * chore(typescript): version packages (canary) * createapp: init git repository * chore(typescript): version packages (canary) * chore: push not pushed changeset (#373) * chore(typescript): version packages (canary) * chore: inspector server logging (#374) * refactor(inspector): streamline logging middleware usage - Removed global logger middleware from the main server file. - Applied logger middleware specifically to proxy routes in shared-routes.ts for improved performance and clarity. - Cleaned up error handling in the streaming response section for better readability. * changeset * chore(typescript): version packages (canary) * fix logging (#375) * refactor(inspector): apply logger middleware to proxy routes only - Updated logger middleware usage to apply only to '/inspector/api/proxy/*' routes, enhancing performance and clarity in logging. * changeset * chore(typescript): version packages (canary) * fix lint --------- Signed-off-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com> Signed-off-by: Pietro Zullo <62951181+pietrozullo@users.noreply.github.com> Co-authored-by: Pietro Zullo <62951181+pietrozullo@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com> Co-authored-by: pietrozullo <pietro.zullo@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * chore(release): exit prerelease mode and version packages (#377) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * chore: enter canary prerelease mode * changeset * release(typescript): @mcp-use/inspector 0.4.6 + mcp-use 1.1.6 + create-mcp-use-app 0.4.5 (#376) * Typescript/server/cors issue (#367) * chore: enter canary prerelease mode * fix(chat): improve formatting and refactor inspector components (#357) * chore(inspector): update dependencies and refactor components - Updated pnpm-lock.yaml to reflect changes in dependency versions, including zod and added markdown-to-jsx. - Refactored inspector components for improved code quality and consistency, including formatting adjustments and import organization. - Enhanced TypeScript configuration by enabling composite builds for better module resolution. - Cleaned up unused code and improved overall readability across various components. * changeset * chore: enter canary prerelease mode --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * feat: tests cmua (#356) * feat: enhance create-mcp-use-app with package manager detection and commands - Added functions to detect the package manager used and provide corresponding install and dev commands. - Updated the CLI options to allow users to specify their preferred package manager (yarn, npm, pnpm). - Introduced a new test command in package.json for CLI testing. - Enhanced package installation logic to handle different package managers more gracefully. * changeset * fix test * fix windows path * fix: correct Windows path handling in create-mcp-use-app workflow * fix: update yarn command syntax in create-mcp-use-app workflow for consistency * chore(typescript): version packages (canary) * feat: introduce new starter templates for MCP server + cleanup (#360) * feat: introduce new starter and apps-sdk templates for MCP server - Added a comprehensive starter template that includes tools, resources, and UI components for building MCP servers. - Introduced an apps-sdk template demonstrating OpenAI Apps SDK integration with pizzaz reference widgets. - Updated documentation to reflect new templates and quick start instructions. - Refactored existing templates to streamline usage and improve clarity. - Enhanced package.json scripts for testing and development workflows. * add changeset * fix: update pnpm-lock.yaml to correct template paths and remove unused dependencies * fix: lint * refactor: standardize quotes and update template names in GitHub Actions workflow - Changed single quotes to double quotes for consistency in paths. - Updated template names from 'ui', 'uiresource', 'apps_sdk' to 'starter', 'ui-resource', 'apps-sdk-demo' for clarity. - Cleaned up whitespace in script sections for improved readability. * refactor: update template options in workflow and clean up whitespace in TypeScript files - Expanded the template options in the GitHub Actions workflow to include 'starter', 'ui-resource', and 'apps-sdk-demo'. - Removed unnecessary whitespace in TypeScript files for improved readability and consistency. * fix types * fix(inspector): update callPrompt reference and add new methods to MCPConnection - Changed the reference of callPrompt in LayoutContent to use getPrompt. - Added listPrompts and getPrompt methods to the MCPConnection interface and their implementations in McpProvider, throwing errors when not connected. * chore(typescript): version packages (canary) * fix: prompts * fix template * chore(typescript): version packages (canary) * feat(inspector): enhance PromptsTab with saved prompts functionality - Added functionality to load and save prompts from localStorage. - Introduced a new state for managing saved prompts and updated the UI to display them. - Refactored prompt execution logic to accommodate saved prompts. - Improved error handling and user feedback for prompt execution. - Updated the server.ts to dynamically listen on a specified port from environment variables. * Update khaki-baths-follow.md Signed-off-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com> * Update fine-cougars-change.md Signed-off-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com> * fix cors issues * changeset * remove changeset * changeset --------- 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: Enrico Toniato <2827496+tonxxd@users.noreply.github.com> Co-authored-by: Luigi Pederzani <luigipederzani@gmail.com> * chore: enter canary prerelease mode * chore(typescript): version packages (canary) * feat: add ph to inspector (#368) * feat(inspector): enhance telemetry tracking and update dependencies - Introduced new telemetry events for tracking inspector interactions, including server connections, tool executions, and resource reads. - Added a new test_app with specified dependencies in pnpm-lock.yaml to support development. - Updated inspector components to utilize the new telemetry system for better analytics and debugging. * feat(inspector): enhance README with updated descriptions and usage instructions * feat: add workflow step to sync main branch changes to canary - Introduced a new job in the TypeScript release workflow to automatically merge updates from the main branch into the canary branch when publishing is triggered. - Configured git settings and added commands to fetch, merge, and push changes to the canary branch, ensuring it stays up-to-date with the latest version updates from main. * feat: add GitHub release creation step to TypeScript workflow - Implemented a new step in the TypeScript release workflow to automatically create a GitHub release when publishing is triggered. - The step fetches tags from the last commit, generates release notes from changelogs of published packages, and consolidates them into a single release. - Ensures that the release title and notes are formatted correctly, enhancing the release process for better visibility and documentation. * chore: add changeset for '@mcp-use/inspector' patch * fix(inspector): add __INSPECTOR_VERSION__ to ESLint globals and clean up logger file - Added __INSPECTOR_VERSION__ as a readonly global in the ESLint configuration for better version management. - Removed unnecessary eslint-disable comment from the logger utility file to improve code clarity. * chore(eslint): add __INSPECTOR_VERSION__ global for inspector package TypeScript files - Introduced __INSPECTOR_VERSION__ as a readonly global in the ESLint configuration specifically for TypeScript files in the inspector package, enhancing version management. * chore(typescript): version packages (canary) * changeset * chore(typescript): version packages (canary) * Fix/scarf (#369) * feat(inspector): integrate Scarf telemetry with proxy endpoint - Added support for Scarf telemetry in the inspector package, including a new proxy endpoint to handle telemetry events without CORS issues. - Updated the pnpm-lock.yaml to include the @scarf/scarf dependency. - Removed the stub for @scarf/scarf as it is no longer needed. - Enhanced the telemetry implementation to forward events to the Scarf gateway from the server-side. * feat(inspector): try to fix ph * chore: add changeset for '@mcp-use/inspector' patch to fix Scarf integration * chore(typescript): version packages (canary) * fix(inspector): improve header handling in registerInspectorRoutes (#370) * fix(inspector): improve header handling in registerInspectorRoutes - Updated header processing to exclude 'accept-encoding' to prevent compression issues. - Added explicit request for uncompressed responses by setting 'Accept-Encoding' to 'identity'. - Enhanced response header forwarding by omitting compression-related headers to ensure accurate body state representation. * Update libraries/typescript/packages/inspector/src/server/shared-routes.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Pietro Zullo <62951181+pietrozullo@users.noreply.github.com> * changeset --------- Signed-off-by: Pietro Zullo <62951181+pietrozullo@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * chore(typescript): version packages (canary) * refactor(inspector): replace posthog-js with posthog-node and enhance telemetry logging (#372) - Updated the telemetry implementation to use posthog-node for server-side event logging. - Introduced a new proxy endpoint for forwarding telemetry events to PostHog. - Removed the logger utility file and streamlined error handling in telemetry methods to ensure silent failures do not disrupt application flow. - Added a new test_app with specified dependencies in pnpm-lock.yaml to support development. * chore(typescript): version packages (canary) * createapp: init git repository * chore(typescript): version packages (canary) * chore: push not pushed changeset (#373) * chore(typescript): version packages (canary) * chore: inspector server logging (#374) * refactor(inspector): streamline logging middleware usage - Removed global logger middleware from the main server file. - Applied logger middleware specifically to proxy routes in shared-routes.ts for improved performance and clarity. - Cleaned up error handling in the streaming response section for better readability. * changeset * chore(typescript): version packages (canary) * fix logging (#375) * refactor(inspector): apply logger middleware to proxy routes only - Updated logger middleware usage to apply only to '/inspector/api/proxy/*' routes, enhancing performance and clarity in logging. * changeset * chore(typescript): version packages (canary) * fix lint --------- Signed-off-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com> Signed-off-by: Pietro Zullo <62951181+pietrozullo@users.noreply.github.com> Co-authored-by: Pietro Zullo <62951181+pietrozullo@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com> Co-authored-by: pietrozullo <pietro.zullo@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * chore(release): exit prerelease mode and version packages (#377) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix: sync pre.json with canary to resolve merge conflicts --------- Signed-off-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com> Signed-off-by: Pietro Zullo <62951181+pietrozullo@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Luigi Pederzani <luigipederzani@gmail.com> Co-authored-by: Pietro Zullo <62951181+pietrozullo@users.noreply.github.com> Co-authored-by: pietrozullo <pietro.zullo@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * chore(typescript): version packages (canary) * fix: template + lint (#384) * chore: update package.json files to include @mcp-use/cli and @mcp-use/inspector as devDependencies in apps-sdk, mcp-ui, and starter templates * changeset * fix lint * fix broken link * chore(typescript): version packages (canary) * fix (#385) * chore(typescript): version packages (canary) --------- Signed-off-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com> Signed-off-by: Pietro Zullo <62951181+pietrozullo@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com> Co-authored-by: Pietro Zullo <62951181+pietrozullo@users.noreply.github.com> Co-authored-by: pietrozullo <pietro.zullo@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> |
||
|
|
46ee8c8d76 |
chore(release): simplify canary reset process in TypeScript workflow (#381)
- Updated the TypeScript release workflow to reset the canary branch to match the main branch without re-entering prerelease mode. - Removed unnecessary steps related to prerelease mode, streamlining the workflow for better clarity and efficiency. |
||
|
|
5a7481e346 |
chore(release): reset canary branch to main and re-enter prerelease mode (#380)
- Removed the workflow path exclusion for typescript-release.yml. - Updated the workflow to reset the canary branch to match the main branch instead of merging. - Added steps to re-enter prerelease mode on the canary branch after the reset. - Committed the changes to reflect the new prerelease state and force pushed to the canary branch. |
||
|
|
696b2e1372 |
release(typescript): @mcp-use/inspector 0.4.6 + mcp-use 1.1.6 + create-mcp-use-app 0.4.5 (#376)
* Typescript/server/cors issue (#367) * chore: enter canary prerelease mode * fix(chat): improve formatting and refactor inspector components (#357) * chore(inspector): update dependencies and refactor components - Updated pnpm-lock.yaml to reflect changes in dependency versions, including zod and added markdown-to-jsx. - Refactored inspector components for improved code quality and consistency, including formatting adjustments and import organization. - Enhanced TypeScript configuration by enabling composite builds for better module resolution. - Cleaned up unused code and improved overall readability across various components. * changeset * chore: enter canary prerelease mode --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * feat: tests cmua (#356) * feat: enhance create-mcp-use-app with package manager detection and commands - Added functions to detect the package manager used and provide corresponding install and dev commands. - Updated the CLI options to allow users to specify their preferred package manager (yarn, npm, pnpm). - Introduced a new test command in package.json for CLI testing. - Enhanced package installation logic to handle different package managers more gracefully. * changeset * fix test * fix windows path * fix: correct Windows path handling in create-mcp-use-app workflow * fix: update yarn command syntax in create-mcp-use-app workflow for consistency * chore(typescript): version packages (canary) * feat: introduce new starter templates for MCP server + cleanup (#360) * feat: introduce new starter and apps-sdk templates for MCP server - Added a comprehensive starter template that includes tools, resources, and UI components for building MCP servers. - Introduced an apps-sdk template demonstrating OpenAI Apps SDK integration with pizzaz reference widgets. - Updated documentation to reflect new templates and quick start instructions. - Refactored existing templates to streamline usage and improve clarity. - Enhanced package.json scripts for testing and development workflows. * add changeset * fix: update pnpm-lock.yaml to correct template paths and remove unused dependencies * fix: lint * refactor: standardize quotes and update template names in GitHub Actions workflow - Changed single quotes to double quotes for consistency in paths. - Updated template names from 'ui', 'uiresource', 'apps_sdk' to 'starter', 'ui-resource', 'apps-sdk-demo' for clarity. - Cleaned up whitespace in script sections for improved readability. * refactor: update template options in workflow and clean up whitespace in TypeScript files - Expanded the template options in the GitHub Actions workflow to include 'starter', 'ui-resource', and 'apps-sdk-demo'. - Removed unnecessary whitespace in TypeScript files for improved readability and consistency. * fix types * fix(inspector): update callPrompt reference and add new methods to MCPConnection - Changed the reference of callPrompt in LayoutContent to use getPrompt. - Added listPrompts and getPrompt methods to the MCPConnection interface and their implementations in McpProvider, throwing errors when not connected. * chore(typescript): version packages (canary) * fix: prompts * fix template * chore(typescript): version packages (canary) * feat(inspector): enhance PromptsTab with saved prompts functionality - Added functionality to load and save prompts from localStorage. - Introduced a new state for managing saved prompts and updated the UI to display them. - Refactored prompt execution logic to accommodate saved prompts. - Improved error handling and user feedback for prompt execution. - Updated the server.ts to dynamically listen on a specified port from environment variables. * Update khaki-baths-follow.md Signed-off-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com> * Update fine-cougars-change.md Signed-off-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com> * fix cors issues * changeset * remove changeset * changeset --------- 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: Enrico Toniato <2827496+tonxxd@users.noreply.github.com> Co-authored-by: Luigi Pederzani <luigipederzani@gmail.com> * chore: enter canary prerelease mode * chore(typescript): version packages (canary) * feat: add ph to inspector (#368) * feat(inspector): enhance telemetry tracking and update dependencies - Introduced new telemetry events for tracking inspector interactions, including server connections, tool executions, and resource reads. - Added a new test_app with specified dependencies in pnpm-lock.yaml to support development. - Updated inspector components to utilize the new telemetry system for better analytics and debugging. * feat(inspector): enhance README with updated descriptions and usage instructions * feat: add workflow step to sync main branch changes to canary - Introduced a new job in the TypeScript release workflow to automatically merge updates from the main branch into the canary branch when publishing is triggered. - Configured git settings and added commands to fetch, merge, and push changes to the canary branch, ensuring it stays up-to-date with the latest version updates from main. * feat: add GitHub release creation step to TypeScript workflow - Implemented a new step in the TypeScript release workflow to automatically create a GitHub release when publishing is triggered. - The step fetches tags from the last commit, generates release notes from changelogs of published packages, and consolidates them into a single release. - Ensures that the release title and notes are formatted correctly, enhancing the release process for better visibility and documentation. * chore: add changeset for '@mcp-use/inspector' patch * fix(inspector): add __INSPECTOR_VERSION__ to ESLint globals and clean up logger file - Added __INSPECTOR_VERSION__ as a readonly global in the ESLint configuration for better version management. - Removed unnecessary eslint-disable comment from the logger utility file to improve code clarity. * chore(eslint): add __INSPECTOR_VERSION__ global for inspector package TypeScript files - Introduced __INSPECTOR_VERSION__ as a readonly global in the ESLint configuration specifically for TypeScript files in the inspector package, enhancing version management. * chore(typescript): version packages (canary) * changeset * chore(typescript): version packages (canary) * Fix/scarf (#369) * feat(inspector): integrate Scarf telemetry with proxy endpoint - Added support for Scarf telemetry in the inspector package, including a new proxy endpoint to handle telemetry events without CORS issues. - Updated the pnpm-lock.yaml to include the @scarf/scarf dependency. - Removed the stub for @scarf/scarf as it is no longer needed. - Enhanced the telemetry implementation to forward events to the Scarf gateway from the server-side. * feat(inspector): try to fix ph * chore: add changeset for '@mcp-use/inspector' patch to fix Scarf integration * chore(typescript): version packages (canary) * fix(inspector): improve header handling in registerInspectorRoutes (#370) * fix(inspector): improve header handling in registerInspectorRoutes - Updated header processing to exclude 'accept-encoding' to prevent compression issues. - Added explicit request for uncompressed responses by setting 'Accept-Encoding' to 'identity'. - Enhanced response header forwarding by omitting compression-related headers to ensure accurate body state representation. * Update libraries/typescript/packages/inspector/src/server/shared-routes.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Pietro Zullo <62951181+pietrozullo@users.noreply.github.com> * changeset --------- Signed-off-by: Pietro Zullo <62951181+pietrozullo@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * chore(typescript): version packages (canary) * refactor(inspector): replace posthog-js with posthog-node and enhance telemetry logging (#372) - Updated the telemetry implementation to use posthog-node for server-side event logging. - Introduced a new proxy endpoint for forwarding telemetry events to PostHog. - Removed the logger utility file and streamlined error handling in telemetry methods to ensure silent failures do not disrupt application flow. - Added a new test_app with specified dependencies in pnpm-lock.yaml to support development. * chore(typescript): version packages (canary) * createapp: init git repository * chore(typescript): version packages (canary) * chore: push not pushed changeset (#373) * chore(typescript): version packages (canary) * chore: inspector server logging (#374) * refactor(inspector): streamline logging middleware usage - Removed global logger middleware from the main server file. - Applied logger middleware specifically to proxy routes in shared-routes.ts for improved performance and clarity. - Cleaned up error handling in the streaming response section for better readability. * changeset * chore(typescript): version packages (canary) * fix logging (#375) * refactor(inspector): apply logger middleware to proxy routes only - Updated logger middleware usage to apply only to '/inspector/api/proxy/*' routes, enhancing performance and clarity in logging. * changeset * chore(typescript): version packages (canary) * fix lint --------- Signed-off-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com> Signed-off-by: Pietro Zullo <62951181+pietrozullo@users.noreply.github.com> Co-authored-by: Pietro Zullo <62951181+pietrozullo@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com> Co-authored-by: pietrozullo <pietro.zullo@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> |
||
|
|
7d3a3040a9 |
feat: Adapter integrations (#325)
* feat: openai, anthropic, google adapters * feat: adapters examples and documentation * feat: update imports * fix: release drafter action * docs: header change * chore: locked langchain dependencies in pyproject.toml (#321) * python/release/1.3.13 * feat: Update langchain adapter * feat: Update MCPAgent * feat: General fixes * feat: Correct naming * feat: Fix formatting * feat: Add genai dependency * feat: Fix documentation * feat: Fix imports * logo * icons * Update docs/python/integration/google.mdx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Pietro Zullo <62951181+pietrozullo@users.noreply.github.com> * feat: Critical bug fixes * chore: local logos * chore: moved icons * fix: Lambda closure issue * docs: Add steps * docs: Fix documentation * fix docs action * fix attempt 2 * docs: update * chore: google optional dependency * chore: minor docs changes * fix generate docs script * fix: lint * import guard in __init__ file * ci: install google-genai in docs workflow * chore: print diffs * chore: fix action checkout ref --------- Signed-off-by: Vincenzo Reina <vincenzoreinaa05@gmail.com> Signed-off-by: Pietro Zullo <62951181+pietrozullo@users.noreply.github.com> Co-authored-by: pietrozullo <pietro.zullo@gmail.com> Co-authored-by: Pietro Zullo <62951181+pietrozullo@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> |
||
|
|
6dcee78726 |
chore: enter canary prerelease mode and update inspector, prompts, and starter templates (#362)
* chore: enter canary prerelease mode * fix(chat): improve formatting and refactor inspector components (#357) * chore(inspector): update dependencies and refactor components - Updated pnpm-lock.yaml to reflect changes in dependency versions, including zod and added markdown-to-jsx. - Refactored inspector components for improved code quality and consistency, including formatting adjustments and import organization. - Enhanced TypeScript configuration by enabling composite builds for better module resolution. - Cleaned up unused code and improved overall readability across various components. * changeset * chore: enter canary prerelease mode --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * feat: tests cmua (#356) * feat: enhance create-mcp-use-app with package manager detection and commands - Added functions to detect the package manager used and provide corresponding install and dev commands. - Updated the CLI options to allow users to specify their preferred package manager (yarn, npm, pnpm). - Introduced a new test command in package.json for CLI testing. - Enhanced package installation logic to handle different package managers more gracefully. * changeset * fix test * fix windows path * fix: correct Windows path handling in create-mcp-use-app workflow * fix: update yarn command syntax in create-mcp-use-app workflow for consistency * chore(typescript): version packages (canary) * feat: introduce new starter templates for MCP server + cleanup (#360) * feat: introduce new starter and apps-sdk templates for MCP server - Added a comprehensive starter template that includes tools, resources, and UI components for building MCP servers. - Introduced an apps-sdk template demonstrating OpenAI Apps SDK integration with pizzaz reference widgets. - Updated documentation to reflect new templates and quick start instructions. - Refactored existing templates to streamline usage and improve clarity. - Enhanced package.json scripts for testing and development workflows. * add changeset * fix: update pnpm-lock.yaml to correct template paths and remove unused dependencies * fix: lint * refactor: standardize quotes and update template names in GitHub Actions workflow - Changed single quotes to double quotes for consistency in paths. - Updated template names from 'ui', 'uiresource', 'apps_sdk' to 'starter', 'ui-resource', 'apps-sdk-demo' for clarity. - Cleaned up whitespace in script sections for improved readability. * refactor: update template options in workflow and clean up whitespace in TypeScript files - Expanded the template options in the GitHub Actions workflow to include 'starter', 'ui-resource', and 'apps-sdk-demo'. - Removed unnecessary whitespace in TypeScript files for improved readability and consistency. * fix types * fix(inspector): update callPrompt reference and add new methods to MCPConnection - Changed the reference of callPrompt in LayoutContent to use getPrompt. - Added listPrompts and getPrompt methods to the MCPConnection interface and their implementations in McpProvider, throwing errors when not connected. * chore(typescript): version packages (canary) * fix: prompts * fix template * chore(typescript): version packages (canary) * feat(inspector): enhance PromptsTab with saved prompts functionality - Added functionality to load and save prompts from localStorage. - Introduced a new state for managing saved prompts and updated the UI to display them. - Refactored prompt execution logic to accommodate saved prompts. - Improved error handling and user feedback for prompt execution. - Updated the server.ts to dynamically listen on a specified port from environment variables. * Update khaki-baths-follow.md Signed-off-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com> * Update fine-cougars-change.md Signed-off-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com> --------- 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: Luigi Pederzani <luigipederzani@gmail.com> |
||
|
|
a76041c1b8 | fix: ci | ||
|
|
1cae240ca2 |
feat/docs (#340)
* Check out feat/server/python branch with latest docs * feat: structure v1 * feat: product navigation * stubs * emtpy pages * feat: home page * autogenerate docs updated * side bar on home page with redirects * theme adaptation of welcome cards * cleanup logos * cleanup * WIP disclosure in Python Server * feat: add initial documentation and images for MCP server framework * feat: add TypeScript documentation for mcp agent and mcp client + remove typescript reference from python files * fix: update sandbox documentation for Python and TypeScript clients - Adjusted Python sandbox documentation for clarity in API key usage. - Added a warning in TypeScript documentation indicating that sandbox execution is not yet supported, with a reference to the Python version for users needing this functionality. * feat: enhance TypeScript SDK documentation with new icons and structured navigation * fix * feat: update getting started guide * refactor: remove sandboxed execution section from TypeScript connection types documentation - Deleted the Sandboxed Execution section, including installation instructions and characteristics. - Updated the Choosing the Right Connection Type section to reflect the removal of sandboxed execution details. * feat: add observability documentation for MCP agents * feat: add comprehensive documentation for MCP server framework * feat: expand TypeScript server documentation with new templates, prompts, and UI widgets sections * fix * color hover * remove inspector * feat: remove claude code review * fix: broken links --------- Co-authored-by: Luigi Pederzani <luigipederzani@gmail.com> |
||
|
|
d28d7c5833 |
chore: enhance TypeScript exit prerelease workflow with concurrency and directory adjustments (#335)
- Updated the typescript-exit-prerelease.yml to include concurrency settings for better workflow management. - Adjusted working directories in various steps to ensure correct execution context, particularly for git operations and package versioning. - Improved clarity in comments to guide users through the exit prerelease process. |
||
|
|
0ed0ed298f | chore: update TypeScript exit prerelease workflow to include typescript-release.yml path in triggers (#334) | ||
|
|
8c2009acc0 |
chore(release/typescript): mcp-use v1.1.1 + inspector v0.4.1 + others (#333)
* chore: enhance TypeScript exit prerelease workflows - Added special handling for exit-prerelease branches to ensure pre.json is removed before exiting prerelease mode. - Updated the exit prerelease workflow to automatically create a PR when merging from the canary branch, streamlining the process of exiting prerelease mode. - Improved messaging for users regarding the status of prerelease mode and the steps required to complete the transition to stable releases. * chore: update TypeScript workflows to streamline versioning and publishing - Enhanced the exit prerelease workflow to include automatic versioning of packages to stable. - Improved commit messages for clarity on changes made during the exit from prerelease mode. - Updated checks in the TypeScript release workflow to ensure proper handling of changesets and publishing conditions. * chore: remove TypeScript changeset check workflow - Deleted the TypeScript changeset check workflow file to streamline CI processes. - Updated the exit prerelease and release workflows to improve clarity and efficiency in versioning and publishing packages. |
||
|
|
eaa88fea5c |
chore(release/typescript): mcp-use v1.1.1 + inspector v0.4.1 + others (#331)
* chore: Test canary (#329) * remove all changeset * change name * minor * chore: remove wrong beta version * run ci on canary * chore: add changeset for patch updates to mcp-use packages with minor fixes * test changeset * chore: enter canary prerelease mode * manual release workflows for changeset management * remove pre * chore: enter canary prerelease mode * chore(typescript): version packages (canary) * changeset * chore(typescript): version packages (canary) * chore(typescript): enhance canary merge checks and add exit prerelease workflow - Added checks for canary branch merges to ensure pre.json does not exist and no unconsumed changesets are present. - Introduced a new workflow to exit prerelease mode, allowing users to confirm the exit and automatically handle the necessary git operations. - Removed the exit prerelease step from the release workflow to streamline the process. --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> |
||
|
|
3670ed05cc |
chore(release/typescript): mcp-use v1.1.1 + inspector v0.4.1 + others (#330)
* chore: Test canary (#329) |
||
|
|
1e8af4cb56 |
chore: update TypeScript release workflows and documentation (#328)
- 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. |
||
|
|
dbf9516281 |
chore(release/typescript): mcp-use v1.1.0 + inspector v0.4.0 (#326)
* feat: Add OpenAI Apps SDK integration (#322) * feat: enhance MCP server and UI resource handling with Apps SDK support * feat: add Apps SDK tests for various UI resource types * feat: implement support for OpenAI Apps SDK in MCP server - Added new UI resource type for Apps SDK, allowing integration with OpenAI's platform. - Enhanced existing methods to handle Apps SDK metadata and structured content. - Updated documentation and type definitions to reflect the new resource capabilities. - Included examples for creating Apps SDK resources and utilizing them within the MCP server. * test: add tests for Apps SDK resource creation in MCP-UI Adapter * feat: add Pizzaz MCP server implementation with OpenAI Apps SDK integration * fix: update resource URI format * feat: enhance Apps SDK resource * feat: enhance tool definition + make _meta is at top level ( * feat: add new test_app scripts for each create-mcp-use-app template * fix: update test_app scripts to include --dev flag for template generation * chore(changeset): apps sdk * fix: changeset cwd (#323) * refactor: Improve compatibility (#324) * fix: use registerResource and registerPrompt * refactor: update callback function names in MCP server and types - Renamed `fn` to `cb` in tool and prompt definitions for consistency. - Updated resource definitions to use `readCallback` instead of `fn`. - Adjusted related documentation and type definitions to reflect these changes. - Enhanced clarity in the MCP server's API by standardizing callback naming conventions. * refactor: templates * Fix inspector version (#316) * refactor: update inspector CLI to use ESM format and remove deprecated files - Changed the build command for the CLI to output in ESM format. - Removed obsolete TypeScript declaration and map files for the CLI. - Updated usage examples in the CLI to reflect the new package name. * chore: update documentation for improved clarity and structure - Revised sections in the documentation to enhance clarity and organization. - Added new examples and improved existing ones for better understanding. - Ensured consistency in terminology and formatting across all documents. * fix: address code review feedback for inspector CLI - Add input validation for port (1-65535) and URL format - Add error logging to all API catch blocks - Fix critical async/await bugs in static file serving - Add 'open' package for better cross-platform browser launching - Remove unused CLIArgs interface - Update changeset description with complete fix details * fix: update inspector CLI for improved functionality and error handling - Changed CLI build format from CommonJS to ESM for better compatibility. - Added prepublishOnly hook to ensure build before publishing. - Enhanced input validation for port and URL arguments. - Improved error logging in API catch blocks for better debugging. - Updated documentation references to reflect package name changes. - Removed compiled artifacts from the source directory. * fix: use absolute path for changesets cwd parameter * refactor: reorganize imports and enhance InspectorDashboard component - Rearranged import statements for better readability and consistency. - Improved formatting of console warnings for better debugging. - Updated connection handling logic and UI elements for clarity and maintainability. - Enhanced user feedback for connection actions and clipboard operations. * feat: migrate changes from mcp-use-ts repository - Update InspectorDashboard.tsx with auto-connect functionality and connection tester - Update create-mcp-use-app with improved CLI experience and template selection - Add version injection plugin to vite.config.ts - Improve error handling and user experience * fix: add missing dependencies for create-mcp-use-app - Add inquirer@9.3.8 and ora@8.2.0 dependencies - Add @types/inquirer@9.0.9 for TypeScript support - Resolves module resolution errors * feat: add missing inspector components and files - Add chat components (AssistantMessage, UserMessage, ToolCallDisplay, MCPUIResource) - Add missing UI components (aurora-background, text-shimmer, sheet, switch) - Add ConnectionSettingsForm component - Add mcpResourceUtils utility - Add favicon files (favicon-black.svg, favicon-white.svg) - Update index.html with proper favicon links and title - Update ChatTab with latest improvements and chat functionality * fix: update dependencies and improve inspector functionality - Update @types/node to version 20.19.21 across multiple packages. - Upgrade @typescript-eslint packages to version 8.46.1 for better linting support. - Add new dependencies in create-mcp-use-app for improved CLI experience (inquirer@9.3.8, ora@8.2.0). - Adjust inspector package version to 0.3.9 and clean up CHANGELOG. - Enhance error handling and connection management in inspector components. - Refactor inspector CLI for better usability and auto-connect features. * refactor: reorganize and clean up inspector components - Update import paths in App.tsx for consistency and clarity. - Remove unused components: AnimatedThemeToggler, ChatTab, CommandPalette, ConnectionSettingsForm, CustomHeadersEditor, EnvVariablesEditor, InspectorDashboard, Layout, McpUIRenderer, PromptsTab, ResourcesTab, ServerDetail, ServerIcon, ServerList, ToolsTab, and chat components. - Streamline the component structure for improved maintainability and readability. * fix oauth flow * refactor: simplify InspectorDashboard and enhance ServerIcon component - Streamlined the SelectItem in InspectorDashboard for clarity. - Improved formatting and readability in ServerIcon, including better handling of server URL parsing and favicon loading logic. - Added loading state for favicon images to enhance user experience. * style: enhance CommandPalette and ServerIcon components - Added a command palette button in the layout for improved accessibility. - Updated CommandPalette to include a scrollable list and improved item selection handling. - Enhanced ServerIcon with caching for favicons to optimize loading times and reduce network requests. - Introduced loading states for favicons to improve user experience. * refactor: enhance Inspector components and improve routing - Updated App.tsx to include InspectorProvider for better context management. - Simplified routing logic in InspectorDashboard and ServerList components to use query parameters for server navigation. - Enhanced CommandPalette with improved item selection and logging for better debugging. - Refactored ConnectionSettingsForm to support additional UI options and callbacks. - Improved layout and styling across various components for a more cohesive user experience. * chore: remove SSE_DISCONNECT_FIX documentation * refactor: enhance create-mcp-use-app CLI and inspector components - Replaced exec with spawn in create-mcp-use-app for improved security and performance. - Added validation for project and template names to prevent path traversal and ensure safe input. - Enhanced error handling in inspector server responses with detailed context and stack traces. - Removed proxy token handling from inspector components to streamline configuration. - Updated various inspector components for better state management and user experience. * fix: remove garbage text * feat: enhance UI components and improve layout - Added a header to the ConnectionSettingsForm for better user guidance. - Updated InspectorDashboard to remove redundant header and streamline layout. - Modified ToolsTab to change the direction of the ResizablePanelGroup for improved usability. - Enhanced ToolExecutionPanel with execute and save buttons for better interaction. - Refactored ToolResultDisplay to improve result presentation and user feedback. - Updated ToolsList to use a consistent icon for better visual clarity. * refactor: update linting and enhance ESLint configuration - Changed pre-commit hook to use `pnpm exec lint-staged` for better compatibility. - Updated ESLint configuration to disable specific formatters and rules that conflict with React 19 syntax. - Improved README formatting for better readability and consistency. - Refactored various components for cleaner code and improved performance, including adjustments to imports and formatting. - Enhanced utility functions and context management for better maintainability. * refactor: update inspector components and improve TypeScript configuration - Removed the LogoAnimated and McpUseLogo components to streamline the codebase. - Updated imports in App.tsx for better organization and clarity. - Enhanced TypeScript configuration by adding "composite" to tsconfig.json for improved project structure. - Refactored usePrismTheme hook to provide better type definitions. - Improved error logging in mcpResourceUtils for clearer debugging. - Removed unused components and optimized the overall structure of the inspector package. * feat: implement streaming chat API and enhance ChatTab component - Added a new streaming chat API endpoint to handle real-time message updates. - Refactored ChatTab component to support streaming responses, improving user experience during chat interactions. - Introduced MessageList component for better message rendering and management. - Updated server middleware and shared utilities to accommodate streaming functionality. - Enhanced error handling and response management for the chat API. * feat: enhance ChatTab and MessageList components for improved message handling - Added support for message parts in ChatTab and MessageList components to better manage streaming content and tool invocations. - Updated the server middleware to use 'text/event-stream' for the chat API, enabling real-time updates. - Refactored message rendering logic to accommodate new message structure, enhancing user experience during chat interactions. - Introduced new dependencies in package.json for better integration with AI SDK components. * refactor: streamline ChatTab component and enhance chat functionality - Refactored ChatTab component to utilize custom hooks for better state management and separation of concerns. - Removed unused imports and interfaces to simplify the codebase. - Introduced new components for chat header, input area, and landing form to improve modularity and readability. - Enhanced keyboard shortcut handling for improved user experience during chat interactions. - Updated message handling logic to support new chat features and improve performance. * refactor: reorganize CommandPalette and ServerDropdown components for improved clarity - Moved the MCP Official Documentation command item within the CommandPalette for better structure. - Updated ServerDropdown to enhance error handling and user feedback with improved tooltip functionality. - Removed the AddServerDialog and ServerSelectionModal components to streamline the UI and reduce complexity. - Adjusted imports and component logic for better maintainability and readability. * feat: add 'Connect Server' command to CommandPalette and enhance UI elements - Introduced a new global command item 'Connect Server' in the CommandPalette for easier navigation. - Updated the ChatHeader component's styling for improved visual consistency. - Enhanced ToolCallDisplay component to use background colors instead of borders for better status indication. * add changest * add chanset * Remove outdated changesets for Apps SDK and Inspector integration, consolidating features and fixes into respective changelogs and package versions. * fix: change cwd for changeset * chore: trigger beta workflows * chore: trigger typescript beta workflow * fix: resolve changeset directory detection in TypeScript release workflows * Revert "Remove outdated changesets for Apps SDK and Inspector integration, consolidating features and fixes into respective changelogs and package versions." This reverts commit |
||
|
|
5585543d3b | fix: update typescript release workflow to use dynamic cwd path | ||
|
|
b1411a2510 |
Add Claude Code GitHub Workflow (#313)
* "Claude PR Assistant workflow" * "Claude Code Review workflow" |
||
|
|
5a1eacf82b | move workflows |