Skip to content

readConfig

Describes@ebitex/mcp 1.xSee the changelog:@ebitex/mcp

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 variables and where to get a value, because that is the only thing they can act on.

At least one app must be configured: a server with no app has nothing to offer, and starting it anyway would look like a working server to a client that then lists no tools.

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

ServerConfig