converse-mcp-server 2.20.4 → 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 +4 -4
- package/src/providers/copilot.js +6 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "converse-mcp-server",
|
|
3
|
-
"version": "2.20.
|
|
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",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
".env.example"
|
|
95
95
|
],
|
|
96
96
|
"dependencies": {
|
|
97
|
-
"@anthropic-ai/claude-agent-sdk": "^0.2.
|
|
97
|
+
"@anthropic-ai/claude-agent-sdk": "^0.2.76",
|
|
98
98
|
"@anthropic-ai/sdk": "^0.78.0",
|
|
99
99
|
"@github/copilot-sdk": "^0.1.32",
|
|
100
100
|
"@google/genai": "^1.45.0",
|
|
@@ -106,9 +106,9 @@
|
|
|
106
106
|
"cors": "^2.8.6",
|
|
107
107
|
"dotenv": "^17.3.1",
|
|
108
108
|
"express": "^5.2.1",
|
|
109
|
-
"lru-cache": "^11.2.
|
|
109
|
+
"lru-cache": "^11.2.7",
|
|
110
110
|
"nanoid": "^5.1.6",
|
|
111
|
-
"openai": "^6.
|
|
111
|
+
"openai": "^6.29.0",
|
|
112
112
|
"p-limit": "^7.3.0",
|
|
113
113
|
"vite": "^8.0.0"
|
|
114
114
|
},
|
package/src/providers/copilot.js
CHANGED
|
@@ -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
|
|
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
|
|
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('
|
|
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
|
-
|
|
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
|
);
|