Server API¶
The main MCP server implementation and configuration.
Server Configuration¶
The server can be configured using environment variables or command-line arguments.
Environment Variables¶
Variable |
Default |
Description |
|---|---|---|
|
All services |
Comma-separated list of services to enable |
|
|
Transport method (stdio, sse, streamable-http) |
|
|
Enable debug logging |
|
|
Host for HTTP transports |
|
|
Port for HTTP transports |
Command Line Arguments¶
Argument |
Default |
Description |
|---|---|---|
|
All services |
Comma-separated list of services to enable |
|
|
Transport method (stdio, sse, streamable-http) |
|
|
Enable debug logging |
|
|
Host for HTTP transports |
|
|
Port for HTTP transports |
Transport Methods¶
The server supports three transport methods:
Stdio Transport¶
Default transport method using standard input/output for communication.
from zscaler_mcp.server import main
main()
SSE Transport¶
Server-Sent Events transport for web-based clients.
from zscaler_mcp.server import main
main(transport="sse", host="0.0.0.0", port=8000)
Streamable HTTP Transport¶
HTTP-based transport with streaming support.
from zscaler_mcp.server import main
main(transport="streamable-http", host="0.0.0.0", port=8000)