Skip to content

Conversation

@antonpk1
Copy link
Collaborator

@antonpk1 antonpk1 commented Dec 8, 2025

Summary

  • Add support for --stdio flag to all 5 marketing example servers
  • When launched with --stdio, servers use StdioServerTransport instead of starting an HTTP server
  • Enables direct integration with Claude Desktop and other MCP clients that use stdio transport

Changes

  • examples/budget-allocator-server/server.ts
  • examples/cohort-heatmap-server/server.ts
  • examples/customer-segmentation-server/server.ts
  • examples/scenario-modeler-server/server.ts
  • examples/system-monitor-server/server.ts

Usage

# HTTP mode (default)
bun examples/budget-allocator-server/server.ts

# stdio mode
bun examples/budget-allocator-server/server.ts --stdio

Test plan

  • Verify TypeScript compiles without errors
  • Test HTTP mode still works: bun examples/budget-allocator-server/server.ts
  • Test stdio mode: bun examples/budget-allocator-server/server.ts --stdio
  • Test with MCP Inspector: npx @modelcontextprotocol/inspector@latest bun examples/budget-allocator-server/server.ts --stdio
  • Test with Claude Desktop using stdio config

🤖 Generated with Claude Code

When launched with --stdio flag, servers use StdioServerTransport
instead of starting an HTTP server. This enables direct integration
with Claude Desktop and other MCP clients that use stdio transport.

Usage:
  bun examples/budget-allocator-server/server.ts --stdio

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 8, 2025

Open in StackBlitz

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

commit: d6ff3d9

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Copy link
Collaborator

@ochafik ochafik left a comment

Choose a reason for hiding this comment

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

Thanks Anton!

@antonpk1 antonpk1 merged commit 8f4a0c7 into main Dec 8, 2025
8 checks passed
@antonpk1 antonpk1 deleted the add-stdio-transport branch December 8, 2025 13:59
Sign up for free to 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.

3 participants