-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathcodex_config_READY_TO_USE.toml
More file actions
70 lines (64 loc) · 2.44 KB
/
codex_config_READY_TO_USE.toml
File metadata and controls
70 lines (64 loc) · 2.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# ============================================================================
# CODEX CLI CONFIGURATION - READY TO USE
# ============================================================================
#
# File Location: C:\Users\preda\.codex\config.toml
#
# Instructions:
# 1. Copy this entire file content
# 2. Paste it into C:\Users\preda\.codex\config.toml
# 3. Replace "YOUR-PROJECT-NAME" with your actual project folder name
# 4. Save and restart Codex CLI
#
# ============================================================================
# Context Engine MCP Server with Automatic File Watching
[mcp_servers.context-engine]
command = "node"
args = [
"D:\\GitProjects\\context-engine\\dist\\index.js",
"--workspace",
"D:\\GitProjects\\YOUR-PROJECT-NAME", # ← CHANGE THIS to your project path
"--index", # Indexes all files on startup
"--watch" # Auto-reindexes when files change
]
# Environment variables (OpenAI session first)
[mcp_servers.context-engine.env]
CE_AI_PROVIDER = "openai_session"
# Windows-safe launch to avoid PATH/PATHEXT issues in MCP subprocesses.
CE_OPENAI_SESSION_CMD = "cmd"
CE_OPENAI_SESSION_ARGS_JSON = "[\"/d\",\"/s\",\"/c\",\"D:\\\\npm-global\\\\codex.cmd\"]"
CE_OPENAI_SESSION_REFRESH_MODE = "per_call"
CE_OPENAI_SESSION_IDENTITY_TTL_MS = "30000"
CE_OPENAI_SESSION_HEALTHCHECK_TIMEOUT_MS = "10000"
# ============================================================================
# EXAMPLE: Multiple Projects
# ============================================================================
# Uncomment and customize if you want to index multiple projects:
# [mcp_servers.context-engine-project1]
# command = "node"
# args = [
# "D:\\GitProjects\\context-engine\\dist\\index.js",
# "--workspace",
# "D:\\Projects\\my-first-project",
# "--index",
# "--watch"
# ]
# [mcp_servers.context-engine-project2]
# command = "node"
# args = [
# "D:\\GitProjects\\context-engine\\dist\\index.js",
# "--workspace",
# "D:\\Projects\\my-second-project",
# "--index",
# "--watch"
# ]
# ============================================================================
# VERIFICATION
# ============================================================================
# After saving and restarting Codex CLI, run:
# codex mcp list
#
# You should see:
# context-engine: connected
#
# ============================================================================