Skip to main content

Native helper for pywebview DevTools MCP

Project description

pywebview DevTools Helper

pywebview-devtools is the optional native helper package for pywebview-devtools-mcp.

Install it in the same Python environment as your pywebview app:

pip install pywebview-devtools

Enable it before creating pywebview windows:

import pywebview_devtools
import webview

pywebview_devtools.enable()

remote_port = pywebview_devtools.remote_debugging_port()
if remote_port:
    webview.settings["REMOTE_DEBUGGING_PORT"] = remote_port

window = webview.create_window("Demo", "https://example.com")
webview.start(debug=True)

The helper only starts when PYWEBVIEW_DEVTOOLS is enabled. Launch mode in the MCP server sets this automatically. For manual attach mode, set PYWEBVIEW_DEVTOOLS=1 before starting the app and provide stable helper connection values with PYWEBVIEW_DEVTOOLS_HOST, PYWEBVIEW_DEVTOOLS_PORT, and PYWEBVIEW_DEVTOOLS_TOKEN when needed.

The helper listens on a local HTTP endpoint and requires a Bearer token. Treat the token as sensitive and avoid enabling the helper in production builds unless you have a deliberate debugging workflow.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pywebview_devtools-0.1.0.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pywebview_devtools-0.1.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file pywebview_devtools-0.1.0.tar.gz.

File metadata

  • Download URL: pywebview_devtools-0.1.0.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pywebview_devtools-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6b18155c587e1c54114ef7de61610b9957c87479ff3696b354323c00aa0f5354
MD5 59197a1bf96e5b89c1c3c5e5f1271362
BLAKE2b-256 55bf9ad84f6da3b8a2f579c9d126b9e1d8d9ae80131b55f5b6e2d04b70762424

See more details on using hashes here.

File details

Details for the file pywebview_devtools-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pywebview_devtools-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pywebview_devtools-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b5f88090a426540ccaaefb04320ed59b80bdc3dc0bc715f17d27f1c48ba2d24
MD5 b3b6b0deff0140c8c98112ec789a2c1b
BLAKE2b-256 495f1484132235d9e536d5682bb86c87e02055ca83fe9ca195ab0abc211cd6ff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page