Extract the API key from a parsed config object.
Tries four locations in priority order (see module docblock).
Parsed mcp-config.json object.
mcp-config.json
The extracted key (Bearer-prefix stripped), or undefined.
undefined
Extract the API key from a parsed config object.
Tries four locations in priority order (see module docblock).