Skip to content

Latest commit

 

History

History
627 lines (470 loc) · 64.9 KB

File metadata and controls

627 lines (470 loc) · 64.9 KB

Changelog

3.0.0-rc.1 (2026-04-13)

Full Changelog: v2.3.3-rc.1...v3.0.0-rc.1

⚠ BREAKING CHANGES

  • mcp: remove deprecated tool schemes
  • mcp: Migration: To migrate, simply modify the command used to invoke the MCP server. Currently, the only supported tool scheme is code mode. Now, starting the server with just node /path/to/mcp/server or npx package-name will invoke code tools: changing your command to one of these is likely all you will need to do.

Features

  • api: Deprecate AI Detection, Medical Comprehend, and Context-Aware Text Splitting (91097e4)
  • api: manual updates (0012f4c)
  • api: manual updates (d9dd552)
  • mcp: add an option to disable code tool (fa96ea5)
  • mcp: add initial server instructions (d52d098)
  • mcp: add typescript check to code execution tool (7ecde82)
  • mcp: handle code mode calls in the Stainless API (a705a1b)
  • mcp: return logs on code tool errors (76551d3)

Bug Fixes

  • client: avoid memory leak with abort signals (325c9ca)
  • client: avoid removing abort listener too early (8a3f29d)
  • client: preserve URL params already embedded in path (c650393)
  • docs/contributing: correct pnpm link command (edcceda)
  • docs: fix mcp installation instructions for remote servers (5248a83)
  • fix request delays for retrying to be more respectful of high requested delays (b897aab)
  • mcp: add client instantiation options to code tool (761c3b1)
  • mcp: allow falling back for required env variables (7e8d2fc)
  • mcp: correct code tool API endpoint (6cd6857)
  • mcp: correct code tool api output types (9b088bc)
  • mcp: fix env parsing (a8328e7)
  • mcp: fix options parsing (6690d22)
  • mcp: initialize SDK lazily to avoid failing the connection on init errors (49df35f)
  • mcp: pass base url to code tool (59063c0)
  • mcp: return correct lines on typescript errors (c7e0c9b)
  • mcp: return tool execution error on api error (b62c6ba)
  • mcp: update code tool prompt (382ffb1)
  • mcp: update prompt (dddad93)

