This function starts a simple MCP server over HTTP with a single "hello" tool
that demonstrates the mcpr package is working correctly. Unlike the stdio version,
this server can handle multiple clients and is easier to test with standard HTTP tools.
Usage
mcp_hello_world_http(
host = "127.0.0.1",
port = 8080,
docs = FALSE,
quiet = FALSE
)
Arguments
- host
Character string specifying the host to bind to (default: "127.0.0.1")
- port
Integer specifying the port to listen on (default: 8080)
- docs
Logical indicating whether to enable Swagger documentation (default: FALSE)
- quiet
Logical indicating whether to suppress startup messages (default: FALSE)
Value
Invisible NULL. The function starts the server which runs until interrupted.