examples: add arcade example to servers (#399) · modelcontextprotocol/ext-apps@adf0bbd · GitHub
Skip to content

Commit adf0bbd

Browse files
authored
examples: add arcade example to servers (#399)
1 parent 2187bd4 commit adf0bbd

7 files changed

Lines changed: 25 additions & 2 deletions

File tree

‎.github/workflows/npm-publish.yml‎

Lines changed: 1 addition & 0 deletions

‎.github/workflows/publish.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
. \
2727
./examples/basic-server-react \
2828
./examples/basic-server-vanillajs \
29+
./examples/arcade-server \
2930
./examples/budget-allocator-server \
3031
./examples/cohort-heatmap-server \
3132
./examples/customer-segmentation-server \

‎README.md‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,16 @@ To use these examples with MCP clients that support the stdio transport (such as
176176
"--stdio"
177177
]
178178
},
179+
"arcade": {
180+
"command": "npx",
181+
"args": [
182+
"-y",
183+
"--silent",
184+
"--registry=https://registry.npmjs.org/",
185+
"@modelcontextprotocol/server-arcade",
186+
"--stdio"
187+
]
188+
},
179189
"budget-allocator": {
180190
"command": "npx",
181191
"args": [
@@ -393,6 +403,13 @@ Then configure your MCP client to build and run the local server. Replace `~/cod
393403
"cd ~/code/ext-apps/examples/basic-server-solid && npm run build >&2 && node dist/index.js --stdio"
394404
]
395405
},
406+
"arcade": {
407+
"command": "bash",
408+
"args": [
409+
"-c",
410+
"cd ~/code/ext-apps/examples/arcade-server && npm run build >&2 && node dist/index.js --stdio"
411+
]
412+
},
396413
"budget-allocator": {
397414
"command": "bash",
398415
"args": [
446 KB
Loading

‎examples/arcade-server/server.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function validateGameId(gameId: string): boolean {
3535
*/
3636
export function createServer(port: number): McpServer {
3737
const server = new McpServer({
38-
name: "arcade-mcp-server",
38+
name: "Arcade Server",
3939
version: "1.0.0",
4040
});
4141

‎tests/e2e/generate-grid-screenshots.spec.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const EXTRA_WAIT_MS: Record<string, number> = {
2727

2828
// Servers to skip (screenshots maintained manually)
2929
const SKIP_SERVERS = new Set([
30+
"arcade-server", // Loads games from archive.org - screenshots maintained manually
3031
"video-resource", // Uses custom screenshot from PR comment
3132
"qr-server", // Uses custom screenshot from PR comment
3233
"say-server", // TTS model download from HuggingFace can be slow
@@ -37,6 +38,7 @@ const EXAMPLE_FILTER = process.env.EXAMPLE;
3738

3839
// Server configurations (excludes integration-server which is for E2E testing)
3940
const ALL_SERVERS = [
41+
{ key: "arcade-server", name: "Arcade Server", dir: "arcade-server" },
4042
{
4143
key: "basic-react",
4244
name: "Basic MCP App Server (React)",

‎tests/e2e/servers.spec.ts‎

Lines changed: 3 additions & 1 deletion

0 commit comments

Comments
 (0)