fix(mcp): repackage transilience-vuln to avoid bare 'server' module#27
Open
juandresrodca wants to merge 1 commit into
Open
fix(mcp): repackage transilience-vuln to avoid bare 'server' module#27juandresrodca wants to merge 1 commit into
juandresrodca wants to merge 1 commit into
Conversation
…ixes transilienceai#19 The package shipped a top-level `server` module (`py-modules = ["server"]` + `transilience-vuln-mcp = "server:cli"`), which installs a bare `server` module into site-packages and collides with anything else that does the same. Repackage as a proper namespace package: - Move `server.py` -> `transilience_vuln_mcp/server.py`. - Add `transilience_vuln_mcp/__init__.py` re-exporting `cli`/`main`/`server`. - `[project.scripts]`: `server:cli` -> `transilience_vuln_mcp:cli`. - `[tool.setuptools]`: replace `py-modules = ["server"]` with the explicit `packages = ["transilience_vuln_mcp"]`. - README + claude_desktop_config.snippet.json: update the `server.py` path and the smoke-test command (`python -m transilience_vuln_mcp.server`). No behavior change for end users beyond the file path in the Claude Desktop config. Verified `from transilience_vuln_mcp import cli` resolves and `cli` is callable, so the console-script entry point is intact.
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.
Summary
Repackages
mcp/transilience-vulnto avoid shipping a bare top-levelservermodule that collides in site-packages.Related Issue
Closes #19
Changes
server.py->transilience_vuln_mcp/server.py; add__init__.pyre-exportingcli/main/server.[project.scripts]:server:cli->transilience_vuln_mcp:cli.[tool.setuptools]:py-modules = [server]->packages = [transilience_vuln_mcp].claude_desktop_config.snippet.json: update path and smoke-test command (python -m transilience_vuln_mcp.server).Testing
from transilience_vuln_mcp import cliresolves andcliis callable; no behavior change for end users beyond the config file path.