Chores

  • break long lines in snippets into multiline (58a37e3)
  • ci: escape input path in publish-npm workflow (5a5bf6b)
  • ci: skip lint on metadata-only changes (01c3e15)
  • ci: skip uploading artifacts on stainless-internal branches (51bf9fc)
  • ci: upgrade actions/github-script (c84c7b9)
  • client: do not parse responses with empty content-length (6802838)
  • client: restructure abort controller binding (3204f51)
  • fix example snippet imports (4e80d76)
  • fix typo in descriptions (2f6c30f)
  • internal/client: fix form-urlencoded requests (69d4765)
  • internal: add health check to MCP server when running in HTTP mode (cbb4461)
  • internal: allow basic filtering of methods allowed for MCP code mode (a07d4aa)
  • internal: allow setting x-stainless-api-key header on mcp server requests (ec7acc0)
  • internal: always generate MCP server dockerfiles and upgrade associated dependencies (dc3398b)
  • internal: avoid type checking errors with ts-reset (d32477d)
  • internal: bump @modelcontextprotocol/sdk, @hono/node-server, and minimatch (85c4851)
  • internal: cache fetch instruction calls in MCP server (6745b11)
  • internal: codegen related update (c959300)
  • internal: codegen related update (f120aae)
  • internal: codegen related update (757eeae)
  • internal: codegen related update (56fc7c7)
  • internal: codegen related update (e12403b)
  • internal: codegen related update (1be7281)
  • internal: codegen related update (4807744)
  • internal: codegen related update (e56fb21)
  • internal: codegen related update (c549df2)
  • internal: codegen related update (220705b)
  • internal: codegen related update (cf8a0ac)
  • internal: codegen related update (5958ab9)
  • internal: codegen related update (30d1025)
  • internal: fix MCP docker image builds in yarn projects (4a40b93)
  • internal: fix MCP Dockerfiles so they can be built without buildkit (2e39b4f)
  • internal: fix MCP Dockerfiles so they can be built without buildkit (2aa7960)
  • internal: fix MCP server import ordering (1a45a48)
  • internal: fix MCP server TS errors that occur with required client options (64520aa)
  • internal: fix pagination internals not accepting option promises (302c9ab)
  • internal: improve layout of generated MCP server files (da6f525)
  • internal: improve local docs search for MCP servers (bf2441f)
  • internal: improve local docs search for MCP servers (d1710b0)
  • internal: make generated MCP servers compatible with Cloudflare worker environments (d8af505)
  • internal: make MCP code execution location configurable via a flag (8b197f0)
  • internal: move stringifyQuery implementation to internal function (08e2c09)
  • internal: refactor flag parsing for MCP servers and add debug flag (5291a9f)
  • internal: show error causes in MCP servers when running in local mode (6faf2cc)
  • internal: support custom-instructions-path flag in MCP servers (8d2f3d0)
  • internal: support local docs search in MCP servers (f479ec6)
  • internal: support oauth authorization code flow for MCP servers (96ba350)
  • internal: support type annotations when running MCP in local execution mode (7282ea3)
  • internal: support x-stainless-mcp-client-envs header in MCP servers (29ec150)
  • internal: support x-stainless-mcp-client-permissions headers in MCP servers (5cacf5f)
  • internal: switch MCP servers to use pino for logging (a2693a7)
  • internal: tweak CI branches (700bb90)
  • internal: update actions/checkout version (ac62b27)
  • internal: update dependencies to address dependabot vulnerabilities (96b9468)
  • internal: update gitignore (a8a8b44)
  • internal: update lock file (8872b80)
  • internal: update multipart form array serialization (5be2c2b)
  • internal: upgrade @modelcontextprotocol/sdk and hono (e62fb6c)
  • internal: upgrade babel, qs, js-yaml (5717a02)
  • internal: upgrade eslint (4ae73b1)
  • internal: use link instead of file in MCP server package.json files (245c089)
  • internal: use x-stainless-mcp-client-envs header for MCP remote code tool calls (368815e)
  • mcp-server: add support for session id, forward client info (9fa5781)
  • mcp-server: improve instructions (50343c5)
  • mcp-server: increase local docs search result count from 5 to 10 (f87e6b9)
  • mcp-server: log client info (a946922)
  • mcp-server: return access instructions for 404 without API key (30ceb2d)
  • mcp: add intent param to execute tool (c988c65)
  • mcp: correctly update version in sync with sdk (b93d491)
  • mcp: forward STAINLESS_API_KEY to docs search endpoint (dde1184)
  • mcp: pass intent param to execute handler (58fa431)
  • mcp: remove deprecated tool schemes (e376d65)
  • mcp: up tsconfig lib version to es2022 (cb421df)
  • mcp: update lockfile (8d1106e)
  • mcp: upgrade dependencies (5766d6c)
  • test: do not count install time for mock server timeout (a345373)
  • tests: bump steady to v0.19.4 (dad22a4)
  • tests: bump steady to v0.19.5 (b51c69d)
  • tests: bump steady to v0.19.6 (241c42d)
  • tests: bump steady to v0.19.7 (518baf9)
  • tests: bump steady to v0.20.1 (32f3fb9)
  • tests: bump steady to v0.20.2 (b54c180)
  • update mock server docs (b21d0a5)
  • update placeholder string (95ae007)
  • use latest @modelcontextprotocol/sdk (08d8625)

Documentation

  • api: updates to API spec (535ef81)
  • prominently feature MCP server setup in root SDK readmes (723e616)

Refactors

  • tests: switch from prism to steady (5d62789)

2.3.3-rc.1 (2025-12-01)

Full Changelog: v2.3.2...v2.3.3-rc.1

Features

  • api: Improve MCP tool descriptions (95aa714)
  • mcp: add detail field to docs search tool (0c975f7)
  • mcp: enable optional code execution tool on http mcp servers (cad37b7)

