Skip to content

fix(mcp): repackage transilience-vuln to avoid bare 'server' module#27

Open
juandresrodca wants to merge 1 commit into
transilienceai:mainfrom
juandresrodca:bugfix/mcp-server-module-collision
Open

fix(mcp): repackage transilience-vuln to avoid bare 'server' module#27
juandresrodca wants to merge 1 commit into
transilienceai:mainfrom
juandresrodca:bugfix/mcp-server-module-collision

Conversation

@juandresrodca

Copy link
Copy Markdown

Summary

Repackages mcp/transilience-vuln to avoid shipping a bare top-level server module that collides in site-packages.

Related Issue

Closes #19

Changes

  • Move server.py -> transilience_vuln_mcp/server.py; add __init__.py re-exporting cli/main/server.
  • [project.scripts]: server:cli -> transilience_vuln_mcp:cli.
  • [tool.setuptools]: py-modules = [server] -> packages = [transilience_vuln_mcp].
  • README + claude_desktop_config.snippet.json: update path and smoke-test command (python -m transilience_vuln_mcp.server).

Testing

from transilience_vuln_mcp import cli resolves and cli is callable; no behavior change for end users beyond the config file path.

…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mcp/transilience-vuln: repackage to avoid bare 'server' module collision

1 participant