qemu-mcp 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. qemu_mcp-0.1.0/.github/dependabot.yml +11 -0
  2. qemu_mcp-0.1.0/.github/workflows/ci.yml +43 -0
  3. qemu_mcp-0.1.0/.github/workflows/codeql.yml +20 -0
  4. qemu_mcp-0.1.0/.github/workflows/publish.yml +46 -0
  5. qemu_mcp-0.1.0/.gitignore +5 -0
  6. qemu_mcp-0.1.0/BACKLOG.md +215 -0
  7. qemu_mcp-0.1.0/CHANGELOG.md +200 -0
  8. qemu_mcp-0.1.0/CONTRIBUTING.md +42 -0
  9. qemu_mcp-0.1.0/LICENSE +21 -0
  10. qemu_mcp-0.1.0/PKG-INFO +303 -0
  11. qemu_mcp-0.1.0/README.md +277 -0
  12. qemu_mcp-0.1.0/assets/demo-home.png +0 -0
  13. qemu_mcp-0.1.0/assets/demo-terminal.png +0 -0
  14. qemu_mcp-0.1.0/pyproject.toml +44 -0
  15. qemu_mcp-0.1.0/server.json +18 -0
  16. qemu_mcp-0.1.0/src/qemu_mcp/__init__.py +3 -0
  17. qemu_mcp-0.1.0/src/qemu_mcp/__main__.py +3 -0
  18. qemu_mcp-0.1.0/src/qemu_mcp/keys.py +115 -0
  19. qemu_mcp-0.1.0/src/qemu_mcp/mouse.py +57 -0
  20. qemu_mcp-0.1.0/src/qemu_mcp/py.typed +0 -0
  21. qemu_mcp-0.1.0/src/qemu_mcp/qmp.py +103 -0
  22. qemu_mcp-0.1.0/src/qemu_mcp/screen.py +54 -0
  23. qemu_mcp-0.1.0/src/qemu_mcp/serial.py +110 -0
  24. qemu_mcp-0.1.0/src/qemu_mcp/server.py +712 -0
  25. qemu_mcp-0.1.0/src/qemu_mcp/snapshot.py +37 -0
  26. qemu_mcp-0.1.0/src/qemu_mcp/vm.py +812 -0
  27. qemu_mcp-0.1.0/tests/smoke_test.py +114 -0
  28. qemu_mcp-0.1.0/tests/test_keys.py +138 -0
  29. qemu_mcp-0.1.0/tests/test_mouse.py +76 -0
  30. qemu_mcp-0.1.0/tests/test_qmp.py +191 -0
  31. qemu_mcp-0.1.0/tests/test_screen.py +78 -0
  32. qemu_mcp-0.1.0/tests/test_serial.py +303 -0
  33. qemu_mcp-0.1.0/tests/test_snapshot.py +58 -0
  34. qemu_mcp-0.1.0/tests/test_stdio_handshake.py +73 -0
  35. qemu_mcp-0.1.0/tests/test_tool_hints.py +63 -0
  36. qemu_mcp-0.1.0/tests/test_version.py +12 -0
  37. qemu_mcp-0.1.0/tests/test_vm.py +3063 -0
@@ -0,0 +1,11 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "pip"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "weekly"
7
+
8
+ - package-ecosystem: "github-actions"
9
+ directory: "/"
10
+ schedule:
11
+ interval: "weekly"
@@ -0,0 +1,43 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+
8
+ jobs:
9
+ test:
10
+ strategy:
11
+ fail-fast: false
12
+ matrix:
13
+ os: [ubuntu-latest, windows-latest, macos-latest]
14
+ python-version: ["3.10", "3.11", "3.12", "3.13"]
15
+ # pyproject.toml declares requires-python = ">=3.10", but CI only ever
16
+ # exercised 3.12 - full cross product would be 12 jobs for one
17
+ # package with no OS-specific Python code, so the extra versions
18
+ # (3.10/3.11/3.13) run on ubuntu-latest only, catching a version
19
+ # incompatibility without tripling every OS's runner minutes.
20
+ exclude:
21
+ - os: windows-latest
22
+ python-version: "3.10"
23
+ - os: windows-latest
24
+ python-version: "3.11"
25
+ - os: windows-latest
26
+ python-version: "3.13"
27
+ - os: macos-latest
28
+ python-version: "3.10"
29
+ - os: macos-latest
30
+ python-version: "3.11"
31
+ - os: macos-latest
32
+ python-version: "3.13"
33
+ runs-on: ${{ matrix.os }}
34
+ steps:
35
+ - uses: actions/checkout@v7
36
+ - uses: actions/setup-python@v7
37
+ with:
38
+ python-version: ${{ matrix.python-version }}
39
+ - run: pip install "ruff==0.16.0" "mypy==2.3.0" ".[test]"
40
+ - run: ruff check src tests
41
+ - run: mypy --strict src
42
+ - name: pytest (unit tests + stdio handshake, no QEMU)
43
+ run: pytest tests/test_keys.py tests/test_mouse.py tests/test_screen.py tests/test_snapshot.py tests/test_serial.py tests/test_qmp.py tests/test_vm.py tests/test_stdio_handshake.py tests/test_tool_hints.py tests/test_version.py -v
@@ -0,0 +1,20 @@
1
+ name: CodeQL
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ schedule:
8
+ - cron: "0 7 * * 1"
9
+
10
+ jobs:
11
+ analyze:
12
+ runs-on: ubuntu-latest
13
+ permissions:
14
+ security-events: write
15
+ steps:
16
+ - uses: actions/checkout@v7
17
+ - uses: github/codeql-action/init@v3
18
+ with:
19
+ languages: python
20
+ - uses: github/codeql-action/analyze@v3
@@ -0,0 +1,46 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v7
12
+ - uses: actions/setup-python@v7
13
+ with:
14
+ python-version: "3.12"
15
+ - run: pip install build
16
+ - run: python -m build
17
+ - uses: actions/upload-artifact@v7
18
+ with:
19
+ name: dist
20
+ path: dist/
21
+
22
+ publish:
23
+ needs: build
24
+ runs-on: ubuntu-latest
25
+ environment: pypi
26
+ permissions:
27
+ id-token: write # required for PyPI trusted publishing (OIDC), no API token needed
28
+ steps:
29
+ - uses: actions/download-artifact@v8
30
+ with:
31
+ name: dist
32
+ path: dist/
33
+ - uses: pypa/gh-action-pypi-publish@release/v1
34
+
35
+ registry:
36
+ # Publish server.json to the MCP registry once the package is on PyPI.
37
+ # GitHub OIDC proves ownership of io.github.0xmortuex/*: no login, no token.
38
+ needs: publish
39
+ runs-on: ubuntu-latest
40
+ permissions:
41
+ id-token: write
42
+ steps:
43
+ - uses: actions/checkout@v7
44
+ - run: curl -fsSL "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_linux_amd64.tar.gz" | tar xz mcp-publisher
45
+ - run: ./mcp-publisher login github-oidc
46
+ - run: ./mcp-publisher publish
@@ -0,0 +1,5 @@
1
+ __pycache__/
2
+ *.egg-info/
3
+ dist/
4
+ build/
5
+ tests/*.png