Skip to content

Commit bf6af2e

Browse files
ochafikclaude
andcommitted
chore(examples): add run script for streamable HTTP server
Convenience script that runs simpleStreamableHttp.ts with OAuth from the repo root. Documents delay env vars in header comments. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 4e75554 commit bf6af2e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

run-streamable-http.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bash
2+
# Runs the simpleStreamableHttp server with OAuth enabled
3+
#
4+
# Environment variables for testing delays:
5+
# MCP_DELAY_LIST_TOOLS_MS - Delay tools/list requests
6+
# MCP_DELAY_CALL_TOOL_MS - Delay tools/call requests
7+
# MCP_DELAY_DCR_MS - Delay Dynamic Client Registration
8+
#
9+
# Usage:
10+
# ./run-streamable-http.sh
11+
# MCP_DELAY_LIST_TOOLS_MS=2000 ./run-streamable-http.sh
12+
13+
cd "$(dirname "$0")"
14+
15+
npx tsx src/examples/server/simpleStreamableHttp.ts --oauth "$@"

0 commit comments

Comments
 (0)