Repository navigation
docs(examples): fix run instructions referencing missing files, scripts and services - #353
Merged
Merged
Conversation
…ts and services The mcp example is a Docker Compose stack without its own package.json, so npm-based instructions never worked. Point QUICKSTART and examples README at the real docker compose commands, drop claims the example code does not implement (list proxy, chat temperature comparisons), fix the vite agent (npm start, compose-network baseURL, dead scripts) and the marketing agent run instructions, and replace disabled mcp-inspector and mcp-web-search docs with the running mcp-brave-search setup.
inference-gateway-maintainer
Bot
marked this pull request as ready for review
November 17, 2026 19:17
Closed
12 tasks
This was referenced Nov 17, 2026
inference-gateway-releaser Bot
added a commit
that referenced
this pull request
Nov 17, 2026
## [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))
Contributor
|
🎉 This PR is included in version 0.31.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #350
Summary
The run instructions and npm scripts under
examples/pointed at files, scripts and services that do not exist (the MCP example is a Docker Compose stack with nopackage.jsonof its own), and two overview claims described features the example code does not implement. This PR makes the docs and scripts match what actually runs. Docs and example scaffolding only, no SDK behavior change.Changes
examples/package.json: droppedstart:mcp,mcp:up,mcp:downandmcp:logs(the MCP stack is run withdocker compose, seeexamples/mcp/README.md) and removed the brokencd ../mcp && npm installtail frominstall-allexamples/QUICKSTART.md: Option B now runsdocker compose -f docker-compose.yml up --buildfrommcp/; the MCP example now runs an agent viadocker compose -f docker-compose-agents.yml run --rm -it --build vite-agentinstead of the non-existentnpm install && npm startexamples/README.md: running-instructions block now names the npm-runnable examples (list,chat,messages,images,decisions) and points MCP readers atmcp/README.md; dropped the "provider proxy functionality" and "Direct provider API access via proxy" claims from the List example and the "Temperature comparison examples" claim from the Chat example (verified absent inexamples/list/index.tsandexamples/chat/index.ts)examples/mcp/README.md: removed the MCP Inspector section (themcp-inspectorservice is commented out indocker-compose.yml); troubleshooting now uses the runningmcp-brave-searchserver (port 3005, inMCP_SERVERS) instead of the commented-outmcp-web-search, withTOOL_NAME=brave_web_searchexamples/mcp/agents/vite/package.json: added"start": "tsx index.ts"like the other three agents; removedexample:nextjs-agent,example:vite-agentandexample:kubernetes-agentscripts (referenced missingexample-*.tsfiles) andcompose:up/compose:down/compose:logs(no compose file next to them)examples/mcp/agents/vite/Dockerfile:CMD ["npm", "start"]instead ofnpm run dev(script was missing, thevite-agentcommand exited with npm "Missing script")examples/mcp/agents/vite/index.ts: gatewaybaseURLchanged fromhttp://localhost:8080/v1tohttp://inference-gateway:8080/v1to match the other agents, since the agent runs inside the compose networkexamples/mcp/agents/marketing/README.md: run instructions now usedocker compose -f docker-compose-agents.yml run --rm -it --build marketing-agent(the agent resolveshttp://inference-gateway:8080/v1only inside the compose network, so host npm run could never reach it)AGENTS.md(separate commit): mechanically reflowed prose to the 120-char markdownlint limit -task lint(and thepre-commithook) was already failing onmainbecause of these long lines, which would have blocked this change without bypassing the hookVerification
task lint(ESLint + markdownlint),npm run format,task buildandtask test(46/46 Jest tests) all pass locally; the Docker-based example runs were not executed here (no Docker gateway in CI sandbox)