Commit Graph

231 Commits

Author SHA1 Message Date
Enrico Toniato 67b4a27d9d remove v1 compatibility layer (#2049) 2026-07-28 16:45:55 -07:00
Enrico f6634fb688 Update README.md and docs.json for TypeScript v2 migration and new banner
- Updated migration guide link in README.md to point to the correct TypeScript v2 documentation.
- Added a new warning banner in docs.json to announce that mcp-use v2 is now in beta.
- Enhanced TypeScript SDK description in docs.json to clarify documentation for both V1 and V2.
- Restructured documentation sections in docs.json for better organization and clarity.
2026-07-28 12:00:34 -07:00
Enrico 4c5e162009 Update README.md to enhance visual elements and clarify content
- Replaced logo with a new banner image for better visibility.
- Improved text formatting for readability.
- Updated badge links for npm version and downloads.
- Adjusted Discord badge style for consistency.
2026-07-28 10:56:59 -07:00
Enrico Toniato ef8187a67d fix(typescript): support runtime-first view deployments (#2028) 2026-07-26 12:56:07 -07:00
Enrico Toniato 4b9e621602 Enhance CLI user experience and documentation (#2020)
- Updated CLI command syntax to include [path] for deployment.
- Improved descriptions for deployment options, including `--name`, `--new`, and `--region`.
- Added `--json` option for machine-readable output and clarified its behavior in the documentation.
- Enhanced error handling and output formatting for better user feedback.
- Updated various command help texts to reflect new features and usage patterns.
- Improved local authentication flow and clarified the behavior of `--no-open` and `--json` options.
- Added tests to ensure correct behavior of new features and error handling.
2026-07-25 10:33:44 -07:00
Enrico e5cfc5e40b fix(agent): slim deps, relocate examples, and fix install docs
Drop chalk/cli-highlight from @mcp-use/agent (inline ANSI for prettyStreamEvents), remove the redundant ./browser entry, default autoInitialize in simplified mode, and ship package examples plus corrected install guidance (client is a transitive dep; /langchain is a subpath).
2026-07-24 13:37:16 -07:00
Andrew Khadder 44182d04d2 fix(cli): use named protocol modes (#2002) 2026-07-23 17:08:04 -07:00
Enrico 50202acf07 refactor(docs): migrate v1 enum elicitation helpers to Zod and update documentation
- Updated the API reference to reflect the migration from v1 enum elicitation helpers to Zod form schemas.
- Revised descriptions and examples in the elicitation schemas documentation to guide users on the new Zod-based approach.
- Adjusted links and callouts to emphasize the removal of deprecated v1 helpers and provide migration guidance.
2026-07-23 16:18:40 -07:00
Enrico 276ee0ba93 fix: address follow-up Cubic review feedback 2026-07-23 15:48:37 -07:00
Enrico afe3f11200 fix(ci): format Python README and repair docs link 2026-07-23 15:23:20 -07:00
Enrico 2768f5bfec Merge main into beta 2026-07-23 15:20:16 -07:00
Enrico 18e3ce75e6 fix: address high-value Cubic feedback 2026-07-23 14:47:45 -07:00
Andrew Khadder b5c44e4d6b Fix client CLI OAuth and JSON behavior (#1982)
* fix client CLI OAuth and JSON behavior

* fix client remove JSON handling
2026-07-23 14:32:23 -07:00
Andrew Khadder e53c958a0a Add pre-approved device code login flow (#1978)
* wip: add v2 device-code login

* chore: add device-code login changeset
2026-07-23 14:30:52 -07:00
Enrico ac3d1eb3bb fix(typescript): resolve CodeQL security alerts 2026-07-23 12:24:46 -07:00
Andrew Khadder c99141208b Remove the skills command from the CLI (#1991) 2026-07-23 12:21:42 -07:00
Andrew Khadder 0bdaed15fb feat(react): add shared view state (#1976)
* feat(react): add shared view state

* docs(react): document shared view state
2026-07-22 19:05:36 -07:00
Enrico Toniato c8c4174145 restore request-scoped notifications (#1974) 2026-07-22 17:50:45 -07:00
Enrico Toniato 23bba3bbf2 refactor(server): update tool context to RequestContext and enhance client metadata handling (#1972)
- Renamed `ToolContext` to `RequestContext` in documentation and code.
- Updated the context object to provide enhanced client metadata, including user information and capabilities.
- Improved examples and descriptions for clarity on client capabilities and request-scoped metadata.
- Adjusted tests to reflect changes in client metadata handling and ensure type safety.
2026-07-22 16:50:16 -07:00
Andrew Khadder 8259292618 Enable public tunnels for production start (#1970)
* feat(cli): add tunnel support to v2 start

* chore: add start tunnel changeset
2026-07-22 15:45:33 -07:00
Enrico Toniato 192d193803 feat(server): restore Hono HTTP surface and strict tool refs (#1969)
Bring back typed Hono routes/middleware with server.fetch as the serving
boundary, restore deprecated response helpers for upgrades, and require
useCallTool names to resolve against mcp-env.d.ts ToolRefs (with
useDynamicTool + mcp-use typecheck as the escape hatch).
2026-07-22 15:03:44 -07:00
Enrico Toniato 392d36c079 Optimize the standalone Inspector package (#1968)
* fix inspector hosted proxy and oauth recovery

* remove inspector compatibility report

* refactor(inspector): mount project-local dev inspector

* refactor(inspector): remove CDN application delivery

* fix(inspector): finalize local mount and proxy health checks

* refactor(typescript): optimize inspector packages

* fix(typescript): build CLI for server examples

* fix(typescript): keep CLI build deps development-only
2026-07-22 12:21:51 -07:00
Enrico Toniato eedeb4fc52 fix(inspector): recover OAuth and mount project-local dev Inspector (#1966)
* fix inspector hosted proxy and oauth recovery

* remove inspector compatibility report

* refactor(inspector): mount project-local dev inspector

* refactor(inspector): remove CDN application delivery

* fix(inspector): finalize local mount and proxy health checks
2026-07-21 18:51:47 -07:00
Andrew Khadder 786dbf6f58 Document inline view bundle support and source map build options (#1967) 2026-07-21 18:23:36 -07:00
Enrico b5354b5285 fix(docs): update Inspector URL references to /mcp/inspector 2026-07-21 11:53:55 -07:00
Ayaan Gazali 9978343d63 docs(inspector): add self-hosting guide (#1861)
* docs(inspector): add self-hosting guide

The inspector README and feature table reference self-hosting with Docker,
but the docs site had no page for it (mcp-use.com/docs/inspector/self-hosting
404s). Add the guide based on the README's self-hosting section: Docker Hub
image, docker run / compose deployment, environment variables, and how
self-hosting compares to the hosted and CLI options.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* docs(inspector): bind examples to loopback, add exposure warning and air-gapped transfer steps

Addresses review feedback on #1861:
- trim wordy intro sentence
- quick start and deployment examples now bind 127.0.0.1 to avoid
  exposing the Inspector proxy on all interfaces; added Warning with
  reverse-proxy/firewall guidance for remote access
- add docker save/load transfer steps for air-gapped hosts

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: ayaanmacmini3 <ayaanmacmini3@ayaanmacmini3s-Mac-mini.local>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-21 10:00:46 -07:00
Enrico Toniato 3aca19c1ab feat: prefer Bun over Yarn and opt-in build source maps (#1950)
Replace create-mcp-use-app --yarn with --bun, align docs/install hints, and gate mcp-use build source maps behind --source-maps. Keep workspace root TypeScript on 5.9 so eslint stays compatible.
2026-07-20 14:37:04 -07:00
Enrico 78266950f9 feat(server): add Next.js drop-in adapter and example suite 2026-07-20 10:50:19 -07:00
Enrico d9c2023864 manual commit 2026-07-18 19:23:50 -07:00
Andrew Khadder 6aa0857b34 feat(server): make MCP middleware type-safe by method (#1932)
* feat(server): make MCP middleware type-safe by method

* fix(server): omit schema dialect from tool descriptors (#1931)

* fix(server): forward list middleware params

* fix(server): export MCP middleware adapters
2026-07-18 18:20:02 -07:00
Enrico f25964142b Enhance MCP App Development Experience
- Updated documentation to clarify the use of `mcp-use dev --tunnel` and `mcp-use start --tunnel`, including automatic tunnel restart on registration drop.
- Refined TypeScript API references for `allowedOrigins` and `cors` configurations to improve clarity on behavior.
- Transitioned view-related files from `resources/` to `views/`, aligning with new authoring standards.
- Introduced a new `mcp-env.d.ts` for type definitions and simplified favicon selection logic.
- Enhanced the `create-mcp-use-app` template to support views, including a new fruit search example with improved UI components.
- Added mock OpenAI file APIs for local development environments to facilitate testing.
- Updated package.json descriptions and keywords for better clarity and alignment with project goals.
2026-07-18 14:21:02 -07:00
Enrico 15798394a4 chore(typescript): raise Node floor to 22.22.2 and CI to 22.23.1
Excludes pre–March 2026 security patches and satisfies npm 12 for trusted beta publishing.
2026-07-18 10:53:48 -07:00
Enrico b47e268f61 chore(typescript): raise Node.js engine floor to 22.13
Unblocks beta releases on pnpm 11.13 and aligns CI, Docker, build targets, and scaffolds with Maintenance LTS Node 22.
2026-07-18 10:47:42 -07:00
Ayaan Gazali 0c95e04db2 fix(docs): reword changelog heading that breaks mint broken-links with URIError (#1922)
The current mint CLI throws 'URIError: URI malformed' generating the anchor
slug for '### 100% Client Conformance (20/20)' (bare % followed by non-hex),
failing the 'Generate and validate API documentation' job on every PR.
Reworded to 'Full Client Conformance (20/20)'; mint broken-links now passes
across the whole docs tree.

Closes #1911

Co-authored-by: ayaanmacmini3 <ayaanmacmini3@ayaanmacmini3s-Mac-mini.local>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-18 09:25:53 -07:00
Andrew Khadder adebe07133 feat(server): proxy multiple MCP servers (#1892)
* feat(server): proxy multiple MCP servers

* fix(server): address proxy review feedback

* fix(server): preserve proxy lifecycle ordering

* test(server): refresh proxy bundle budget
2026-07-17 18:01:49 -07:00
Andrew Khadder fa574030eb feat(server): add v2 server branding (#1920)
* feat(server): add v2 server branding

* fix(server): address branding review feedback
2026-07-17 17:47:45 -07:00
Andrew Khadder eabae55ea4 feat(server): add Better Auth OAuth provider (#1921) 2026-07-17 17:31:19 -07:00
Andrew Khadder 9c77ee214a feat(server): add v2 landing page (#1916)
* feat(server): add v2 landing page

* docs(examples): expose auth landing pages

* test(server): account for merged bundle growth

* fix(server): harden landing install metadata
2026-07-17 16:41:26 -07:00
Enrico Toniato 6737ecc45d feat(server): MCP middleware, observer events, CORS, and universal getHandler (#1918)
Add fetch-native operation middleware (server.use), read-only events
(server.on), optional ServerConfig.cors, FrameworkHandler duck-typing for
Hono, and getNodeHandler for custom Node http.Server composition.
2026-07-17 16:18:41 -07:00
Andrew Khadder 14ae280e46 Add ChatGPT file upload support (#1897)
* Add ChatGPT file upload hook

* Add file upload example
2026-07-17 14:19:54 -07:00
Andrew Khadder 3bffd70dfe fix beta preview packaging and docs (#1913) 2026-07-17 14:08:43 -07:00
Enrico 4f11e03942 feat(server): external view assets, CDN env, and CSP configuration
Revamp production view builds to emit hashed assets served over HTTP,
add --with-inspector for build manifests, split MCP_URL from
MCP_ASSETS_URL, and support global CSP env overrides.
2026-07-16 18:06:00 -07:00
Enrico 003447ce94 fix(inspector): update CDN asset resolution and modify server start command 2026-07-16 15:34:56 -07:00
Enrico 289cf2cbcc Merge branch 'v2-server-scaffold' into beta 2026-07-16 13:24:25 -07:00
Enrico 3d32445913 feat(assets): update SVG logos and favicon for improved design consistency
- Replaced existing SVG logos and favicon with new designs featuring updated dimensions and styles.
- Enhanced the visual representation of the assets to align with the current branding guidelines.
- Added a new `langchain.ts` file to the agent package for LangChain integration, including necessary exports and configurations.
- Updated package.json and tsup.config.ts to reflect new entry points and dependencies.
2026-07-15 09:16:04 -07:00
Enrico 1e548836d8 feat(docs): add migration page and enhance documentation clarity
- Added a new migration page to the TypeScript client documentation for better guidance on transitioning between versions.
- Updated descriptions in various documentation files to improve clarity and consistency, including the MCPClient and Code Mode sections.
- Revised links and examples to ensure they reflect the latest structure and best practices for using the MCP client.
2026-07-15 07:24:51 -07:00
Enrico 8843e2ef0d fix(ci): simplify version generation command in CI workflow
- Removed redundant version generation command for @mcp-use/client in the CI workflow.
- Updated documentation links in code-mode.mdx and other files to reflect new paths.
- Changed installation instructions from yarn to npm for consistency across documentation.
- Enhanced error handling in client authentication and session management.
- Added a utility function to compare semantic versions in telemetry.
- Removed outdated unit tests for FileKVStore.
2026-07-14 19:28:38 -07:00
Enrico e6ce060a1b refactor(docs): update README and documentation for MCP SDK v2
- Improved formatting and consistency in README.md and various documentation files.
- Updated import paths to reflect the new package structure for @mcp-use/client and @mcp-use/agent.
- Enhanced examples and descriptions for MCPAgent and related components.
- Cleaned up whitespace and formatting for better readability across multiple files.
2026-07-14 18:54:00 -07:00
Enrico Toniato 7cc7598c57 Release v1.34.1 — hosted OAuth discovery through the proxy (#1844)
* fix(auth): re-anchor proxy-origin .well-known discovery onto the MCP server (#1843)

* fix(auth): re-anchor proxy-origin .well-known discovery onto the MCP server

MCP traffic must always go through the gateway/inspector proxy (browser CORS
on direct connections cannot be guaranteed — edge errors bypass the gateway's
CORS middleware). But with the transport connected to the proxy URL, the SDK
derives /.well-known/* discovery URLs from the proxy origin whenever no
resource_metadata hint is available (SSE EventSource cannot read
WWW-Authenticate; token refresh runs without a 401 at hand). Discovery then
failed on the proxy origin and the server was misclassified as "does not
support OAuth", hiding the Authenticate button on gateway-hosted servers.

BrowserOAuthClientProvider.getProxyFetch() now rewrites connection-origin
.well-known lookups onto the actual MCP server before routing them through
the OAuth proxy — reproducing exactly what a direct connection would request,
including the RFC 8414 §3.1 / RFC 9728 §3.1 path-insertion form.

* style: prettier format

* chore: enter canary prerelease mode

* chore(typescript): version packages (canary)

* docs(changelog): add v1.34.1 (hosted OAuth discovery through the proxy)

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-06 14:00:00 +02:00
Enrico Toniato dcd97d69e2 fix(client): wire oauthProxyUrl option + stop misclassifying discover… (#1841)
* fix(client): wire oauthProxyUrl option + stop misclassifying discovered OAuth servers (#1840)

Hosted OAuth servers (e.g. gateway-fronted, custom-domain) were dropping to
`failed` with "Server does not support OAuth", hiding the Authenticate button.
Routing MCP traffic through the inspector proxy anchored OAuth discovery on the
proxy origin; a secondary discovery pass (token refresh / SSE fallback) then hit
an HTML/500 and matched isOAuthDiscoveryFailure().

- Fully wire UseMcpOptions.oauthProxyUrl through createBrowserOAuthProvider so
  OAuth traffic can be proxied for CORS while MCP stays direct (transparent
  proxy preserves RFC 8414 issuer validation). preventAutoAuth manual flow now
  always uses the scoped OAuth proxy fetch instead of the MCP gateway proxy.
- useMcp: when a prepared authorization URL already exists (OAuth discovery
  succeeded on an earlier pass) and preventAutoAuth is set, surface
  `pending_auth` on a later failure instead of "server does not support OAuth".

* chore: enter canary prerelease mode

* chore(typescript): version packages (canary)

* docs: update changelogs for v12.0.0 and v1.34.0 releases

- Added details for v12.0.0, highlighting improvements in hosted OAuth reliability and updates from `mcp-use` v1.34.0.
- Included fixes for OAuth server failures and updates to peer dependencies in the inspector changelog.
- Documented new features and fixes in the TypeScript changelog, emphasizing the introduction of `oauthProxyUrl` for enhanced OAuth proxying and reliability improvements.

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-06 12:12:52 +02:00