eca
eca copied to clipboard
MCP config command not working when `env` is involved.
Hello,
On MacOS.
MCP configured -
"strimzi-kafka": {
"command": "/usr/bin/env -S mise x [email protected] -- java -jar /Users/ckoneru/bin/strimzi-kafka-mcp/strimzi-mcp-server.jar",
"disabled": true
}
command working in the terminal -
/usr/bin/env -S mise x [email protected] -- java -jar /Users/ckoneru/bin/strimzi-kafka-mcp/strimzi-mcp-server.jar
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::allocateMemory has been called by io.netty.util.internal.PlatformDependent0$2 (file:/Users/ckoneru/bin/strimzi-kafka-mcp/strimzi-mcp-server.jar)
WARNING: Please consider reporting this to the maintainers of class io.netty.util.internal.PlatformDependent0$2
WARNING: sun.misc.Unsafe::allocateMemory will be removed in a future release
{"jsonrpc":"2.0","method":"notifications/tools/list_changed"}
{"jsonrpc":"2.0","method":"notifications/tools/list_changed"}
{"jsonrpc":"2.0","method":"notifications/tools/list_changed"}
{"jsonrpc":"2.0","method":"notifications/tools/list_changed"}
but we are receiving a stack trace with
22:11:33.975 ERROR [MCP] Could not initialize MCP server strimzi-kafka: error=2, No such file or directory
I could not see any more information even after enabling
Will look in to this in few hours, created a issue for visibility.
(setopt eca-extra-args '("--log-level" "debug"))
by bad. it works.
"strimzi-kafka": {
"command": "/usr/bin/env",
"args": [
"-S",
"mise x [email protected] -- java -jar /Users/ckoneru/bin/strimzi-kafka-mcp/strimzi-mcp-server.jar"
],
"disabled": true
}