converse-mcp-server 2.0.0 → 2.0.1
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/.env.example +90 -90
- package/bin/converse.js +0 -0
- package/docs/PROVIDERS.md +261 -261
- package/package.json +52 -52
- package/src/providers/codex.js +5 -3
- package/src/providers/index.js +96 -96
- package/src/utils/pathUtils.js +223 -223
package/.env.example
CHANGED
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
# Converse MCP Server Environment Configuration
|
|
2
|
-
# Copy this file to .env and fill in your values
|
|
3
|
-
|
|
4
|
-
# ============================================
|
|
5
|
-
# Google/Gemini Configuration Options
|
|
6
|
-
# ============================================
|
|
7
|
-
# You can use EITHER Gemini Developer API OR Vertex AI
|
|
8
|
-
|
|
9
|
-
# Option 1: Gemini Developer API (simpler setup)
|
|
10
|
-
# Get your API key from: https://makersuite.google.com/app/apikey
|
|
11
|
-
# You can use either GOOGLE_API_KEY or GEMINI_API_KEY (GOOGLE_API_KEY takes priority)
|
|
12
|
-
GOOGLE_API_KEY=your_google_api_key_here
|
|
13
|
-
# or
|
|
14
|
-
GEMINI_API_KEY=your_gemini_api_key_here
|
|
15
|
-
|
|
16
|
-
# Option 2: Google Vertex AI (enterprise/production)
|
|
17
|
-
# Requires Google Cloud project with billing and Vertex AI API enabled
|
|
18
|
-
# Set these THREE variables together:
|
|
19
|
-
# GOOGLE_GENAI_USE_VERTEXAI=true
|
|
20
|
-
# GOOGLE_CLOUD_PROJECT=your-project-id
|
|
21
|
-
# GOOGLE_CLOUD_LOCATION=us-central1
|
|
22
|
-
|
|
23
|
-
# Optional: API version (v1, v1beta, v1alpha) - defaults to v1beta
|
|
24
|
-
# GOOGLE_API_VERSION=v1beta
|
|
25
|
-
|
|
26
|
-
# ============================================
|
|
27
|
-
# Other Provider API Keys
|
|
28
|
-
# ============================================
|
|
29
|
-
|
|
30
|
-
# Get your OpenAI API key from: https://platform.openai.com/api-keys
|
|
31
|
-
OPENAI_API_KEY=your_openai_api_key_here
|
|
32
|
-
|
|
33
|
-
# Get your X.AI API key from: https://console.x.ai/
|
|
34
|
-
XAI_API_KEY=your_xai_api_key_here
|
|
35
|
-
|
|
36
|
-
# Get your Anthropic API key from: https://console.anthropic.com/
|
|
37
|
-
ANTHROPIC_API_KEY=your_anthropic_api_key_here
|
|
38
|
-
|
|
39
|
-
# Get your Mistral API key from: https://console.mistral.ai/
|
|
40
|
-
MISTRAL_API_KEY=your_mistral_api_key_here
|
|
41
|
-
|
|
42
|
-
# Get your DeepSeek API key from: https://platform.deepseek.com/
|
|
43
|
-
DEEPSEEK_API_KEY=your_deepseek_api_key_here
|
|
44
|
-
|
|
45
|
-
# Get your OpenRouter API key from: https://openrouter.ai/keys
|
|
46
|
-
OPENROUTER_API_KEY=your_openrouter_api_key_here
|
|
47
|
-
|
|
48
|
-
# OpenRouter requires a referer for compliance (your app URL or GitHub repo)
|
|
49
|
-
OPENROUTER_REFERER=https://github.com/FallDownTheSystem/converse
|
|
50
|
-
|
|
51
|
-
# ============================================
|
|
52
|
-
# Codex Configuration (Optional)
|
|
53
|
-
# ============================================
|
|
54
|
-
|
|
55
|
-
# Codex is an agentic coding assistant that runs locally
|
|
56
|
-
# Requires: ChatGPT login OR CODEX_API_KEY (NOT OPENAI_API_KEY)
|
|
57
|
-
# Install SDK: npm install @openai/codex-sdk
|
|
58
|
-
|
|
59
|
-
# API key for Codex (alternative to ChatGPT login, headless/server mode)
|
|
60
|
-
# CODEX_API_KEY=your_codex_key_here
|
|
61
|
-
|
|
62
|
-
# Sandbox mode controls file system access (default: read-only)
|
|
63
|
-
# read-only: Can read files but not modify them (recommended for safety)
|
|
64
|
-
# workspace-write: Can modify files in workspace directory only
|
|
65
|
-
# danger-full-access: Full file system access (use only in containers)
|
|
66
|
-
# CODEX_SANDBOX_MODE=read-only
|
|
67
|
-
|
|
68
|
-
# Skip Git repository check (default: true)
|
|
69
|
-
# Set to false to require working directory is a Git repository
|
|
70
|
-
# CODEX_SKIP_GIT_CHECK=true
|
|
71
|
-
|
|
72
|
-
# Approval policy for command execution (default: never)
|
|
73
|
-
# never: Never prompt for approval (recommended for headless mode)
|
|
74
|
-
# untrusted: Prompt for untrusted commands
|
|
75
|
-
# on-failure: Prompt when commands fail
|
|
76
|
-
# on-request: Let model decide when to request approval
|
|
77
|
-
# WARNING: Interactive policies may cause hangs in server/headless mode
|
|
78
|
-
# CODEX_APPROVAL_POLICY=never
|
|
79
|
-
|
|
80
|
-
# Default model when user specifies model: 'codex' (default: gpt-5-codex)
|
|
81
|
-
# CODEX_DEFAULT_MODEL=gpt-5-codex
|
|
82
|
-
|
|
83
|
-
# ============================================
|
|
84
|
-
# Server Configuration
|
|
85
|
-
# ============================================
|
|
86
|
-
|
|
87
|
-
# Disable async execution tools (check_status, cancel_job) and async parameter
|
|
88
|
-
# When true, removes async capabilities from chat/consensus tools
|
|
89
|
-
# DISABLE_ASYNC_TOOLS=false
|
|
90
|
-
|
|
1
|
+
# Converse MCP Server Environment Configuration
|
|
2
|
+
# Copy this file to .env and fill in your values
|
|
3
|
+
|
|
4
|
+
# ============================================
|
|
5
|
+
# Google/Gemini Configuration Options
|
|
6
|
+
# ============================================
|
|
7
|
+
# You can use EITHER Gemini Developer API OR Vertex AI
|
|
8
|
+
|
|
9
|
+
# Option 1: Gemini Developer API (simpler setup)
|
|
10
|
+
# Get your API key from: https://makersuite.google.com/app/apikey
|
|
11
|
+
# You can use either GOOGLE_API_KEY or GEMINI_API_KEY (GOOGLE_API_KEY takes priority)
|
|
12
|
+
GOOGLE_API_KEY=your_google_api_key_here
|
|
13
|
+
# or
|
|
14
|
+
GEMINI_API_KEY=your_gemini_api_key_here
|
|
15
|
+
|
|
16
|
+
# Option 2: Google Vertex AI (enterprise/production)
|
|
17
|
+
# Requires Google Cloud project with billing and Vertex AI API enabled
|
|
18
|
+
# Set these THREE variables together:
|
|
19
|
+
# GOOGLE_GENAI_USE_VERTEXAI=true
|
|
20
|
+
# GOOGLE_CLOUD_PROJECT=your-project-id
|
|
21
|
+
# GOOGLE_CLOUD_LOCATION=us-central1
|
|
22
|
+
|
|
23
|
+
# Optional: API version (v1, v1beta, v1alpha) - defaults to v1beta
|
|
24
|
+
# GOOGLE_API_VERSION=v1beta
|
|
25
|
+
|
|
26
|
+
# ============================================
|
|
27
|
+
# Other Provider API Keys
|
|
28
|
+
# ============================================
|
|
29
|
+
|
|
30
|
+
# Get your OpenAI API key from: https://platform.openai.com/api-keys
|
|
31
|
+
OPENAI_API_KEY=your_openai_api_key_here
|
|
32
|
+
|
|
33
|
+
# Get your X.AI API key from: https://console.x.ai/
|
|
34
|
+
XAI_API_KEY=your_xai_api_key_here
|
|
35
|
+
|
|
36
|
+
# Get your Anthropic API key from: https://console.anthropic.com/
|
|
37
|
+
ANTHROPIC_API_KEY=your_anthropic_api_key_here
|
|
38
|
+
|
|
39
|
+
# Get your Mistral API key from: https://console.mistral.ai/
|
|
40
|
+
MISTRAL_API_KEY=your_mistral_api_key_here
|
|
41
|
+
|
|
42
|
+
# Get your DeepSeek API key from: https://platform.deepseek.com/
|
|
43
|
+
DEEPSEEK_API_KEY=your_deepseek_api_key_here
|
|
44
|
+
|
|
45
|
+
# Get your OpenRouter API key from: https://openrouter.ai/keys
|
|
46
|
+
OPENROUTER_API_KEY=your_openrouter_api_key_here
|
|
47
|
+
|
|
48
|
+
# OpenRouter requires a referer for compliance (your app URL or GitHub repo)
|
|
49
|
+
OPENROUTER_REFERER=https://github.com/FallDownTheSystem/converse
|
|
50
|
+
|
|
51
|
+
# ============================================
|
|
52
|
+
# Codex Configuration (Optional)
|
|
53
|
+
# ============================================
|
|
54
|
+
|
|
55
|
+
# Codex is an agentic coding assistant that runs locally
|
|
56
|
+
# Requires: ChatGPT login OR CODEX_API_KEY (NOT OPENAI_API_KEY)
|
|
57
|
+
# Install SDK: npm install @openai/codex-sdk
|
|
58
|
+
|
|
59
|
+
# API key for Codex (alternative to ChatGPT login, headless/server mode)
|
|
60
|
+
# CODEX_API_KEY=your_codex_key_here
|
|
61
|
+
|
|
62
|
+
# Sandbox mode controls file system access (default: read-only)
|
|
63
|
+
# read-only: Can read files but not modify them (recommended for safety)
|
|
64
|
+
# workspace-write: Can modify files in workspace directory only
|
|
65
|
+
# danger-full-access: Full file system access (use only in containers)
|
|
66
|
+
# CODEX_SANDBOX_MODE=read-only
|
|
67
|
+
|
|
68
|
+
# Skip Git repository check (default: true)
|
|
69
|
+
# Set to false to require working directory is a Git repository
|
|
70
|
+
# CODEX_SKIP_GIT_CHECK=true
|
|
71
|
+
|
|
72
|
+
# Approval policy for command execution (default: never)
|
|
73
|
+
# never: Never prompt for approval (recommended for headless mode)
|
|
74
|
+
# untrusted: Prompt for untrusted commands
|
|
75
|
+
# on-failure: Prompt when commands fail
|
|
76
|
+
# on-request: Let model decide when to request approval
|
|
77
|
+
# WARNING: Interactive policies may cause hangs in server/headless mode
|
|
78
|
+
# CODEX_APPROVAL_POLICY=never
|
|
79
|
+
|
|
80
|
+
# Default model when user specifies model: 'codex' (default: gpt-5-codex)
|
|
81
|
+
# CODEX_DEFAULT_MODEL=gpt-5-codex
|
|
82
|
+
|
|
83
|
+
# ============================================
|
|
84
|
+
# Server Configuration
|
|
85
|
+
# ============================================
|
|
86
|
+
|
|
87
|
+
# Disable async execution tools (check_status, cancel_job) and async parameter
|
|
88
|
+
# When true, removes async capabilities from chat/consensus tools
|
|
89
|
+
# DISABLE_ASYNC_TOOLS=false
|
|
90
|
+
|
package/bin/converse.js
CHANGED
|
File without changes
|