Skip to content

docs(examples): fix run instructions referencing missing files, scripts and services - #353

Merged
edenreich merged 2 commits into
mainfrom
fix/issue-350
Nov 17, 2026
Merged

edenreich merged 2 commits into
mainfrom
fix/issue-350

Conversation

@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

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 no package.json of 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: dropped start:mcp, mcp:up, mcp:down and mcp:logs (the MCP stack is run with docker compose, see examples/mcp/README.md) and removed the broken cd ../mcp && npm install tail from install-all
  • examples/QUICKSTART.md: Option B now runs docker compose -f docker-compose.yml up --build from mcp/; the MCP example now runs an agent via docker compose -f docker-compose-agents.yml run --rm -it --build vite-agent instead of the non-existent npm install && npm start
  • examples/README.md: running-instructions block now names the npm-runnable examples (list, chat, messages, images, decisions) and points MCP readers at mcp/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 in examples/list/index.ts and examples/chat/index.ts)
  • examples/mcp/README.md: removed the MCP Inspector section (the mcp-inspector service is commented out in docker-compose.yml); troubleshooting now uses the running mcp-brave-search server (port 3005, in MCP_SERVERS) instead of the commented-out mcp-web-search, with TOOL_NAME=brave_web_search
  • examples/mcp/agents/vite/package.json: added "start": "tsx index.ts" like the other three agents; removed example:nextjs-agent, example:vite-agent and example:kubernetes-agent scripts (referenced missing example-*.ts files) and compose:up/compose:down/compose:logs (no compose file next to them)
  • examples/mcp/agents/vite/Dockerfile: CMD ["npm", "start"] instead of npm run dev (script was missing, the vite-agent command exited with npm "Missing script")
  • examples/mcp/agents/vite/index.ts: gateway baseURL changed from http://localhost:8080/v1 to http://inference-gateway:8080/v1 to match the other agents, since the agent runs inside the compose network
  • examples/mcp/agents/marketing/README.md: run instructions now use docker compose -f docker-compose-agents.yml run --rm -it --build marketing-agent (the agent resolves http://inference-gateway:8080/v1 only 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 the pre-commit hook) was already failing on main because of these long lines, which would have blocked this change without bypassing the hook

Verification

  • task lint (ESLint + markdownlint), npm run format, task build and task test (46/46 Jest tests) all pass locally; the Docker-based example runs were not executed here (no Docker gateway in CI sandbox)
  • Downstream impact: repo-local examples only, no schema/SDK API changes, no other org repos affected
  • no docs ticket: docs-only corrections inside this repo, no public-facing behavior change

…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
inference-gateway-maintainer Bot marked this pull request as ready for review November 17, 2026 19:17
@edenreich
edenreich merged commit 87f9d8d into main Nov 17, 2026
1 check passed
@edenreich
edenreich deleted the fix/issue-350 branch November 17, 2026 19:30
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))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.31.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DOCS] Example run instructions and npm scripts reference missing files, scripts and services

1 participant