Add Python language server to Serena MCP container#920
Merged
Conversation
Install python-lsp-server[all] to enable Python language support in the Serena MCP container. This addresses the issue where Python projects could not be analyzed due to missing language server. Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
Contributor
|
PRs: [test] Add comprehensive tests for launcher.LogHelpers | [log] Add debug logging to main.go
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes missing Python language support in the Serena MCP container by adding the python-lsp-server[all] package installation. The container already had the infrastructure in place (configuration, pre-indexing, tests) but was missing the actual Python language server package, preventing Python code analysis from working.
Changes:
- Added
python-lsp-server[all]installation to the Dockerfile between Serena and TypeScript language server setup
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Serena MCP container was missing the Python language server, preventing Python code analysis despite having the Python runtime installed. Only Go language support was functional.
Changes
python-lsp-server[all]installation between Serena and TypeScript language server setupThe container already had:
goplstypescript-language-server.serena/project.ymlOnly the Python language server package was missing. The
[all]extra includes optional dependencies for full LSP functionality.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
example.com/tmp/go-build1194592432/b279/launcher.test /tmp/go-build1194592432/b279/launcher.test -test.testlogfile=/tmp/go-build1194592432/b279/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.v=true ternal/fips140/bigmod/nat_amd64.--gdwarf-5 HEAD x_amd64/compile /tmp/apt-dpkg-in/opt/hostedtoolcache/go/1.25.7/x64/pkg/tool/linux_amd64/vet tar amd64/compile x_amd64/compile add go -v x_amd64/vet -f 4971347/b009/ es x_amd64/vet(dns block)invalid-host-that-does-not-exist-12345.com/tmp/go-build1194592432/b264/config.test /tmp/go-build1194592432/b264/config.test -test.testlogfile=/tmp/go-build1194592432/b264/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.v=true 64/src/runtime/cgo zclWGwGwi ache/go/1.25.7/x64/pkg/tool/linu-o .util; print(imp/opt/hostedtoolcache/go/1.25.7/x64/pkg/tool/linux_amd64/vet r/runc-log.json /usr/sbin/tar 06.o ortc�� 64/src/runtime/cgo go x_amd64/compile -f - /usr/sbin/dpkg-d-unreachable=false x_amd64/compile(dns block)nonexistent.local/tmp/go-build1194592432/b279/launcher.test /tmp/go-build1194592432/b279/launcher.test -test.testlogfile=/tmp/go-build1194592432/b279/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.v=true ternal/fips140/bigmod/nat_amd64.--gdwarf-5 HEAD x_amd64/compile /tmp/apt-dpkg-in/opt/hostedtoolcache/go/1.25.7/x64/pkg/tool/linux_amd64/vet tar amd64/compile x_amd64/compile add go -v x_amd64/vet -f 4971347/b009/ es x_amd64/vet(dns block)slow.example.com/tmp/go-build1194592432/b279/launcher.test /tmp/go-build1194592432/b279/launcher.test -test.testlogfile=/tmp/go-build1194592432/b279/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.v=true ternal/fips140/bigmod/nat_amd64.--gdwarf-5 HEAD x_amd64/compile /tmp/apt-dpkg-in/opt/hostedtoolcache/go/1.25.7/x64/pkg/tool/linux_amd64/vet tar amd64/compile x_amd64/compile add go -v x_amd64/vet -f 4971347/b009/ es x_amd64/vet(dns block)this-host-does-not-exist-12345.com/tmp/go-build1194592432/b288/mcp.test /tmp/go-build1194592432/b288/mcp.test -test.testlogfile=/tmp/go-build1194592432/b288/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.v=true 64/src/runtime/cgo 64/src/maps/iter.go ache/go/1.25.7/x64/pkg/tool/linu-o r/runc-log.json abis /systemd-sysctl 08.o main�� ; then \ $GOPATH/bin/golangci-lint run --timeout=5m || echo "��� Warning: golangci-lint failed /opt/hostedtoolcache/go/1.25.7/x64/pkg/tool/linux_amd64/vet --auto x_amd64/vet --detach 4971347/b004/ d-dispatcher/off-unreachable=false x_amd64/vet(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt