Skip to content

v4.2.0

Choose a tag to compare

@stainless-app stainless-app released this 19 Feb 22:42

4.2.0 (2026-02-19)

Full Changelog: v4.1.0...v4.2.0

Features

Bug Fixes

  • client: avoid memory leak with abort signals (664de60)
  • client: avoid removing abort listener too early (b410567)
  • docs: fix mcp installation instructions for remote servers (53203d1)
  • mcp: allow falling back for required env variables (9a728bc)
  • mcp: initialize SDK lazily to avoid failing the connection on init errors (6f0ca2b)

Chores

  • ci: upgrade actions/github-script (6bf0249)
  • client: do not parse responses with empty content-length (78ef863)
  • client: restructure abort controller binding (258df0c)
  • internal/client: fix form-urlencoded requests (bd91d1b)
  • internal: add health check to MCP server when running in HTTP mode (d89a2fe)
  • internal: allow basic filtering of methods allowed for MCP code mode (89d1a8d)
  • internal: allow setting x-stainless-api-key header on mcp server requests (2c37c28)
  • internal: always generate MCP server dockerfiles and upgrade associated dependencies (dcf21a0)
  • internal: avoid type checking errors with ts-reset (1bcd351)
  • internal: cache fetch instruction calls in MCP server (cc510b7)
  • internal: codegen related update (433caa0)
  • internal: codegen related update (cb76de5)
  • internal: codegen related update (f47b96d)
  • internal: codegen related update (17fd655)
  • internal: codegen related update (c68e333)
  • internal: fix pagination internals not accepting option promises (8d0383c)
  • internal: improve layout of generated MCP server files (6a86e76)
  • internal: refactor flag parsing for MCP servers and add debug flag (57b38bc)
  • internal: support oauth authorization code flow for MCP servers (17f9577)
  • internal: update actions/checkout version (3cbbbc2)
  • internal: update lock file (ba7cdeb)
  • internal: upgrade babel, qs, js-yaml (10153a5)
  • mcp: add intent param to execute tool (a9bddfc)
  • mcp: correctly update version in sync with sdk (02ec67c)
  • mcp: forward STAINLESS_API_KEY to docs search endpoint (9fc0783)
  • mcp: pass intent param to execute handler (e56af43)
  • mcp: up tsconfig lib version to es2022 (9e09179)
  • update mock server docs (9d056e8)