mcppt 1.0.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.
- mcppt-1.0.0/.github/workflows/ci.yml +96 -0
- mcppt-1.0.0/.gitignore +11 -0
- mcppt-1.0.0/LICENSE +21 -0
- mcppt-1.0.0/OPERATOR_GUIDE.md +686 -0
- mcppt-1.0.0/PKG-INFO +432 -0
- mcppt-1.0.0/README.md +401 -0
- mcppt-1.0.0/app.py +525 -0
- mcppt-1.0.0/docs/MCPTROTTER_ARTICLE.md +364 -0
- mcppt-1.0.0/docs/MCPTROTTER_MEDIUM.md +255 -0
- mcppt-1.0.0/docs/mcptrotter.jpeg +0 -0
- mcppt-1.0.0/mcppt/__init__.py +1 -0
- mcppt-1.0.0/mcppt/checks.py +1720 -0
- mcppt-1.0.0/mcppt/cli.py +243 -0
- mcppt-1.0.0/mcppt/core.py +169 -0
- mcppt-1.0.0/mcppt/report.py +105 -0
- mcppt-1.0.0/mcppt/server.py +254 -0
- mcppt-1.0.0/mcppt/shell.py +508 -0
- mcppt-1.0.0/mcppt/tui.py +160 -0
- mcppt-1.0.0/pyproject.toml +51 -0
- mcppt-1.0.0/requirements.txt +18 -0
- mcppt-1.0.0/smoke_test.py +193 -0
- mcppt-1.0.0/test_report.md +256 -0
- mcppt-1.0.0/test_server.log +14 -0
- mcppt-1.0.0/test_server.py +222 -0
- mcppt-1.0.0/tests/__init__.py +0 -0
- mcppt-1.0.0/tests/test_checks.py +154 -0
- mcppt-1.0.0/tests/test_core.py +118 -0
- mcppt-1.0.0/vuln_server.py +581 -0
- mcppt-1.0.0/wbs_scan_report.md +130 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
tags: ["v*"]
|
|
7
|
+
pull_request:
|
|
8
|
+
branches: [main]
|
|
9
|
+
|
|
10
|
+
env:
|
|
11
|
+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
# ── Lint + type check ───────────────────────────────────────────────────────
|
|
15
|
+
lint:
|
|
16
|
+
name: Lint
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@v4
|
|
20
|
+
- uses: actions/setup-python@v5
|
|
21
|
+
with:
|
|
22
|
+
python-version: "3.11"
|
|
23
|
+
- run: pip install ruff
|
|
24
|
+
- run: ruff check mcppt/
|
|
25
|
+
|
|
26
|
+
# ── Tests across Python versions ────────────────────────────────────────────
|
|
27
|
+
test:
|
|
28
|
+
name: Test (Python ${{ matrix.python-version }})
|
|
29
|
+
needs: lint
|
|
30
|
+
runs-on: ubuntu-latest
|
|
31
|
+
strategy:
|
|
32
|
+
matrix:
|
|
33
|
+
python-version: ["3.10", "3.11", "3.12"]
|
|
34
|
+
steps:
|
|
35
|
+
- uses: actions/checkout@v4
|
|
36
|
+
- uses: actions/setup-python@v5
|
|
37
|
+
with:
|
|
38
|
+
python-version: ${{ matrix.python-version }}
|
|
39
|
+
- name: Install package + test deps
|
|
40
|
+
run: pip install -e ".[dev]" || pip install -e . && pip install pytest pytest-mock
|
|
41
|
+
- name: Run tests
|
|
42
|
+
run: pytest tests/ -v --tb=short
|
|
43
|
+
|
|
44
|
+
# ── Build wheel + sdist ─────────────────────────────────────────────────────
|
|
45
|
+
build:
|
|
46
|
+
name: Build
|
|
47
|
+
needs: test
|
|
48
|
+
runs-on: ubuntu-latest
|
|
49
|
+
steps:
|
|
50
|
+
- uses: actions/checkout@v4
|
|
51
|
+
- uses: actions/setup-python@v5
|
|
52
|
+
with:
|
|
53
|
+
python-version: "3.11"
|
|
54
|
+
- run: pip install hatchling build
|
|
55
|
+
- run: python -m build
|
|
56
|
+
- uses: actions/upload-artifact@v4
|
|
57
|
+
with:
|
|
58
|
+
name: dist
|
|
59
|
+
path: dist/
|
|
60
|
+
|
|
61
|
+
# ── Publish to PyPI on version tag ─────────────────────────────────────────
|
|
62
|
+
publish:
|
|
63
|
+
name: Publish to PyPI
|
|
64
|
+
needs: build
|
|
65
|
+
runs-on: ubuntu-latest
|
|
66
|
+
if: startsWith(github.ref, 'refs/tags/v')
|
|
67
|
+
environment:
|
|
68
|
+
name: pypi
|
|
69
|
+
url: https://pypi.org/project/mcppt/
|
|
70
|
+
permissions:
|
|
71
|
+
id-token: write # trusted publishing (no API key needed)
|
|
72
|
+
steps:
|
|
73
|
+
- uses: actions/download-artifact@v4
|
|
74
|
+
with:
|
|
75
|
+
name: dist
|
|
76
|
+
path: dist/
|
|
77
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
78
|
+
|
|
79
|
+
# ── Create GitHub Release on version tag ───────────────────────────────────
|
|
80
|
+
release:
|
|
81
|
+
name: GitHub Release
|
|
82
|
+
needs: publish
|
|
83
|
+
runs-on: ubuntu-latest
|
|
84
|
+
if: startsWith(github.ref, 'refs/tags/v')
|
|
85
|
+
permissions:
|
|
86
|
+
contents: write
|
|
87
|
+
steps:
|
|
88
|
+
- uses: actions/checkout@v4
|
|
89
|
+
- uses: actions/download-artifact@v4
|
|
90
|
+
with:
|
|
91
|
+
name: dist
|
|
92
|
+
path: dist/
|
|
93
|
+
- uses: softprops/action-gh-release@v2
|
|
94
|
+
with:
|
|
95
|
+
files: dist/*
|
|
96
|
+
generate_release_notes: true
|
mcppt-1.0.0/.gitignore
ADDED
mcppt-1.0.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Gurudeep Mallam
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|