Skip to content

Commit f7ed66b

Browse files
updated readme for proxy config
1 parent 7b9e618 commit f7ed66b

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

README.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -269,13 +269,7 @@ https://ggozad.github.io/oterm/
269269
If you need to configure a proxy for your Java process when using the standalone JAR, you can set the Java system properties for HTTP and HTTPS proxies:
270270

271271
```bash
272-
java -Dhttp.proxyHost=proxy.example.com -Dhttp.proxyPort=8080 -Dhttps.proxyHost=proxy.example.com -Dhttps.proxyPort=8080 -jar /path/to/mcp-contrast-0.0.1-SNAPSHOT.jar --CONTRAST_HOST_NAME=example.contrastsecurity.com --CONTRAST_API_KEY=example --CONTRAST_SERVICE_KEY=example --CONTRAST_USERNAME=example@example.com --CONTRAST_ORG_ID=example
273-
```
274-
275-
If your proxy requires authentication, you can also set:
276-
277-
```bash
278-
java -Dhttp.proxyHost=proxy.example.com -Dhttp.proxyPort=8080 -Dhttps.proxyHost=proxy.example.com -Dhttps.proxyPort=8080 -Dhttp.proxyUser=username -Dhttp.proxyPassword=password -Dhttps.proxyUser=username -Dhttps.proxyPassword=password -jar /path/to/mcp-contrast-0.0.1-SNAPSHOT.jar --CONTRAST_HOST_NAME=example.contrastsecurity.com --CONTRAST_API_KEY=example --CONTRAST_SERVICE_KEY=example --CONTRAST_USERNAME=example@example.com --CONTRAST_ORG_ID=example
272+
java -Dhttp_proxy_host=proxy.example.com -Dhttp_proxy_port=8080 -jar /path/to/mcp-contrast-0.0.1-SNAPSHOT.jar --CONTRAST_HOST_NAME=example.contrastsecurity.com --CONTRAST_API_KEY=example --CONTRAST_SERVICE_KEY=example --CONTRAST_USERNAME=example@example.com --CONTRAST_ORG_ID=example
279273
```
280274

281275
When configuring in your config.json file, include the proxy settings in the args array:
@@ -285,10 +279,8 @@ When configuring in your config.json file, include the proxy settings in the arg
285279
"contrast-assess": {
286280
"command": "/usr/bin/java",
287281
"args": [
288-
"-Dhttp.proxyHost=proxy.example.com",
289-
"-Dhttp.proxyPort=8080",
290-
"-Dhttps.proxyHost=proxy.example.com",
291-
"-Dhttps.proxyPort=8080",
282+
"-Dhttp_proxy_host=proxy.example.com",
283+
"-Dhttp_proxy_port=8080",
292284
"-jar",
293285
"/Users/name/workspace/mcp-contrast/mcp-contrast/target/mcp-contrast-0.0.1-SNAPSHOT.jar",
294286
"--CONTRAST_HOST_NAME=example.contrastsecurity.com",

0 commit comments

Comments
 (0)