@aiwerk/mcp-bridge 2.8.39 → 2.8.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/mcp-bridge.js +5 -5
- package/package.json +1 -1
package/dist/bin/mcp-bridge.js
CHANGED
|
@@ -729,11 +729,6 @@ async function cmdAuth(args, logger) {
|
|
|
729
729
|
const shown = new Set();
|
|
730
730
|
if (config) {
|
|
731
731
|
for (const [name, serverConfig] of Object.entries(config.servers)) {
|
|
732
|
-
const authType = serverConfig.auth?.type ?? "none";
|
|
733
|
-
const grantType = serverConfig.auth?.type === "oauth2" && "grantType" in serverConfig.auth
|
|
734
|
-
? serverConfig.auth.grantType
|
|
735
|
-
: serverConfig.auth?.type === "oauth2" ? "client_credentials" : "";
|
|
736
|
-
const label = authType === "oauth2" ? `oauth2 (${grantType})` : authType;
|
|
737
732
|
// Find required env vars from raw config (before env var resolution)
|
|
738
733
|
const envKeys = [];
|
|
739
734
|
try {
|
|
@@ -747,6 +742,11 @@ async function cmdAuth(args, logger) {
|
|
|
747
742
|
}
|
|
748
743
|
}
|
|
749
744
|
catch { /* ignore */ }
|
|
745
|
+
const authType = serverConfig.auth?.type ?? (envKeys.length > 0 ? "env-key" : "none");
|
|
746
|
+
const grantType = serverConfig.auth?.type === "oauth2" && "grantType" in serverConfig.auth
|
|
747
|
+
? serverConfig.auth.grantType
|
|
748
|
+
: serverConfig.auth?.type === "oauth2" ? "client_credentials" : "";
|
|
749
|
+
const label = authType === "oauth2" ? `oauth2 (${grantType})` : authType;
|
|
750
750
|
let envStatus = "-";
|
|
751
751
|
if (envKeys.length > 0) {
|
|
752
752
|
const setKeys = envKeys.filter(k => envVars.has(k) || process.env[k]);
|