Class ClaudeDesktopConfigMerger
java.lang.Object
com.eqixiac.equinix.mcp.server.ClaudeDesktopConfigMerger
Registers this server in a Claude Desktop
claude_desktop_config.json by merging
into the mcpServers.equinix entry. connect-claude-desktop.ps1 (Windows) and
connect-claude-desktop.sh (macOS, Linux) both run it from the built server jar, so the
merge behaves the same on every platform:
java -cp equinix-sdk-java-<v>-mcp-server.jar com.eqixiac.equinix.mcp.server.ClaudeDesktopConfigMerger \
--config <claude_desktop_config.json> --jar <server jar> --repo <repository dir> [--embed-credentials]
Merge rules for mcpServers.equinix:
- every other server, top-level setting and unknown field is kept;
commandis kept when set (for example an absolutejavapath), elsejava;args: the value after-jaris replaced with the new jar (or-jar <jar>is prepended); other arguments (--toolsets, JVM options) are kept; a previous--env-filepair is replaced;env: every variable is kept (EQUINIX_SANDBOX,EQUINIX_MCP_TOOLSETS, ...) except the two credential keys, which are removed by default;- by default no secret is written:
cwdis set to the repository and--env-file <repo>/.env.localis added, so the server reads the credentials from.env.local(the flag also covers hosts that ignorecwd). With--embed-credentialsthe two keys are copied intoenvinstead, in plain text.
Before writing, the existing file is copied to <config>.bak-<timestamp>. A file that is
not a JSON object is left untouched and the run fails. No credential value is ever printed.
-
Field Summary
Fields -
Method Summary
-
Field Details
-
ENTRY
-
-
Method Details
-
main
Runs the merge; exits non-zero with a message on stderr on failure.- Parameters:
args---config <file> --jar <file> --repo <dir> [--embed-credentials]
-