@fractary/codex-mcp 0.9.1 → 0.10.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.
- package/README.md +6 -6
- package/dist/cli.cjs +12 -3
- package/dist/cli.cjs.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@ Add to your `.claude/settings.json`:
|
|
|
37
37
|
"mcpServers": {
|
|
38
38
|
"fractary-codex": {
|
|
39
39
|
"command": "npx",
|
|
40
|
-
"args": ["-y", "@fractary/codex-mcp-server", "--config", ".fractary/
|
|
40
|
+
"args": ["-y", "@fractary/codex-mcp-server", "--config", ".fractary/config.yaml"]
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -46,7 +46,7 @@ Add to your `.claude/settings.json`:
|
|
|
46
46
|
### Stdio Mode (Default)
|
|
47
47
|
|
|
48
48
|
```bash
|
|
49
|
-
fractary-codex-mcp --config .fractary/
|
|
49
|
+
fractary-codex-mcp --config .fractary/config.yaml
|
|
50
50
|
```
|
|
51
51
|
|
|
52
52
|
The server communicates via stdin/stdout using the MCP protocol.
|
|
@@ -61,7 +61,7 @@ The server exposes an SSE (Server-Sent Events) endpoint for HTTP clients.
|
|
|
61
61
|
|
|
62
62
|
## Configuration
|
|
63
63
|
|
|
64
|
-
Create a `.fractary/
|
|
64
|
+
Create a `.fractary/config.yaml` configuration file:
|
|
65
65
|
|
|
66
66
|
```yaml
|
|
67
67
|
# Organization configuration
|
|
@@ -139,7 +139,7 @@ const result = await fetch('codex://fractary/auth-service/specs/WORK-123.md')
|
|
|
139
139
|
|
|
140
140
|
### Environment Variables
|
|
141
141
|
|
|
142
|
-
- `FRACTARY_CONFIG`: Path to configuration file (default: `.fractary/
|
|
142
|
+
- `FRACTARY_CONFIG`: Path to configuration file (default: `.fractary/config.yaml`)
|
|
143
143
|
- `GITHUB_TOKEN`: GitHub personal access token for GitHub storage provider
|
|
144
144
|
- `FRACTARY_CLI`: Path to fractary CLI executable (default: `fractary`)
|
|
145
145
|
- `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`: AWS credentials for S3
|
|
@@ -304,7 +304,7 @@ If you were using the MCP server from `@fractary/codex` (versions ≤0.1.x), upd
|
|
|
304
304
|
"mcpServers": {
|
|
305
305
|
"fractary-codex": {
|
|
306
306
|
"command": "npx",
|
|
307
|
-
"args": ["@fractary/codex", "mcp", "--config", ".fractary/
|
|
307
|
+
"args": ["@fractary/codex", "mcp", "--config", ".fractary/config.yaml"]
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
310
|
}
|
|
@@ -316,7 +316,7 @@ If you were using the MCP server from `@fractary/codex` (versions ≤0.1.x), upd
|
|
|
316
316
|
"mcpServers": {
|
|
317
317
|
"fractary-codex": {
|
|
318
318
|
"command": "npx",
|
|
319
|
-
"args": ["-y", "@fractary/codex-mcp-server", "--config", ".fractary/
|
|
319
|
+
"args": ["-y", "@fractary/codex-mcp-server", "--config", ".fractary/config.yaml"]
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
}
|
package/dist/cli.cjs
CHANGED
|
@@ -15070,14 +15070,23 @@ function expandEnvVars(obj) {
|
|
|
15070
15070
|
return obj;
|
|
15071
15071
|
}
|
|
15072
15072
|
var program2 = new Command();
|
|
15073
|
-
program2.name("fractary-codex-mcp").description("MCP server for Fractary Codex knowledge management").version("0.8.0").option("--config <path>", "Path to config file", ".fractary/
|
|
15073
|
+
program2.name("fractary-codex-mcp").description("MCP server for Fractary Codex knowledge management").version("0.8.0").option("--config <path>", "Path to config file", ".fractary/config.yaml").action(async (options) => {
|
|
15074
15074
|
let config = {};
|
|
15075
15075
|
try {
|
|
15076
15076
|
const configFile = (0, import_fs.readFileSync)(options.config, "utf-8");
|
|
15077
|
-
|
|
15077
|
+
const rawConfig = load(configFile);
|
|
15078
|
+
if (rawConfig && typeof rawConfig === "object" && "codex" in rawConfig) {
|
|
15079
|
+
config = {
|
|
15080
|
+
...rawConfig.codex,
|
|
15081
|
+
// Preserve file section if present (for file plugin integration)
|
|
15082
|
+
file: rawConfig.file
|
|
15083
|
+
};
|
|
15084
|
+
} else {
|
|
15085
|
+
config = rawConfig || {};
|
|
15086
|
+
}
|
|
15078
15087
|
config = expandEnvVars(config);
|
|
15079
15088
|
} catch (error) {
|
|
15080
|
-
if (options.config !== ".fractary/
|
|
15089
|
+
if (options.config !== ".fractary/config.yaml") {
|
|
15081
15090
|
console.error(`Warning: Could not load config file: ${options.config}`);
|
|
15082
15091
|
}
|
|
15083
15092
|
}
|