Bug Fixes

  • client: incorrect offset pagination check (b7847ab)
  • Fix linting errors. (#238) (12f49e6)
  • mcpb: pin @anthropic-ai/mcpb version (43acbce)
  • mcp: return tool execution error on jq failure (f833b8f)
  • mcp: use raw responses for binary content (54da4f9)

Chores

  • client: fix logger property type (20209b8)
  • extract some types in mcp docs (de1e150)
  • internal: codegen related update (35b1a8f)
  • internal: codegen related update (5e30270)
  • internal: grammar fix (it's -> its) (7dfbe17)
  • internal: remove .eslintcache (f75e301)
  • internal: use npm pack for build uploads (38c37a1)
  • jsdoc: fix @link annotations to refer only to parts of the package‘s public interface (d227de6)
  • mcp code tool explicit error message when missing a run function (16c1a44)
  • mcp: add friendlier MCP code tool errors on incorrect method invocations (e6a4a0c)
  • mcp: add line numbers to code tool errors (00af445)
  • mcp: clarify http auth error (bd123e0)
  • mcp: upgrade jq-web (9a0ac58)
  • use structured error when code execution tool errors (e140047)

Documentation

  • api: updates to API spec (69b36c9)
  • mcp: add a README button for one-click add to Cursor (062b7d7)
  • mcp: add a README link to add server to VS Code or Claude Code (bb1991a)

2.3.2 (2025-10-03)

Full Changelog: v2.3.2-rc.2...v2.3.2

2.3.2-rc.2 (2025-09-30)

Full Changelog: v2.3.2-rc.1...v2.3.2-rc.2

Features

Performance Improvements

Chores

  • configure new SDK language (5776514)
  • do not install brew dependencies in ./scripts/bootstrap by default (b35ef28)
  • internal: codegen related update (8a14d99)
  • internal: fix incremental formatting in some cases (fb5aa47)
  • internal: ignore .eslintcache (670ff6e)
  • internal: remove deprecated compilerOptions.baseUrl from tsconfig.json (8c0e44e)

Documentation

  • api: updates to API spec (de1f80a)

2.3.2-rc.1 (2025-09-11)

Full Changelog: v2.3.1...v2.3.2-rc.1

Features

Bug Fixes

  • coerce nullable values to undefined (06f7969)
  • mcp: fix uploading dxt release assets (342af55)

Chores

  • add package to package.json (e13a086)
  • ci build action (505befa)
  • client: qualify global Blob (a4d8c75)
  • configure new SDK language (b42c277)
  • internal: update global Error reference (ffe142e)
  • update CI script (0e85a1f)

Documentation

  • api: updates to API spec (c1c607a)
  • api: updates to API spec (1be14df)

2.3.1 (2025-08-20)

Full Changelog: v2.3.0...v2.3.1

Features

  • mcp: add code execution tool (60d2199)

Chores

  • deps: update dependency @types/node to v20.17.58 (1ca2721)
  • internal: formatting change (9608032)

Documentation

  • api: updates to API spec (e03824e)

2.3.0 (2025-08-14)

Full Changelog: v2.3.0-rc.1...v2.3.0

2.3.0-rc.1 (2025-08-12)

Full Changelog: v2.2.1...v2.3.0-rc.1

Features

  • api: add web KG and web search (aec5c23)

Chores

  • internal: move publish config (549fdb5)
  • internal: remove redundant imports config (629582b)
  • internal: update comment in script (0cbef20)
  • update @stainless-api/prism-cli to v5.15.0 (4eb486f)

Documentation

  • api: updates to API spec (1bcdf1c)
  • api: updates to API spec (b7625d0)
  • api: updates to API spec (bd08c45)

2.2.1 (2025-07-16)

Full Changelog: v2.2.0...v2.2.1

Features

  • client: add support for endpoint-specific base URLs (bdfd113)
  • client: add withOptions helper (73cc2cc)

Bug Fixes

  • avoid console usage (0939a4a)
  • ci: release-doctor — report correct token name (d0f0be6)
  • client: always overwrite when merging headers (0dc9410)
  • client: explicitly copy fetch in withOptions (ea81361)
  • client: get fetchOptions type more reliably (178185b)
  • compat with more runtimes (a43506b)
  • package.json format (2208eda)
  • publish script — handle NPM errors correctly (39c4b77)

Chores

  • add docs to RequestOptions type (3f7237f)
  • adjust eslint.config.mjs ignore pattern (01dff7e)
  • avoid type error in certain environments (5dd5df5)
  • ci: enable for pull requests (1b3eb2c)
  • ci: only run for pushes and fork pull requests (df2a7dd)
  • client: drop support for EOL node versions (78f8359)
  • client: improve path param validation (f457172)
  • client: refactor imports (353a5a6)
  • deps: bump eslint-plugin-prettier (9a1f18d)
  • docs: grammar improvements (52b1f34)
  • docs: use top-level-await in example snippets (7f5ac8c)
  • improve publish-npm script --latest tag logic (7b778a5)
  • internal: add pure annotations, make base APIResource abstract (ee0adb9)
  • internal: codegen related update (debc99f)
  • internal: fix format script (cab6ad2)
  • internal: fix readablestream types in node 20 (c15bde3)
  • internal: share typescript helpers (238294b)
  • make some internal functions async (0a2239c)
  • package: remove engines (85661a0)
  • readme: update badges (9c1423c)
  • readme: use better example snippet for undocumented params (617d2e6)
  • ts: reorder package.json imports (80235f0)

Documentation

Refactors

  • types: replace Record with mapped types (6b89bde)

2.2.0 (2025-04-30)

Full Changelog: v2.2.0-rc.1...v2.2.0

Chores

  • internal: refactor utils (333de4b)

Documentation

2.2.0-rc.1 (2025-04-25)

Full Changelog: v2.1.0...v2.2.0-rc.1

Features

  • api: add ai detect tool endpoint (d41c51e)
  • api: add translation endpoint (2bd71ae)
  • client: add parse method (#226) (da86456)

Bug Fixes

  • client: send all configured auth headers (#222) (22d5e6f)
  • internal: fix file uploads in node 18 jest (623fdd9)

Chores

  • ci: add timeout thresholds for CI jobs (93abeda)
  • ci: only use depot for staging repos (788c1d6)
  • ci: run on more branches and use depot runners (8a5e6e8)
  • client: minor internal fixes (a1c6989)
  • internal: improve node 18 shims (#225) (7012687)
  • internal: reduce CI branch coverage (afaeb00)
  • internal: upload builds and expand CI branch coverage (#224) (76336c3)
  • perf: faster base64 decoding (4e9eb5a)

Documentation

2.1.0 (2025-04-04)

Full Changelog: v2.1.0-rc.1...v2.1.0

Features

Bug Fixes

  • api: improve type resolution when importing as a package (#214) (0169d65)
  • client: send X-Stainless-Timeout in seconds (#209) (6f6b153)

Chores

2.1.0-rc.1 (2025-04-02)

Full Changelog: v2.0.0...v2.1.0-rc.1

Features

Bug Fixes

  • client: fix TypeError with undefined File (#181) (50b448c)
  • exports: ensure resource imports don't require /index (#192) (6a9e294)
  • internal: add mts file + crypto shim types (#193) (881ff5e)
  • internal: clean up undefined File test (#182) (490da8e)
  • tests: manually reset node:buffer File (#183) (4fcf113)

Chores

  • client: more accurate streaming errors (#205) (373e288)
  • client: only accept standard types for file uploads (#178) (7dec96f)
  • docs: fix typo (#197) (3fd6d5e)
  • docs: improve docs for withResponse/asResponse (#185) (22f5e8d)
  • docs: migration guide re-ordering (#198) (5f39d5d)
  • exports: cleaner resource index imports (#195) (c568461)
  • exports: stop using path fallbacks (#196) (3cc4c12)
  • internal: codegen related update (#206) (afbf140)
  • internal: constrain synckit dev dependency (#180) (9f99a49)
  • internal: Fix README samples. (#200) (68e5023)
  • internal: fix tests failing on node v18 (#179) (c8777ed)
  • internal: minor client file refactoring (#194) (80629b0)
  • internal: remove extra empty newlines (#191) (4f3f316)
  • types: improved go to definition on fetchOptions (#184) (f4bf1f0)

Documentation

2.0.0 (2025-02-26)

Full Changelog: v2.0.0-rc.1...v2.0.0

Chores

2.0.0-rc.1 (2025-02-25)

Full Changelog: v0.0.1-alpha.0...v2.0.0-rc.1

Features

Bug Fixes

  • add content type to file uploads param (cb5531a)
  • api/files: remove unintentional Content-Length header param (82e9f9b)
  • change file content type to Core.Uploadable (64c3ac9)
  • compat: remove ReadableStream polyfill redundant since node v16 (#33) (2dac835)
  • fix tool_choice schema (d3ade29)
  • internal: fix tests for file uploads (534ec64)
  • lint (18cf3c1)
  • lint: format (032bc59)
  • tests: stop using node:stream (#170) (9792c5e)
  • tests: use new method (e822e8d)
  • types: remove leftover polyfill usage (#60) (043939d)
  • uploads: avoid making redundant memory copies (#55) (f864fb3)

Chores

Documentation