converse-mcp-server 2.20.5 → 2.20.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "converse-mcp-server",
3
- "version": "2.20.5",
3
+ "version": "2.20.6",
4
4
  "description": "Converse MCP Server - Converse with other LLMs with chat and consensus tools",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -9,7 +9,7 @@
9
9
  * - Manages a singleton CopilotClient (spawns CLI process via JSON-RPC)
10
10
  * - Creates a fresh CopilotSession per request, destroyed after each request
11
11
  * - Bridges SDK push-based events to pull-based async generator for streaming
12
- * - Requires Copilot CLI installed and authenticated (copilot auth login)
12
+ * - Requires GitHub CLI authenticated (gh auth login) with active Copilot subscription
13
13
  */
14
14
 
15
15
  import { debugLog, debugError } from '../utils/console.js';
@@ -299,7 +299,7 @@ async function getCopilotSDK() {
299
299
  return CopilotClient;
300
300
  } catch (error) {
301
301
  throw new CopilotProviderError(
302
- 'Copilot SDK not available. Ensure @github/copilot-sdk is installed and Copilot CLI is authenticated (copilot auth login).',
302
+ 'Copilot SDK not available. Ensure @github/copilot-sdk is installed and GitHub CLI is authenticated (gh auth login).',
303
303
  ErrorCodes.API_ERROR,
304
304
  error,
305
305
  );
@@ -866,13 +866,13 @@ export const copilotProvider = {
866
866
  debugError('[Copilot SDK] Execution error', error);
867
867
 
868
868
  if (
869
- error.message?.includes('authentication') ||
870
- error.message?.includes('auth') ||
871
869
  error.message?.includes('not authenticated') ||
872
- error.message?.includes('login')
870
+ error.message?.includes('authentication failed') ||
871
+ error.message?.includes('not logged in') ||
872
+ error.message?.includes('login required')
873
873
  ) {
874
874
  throw new CopilotProviderError(
875
- 'Copilot SDK authentication failed. Install and authenticate Copilot CLI: copilot auth login',
875
+ `Copilot SDK authentication failed. Ensure GitHub CLI is authenticated (gh auth login) and you have an active Copilot subscription. Original error: ${error.message}`,
876
876
  ErrorCodes.INVALID_API_KEY,
877
877
  error,
878
878
  );