Commit Graph

1165 Commits

Author SHA1 Message Date
github-actions[bot] a7ff533a1d chore(typescript): version packages (canary) 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>
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
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.
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.
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
github-actions[bot] 352ded25d2 chore(release): exit prerelease mode and version packages 2026-08-03 12:39:11 +00: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 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
github-actions[bot] 9c7475e619 chore(typescript): version beta packages 2026-08-03 12:20:02 +00:00
Enrico Toniato a26bac6d21 fix: update MCP Apps skill for v2 (#2105) 2026-08-03 14:17:40 +02:00
github-actions[bot] b8520984c6 chore(typescript): version beta packages 2026-08-03 11:52:00 +00:00
Enrico Toniato f06deff02c fix v2 beta release blockers (#2104) 2026-08-03 13:49:48 +02:00
github-actions[bot] 814686ccad chore(typescript): version beta packages 2026-08-03 10:50:57 +00:00
Enrico Toniato c6043e4d05 fix: use hosted WebSocket tunnel relay (#2057)
* fix: use hosted WebSocket tunnel relay

* fix: reattach tunnels across relay deploys

* fix: negotiate tunnel keepalive support

* refactor: remove spinner state and improve loading indicators in ViewRenderer and MCP Apps components
2026-08-03 12:48:44 +02:00
github-actions[bot] 91e1b01965 chore(typescript): version beta packages 2026-08-01 00:28:38 +00:00
Andrew Khadder a6ec149b2f fix(client): escape server and tool names in code-mode shim generation (#2076)
Names containing quotes or other special characters previously produced
invalid JavaScript in the generated sandbox shim.

Claude-Session: https://claude.ai/code/session_01RynQDRJ93ZRCaPm2pHAMW2
2026-07-31 17:26:21 -07:00
Ayaan Gazali 57c9c0d91d fix(inspector): honor PORT env var in Docker image (#1869)
* fix(inspector): honor PORT env var in Docker image

The Dockerfile comment promised PORT controlled the listen port, but the
exec-form CMD pinned --port 8080, so PaaS platforms that inject PORT
(Cloud Run, Railway, Heroku, Render) routed traffic to a port nothing
listened on. Switch to shell-form CMD with ${PORT:-8080} and exec so
the node process stays PID 1 for signal handling.

Closes #1868

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

* fix(inspector): quote PORT expansion in Docker CMD

An unquoted expansion word-splits a PORT value containing whitespace
into extra CLI arguments (e.g. PORT='8080 --help' injects --help).
Quoted, the value reaches --port as a single argument.

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

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-31 15:40:38 -07:00
Andrew Khadder 828ebba84e fix(inspector): remove local chat URL from dev script (#2068) 2026-07-31 09:45:43 -07:00
github-actions[bot] bc3f92cb5f chore(typescript): version beta packages 2026-07-30 19:25:46 +00:00
Andrew Khadder ccbbc081a3 chore(typescript): add public base URL changeset (#2063) 2026-07-30 12:23:41 -07:00
Andrew Khadder 6cf77ce3ce feat(react): expose public base URL (#2061) 2026-07-30 11:49:29 -07:00
Andrew Khadder 9a98b22499 Update server examples (#2059) 2026-07-30 10:13:33 -07:00
Andrew Khadder 08827565d0 feat(excalidraw): add in-place drawing edits (#2042) 2026-07-28 17:06:26 -07:00
Andrew Khadder e797959da5 feat: add property search MCP App example (#2041) 2026-07-28 17:06:14 -07:00
Andrew Khadder 9fbfd4107d test(server): exercise direct v2 elicitation flows (#2051) 2026-07-28 17:02:02 -07:00
Andrew Khadder af7bc2c977 Merge pull request #2046 from mcp-use/codex/remove-ctx-elicit
Remove ctx.elicit compatibility API
2026-07-28 16:56:06 -07:00
github-actions[bot] 4013fc3002 chore(typescript): version beta packages 2026-07-28 23:47:59 +00:00
Enrico Toniato 67b4a27d9d remove v1 compatibility layer (#2049) 2026-07-28 16:45:55 -07:00
Andrew Khadder daaa7cb293 Update beta skill guidance and installer source (#2044)
* Update beta skill guidance and installer source

* Revise beta skill overview wording

* Fix mcp-use capitalization in skill overviews

* Align MCP Apps wording across skills
2026-07-28 15:18:37 -07:00
github-actions[bot] 3e548f9cf4 chore(typescript): version beta packages 2026-07-28 22:12:55 +00:00
Enrico Toniato f3ec4c5adb chore(typescript): update MCP SDK to stable 2.0.0 (#2045) 2026-07-28 15:10:23 -07:00
github-actions[bot] a7338b21de chore(typescript): version beta packages 2026-07-28 21:31:49 +00:00
Andrew Khadder f3187f9b79 Resolve beta scaffold SDK version at runtime (#2040) 2026-07-28 14:29:30 -07:00
Andrew Khadder 5fd16ce909 fix TypeScript Knip docs discovery (#2043) 2026-07-28 14:25:17 -07:00
github-actions[bot] 5a938716f3 chore(typescript): version beta packages 2026-07-28 18:55:59 +00: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
github-actions[bot] d01dd9489a chore(typescript): version beta packages 2026-07-28 01:15:54 +00:00
Andrew Khadder c4ac07a003 fix(inspector): add fullscreen chat controls (#2031)
* fix inspector fullscreen chat controls

* refine fullscreen chat composer

* refine fullscreen composer layout

* polish fullscreen composer surface

* refine fullscreen composer scope

* chore: add fullscreen chat changeset
2026-07-27 18:13:43 -07:00
github-actions[bot] e53f826455 chore(typescript): version beta packages 2026-07-28 00:41:41 +00:00
Andrew Khadder 399fc401fd Remove imperative model context API (#2023) 2026-07-27 17:39:37 -07:00
github-actions[bot] ec714eda0c chore(typescript): version beta packages 2026-07-26 19:58:20 +00:00
Enrico Toniato ef8187a67d fix(typescript): support runtime-first view deployments (#2028) 2026-07-26 12:56:07 -07:00
Andrew Khadder a94d08aa00 fix typescript knip checks (#2025) 2026-07-25 16:25:39 -07:00