## Simple Streamable HTTP Server
Step1 - npm run build-server
Step2 - npm run build-client
Step3 - node build/server/simpleStreamableHttp.js
Step4 - node build/client/simpleStreamableHttp.js
# You will find the below output in Terminal -
```
MCP Interactive Client
=====================
Connecting to http://localhost:3000/mcp...
Transport created with session ID: 7ac20927-0aef-48fd-ab7a-a9f6d67cd058
Connected to MCP server
Available commands:
connect [url] - Connect to MCP server (default: http://localhost:3000/mcp)
disconnect - Disconnect from server
terminate-session - Terminate the current session
reconnect - Reconnect to the server
list-tools - List available tools
call-tool <name> [args] - Call a tool with optional JSON arguments
greet [name] - Call the greet tool
multi-greet [name] - Call the multi-greet tool with notifications
start-notifications [interval] [count] - Start periodic notifications
run-notifications-tool-with-resumability [interval] [count] - Run notification tool with resumability
list-prompts - List available prompts
get-prompt [name] [args] - Get a prompt with optional JSON arguments
list-resources - List available resources
help - Show this help
quit - Exit the program
```
# Execute the below command in the terminal -
> list-tools
# You will find the below output in Terminal -
Available tools:
- greet: A simple greeting tool
- multi-greet: A tool that sends different greetings with delays between them
- start-notification-stream: Starts sending periodic notifications for testing resumability
Same way test other tools as well.
Thanks,
Ramesh Mavuluri
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/rmavuluri/streamable-http-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server