Commit Graph

1462 Commits

Author SHA1 Message Date
github-actions[bot] 0add848f6e chore(typescript): version packages (canary) @mcp-use/client@2.0.2-canary.1 @mcp-use/agent@2.0.2-canary.1 2026-08-06 11:38:09 +00:00
Enrico Toniato fe567854e3 Merge pull request #2166 from mcp-use/fix/inspector-openai-compat-bridge
fix(inspector): populate window.openai compatibility bridge
2026-08-06 13:37:00 +02:00
Enrico b13c323010 fix(inspector): align OpenAI bridge semantics 2026-08-06 13:34:34 +02:00
Enrico Toniato b5700606c8 Merge pull request #2171 from mcp-use/fix/canary-sync-release-check
chore(release): sync applied changeset guard to canary
2026-08-06 12:29:37 +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
github-actions[bot] 6c71f5e384 chore(typescript): version packages (canary) mcp-use@2.0.5-canary.0 @mcp-use/inspector@20.0.5-canary.0 @mcp-use/cli@4.0.2-canary.1 2026-08-06 10:17:34 +00:00
Enrico Toniato ab22c4ac66 fix(release): restore canary baseline above stable (#2168)
Merge the corrected stable baseline into canary and publish the accumulated canary changes above npm latest.
2026-08-06 12:16:31 +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 7428d5cb04 Merge remote-tracking branch 'origin/main' into fix/canary-version-baseline 2026-08-06 12:09: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 60eb3ac08a fix(inspector): populate window.openai compatibility bridge 2026-08-06 12:08:06 +02:00
Enrico 7899877cf3 fix(release): enforce monotonic stable and canary versions 2026-08-06 12:05:08 +02:00
github-actions[bot] 3199a5ad02 chore(typescript): version packages (canary) mcp-use@2.0.2-canary.1 @mcp-use/inspector@20.0.2-canary.1 2026-08-06 08:46:29 +00:00
Enrico Toniato 281b63a3db feat(inspector): enhance URL transition effects and update test file patterns (#2163)
- Added CSS transitions for URL changes in the ServerUrlChip component to improve user experience.
- Updated the vitest configuration to include both `.test.ts` and `.spec.ts` files in the test patterns.
- Refactored Layout component to utilize a reference for stable server metadata during tunnel connections.
2026-08-06 10:45:20 +02:00
Ayaan Gazali 92928c1339 docs: drop examples README entries whose examples no longer exist (#2158)
Finishes what #2132 started. Those 17 links had an exact v2 home; these 9
do not, because the examples themselves were not carried into v2. The
entries advertise examples that are not in the tree, so removing them is
more accurate than leaving a link that cannot resolve.

examples/README.md now has zero broken relative links.
2026-08-05 16:05:45 -07:00
github-actions[bot] a7ff533a1d chore(typescript): version packages (canary) mcp-use@2.0.2-canary.0 @mcp-use/inspector@20.0.2-canary.0 @mcp-use/client@2.0.2-canary.0 @mcp-use/cli@4.0.2-canary.0 @mcp-use/agent@2.0.2-canary.0 2026-08-05 23:01:13 +00:00
github-actions[bot] 47be5351ca chore: enter canary prerelease mode 2026-08-05 23:01:09 +00: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 546d349fe7 fix(server): support MCP v2 prompt and schema results (#2147)
* fix(server): support MCP v2 prompt and schema results

* chore: add MCP v2 server changeset
2026-08-05 15:59:55 -07:00
github-actions[bot] 4e5c2721b0 chore(release): exit prerelease mode and version packages (#2156)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
mcp-use@2.0.1 create-mcp-use-app@2.0.1 @mcp-use/inspector@20.0.1 @mcp-use/client@2.0.1 @mcp-use/cli@4.0.1 @mcp-use/agent@2.0.1
2026-08-05 10:28:36 -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
Ayaan Gazali eee5a3d67a docs: update the contributor monorepo layout for v2 (#2155)
The package tree in CONTRIBUTING still lists packages/mcp-use, which the
v2 merge deleted, and omits server, client and agent. A new contributor
following it looks for a directory that is not there and misses three of
the six packages.

Also corrects the build order note: the root build script runs
@mcp-use/client first, then mcp-use, then the rest.
2026-08-05 10:08:35 -07:00
Ayaan Gazali 3c5d361621 docs(skills): import server APIs from the mcp-use root (#2154)
The agent skills still teach `from "mcp-use/server"`, a subpath that was
removed before v2 went stable, so an agent following them writes code
that will not resolve.

Covers the 40 import lines whose symbols all exist on the package root.
The remaining 18 are left alone: they pull in OAuth providers, which live
under mcp-use/oauth/*, plus jwksVerifier and oauthProxy, which have no v2
equivalent at all.
2026-08-05 10:06:59 -07:00
Ayaan Gazali 4d61f840a9 docs: the v1 compatibility bridge no longer exists in v2 (#2145)
* docs: the v1 compatibility bridge no longer exists in v2

The migration guide tells people they can stage a migration by keeping
`import { MCPServer, text } from "mcp-use/server"`. That export was
removed before v2 went stable, so the import does not resolve and the
advice sends migrating users down a path that fails immediately.

Replaces the staging section with what actually happened and points at
the package root, and drops the matching allowance from the cleanup step.

* docs: drop the compatibility bridge section entirely

Per review: the bridge was never part of the official release, so
documenting its removal keeps a beta remnant alive in the migration
guide. Removes the section rather than rewriting it.

The cleanup step keeps its correction, since v1 really did import from
mcp-use/server and migrating users still need to remove those.
2026-08-05 10:11:16 +02:00
Ayaan Gazali 53af5dfc12 fix: stop context7 telling agents to import from mcp-use/server (#2146)
The rules block instructs coding agents to import server APIs from
mcp-use/server. That subpath was removed before v2 went stable, so an
agent following this rule writes an import that does not resolve.

Points at the package root instead and says the subpath is gone, since
the rule is competing with v1 examples the model has already seen.
2026-08-05 10:10:40 +02:00
Andrew Khadder 3619d26910 ci: schedule SDK agentic evals (#2130) 2026-08-04 14:02:23 -07:00
Andrew Khadder e52ebe39a3 docs: remove completed v2 migration checklists (#2140) 2026-08-04 12:56:12 -07:00
Ayaan Gazali 612a87d561 fix(ci): exclude stargazers and star-history badge URLs from link checker (#2026)
Both URL classes are false positives that the weekly Link Checker
workflow has re-reported three Sundays running (#1838, #1867, #1939):

- GitHub /stargazers pages serve 404 to non-browser clients as bot
  mitigation; they load fine in a browser. Verified the same behavior
  on unrelated repos' stargazers pages.
- api.star-history.com/svg intermittently returns 5xx; the badge it
  serves is decorative.

Both patterns are anchored so they only skip these exact cases: the
plain repo URL and any future /svg-* endpoint still get checked.
2026-08-04 12:39:47 -07:00
Andrew Khadder db46159c84 v2 docs fixes (#2139)
* Set V2 as the default documentation version

* Reorganize documentation navigation and redirects

* Remove deprecated repository content

* Rename Manufact deployment guide
2026-08-04 11:26:22 -07:00
Ayaan Gazali f3e81dbd87 docs: repoint examples README at the v2 example directories (#2132)
The v2 merge deleted libraries/typescript/packages/mcp-use, so 26 of the
86 relative links in examples/README.md are dead. This fixes the 17 that
have an exact home in the v2 tree: client examples moved to
packages/client/examples, and the server ones lost the features/ grouping
and renamed oauth/ to auth/.

The remaining 9 point at examples with no v2 counterpart at all, so
fixing them means dropping the entry or aiming it somewhere approximate.
Left untouched pending a call on those.
2026-08-04 11:05:57 -07:00
Ayaan Gazali 4ecad20acb fix: point context7 at the v2 example directories (#2133)
The v2 merge deleted libraries/typescript/packages/mcp-use, which
context7.json still indexes, so none of the TypeScript examples are
reachable through Context7. v2 splits them into two packages, so the one
folder entry becomes two, and the conformance exclusion moves with them.
2026-08-04 09:15:44 -07:00
Pietro Zullo d391b6383e docs: update OG image (MCP-2169) (#2137) 2026-08-04 16:39:27 +02:00
Ayaan Gazali 16216399a8 docs: list the recipe template's prompts separately from its tools (#2079)
The templates table and the templates page both list meal-plan and
recipe-suggestion under Tools for the Recipe Finder, but the server
registers those two as prompts, not tools. Querying the linked demo
server confirms it:

  tools/list   -> search-recipes, get-recipe
  prompts/list -> meal-plan, recipe-suggestion

The distinction matters because a model can call a tool on its own but
cannot invoke a prompt, so anyone reading the table expects behavior
they will not get. #1883 is someone hitting exactly that.
2026-08-03 12:26:44 -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 f8bca79aaf 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.
mcp-use@2.0.4 @mcp-use/inspector@20.0.4
2026-08-03 16:10:43 +02: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.
mcp-use@2.0.3 @mcp-use/inspector@20.0.3
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 Toniato 1dab3ed608 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.
2026-08-03 14:52:33 +02:00
Enrico Toniato e16f090c1f Merge pull request #2109 from mcp-use/release/exit-prerelease-1785760745
release(typescript): Exit prerelease mode and version packages
mcp-use@2.0.0 create-mcp-use-app@2.0.0 @mcp-use/inspector@20.0.0 @mcp-use/client@2.0.0 @mcp-use/cli@4.0.0 @mcp-use/agent@2.0.0
2026-08-03 14:39:57 +02:00
github-actions[bot] 352ded25d2 chore(release): exit prerelease mode and version packages 2026-08-03 12:39:11 +00:00
Enrico Toniato e97da43020 Merge pull request #2108 from mcp-use/release/v2-stable
release: promote mcp-use v2 to stable
2026-08-03 14:37:52 +02:00
Enrico 1f1db742e2 docs: normalize stable release copy 2026-08-03 14:36:36 +02:00
Enrico 11eb39a545 docs: remove prerelease guidance from stable v2 docs 2026-08-03 14:36:17 +02:00
Enrico 06ff3075b5 release: merge v2 beta into main 2026-08-03 14:35:58 +02:00
github-actions[bot] 2b5b8593df chore(typescript): version beta packages create-mcp-use-app@2.0.0-beta.16 2026-08-03 12:34:53 +00:00
Enrico Toniato 34405cacc6 fix: queue create-app release channel publication (#2107) 2026-08-03 14:32:30 +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