Commit Graph

176 Commits

Author SHA1 Message Date
Enrico Toniato 1f7df2a82c fix release blockers before stable promotion (#2206)
* fix release blockers before stable promotion

* fix conformance summary expected outcomes

* harden release and conformance validation
2026-08-09 14:33:14 +02:00
Enrico Toniato 173b2d54a2 fix: make canary conformance release evidence explicit (#2205) 2026-08-09 12:58:06 +02:00
Enrico Toniato 395d924102 fix(release): compare canary plan against origin main (#2199) 2026-08-08 10:10:20 +02:00
Enrico Toniato f2926c28f1 fix(release): repair canary prerelease state (#2198) 2026-08-08 10:05:36 +02:00
Enrico 668a312100 add standalone WebSocket tunnel package 2026-08-06 15:22:59 +02:00
Enrico 2a5e196f37 Merge origin/canary into fix/cli-source-ownership 2026-08-06 14:48:02 +02:00
Enrico daae62bc8f Merge remote-tracking branch 'origin/main' into fix/canary-sync-release-check 2026-08-06 12:28:46 +02:00
Enrico Toniato bbee135dc8 fix(ci): ignore applied canary changesets (#2170) 2026-08-06 12:28:15 +02:00
Enrico 458861e887 Merge remote-tracking branch 'origin/main' into fix/canary-version-baseline 2026-08-06 12:12:45 +02:00
Enrico Toniato 87b5d5fc13 fix(ci): give path filtering full git history (#2169)
Avoid concurrent shallow-fetch updates in dorny/paths-filter on branch push runs.
2026-08-06 12:12:31 +02:00
Enrico Toniato fe0f1aab51 fix(release): enforce monotonic stable and canary versions (#2167)
Restore stable source versions to npm truth and harden the stable/canary release workflow against version regressions and partial publication failures.
2026-08-06 12:09:18 +02:00
Enrico b6f103e155 fix(release): restore canary baseline above stable 2026-08-06 12:08:31 +02:00
Enrico 7899877cf3 fix(release): enforce monotonic stable and canary versions 2026-08-06 12:05:08 +02:00
Enrico ad06e50e87 fix(typescript): enforce CLI package boundaries 2026-08-06 11:52:10 +02:00
Andrew Khadder 52f535ca53 test(conformance): add MCP v2 TypeScript coverage (#2148)
* test(conformance): add MCP v2 TypeScript coverage

* test(conformance): cover legacy and modern TypeScript

* fix(client): allow anonymous modern servers

* fix(server): accept anonymous client connections
2026-08-05 15:59:55 -07:00
Andrew Khadder 33e30cb8e3 Canary (#2117)
* fix(cli): report success from mcp-use typecheck (#2099)

`tsc --noEmit` prints nothing on a clean project, so `mcp-use typecheck`
exited 0 with no output at all, which is indistinguishable from the
command hanging or silently failing.

Print `[mcp-use] no type errors (<duration>ms)` on exit code 0, matching
the existing `[mcp-use] built ... (<duration>ms)` line from `build`.
Failing runs are untouched and still show only the compiler's own
diagnostics.

Closes #2083

* chore: enter canary prerelease mode

* chore(typescript): version packages (canary)

* chore: sync main into canary (#2119)

* chore(release): exit prerelease mode and publish npm README hotfix

Publishes mcp-use 2.0.1 and @mcp-use/inspector 20.0.1 with the repository README included in the mcp-use package tarball.

* chore(release): exit prerelease mode and publish npm README metadata hotfix

Publishes mcp-use 2.0.2 and @mcp-use/inspector 20.0.2 after preparing README metadata before npm publication.

* chore(release): exit prerelease mode and commit npm package README

Publishes mcp-use 2.0.3 and @mcp-use/inspector 20.0.3 with a committed package-root README.

* chore(release): exit prerelease mode and fix npm README assets

Fix npm README asset and repository links, publish mcp-use 2.0.4, and keep Inspector aligned at 20.0.4.

* Update libraries/typescript/packages/server/README.md

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Signed-off-by: Andrew Khadder <54488379+khandrew1@users.noreply.github.com>

* docs: sync migration guide link

---------

Signed-off-by: Andrew Khadder <54488379+khandrew1@users.noreply.github.com>
Co-authored-by: Enrico Toniato <2827496+tonxxd@users.noreply.github.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>

* fix(cli): say whether `start` mounted the inspector (#2100)

* fix(cli): say whether start mounted the inspector

`mcp-use dev` advertises the inspector in its banner, but `mcp-use start`
says nothing about it and `${basePath}/inspector` 404s unless
`--with-inspector` was passed. With no hint, that reads as a broken
production build rather than an opt-in.

Plain `start` now prints that the inspector is not mounted and how to
mount it, and `--with-inspector` prints the URL it was mounted at, which
was previously silent too.

Closes #2084

* fix(cli): drop the inspector-not-mounted line from start

Per review: most people running start do not want the inspector, so
announcing its absence is noise. Plain start is now silent about the
inspector again, and only the --with-inspector path prints its URL.

Updates the spec, the changeset, and swaps the test to pin the silence
instead of the message.

* chore(typescript): version packages (canary)

* chore: upgrade changesets cli to 2.31.1 (#2121)

* fix(ci): pin pnpm in the docs workflow so the job can start (#2116)

The docs job fails in "Set up pnpm" before it generates anything:

  Error: No pnpm version is specified.

pnpm/action-setup@v4 was used with no version:, so it falls back to
reading packageManager from package_json_file, which defaults to the
repository root. This repo has no root package.json, so the step could
never succeed and the check was red on every branch including main.

Pins 11.13.1, matching all nine action-setup uses in ci.yml and the
packageManager field in libraries/typescript/package.json.

* fix(cli): support package-manager dev arg forwarding (#2124)

* fix(cli): support package-manager dev arg forwarding (MCP-2549)

* chore: add MCP-2549 changeset

* fix(cli): normalize forwarded arguments across commands

* chore(typescript): version packages (canary)

* docs: fix TypeScript README links into the removed mcp-use package (#2114)

The v2 merge deleted libraries/typescript/packages/mcp-use, but the
TypeScript README still pointed at it in four places: the three logo
sources at the top of the page, and the documentation link at the bottom.

The logo now uses the absolute raw.githubusercontent.com URL that every
sibling package README already uses, and the docs link points at
packages/server, which is where the mcp-use package lives in v2 and what
the create-mcp-use-app and inspector READMEs already link to.

* fix(create-mcp-use-app): drop stale main field and give templates distinct descriptions (#2085)

* fix(create-mcp-use-app): drop stale main field and give templates distinct descriptions

Two small things in the scaffolded package.json, both visible as soon as
you generate a project.

main pointed at dist/index.js. v2 builds emit .mcp-use/build instead, so
that path never exists and main never resolves. These templates are apps
you run with mcp-use start, not packages anyone imports, and .mcp-use is
gitignored build output, so the field is dropped rather than repointed.

All three templates also carried the description 'an mcp-use server'.
--list-templates reads that field, so the three were indistinguishable
from the CLI, and every generated project inherited the same string.
Each now says what it actually gives you.

Closes #2080
Closes #2081

* chore: add changeset for the template package.json fixes

* fix(create-mcp-use-app): stop discarding the template description

updatePackageJson overwrote description with a generic
"<name>: an mcp-use server" on every scaffold, so the per-template
descriptions only ever reached --list-templates and never the generated
project. It now fills that in only when the template has no description
of its own, which keeps the previous behaviour for templates without one.

* chore(typescript): version packages (canary)

* fix(client): stop leaking parent env to stdio servers (#2125)

Port the security fix from #1949 to the v2 client package and verify the child process receives only safe defaults plus explicitly configured variables.

Co-authored-by: VihaanAgarwal <72850668+VihaanAgarwal@users.noreply.github.com>

* chore(typescript): version packages (canary)

* fix(client): bound conformance auth scenarios (#2126)

* fix(client): make stdio errlog actually receive the child's stderr (#2086)

* fix(client): make stdio errlog actually receive the child's stderr

StdioConnectionManager takes an errlog stream and documents that the
child server's stderr is piped to it, but the transport was created
without stderr: "pipe". The SDK defaults to "inherit", which leaves
transport.stderr null, so the forwarding block guarding on it never
ran and the child's stderr always went to the parent instead.

Spawn with stderr: "pipe" by default, spread so an explicit mode in
server params still wins. Tests spawn real child processes: one checks
a custom errlog receives the output, one checks stderr: "ignore" still
opts out.

* chore: drop stray version.ts that does not belong on beta

Left over from a main checkout; packages/mcp-use does not exist on this
branch.

* fix(client): expose stderr mode on the public stdio APIs

Per review, the compatibility escape hatch only worked for callers that
built StdioConnectionManager directly. StdioConnector did not accept or
forward stderr and StdioServerConfig did not expose it, so users of the
normal public APIs could not opt back into inherited stderr.

- Add a StdioStderrMode of "pipe" | "inherit" | "ignore", default "pipe".
- Accept it on StdioConnector and StdioServerConfig, forward it into
  StdioServerParameters, and thread it through the config path.
- Apply the default after the spread so an explicit stderr: undefined no
  longer defeats it.
- Only forward transport.stderr when the mode leaves a readable stream.
- Pipe with { end: false } and unpipe on close, since errlog is
  caller-owned and may be reused across reconnects.
- Handle stream errors instead of letting a destroyed errlog surface as
  an unhandled 'error' event.

Tests now start the transport before asserting, so the non-pipe cases are
exercised against a real child instead of passing by construction.

* fix(client): handle errlog write errors

---------

Co-authored-by: Andrew Khadder <andrew@manufact.com>

* chore(typescript): version packages (canary)

* fix(inspector): block loopback proxy targets by default (#2134)

mountInspector defaulted oauthProxyAllowLoopback to true, and the standalone
CLI hardcoded it — including in the published Docker image, which runs the
CLI with NODE_ENV=production on a public port. A publicly reachable inspector
could therefore proxy requests to the host's loopback services (SSRF), while
RFC1918/metadata targets were already blocked.

- mountInspector: default allowLoopback to false; local dev tooling opts in
- CLI: allow loopback unless NODE_ENV=production; INSPECTOR_ALLOW_LOOPBACK
  overrides either way
- Express-adapter test opts in explicitly (it proxies to its own 127.0.0.1
  echo server); new regression test covers the default and the opt-in

* chore(typescript): version packages (canary)

* docs: add v2 changelog updates

* chore: remove retired beta release flow (#2141)

* fix: keep prerelease versioning visible to Knip (#2142)

* fix: patch dependency vulnerabilities (#2151)

* fix: patch vulnerable dependencies

* fix: use mcp-use in client demo servers

* chore(typescript): version packages (canary)

---------

Signed-off-by: Andrew Khadder <54488379+khandrew1@users.noreply.github.com>
Co-authored-by: Ayaan Gazali <ayaangazali.work@gmail.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: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: VihaanAgarwal <72850668+VihaanAgarwal@users.noreply.github.com>
2026-08-05 10:26:37 -07:00
Andrew Khadder 3619d26910 ci: schedule SDK agentic evals (#2130) 2026-08-04 14:02:23 -07:00
Ayaan Gazali 64e6772618 ci: remove the dead MCP SDK fork update workflow (#2115)
update-mcp-sdk-fork.yml maintained the @mcp-use/modelcontextprotocol-sdk
version in libraries/typescript/packages/mcp-use. The v2 merge deleted
that package, and v2 depends on the upstream @modelcontextprotocol
packages instead, so the fork is referenced nowhere in the tree or the
lockfile.

Every path the workflow touches is gone: the package.json it reads, and
the tests/deno/deno.json it also rewrites. Its first run against the v2
tree would fail on the version check.
2026-08-03 12:18:55 -07:00
Enrico Toniato dcd8f63c80 chore(release): exit prerelease mode and commit npm package README
Publishes mcp-use 2.0.3 and @mcp-use/inspector 20.0.3 with a committed package-root README.
2026-08-03 16:02:39 +02:00
Enrico Toniato d8c62f2bbc chore(release): exit prerelease mode and publish npm README metadata hotfix
Publishes mcp-use 2.0.2 and @mcp-use/inspector 20.0.2 after preparing README metadata before npm publication.
2026-08-03 14:57:01 +02:00
Enrico 06ff3075b5 release: merge v2 beta into main 2026-08-03 14:35:58 +02:00
Enrico Toniato e1c8aa4685 fix: prepare v2 stable release channels and launch surfaces (#2106)
* fix: prepare v2 stable release channels

* fix: normalize peers only when exiting prerelease
2026-08-03 14:29:26 +02:00
Ayaan Gazali 6e3b9001e6 fix(ci): pin ruff in python-lint so releases cannot change the check (#2069)
The python-lint job installs ruff unpinned, so it always resolves to the
latest release. ruff 0.16.0 started formatting fenced code blocks inside
Markdown, which brought libraries/python/README.md into the scope of
`ruff format --check .` for the first time. Its quickstart examples were
never formatted that way, so the job now fails on every pull request that
touches libraries/python, regardless of what the change is.

Pin to 0.15.22, the newest release that passes both steps on current main.
This restores a reproducible check and leaves the Markdown question as a
deliberate choice rather than something a tool release decides.

Refs #1856
2026-07-31 12:09:09 -07:00
Andrew Khadder 8d856b6034 docs(typescript): add TypeDoc generation and source API docs (#2039)
* docs(typescript): document public source APIs

* chore(typescript): enforce TSDoc syntax

* docs(typescript): add TypeDoc generation
2026-07-28 11:53:40 -07:00
Enrico Toniato feda006831 fix: publish stable inspector image to Docker Hub (#2016) 2026-07-24 18:17:52 -07:00
Enrico 2768f5bfec Merge main into beta 2026-07-23 15:20:16 -07:00
Enrico ac3d1eb3bb fix(typescript): resolve CodeQL security alerts 2026-07-23 12:24:46 -07:00
Enrico 8cc6367f0c ci: skip CI pushes on beta 2026-07-23 12:24:16 -07:00
Enrico Toniato 066f449cd7 fix(release): rebuild prereleases after versioning (#1989) 2026-07-23 11:38:14 -07:00
Enrico Toniato 7d2adffa10 fix(agent): native OpenAI e2e + reasoning/mcpServers regressions (#1981)
Fix MCPAgent not spawning MCPClient for explicit llm + mcpServers URL config, omit reasoning.effort unless opted in, and add CI e2e against remote analytics-demo.
2026-07-22 19:41:16 -07:00
Andrew Khadder 2d1450fdc1 Fix Windows CLI artifact verification (#1979) 2026-07-22 19:05:48 -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
Andrew Khadder 6827ab20a1 Resolve Inspector beta assets to immutable CDN releases (#1952)
* Resolve Inspector CDN releases before loading assets

* fix(ci): pin pnpm for server examples

* fix(ci): relink server example CLI

* fix(examples): support clean Next builds in CI

* fix(examples): expose built workspace CLI

* fix(inspector): address CDN loader review

* fix(inspector): support legacy abort signals
2026-07-20 15:45:49 -07:00
Enrico Toniato f3fc8dab1b fix(client): surface manual OAuth failures (#1953)
* fix(client): surface manual OAuth failures

* ci: publish TypeScript previews for beta PRs

* ci: pin pnpm for server example checks

* revert: keep server example CI out of OAuth fix
2026-07-20 15:08:39 -07:00
Enrico Toniato 17d15d8bde fix(ci): use Node 24 for TypeScript releases (#1946) 2026-07-20 13:00:03 -07:00
Enrico 78266950f9 feat(server): add Next.js drop-in adapter and example suite 2026-07-20 10:50:19 -07:00
Enrico 856d90626e fix(ci): retry beta npm verify after publish
npm registry replication can lag behind trusted publishing; retry up to 2 minutes before failing the release job.
2026-07-18 10:58:55 -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
Enrico Toniato 50df3a1611 Create mcp use app version (#1924)
* refactor(create-mcp-use-app): replace --canary flag with --sdk-version for version pinning

- Updated GitHub Actions workflows to use --sdk-version instead of --canary for creating apps.
- Modified CLI options and internal logic to support --sdk-version for specifying npm dist-tags or semver.
- Updated documentation and tests to reflect the change from --canary to --sdk-version.

* chore(ci, workflows): downgrade Node.js version to 20.19.0 across all workflows

- Updated GitHub Actions workflows to use Node.js version 20.19.0 instead of 24.15.0.
- Adjusted package.json files to reflect the new Node.js engine requirements.
- Updated pnpm-lock.yaml and TypeScript dependencies to ensure compatibility with the new Node.js version.
2026-07-18 10:30:27 -07:00
Andrew Khadder 3bffd70dfe fix beta preview packaging and docs (#1913) 2026-07-17 14:08:43 -07:00
Andrew Khadder 5c09447160 fix(ci): repair beta workflow checks (#1909) 2026-07-17 12:25:20 -07:00
Andrew Khadder 5f25d3c8ad fix conformance workflow for beta layout (#1908) 2026-07-17 12:24:12 -07:00
Andrew Khadder 96c649db95 fix(ci): retarget server typecheck workflow (#1907) 2026-07-17 12:23:44 -07:00
Andrew Khadder b7b5ec0dc6 ci(typescript): align beta checks with Node 24 (#1895) 2026-07-16 17:22:07 -07:00
Enrico 25b1e678fa ci(typescript): publish beta tarballs with explicit tag 2026-07-16 13:36:30 -07:00
Enrico 16cf9228e0 ci(typescript): prepare Changesets base branch on beta 2026-07-16 13:29:17 -07:00
Enrico 289cf2cbcc Merge branch 'v2-server-scaffold' into beta 2026-07-16 13:24:25 -07:00
Enrico 791f745cc4 ci(typescript): publish beta exclusively with OIDC 2026-07-16 13:14:44 -07:00
Enrico 0b8f68ba04 ci(typescript): preserve non-beta npm tags 2026-07-16 13:09:36 -07:00