Repository navigation
chore(examples): raise example SDK pins to the current release line - #356
Conversation
All example packages pinned ^0.12.0 or ^0.15.0; for 0.x versions npm treats the minor as breaking so examples resolved to stale 0.12.x/0.15.x builds and three of them could not even install APIs they call. Bump every example to ^0.30.0, regenerate lockfiles, and include images and decisions in install-all.
With the current SDK installed the previous calls no longer exist: listTools() was removed from the client in v0.25.1, so examples/list and the four MCP agents now discover tools through client.mcpJsonRpc() with the tools_list method and match namespaced tool names by suffix, and the MCP hint text names the real MCP_ENABLED and MCP_EXPOSE gateway flags. examples/chat narrows the response message content to a string before pushing it back into the conversation, since message content is now string or content parts.
The SDK declares engines.node >= 24.15.0 and npm install in the agent images warns or breaks when the base image ships an older runtime. The kubernetes agent installed Node 18 and the marketing, nextjs and vite agents installed Node 20 - both now install Node 24.
The messages README pins its note to the range actually installed (^0.30.0), the list README tells readers to start the gateway with MCP_ENABLED and MCP_EXPOSE flags on docker run instead of an EXPOSE_MCP shell prefix that never reaches the container, and the tool discovery descriptions refer to the MCP JSON-RPC endpoint rather than a removed tools listing method.
A JSON-RPC error envelope comes back as response.error whatever the HTTP status, and the tools/list result is empty in that case - print its code and message before the MCP_ENABLED/MCP_EXPOSE hint instead of swallowing it.
|
@claude can you resolve the merge conflict? |
|
Claude finished @edenreich's task in 1m 32s —— View job Merge conflict resolved
I merged
All other files merged automatically. I checked that the tree on GitHub has the same SHA as my local merge (5148f38). I didn't run |
|
@claude can you resolve the merge conflict? |
|
Claude finished @edenreich's task in 58s —— View job Merge conflict resolved
The earlier merge (b055d1f) was fine. The new conflict came from #354, which landed on main after it and added the Only The tree on GitHub has the same SHA as my local merge (9642dbf). The branch is now 7 commits ahead of main and 0 behind. I didn't run |
Co-authored-by: Eden Reich <[email protected]>
## [0.31.0](v0.30.0...v0.31.0) (2026-11-17) ### ✨ Features * sync generated types with schemas v1.14.1 ([#357](#357)) ([c1ac248](c1ac248)) ### 🐛 Bug Fixes * **examples:** align gateway env vars with the openapi x-config spec ([#352](#352)) ([ad88612](ad88612)) * **examples:** migrate examples from removed listTools to mcpJsonRpc ([#355](#355)) ([d3fb472](d3fb472)), references [#347](#347) ### 👷 CI * align Dependabot schedule and grouping ([#344](#344)) ([c4e6a3e](c4e6a3e)) * **deps-dev:** bump the npm group with 3 updates ([#345](#345)) ([2882a46](2882a46)) * set up orchestrators from repos.yaml ([#346](#346)) ([53394ea](53394ea)) ### 📚 Documentation * **examples:** add audio examples for createSpeech, createSFX and createMusic ([#354](#354)) ([479cfb7](479cfb7)) * **examples:** fix run instructions referencing missing files, scripts and services ([#353](#353)) ([87f9d8d](87f9d8d)) ### 🔧 Miscellaneous * **deps:** bump flox dependencies to latest ([#342](#342)) ([60b715d](60b715d)) * **deps:** bump flox dependencies to latest ([#343](#343)) ([cf43b42](cf43b42)) * **examples:** raise example SDK pins to the current release line ([#356](#356)) ([d2d81c3](d2d81c3))
|
🎉 This PR is included in version 0.31.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Resolves #348
Closes #347 - the listTools migration that #348 required from it is included here, and all of #347's acceptance criteria are met.
Summary
Every example pinned a caret range on a 0.x version, which npm treats as minor-breaking, so nothing ever upgraded: ^0.12.0 resolved to 0.12.x and ^0.15.0 to 0.15.x while the current SDK is 0.30.0. Three examples called APIs their own pin could not install, and the rest kept exercising a client surface from 18 releases ago. This raises every example to ^0.30.0 and migrates the code that breaks on the newer types, including the listTools() removal fixes #348 required from #347.
Changes
Validation
Example-only changes - no schema, SDK surface or release ripple to other repos.
Docs follow-up tracking: inference-gateway/docs#1260