Files
herolib/examples/mcp/inspector/example.sh
Mahmoud-Emad 914cba5388 feat: add HTTP/REST transport for MCP servers
- Refactor server to use a generic transport interface
- Add HttpTransport for JSON-RPC and REST over HTTP
- Move existing STDIO logic into a StdioTransport
- Enable dual-mode (STDIO/HTTP) via command-line flags
- Add new examples and docs for HTTP server usage
2025-07-28 13:32:01 +03:00

11 lines
320 B
Bash
Executable File

#!/bin/bash
# Get the absolute path to the server.vsh file
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
SERVER_PATH="$SCRIPT_DIR/server.vsh"
# Make sure the server script is executable
chmod +x "$SERVER_PATH"
# Start the MCP inspector with the V server
npx @modelcontextprotocol/inspector "$SERVER_PATH"