Add HTTP/SSE test scripts demonstrating remote server usage

New Scripts:
- demo-http-api.js: Simple demo showing HTTP server is accessible TODAY
- test-http-mcp.js: Full MCP protocol test over HTTP/SSE
- npm run test:http: Run HTTP/SSE MCP protocol tests

Purpose:
Demonstrates that while major AI tools don't support HTTP/SSE MCP yet,
the deployed server IS accessible and usable right now for:
- Custom integrations (web apps, bots, extensions)
- Testing the MCP protocol over HTTP
- Future-proofing for when tools add support

Usage:
  node demo-http-api.js        # Quick demo (works now)
  npm run test:http            # Full MCP protocol test

Dev Dependencies Added:
- eventsource: For SSE client connections
- node-fetch: For HTTP requests

Shows Real Value:
- Server is deployed and working at hpr-knowledge-base.onrender.com
- Can be integrated into custom apps TODAY
- Ready for future MCP client adoption
- Not just waiting for tool support

This addresses the question: "Did I build something nothing supports?"
Answer: No! It's accessible now for custom code, and ready for the future.

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Lee Hanken
2025-10-26 11:39:17 +00:00
parent d37a9aca4e
commit ed06ba954b
4 changed files with 355 additions and 8 deletions

View File

@@ -10,7 +10,8 @@
"scripts": {
"start": "node index.js",
"start:http": "node server-http.js",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "node test.js",
"test:http": "node test-http-mcp.js"
},
"keywords": ["mcp", "hacker-public-radio", "hpr", "podcast", "knowledge-base"],
"author": "",
@@ -21,5 +22,9 @@
"cors": "^2.8.5",
"compression": "^1.7.4",
"express-rate-limit": "^7.1.5"
},
"devDependencies": {
"eventsource": "^2.0.2",
"node-fetch": "^3.3.2"
}
}