listen() to start either the HTTP or stdio transport.
For transport selection guidance and common usage patterns, use Listening and Transports.
Overloads
Behavior by call shape
Typical HTTP options
Options
Shared options
HTTP options
Stdio options
Current implementation caveats
These reflect the current HTTP implementation, not just the public type surface:Defaults
- default transport:
stdiowithoutport, otherwisehttp - default HTTP hostname:
127.0.0.1 - default HTTP port:
3000 - default MCP path:
/mcp - default health route: disabled
- default session timeout:
60000