
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
com.github.brymck:with-environment
Advanced tools
Execute a block with overridden environment variables
with-environment
is a library that allows overriding the system environment and executing a block.
Much of this is shamelessly yanked from SystemRules and is just designed to decouple the functionality from JUnit 4 and provide a natural Kotlin interface.
Include this in your POM:
<dependency>
<groupId>com.github.brymck</groupId>
<artifactId>with-environment</artifactId>
<version>0.9.1</version>
</dependency>
And use it as so in Java:
Map<String, String> overrides = new HashMap();
overrides.put("FOO", "bar");
WithEnvironment.withEnvironmentOverrides(overrides, () -> {
String foo = System.getenv("FOO");
System.out.println(foo); // prints "bar"
});
or Kotlin:
val overrides = mapOf("FOO" to "bar")
withEnvironmentOverrides(overrides) {
val foo = System.getenv("FOO");
println(foo) // prints "bar"
}
FAQs
Execute a block with overridden environment variables
We found that com.github.brymck:with-environment demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.