Skip to content

Commit 134c71c

Browse files
ochafikclaudegithub-actions[bot]
authored
Add MCP client configuration examples to CONTRIBUTING.md (#508)
* docs: restore full MCP client JSON configs to CONTRIBUTING.md Reinstate the copy-pasteable JSON configurations for running all examples with MCP clients (npx-based and local development), which were removed from README.md in 2af02ba. Placed in CONTRIBUTING.md as a better home for contributor-facing setup instructions. https://claude.ai/code/session_014pjt7bE4ckHns5QFPkdWQp * Use start:stdio in local dev config, add missing scripts to 9 examples Update the local development JSON config in CONTRIBUTING.md to use `npm --silent run start:stdio` instead of manual bash commands. Add `serve:stdio` and `start:stdio` scripts to the 9 examples that were missing them (basic-server-*, sheet-music, transcript, video-resource, debug) to match the pattern already in place for the other 11 showcase examples. https://claude.ai/code/session_014pjt7bE4ckHns5QFPkdWQp * style: auto-fix prettier formatting --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 30f79b9 commit 134c71c

File tree

11 files changed

+479
-0
lines changed

11 files changed

+479
-0
lines changed

CONTRIBUTING.md

Lines changed: 459 additions & 0 deletions
Large diffs are not rendered by default.

examples/basic-server-preact/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
"build": "tsc --noEmit && cross-env INPUT=mcp-app.html vite build && tsc -p tsconfig.server.json && bun build server.ts --outdir dist --target node && bun build main.ts --outfile dist/index.js --target node --external \"./server.js\" --banner \"#!/usr/bin/env node\"",
1818
"watch": "cross-env INPUT=mcp-app.html vite build --watch",
1919
"serve": "bun --watch main.ts",
20+
"serve:stdio": "bun main.ts --stdio",
2021
"start": "cross-env NODE_ENV=development npm run build && npm run serve",
22+
"start:stdio": "cross-env NODE_ENV=development npm run build 1>&2 && npm run serve:stdio",
2123
"dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve\"",
2224
"prepublishOnly": "npm run build"
2325
},

examples/basic-server-react/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
"build": "tsc --noEmit && cross-env INPUT=mcp-app.html vite build && tsc -p tsconfig.server.json && bun build server.ts --outdir dist --target node && bun build main.ts --outfile dist/index.js --target node --external \"./server.js\" --banner \"#!/usr/bin/env node\"",
2828
"watch": "cross-env INPUT=mcp-app.html vite build --watch",
2929
"serve": "bun --watch main.ts",
30+
"serve:stdio": "bun main.ts --stdio",
3031
"start": "cross-env NODE_ENV=development npm run build && npm run serve",
32+
"start:stdio": "cross-env NODE_ENV=development npm run build 1>&2 && npm run serve:stdio",
3133
"dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve\"",
3234
"prepublishOnly": "npm run build"
3335
},

examples/basic-server-solid/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
"build": "tsc --noEmit && cross-env INPUT=mcp-app.html vite build && tsc -p tsconfig.server.json && bun build server.ts --outdir dist --target node && bun build main.ts --outfile dist/index.js --target node --external \"./server.js\" --banner \"#!/usr/bin/env node\"",
1818
"watch": "cross-env INPUT=mcp-app.html vite build --watch",
1919
"serve": "bun --watch main.ts",
20+
"serve:stdio": "bun main.ts --stdio",
2021
"start": "cross-env NODE_ENV=development npm run build && npm run serve",
22+
"start:stdio": "cross-env NODE_ENV=development npm run build 1>&2 && npm run serve:stdio",
2123
"dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve\"",
2224
"prepublishOnly": "npm run build"
2325
},

examples/basic-server-svelte/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
"build": "tsc --noEmit && cross-env INPUT=mcp-app.html vite build && tsc -p tsconfig.server.json && bun build server.ts --outdir dist --target node && bun build main.ts --outfile dist/index.js --target node --external \"./server.js\" --banner \"#!/usr/bin/env node\"",
1818
"watch": "cross-env INPUT=mcp-app.html vite build --watch",
1919
"serve": "bun --watch main.ts",
20+
"serve:stdio": "bun main.ts --stdio",
2021
"start": "cross-env NODE_ENV=development npm run build && npm run serve",
22+
"start:stdio": "cross-env NODE_ENV=development npm run build 1>&2 && npm run serve:stdio",
2123
"dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve\"",
2224
"prepublishOnly": "npm run build"
2325
},

