Skip to content

feat(examples): add --watch to bun serve commands for auto-restart, and have npm start hit dev mode of all examples - #246

Merged
ochafik merged 5 commits into
mainfrom
ochafik/restart-servers
Jan 12, 2026
Merged

feat(examples): add --watch to bun serve commands for auto-restart, and have npm start hit dev mode of all examples#246
ochafik merged 5 commits into
mainfrom
ochafik/restart-servers

Conversation

@ochafik

Copy link
Copy Markdown
Contributor

Adds --watch flag to all bun serve commands in example servers, enabling automatic restart when files change during development.

Changes

  • serve: bun server.tsbun --watch server.ts
  • serve:http: bun server.tsbun --watch server.ts
  • serve:stdio: bun server.ts --stdiobun --watch server.ts --stdio

This applies to all 19 example server package.json files.

@ochafik
ochafikforce-pushed the ochafik/restart-servers branch from e78d95d to 7351184CompareJanuary 12, 2026 19:38
@pkg-pr-new

pkg-pr-newBot commented Jan 12, 2026

Copy link
Copy Markdown

Open in StackBlitz

@modelcontextprotocol/ext-apps

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/ext-apps@246

@modelcontextprotocol/server-basic-react

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-basic-react@246

@modelcontextprotocol/server-basic-vanillajs

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-basic-vanillajs@246

@modelcontextprotocol/server-budget-allocator

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-budget-allocator@246

@modelcontextprotocol/server-cohort-heatmap

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-cohort-heatmap@246

@modelcontextprotocol/server-customer-segmentation

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-customer-segmentation@246

@modelcontextprotocol/server-scenario-modeler

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-scenario-modeler@246

@modelcontextprotocol/server-system-monitor

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-system-monitor@246

@modelcontextprotocol/server-threejs

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-threejs@246

@modelcontextprotocol/server-wiki-explorer

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-wiki-explorer@246

commit: 2e5d657

@ochafikochafik changed the title feat(examples): add --watch to bun serve commands for auto-restartfeat(examples): add --watch to bun serve commands for auto-restart, and have npm start hit dev mode of all examplesJan 12, 2026

@antonpk1antonpk1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool!

@ochafik
ochafik merged commit 9a9ecf2 into mainJan 12, 2026
19 checks passed
@ochafik
ochafik deleted the ochafik/restart-servers branch January 13, 2026 15:29
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@ochafik@antonpk1