delimit-cli 3.0.2 → 3.1.0

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.
@@ -139,6 +139,50 @@ async function main() {
139
139
  log(` ${green('✓')} Added delimit to ${MCP_CONFIG}`);
140
140
  }
141
141
 
142
+ // Step 3b: Configure Codex MCP (if installed)
143
+ const CODEX_CONFIG = path.join(os.homedir(), '.codex', 'config.toml');
144
+ if (fs.existsSync(CODEX_CONFIG)) {
145
+ try {
146
+ let toml = fs.readFileSync(CODEX_CONFIG, 'utf-8');
147
+ if (toml.includes('[mcp_servers.delimit]')) {
148
+ log(` ${green('✓')} Delimit already in Codex config`);
149
+ } else {
150
+ const codexEntry = `\n[mcp_servers.delimit]\ncommand = "${python}"\nargs = ["${actualServer}"]\ncwd = "${path.join(DELIMIT_HOME, 'server')}"\n`;
151
+ toml += codexEntry;
152
+ fs.writeFileSync(CODEX_CONFIG, toml);
153
+ log(` ${green('✓')} Added delimit to Codex (${CODEX_CONFIG})`);
154
+ }
155
+ } catch (e) {
156
+ log(` ${yellow('!')} Could not configure Codex: ${e.message}`);
157
+ }
158
+ }
159
+
160
+ // Step 3c: Configure Cursor MCP (if installed)
161
+ const CURSOR_CONFIG = path.join(os.homedir(), '.cursor', 'mcp.json');
162
+ if (fs.existsSync(path.join(os.homedir(), '.cursor'))) {
163
+ try {
164
+ let cursorConfig = {};
165
+ if (fs.existsSync(CURSOR_CONFIG)) {
166
+ cursorConfig = JSON.parse(fs.readFileSync(CURSOR_CONFIG, 'utf-8'));
167
+ }
168
+ if (!cursorConfig.mcpServers) cursorConfig.mcpServers = {};
169
+ if (cursorConfig.mcpServers.delimit) {
170
+ log(` ${green('✓')} Delimit already in Cursor config`);
171
+ } else {
172
+ cursorConfig.mcpServers.delimit = {
173
+ command: python,
174
+ args: [actualServer],
175
+ cwd: path.join(DELIMIT_HOME, 'server'),
176
+ env: { PYTHONPATH: path.join(DELIMIT_HOME, 'server') }
177
+ };
178
+ fs.writeFileSync(CURSOR_CONFIG, JSON.stringify(cursorConfig, null, 2));
179
+ log(` ${green('✓')} Added delimit to Cursor (${CURSOR_CONFIG})`);
180
+ }
181
+ } catch (e) {
182
+ log(` ${yellow('!')} Could not configure Cursor: ${e.message}`);
183
+ }
184
+ }
185
+
142
186
  // Step 4: Install default agents
143
187
  step(4, 'Installing governance agents...');
144
188
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "delimit-cli",
3
- "version": "3.0.2",
3
+ "version": "3.1.0",
4
4
  "description": "AI agent guardrails for developers. Install governance tools into Claude Code with one command.",
5
5
  "main": "index.js",
6
6
  "bin": {