examples/basic-server-vanillajs/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
"build": "tsc --noEmit && cross-env INPUT=mcp-app.html vite build && tsc -p tsconfig.server.json && bun build server.ts --outdir dist --target node && bun build main.ts --outfile dist/index.js --target node --external \"./server.js\" --banner \"#!/usr/bin/env node\"",
1818
"watch": "cross-env INPUT=mcp-app.html vite build --watch",
1919
"serve": "bun --watch main.ts",
20+
"serve:stdio": "bun main.ts --stdio",
2021
"start": "cross-env NODE_ENV=development npm run build && npm run serve",
22+
"start:stdio": "cross-env NODE_ENV=development npm run build 1>&2 && npm run serve:stdio",
2123
"dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve\"",
2224
"prepublishOnly": "npm run build"
2325
},

examples/basic-server-vue/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
"build": "tsc --noEmit && cross-env INPUT=mcp-app.html vite build && tsc -p tsconfig.server.json && bun build server.ts --outdir dist --target node && bun build main.ts --outfile dist/index.js --target node --external \"./server.js\" --banner \"#!/usr/bin/env node\"",
1818
"watch": "cross-env INPUT=mcp-app.html vite build --watch",
1919
"serve": "bun --watch main.ts",
20+
"serve:stdio": "bun main.ts --stdio",
2021
"start": "cross-env NODE_ENV=development npm run build && npm run serve",
22+
"start:stdio": "cross-env NODE_ENV=development npm run build 1>&2 && npm run serve:stdio",
2123
"dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve\"",
2224
"prepublishOnly": "npm run build"
2325
},

examples/debug-server/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
"build": "tsc --noEmit && cross-env INPUT=mcp-app.html vite build && tsc -p tsconfig.server.json && bun build server.ts --outdir dist --target node && bun build main.ts --outfile dist/index.js --target node --external \"./server.js\" --banner \"#!/usr/bin/env node\"",
2828
"watch": "cross-env INPUT=mcp-app.html vite build --watch",
2929
"serve": "bun --watch main.ts",
30+
"serve:stdio": "bun main.ts --stdio",
3031
"start": "cross-env NODE_ENV=development npm run build && npm run serve",
32+
"start:stdio": "cross-env NODE_ENV=development npm run build 1>&2 && npm run serve:stdio",
3133
"dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve\"",
3234
"prepublishOnly": "npm run build"
3335
},

examples/sheet-music-server/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
"build": "tsc --noEmit && cross-env INPUT=mcp-app.html vite build && tsc -p tsconfig.server.json && bun build server.ts --outdir dist --target node && bun build main.ts --outfile dist/index.js --target node --external \"./server.js\" --banner \"#!/usr/bin/env node\"",
1818
"watch": "cross-env INPUT=mcp-app.html vite build --watch",
1919
"serve": "bun --watch main.ts",
20+
"serve:stdio": "bun main.ts --stdio",
2021
"start": "cross-env NODE_ENV=development npm run build && npm run serve",
22+
"start:stdio": "cross-env NODE_ENV=development npm run build 1>&2 && npm run serve:stdio",
2123
"dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve\"",
2224
"prepublishOnly": "npm run build"
2325
},

examples/transcript-server/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
"build": "tsc --noEmit && cross-env INPUT=mcp-app.html vite build && tsc -p tsconfig.server.json && bun build server.ts --outdir dist --target node && bun build main.ts --outfile dist/index.js --target node --external \"./server.js\" --banner \"#!/usr/bin/env node\"",
1818
"watch": "cross-env INPUT=mcp-app.html vite build --watch",
1919
"serve": "bun --watch main.ts",
20+
"serve:stdio": "bun main.ts --stdio",
2021
"start": "cross-env NODE_ENV=development npm run build && npm run serve",
22+
"start:stdio": "cross-env NODE_ENV=development npm run build 1>&2 && npm run serve:stdio",
2123
"dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve\"",
2224
"prepublishOnly": "npm run build"
2325
},

0 commit comments

Comments
 (0)