u-foo 3.0.19 → 3.0.20
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/bin/ufoo.js
CHANGED
|
@@ -21,7 +21,7 @@ function printMcpHelp() {
|
|
|
21
21
|
console.log("Options:");
|
|
22
22
|
console.log(" --no-auto-start Do not auto-start the home-scoped global controller daemon");
|
|
23
23
|
console.log(" --json Print status or restart results as JSON");
|
|
24
|
-
console.log(" --dry-run Print a Codex
|
|
24
|
+
console.log(" --dry-run Print a sanitized Codex migration preview without writing it");
|
|
25
25
|
console.log(" -h, --help Display help for the MCP bridge command");
|
|
26
26
|
console.log("");
|
|
27
27
|
console.log("Notes:");
|
package/package.json
CHANGED
|
@@ -97,7 +97,7 @@ function configureCodexMcp(options = {}) {
|
|
|
97
97
|
const existing = fs.existsSync(target) ? fs.readFileSync(target, "utf8") : "";
|
|
98
98
|
const next = renderCodexConfig(existing, connection);
|
|
99
99
|
if (options.dryRun === true) {
|
|
100
|
-
const
|
|
100
|
+
const managedBlock = buildCodexManagedBlock({
|
|
101
101
|
...connection,
|
|
102
102
|
token: "<redacted>",
|
|
103
103
|
});
|
|
@@ -108,7 +108,7 @@ function configureCodexMcp(options = {}) {
|
|
|
108
108
|
transport: "streamable_http",
|
|
109
109
|
endpoint: connection.endpoint,
|
|
110
110
|
changed: next !== existing,
|
|
111
|
-
|
|
111
|
+
managed_block: managedBlock,
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
|
|
@@ -151,7 +151,10 @@ function runMcpConfigureCli(host, options = {}) {
|
|
|
151
151
|
}
|
|
152
152
|
const result = configureCodexMcp(options);
|
|
153
153
|
if (options.dryRun === true) {
|
|
154
|
-
process.stdout.write(result.
|
|
154
|
+
process.stdout.write(`Target: ${result.target}\n`);
|
|
155
|
+
process.stdout.write(`Changed: ${result.changed ? "yes" : "no"}\n`);
|
|
156
|
+
process.stdout.write(`Transport: Streamable HTTP ${result.endpoint}\n\n`);
|
|
157
|
+
process.stdout.write(`${result.managed_block}\n`);
|
|
155
158
|
} else {
|
|
156
159
|
process.stdout.write(`Configured Codex MCP at ${result.target}\n`);
|
|
157
160
|
process.stdout.write(`Transport: Streamable HTTP ${result.endpoint}\n`);
|