Thanks for the info - I'll use the docs better if I have quetions on that going forward..
Any idea why this would exit with a 0 return code and nothing to stdout?
#!/bin/bash
export DEVSENSE_PHP_LS_LICENSE="{\"name\":\"Colin... ***REDACTED***"
# Helper function to send LSP message
send_message() {
local msg=$(printf "%s" "$1")
local len=${#msg}
printf "Content-Length: %d\r\n\r\n%s" "$len" "$msg"
}
send_message '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"processId":22836,"clientInfo":{"name":"mcp-language-server","version":"0.1.0"},"rootPath":"'$(pwd)'","rootUri":"file://'$(pwd)'","capabilities":{"workspace":{"didChangeConfiguration":{"dynamicRegistration":true},"didChangeWatchedFiles":{"dynamicRegistration":true,"relativePatternSupport":true},"configuration":true},"textDocument":{"synchronization":{"dynamicRegistration":true,"didSave":true},"completion":{"completionItem":{}},"documentSymbol":{},"codeAction":{"codeActionLiteralSupport":{"codeActionKind":{"valueSet":[]}}},"codeLens":{"dynamicRegistration":true},"publishDiagnostics":{"versionSupport":true},"semanticTokens":{"requests":{"range":null,"full":null},"tokenTypes":[],"tokenModifiers":[],"formats":[]}},"window":{}},"initializationOptions":{"codelenses":{"generate":true,"regenerate_cgo":true,"test":true,"tidy":true,"upgrade_dependency":true,"vendor":true,"vulncheck":false}},"workDoneToken":null,"workspaceFolders":[{"uri":"file://'$(pwd)'","name":"'$(pwd)'"}]}}' \
| devsense-php-ls --stdio
exit $!