@phidiassj/aiyoperps-mcp-installer 0.5.7 → 0.6.6
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 +4 -3
- package/bin/aiyoperps-mcp-installer.js +6 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,7 +25,8 @@ npx -y @phidiassj/aiyoperps-mcp-installer --url http://127.0.0.1:5078/mcp
|
|
|
25
25
|
|
|
26
26
|
- The installer creates `*.bak` backups before editing local config files.
|
|
27
27
|
- If a host is detected but not considered safe to modify, the installer reports it and skips automatic changes.
|
|
28
|
-
- For Codex, the installer writes `startup_timeout_sec = 60
|
|
29
|
-
- Before writing host config, the installer
|
|
30
|
-
- The generated MCP entry
|
|
28
|
+
- For Codex, the installer writes `startup_timeout_sec = 60`.
|
|
29
|
+
- Before writing host config, the installer installs the bridge package into a stable local runtime directory instead of relying on `npx` at every startup.
|
|
30
|
+
- The generated MCP entry uses `node <local bridge script> --debug-log <local log path> --quiet --url <detected endpoint>`.
|
|
31
|
+
- The generated bridge debug log is stored in the local bridge runtime directory (for example `~/.aiyoperps/mcp-bridge/codex-debug.log` on Linux/WSL).
|
|
31
32
|
- Before installation, the installer probes candidate MCP URLs and only writes config if it finds a reachable endpoint.
|
|
@@ -16,6 +16,7 @@ const BRIDGE_SCRIPT_RELATIVE_PATH = path.join(
|
|
|
16
16
|
'aiyoperps-mcp-bridge',
|
|
17
17
|
'bin',
|
|
18
18
|
'aiyoperps-mcp-bridge.js');
|
|
19
|
+
const BRIDGE_DEBUG_LOG_NAME = 'codex-debug.log';
|
|
19
20
|
const EXECUTABLE_CACHE = new Map();
|
|
20
21
|
let bridgeRuntimePrepared = false;
|
|
21
22
|
let bridgeRuntimeAttempted = false;
|
|
@@ -775,7 +776,7 @@ function resolveCommandLineSpec(platform, url, options = {}) {
|
|
|
775
776
|
} else if (options.healthCheck) {
|
|
776
777
|
bridgeArgs.push('--health-check', '--quiet', '--url', url);
|
|
777
778
|
} else {
|
|
778
|
-
bridgeArgs.push('--quiet', '--url', url);
|
|
779
|
+
bridgeArgs.push('--debug-log', resolveBridgeDebugLogPath(), '--quiet', '--url', url);
|
|
779
780
|
}
|
|
780
781
|
|
|
781
782
|
const installedScriptPath = resolveInstalledBridgeScriptPath();
|
|
@@ -864,6 +865,10 @@ function resolveInstalledBridgeScriptPath() {
|
|
|
864
865
|
return fileExists(scriptPath) ? scriptPath : null;
|
|
865
866
|
}
|
|
866
867
|
|
|
868
|
+
function resolveBridgeDebugLogPath() {
|
|
869
|
+
return path.join(resolveBridgeInstallRoot(), BRIDGE_DEBUG_LOG_NAME);
|
|
870
|
+
}
|
|
871
|
+
|
|
867
872
|
function resolveCodexConfigPath() {
|
|
868
873
|
if (env.CODEX_CONFIG_PATH) {
|
|
869
874
|
return env.CODEX_CONFIG_PATH;
|