@fractary/codex-mcp 0.9.1 → 0.10.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/README.md +6 -6
- package/dist/cli.cjs +24 -6
- package/dist/cli.cjs.map +1 -1
- package/dist/index.cjs +12 -3
- package/dist/index.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
|
@@ -12667,12 +12667,21 @@ var SyncRulesSchema = external_exports.object({
|
|
|
12667
12667
|
defaultInclude: external_exports.array(external_exports.string()).optional(),
|
|
12668
12668
|
defaultExclude: external_exports.array(external_exports.string()).optional()
|
|
12669
12669
|
});
|
|
12670
|
+
var DirectionalSyncConfigSchema = external_exports.object({
|
|
12671
|
+
/** Patterns to include (required) */
|
|
12672
|
+
include: external_exports.array(external_exports.string()),
|
|
12673
|
+
/** Patterns to exclude (optional) */
|
|
12674
|
+
exclude: external_exports.array(external_exports.string()).optional()
|
|
12675
|
+
});
|
|
12670
12676
|
var DirectionalSyncSchema = external_exports.object({
|
|
12677
|
+
// New format (v0.7.0+) - Recommended
|
|
12671
12678
|
// Patterns for files to push from this project to codex
|
|
12672
|
-
to_codex:
|
|
12679
|
+
to_codex: DirectionalSyncConfigSchema.optional(),
|
|
12673
12680
|
// Patterns for files to pull from codex to this project
|
|
12674
|
-
|
|
12675
|
-
|
|
12681
|
+
from_codex: DirectionalSyncConfigSchema.optional(),
|
|
12682
|
+
// Global exclude patterns (applied to both directions)
|
|
12683
|
+
exclude: external_exports.array(external_exports.string()).optional(),
|
|
12684
|
+
// Legacy format (deprecated, backward compatible)
|
|
12676
12685
|
// Org-level defaults (only in codex repository config)
|
|
12677
12686
|
default_to_codex: external_exports.array(external_exports.string()).optional(),
|
|
12678
12687
|
default_from_codex: external_exports.array(external_exports.string()).optional()
|
|
@@ -15070,14 +15079,23 @@ function expandEnvVars(obj) {
|
|
|
15070
15079
|
return obj;
|
|
15071
15080
|
}
|
|
15072
15081
|
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/
|
|
15082
|
+
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
15083
|
let config = {};
|
|
15075
15084
|
try {
|
|
15076
15085
|
const configFile = (0, import_fs.readFileSync)(options.config, "utf-8");
|
|
15077
|
-
|
|
15086
|
+
const rawConfig = load(configFile);
|
|
15087
|
+
if (rawConfig && typeof rawConfig === "object" && "codex" in rawConfig) {
|
|
15088
|
+
config = {
|
|
15089
|
+
...rawConfig.codex,
|
|
15090
|
+
// Preserve file section if present (for file plugin integration)
|
|
15091
|
+
file: rawConfig.file
|
|
15092
|
+
};
|
|
15093
|
+
} else {
|
|
15094
|
+
config = rawConfig || {};
|
|
15095
|
+
}
|
|
15078
15096
|
config = expandEnvVars(config);
|
|
15079
15097
|
} catch (error) {
|
|
15080
|
-
if (options.config !== ".fractary/
|
|
15098
|
+
if (options.config !== ".fractary/config.yaml") {
|
|
15081
15099
|
console.error(`Warning: Could not load config file: ${options.config}`);
|
|
15082
15100
|
}
|
|
15083
15101
|
}
|