Skip to content

Conversation

laurigates
Copy link

Summary

This PR adds support for running the Chrome DevTools MCP server using uvx, providing a more convenient way to execute the server as a standalone tool.

Changes

  • ✨ Added [project.scripts] entry point in pyproject.toml for uvx execution
  • 📦 Configured setuptools package discovery to properly include the src module
  • 🔧 Updated server.py with proper main() function for script entry
  • 📚 Documented uvx usage in both README.md and CLAUDE.md
  • 🚀 Added convenient Claude Code installation method via uvx directly from GitHub

Benefits

  • Simplified execution: Run with uvx --from . chrome-devtools-mcp instead of python server.py
  • Automatic dependency handling: uvx manages dependencies automatically
  • One-command Claude Code setup: claude mcp add chrome-devtools-mcp -- uvx --from git+https://github.com/benjaminr/chrome-devtools-mcp chrome-devtools-mcp

Testing

The uvx support has been tested and confirmed working:

uvx --from . chrome-devtools-mcp

Successfully starts the MCP server with all tools registered.

🤖 Generated with Claude Code

laurigates and others added 2 commits September 17, 2025 14:19
- Add project.scripts entry point in pyproject.toml for uvx execution
- Configure setuptools package discovery to include src module
- Update server.py with proper main() function for script entry
- Document uvx usage in README.md and CLAUDE.md
- Add convenient Claude Code installation via uvx from GitHub

This enables users to run the server with 'uvx --from . chrome-devtools-mcp'
or install directly with Claude Code using a single command.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Update script entry point to use server:main instead of src.main:main
- Add py-modules configuration to include server.py in package distribution
- Ensures uvx --from . chrome-devtools-mcp command works correctly

This fixes the ModuleNotFoundError when running via uvx by ensuring
the server module is included in the package build.
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.

1 participant