Skip to content

[DOCS] TypeScript SDK examples refreshed for the current release line #1260

Closed

Description

Summary

  • The example packages under inference-gateway/typescript-sdk/examples pinned caret ranges on 0.x versions, so npm never upgraded them: ^0.12.0 resolved to 0.12.x only and ^0.15.0 to 0.15.x, while the current release is 0.30.0. PR chore(examples): raise example SDK pins to the current release line typescript-sdk#356 raises every example to ^0.30.0, migrates the removed listTools() call sites to the MCP JSON-RPC tools_list method, narrows message content typing in the chat example, moves the agent images to Node 24, documents the real MCP_ENABLED and MCP_EXPOSE gateway flags, and adds images and decisions to the examples install-all script.

Acceptance Criteria

  • The examples directory docs (QUICKSTART.md and the READMEs under examples/) mention no removed client methods or stale SDK versions - the list example documents tool discovery through mcpJsonRpc and the gateway flags MCP_ENABLED and MCP_EXPOSE
  • The gateway documentation pages about MCP server exposure (MCP_ENABLED, MCP_EXPOSE) match the docker run commands shown in the examples
  • If the docs site mirrors TypeScript SDK example snippets, they are updated to the 0.30.0 API surface from PR chore(examples): raise example SDK pins to the current release line typescript-sdk#356

Activity

  1. added
    documentation
    on Nov 17, 2026
  2. edenreich commented on Nov 17, 2026

    @edenreich
    Contributor

    @claude can you document this?

  3. inference-gateway-maintainer commented on Nov 17, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Claude finished @edenreich's task in 1m 48s —— View job • docs/issue-1260-20261117-2016 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-1260-20261117-2016?quick_pull=1&title=Issue%20%231260%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%231260%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Documented the TypeScript SDK 0.30.0 example refresh

    What changed (sdks.md, TypeScript section)

    • The latest version now reads 0.30.0. It said 0.11.0.
    • The Node requirement now reads 24.15+. It said 18+. The new value comes from the SDK's engines field.
    • The examples bullet now says the examples pin ^0.30.0. It also says the list example finds MCP tools with mcpJsonRpc (tools/list) and needs the gateway started with MCP_ENABLED=true and MCP_EXPOSE=true.
    • A new upgrade note explains that a caret range on a 0.x version only allows patch updates, so you have to raise the pin by hand. It also says listTools() was removed and links to the mcpJsonRpc snippet.

    Acceptance criteria

    • QUICKSTART.md and the READMEs under examples/: these files are in the typescript-sdk repo, not in this one. I checked the upstream examples/list/README.md and it already documents mcpJsonRpc, MCP_ENABLED and MCP_EXPOSE. I did not open QUICKSTART.md.
    • Gateway MCP pages: mcp.md, api-reference.md and configuration.md already use MCP_ENABLED=true and MCP_EXPOSE=true, which match the docker run flags in the examples. No change was needed.
    • Mirrored SDK snippets: the snippets in sdks.md already used mcpJsonRpc and never called listTools. The only out-of-date details were the version and the Node requirement.

    PR: #1265
    | Branch

  4. moved this from Todo to In progress in 2026on Nov 17, 2026
  5. moved this from In progress to QA in 2026on Nov 17, 2026
  6. moved this from QA to Done in 2026on Nov 17, 2026
  7. inference-gateway-releaser commented on Nov 17, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.27 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    No type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions