@aexol/spectral 0.2.12 → 0.2.13
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/mcp/proxy-modes.js +2 -7
- package/package.json +1 -1
package/dist/mcp/proxy-modes.js
CHANGED
|
@@ -24,13 +24,8 @@ async function attemptAutoAuth(state, serverName) {
|
|
|
24
24
|
return { status: "skipped" };
|
|
25
25
|
}
|
|
26
26
|
const oauthConfig = definition.oauth;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
return {
|
|
30
|
-
status: "failed",
|
|
31
|
-
message: getAuthRequiredMessage(state, serverName, `Server "${serverName}" requires OAuth authentication. Run /mcp-auth ${serverName} in an interactive session.`),
|
|
32
|
-
};
|
|
33
|
-
}
|
|
27
|
+
// OAuth flow works even without TUI — open() uses the system browser and the
|
|
28
|
+
// callback server handles the redirect.
|
|
34
29
|
try {
|
|
35
30
|
await authenticate(serverName, definition.url, definition);
|
|
36
31
|
return { status: "success" };
|