7.4.0 (2026-04-06)
Full Changelog: v7.3.0...v7.4.0
Features
- api: add xCenter, yCenter, and anchorPoint parameters for overlay positioning (0fcec28)
- api: dpr type update (81ec737)
- api: Introduce lxc, lyc, lap parameters in overlays. (6853a32)
- api: revert dpr breaking change (2543278)
- mcp: add an option to disable code tool (af87a8b)
- mcp: add initial server instructions (cdce131)
Bug Fixes
- client: avoid memory leak with abort signals (c08f7c0)
- client: avoid removing abort listener too early (0738e88)
- client: preserve URL params already embedded in path (9fed3c5)
- docs/contributing: correct pnpm link command (743a112)
- fix request delays for retrying to be more respectful of high requested delays (8cc484f)
- mcp: bump agents version in cloudflare worker MCP servers (207aff5)
- mcp: initialize SDK lazily to avoid failing the connection on init errors (66c5305)
- mcp: update prompt (db925be)
Chores
- ci: escape input path in publish-npm workflow (cbb4d36)
- ci: skip lint on metadata-only changes (a4ff868)
- ci: skip uploading artifacts on stainless-internal branches (7d86a36)
- client: do not parse responses with empty content-length (4b5fcbf)
- client: restructure abort controller binding (46c04e1)
- internal/client: fix form-urlencoded requests (d96f483)
- internal: add health check to MCP server when running in HTTP mode (83d1174)
- internal: allow basic filtering of methods allowed for MCP code mode (4a86182)
- internal: allow setting x-stainless-api-key header on mcp server requests (a72133c)
- internal: always generate MCP server dockerfiles and upgrade associated dependencies (90eae18)
- internal: avoid type checking errors with ts-reset (7cd3980)
- internal: bump @modelcontextprotocol/sdk, @hono/node-server, and minimatch (a0031e0)
- internal: cache fetch instruction calls in MCP server (7738ab8)
- internal: codegen related update (60e54a6)
- internal: codegen related update (5c368b8)
- internal: codegen related update (4178900)
- internal: fix MCP docker image builds in yarn projects (5f10f73)
- internal: fix MCP Dockerfiles so they can be built without buildkit (9dde351)
- internal: fix MCP Dockerfiles so they can be built without buildkit (62b9ad0)
- internal: fix MCP server TS errors that occur with required client options (14154e2)
- internal: improve layout of generated MCP server files (b2e0a75)
- internal: improve local docs search for MCP servers (ad984eb)
- internal: improve local docs search for MCP servers (d4db198)
- internal: make generated MCP servers compatible with Cloudflare worker environments (419e72f)
- internal: make MCP code execution location configurable via a flag (497c926)
- internal: move stringifyQuery implementation to internal function (60f7ea6)
- internal: refactor flag parsing for MCP servers and add debug flag (ff4b97e)
- internal: remove mock server code (f1deef8)
- internal: support custom-instructions-path flag in MCP servers (14dec19)
- internal: support local docs search in MCP servers (03eef26)
- internal: support oauth authorization code flow for MCP servers (5f6c688)
- internal: support type annotations when running MCP in local execution mode (bd8528f)
- internal: support x-stainless-mcp-client-envs header in MCP servers (6b2f378)
- internal: support x-stainless-mcp-client-permissions headers in MCP servers (6e75dad)
- internal: switch MCP servers to use pino for logging (f08d300)
- internal: tweak CI branches (aae2960)
- internal: update agents version (e39e377)
- internal: update dependencies to address dependabot vulnerabilities (c6f8d11)
- internal: update gitignore (d36a938)
- internal: upgrade @modelcontextprotocol/sdk and hono (446fc85)
- internal: upgrade hono (61a5d88)
- internal: use link instead of file in MCP server package.json files (4939cda)
- internal: use x-stainless-mcp-client-envs header for MCP remote code tool calls (d128af7)
- mcp-server: add support for session id, forward client info (36ec509)
- mcp-server: improve instructions (9afa574)
- mcp-server: log client info (20299c3)
- mcp-server: return access instructions for 404 without API key (568dd2a)
- mcp: correctly update version in sync with sdk (57fa966)
- mcp: forward STAINLESS_API_KEY to docs search endpoint (bf91d73)
- tests: remove unnecessary blank lines in overlay encoding test cases (9a4f18d)
- tests: update webhook tests (f179fa9)
- update mock server docs (8d9ad04)
- update placeholder string (f8f62ae)
- use proper capitalization for WebSockets (e6e8ed6)