Skip to content

readConfig

readConfig(env?): ServerConfig

Reads the configuration, or throws ConfigError with a message written for the person editing an MCP client’s JSON — it names the variable and where to get its value, because that is the only thing they can act on.

Record<string, string | undefined> = process.env

ServerConfig