mcpcap 0.4.6__tar.gz → 0.4.7__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 (46) hide show
  1. {mcpcap-0.4.6 → mcpcap-0.4.7}/.github/workflows/release.yml +10 -13
  2. {mcpcap-0.4.6 → mcpcap-0.4.7}/PKG-INFO +1 -1
  3. {mcpcap-0.4.6 → mcpcap-0.4.7}/src/mcpcap/_version.py +3 -3
  4. {mcpcap-0.4.6 → mcpcap-0.4.7}/src/mcpcap.egg-info/PKG-INFO +1 -1
  5. {mcpcap-0.4.6 → mcpcap-0.4.7}/.github/FUNDING.yml +0 -0
  6. {mcpcap-0.4.6 → mcpcap-0.4.7}/.github/workflows/test.yml +0 -0
  7. {mcpcap-0.4.6 → mcpcap-0.4.7}/.gitignore +0 -0
  8. {mcpcap-0.4.6 → mcpcap-0.4.7}/.readthedocs.yaml +0 -0
  9. {mcpcap-0.4.6 → mcpcap-0.4.7}/LICENSE +0 -0
  10. {mcpcap-0.4.6 → mcpcap-0.4.7}/README.md +0 -0
  11. {mcpcap-0.4.6 → mcpcap-0.4.7}/docs/Makefile +0 -0
  12. {mcpcap-0.4.6 → mcpcap-0.4.7}/docs/source/_static/.gitkeep +0 -0
  13. {mcpcap-0.4.6 → mcpcap-0.4.7}/docs/source/api/cli.rst +0 -0
  14. {mcpcap-0.4.6 → mcpcap-0.4.7}/docs/source/api/core.rst +0 -0
  15. {mcpcap-0.4.6 → mcpcap-0.4.7}/docs/source/api/modules.rst +0 -0
  16. {mcpcap-0.4.6 → mcpcap-0.4.7}/docs/source/conf.py +0 -0
  17. {mcpcap-0.4.6 → mcpcap-0.4.7}/docs/source/index.rst +0 -0
  18. {mcpcap-0.4.6 → mcpcap-0.4.7}/docs/source/user-guide/analysis-guides.md +0 -0
  19. {mcpcap-0.4.6 → mcpcap-0.4.7}/docs/source/user-guide/installation.md +0 -0
  20. {mcpcap-0.4.6 → mcpcap-0.4.7}/docs/source/user-guide/mcp-integration.md +0 -0
  21. {mcpcap-0.4.6 → mcpcap-0.4.7}/docs/source/user-guide/quickstart.md +0 -0
  22. {mcpcap-0.4.6 → mcpcap-0.4.7}/examples/README.md +0 -0
  23. {mcpcap-0.4.6 → mcpcap-0.4.7}/examples/dhcp.pcap +0 -0
  24. {mcpcap-0.4.6 → mcpcap-0.4.7}/examples/dns.pcap +0 -0
  25. {mcpcap-0.4.6 → mcpcap-0.4.7}/pyproject.toml +0 -0
  26. {mcpcap-0.4.6 → mcpcap-0.4.7}/readme-assets/mcpcap-logo.png +0 -0
  27. {mcpcap-0.4.6 → mcpcap-0.4.7}/server.json +0 -0
  28. {mcpcap-0.4.6 → mcpcap-0.4.7}/setup.cfg +0 -0
  29. {mcpcap-0.4.6 → mcpcap-0.4.7}/src/mcpcap/__init__.py +0 -0
  30. {mcpcap-0.4.6 → mcpcap-0.4.7}/src/mcpcap/cli.py +0 -0
  31. {mcpcap-0.4.6 → mcpcap-0.4.7}/src/mcpcap/core/__init__.py +0 -0
  32. {mcpcap-0.4.6 → mcpcap-0.4.7}/src/mcpcap/core/config.py +0 -0
  33. {mcpcap-0.4.6 → mcpcap-0.4.7}/src/mcpcap/core/server.py +0 -0
  34. {mcpcap-0.4.6 → mcpcap-0.4.7}/src/mcpcap/modules/__init__.py +0 -0
  35. {mcpcap-0.4.6 → mcpcap-0.4.7}/src/mcpcap/modules/base.py +0 -0
  36. {mcpcap-0.4.6 → mcpcap-0.4.7}/src/mcpcap/modules/dhcp.py +0 -0
  37. {mcpcap-0.4.6 → mcpcap-0.4.7}/src/mcpcap/modules/dns.py +0 -0
  38. {mcpcap-0.4.6 → mcpcap-0.4.7}/src/mcpcap.egg-info/SOURCES.txt +0 -0
  39. {mcpcap-0.4.6 → mcpcap-0.4.7}/src/mcpcap.egg-info/dependency_links.txt +0 -0
  40. {mcpcap-0.4.6 → mcpcap-0.4.7}/src/mcpcap.egg-info/entry_points.txt +0 -0
  41. {mcpcap-0.4.6 → mcpcap-0.4.7}/src/mcpcap.egg-info/requires.txt +0 -0
  42. {mcpcap-0.4.6 → mcpcap-0.4.7}/src/mcpcap.egg-info/top_level.txt +0 -0
  43. {mcpcap-0.4.6 → mcpcap-0.4.7}/tests/__init__.py +0 -0
  44. {mcpcap-0.4.6 → mcpcap-0.4.7}/tests/test_cli.py +0 -0
  45. {mcpcap-0.4.6 → mcpcap-0.4.7}/tests/test_dhcp.py +0 -0
  46. {mcpcap-0.4.6 → mcpcap-0.4.7}/tests/test_dns.py +0 -0
@@ -116,6 +116,7 @@ jobs:
116
116
  git clone https://github.com/modelcontextprotocol/registry publisher-repo
117
117
  cd publisher-repo
118
118
  make publisher
119
+ # Verify expected output location and copy to repo root
119
120
  test -f bin/mcp-publisher || { echo "mcp-publisher binary not found at bin/mcp-publisher"; ls -R; exit 1; }
120
121
  cp bin/mcp-publisher ../mcp-publisher
121
122
  cd ..
@@ -123,30 +124,26 @@ jobs:
123
124
  ./mcp-publisher --version || true
124
125
 
125
126
  # -------- MCP Registry: login with DNS (mcpcap.ai) ------------------------
126
- - name: Write DNS auth private key
127
+ # Secret MCP_PRIVATE_KEY must be a 64-character hex Ed25519 private key
128
+ - name: Validate MCP_PRIVATE_KEY format
127
129
  if: steps.pypi_publish.outcome == 'success'
128
130
  run: |
129
- umask 177
130
- cat > key.pem << 'EOF'
131
- ${{ secrets.MCP_PRIVATE_KEY }}
132
- EOF
133
- # Verify file permissions (should be 600)
134
- ls -l key.pem
131
+ KEY="${{ secrets.MCP_PRIVATE_KEY }}"
132
+ if ! [[ "$KEY" =~ ^[0-9a-fA-F]{64}$ ]]; then
133
+ echo "MCP_PRIVATE_KEY must be 64 hex chars (Ed25519 seed)."
134
+ exit 1
135
+ fi
135
136
 
136
137
  - name: Login to MCP Registry (DNS)
137
138
  if: steps.pypi_publish.outcome == 'success'
138
- run: ./mcp-publisher login dns --domain mcpcap.ai --private-key-file key.pem
139
-
140
- - name: Cleanup DNS auth key
141
- if: steps.pypi_publish.outcome == 'success'
142
- run: |
143
- shred -u key.pem || rm -f key.pem
139
+ run: ./mcp-publisher login dns --domain mcpcap.ai --private-key "${{ secrets.MCP_PRIVATE_KEY }}"
144
140
 
145
141
  # -------- (Optional) Validate server.json before publishing ----------------
146
142
  - name: Validate server.json (optional)
147
143
  if: steps.pypi_publish.outcome == 'success'
148
144
  run: |
149
145
  if [ -f server.json ]; then
146
+ # Validate against published schema
150
147
  curl -s https://static.modelcontextprotocol.io/schemas/2025-07-09/server.schema.json | jq . > schema.json
151
148
  npm i -g ajv-cli >/dev/null 2>&1 || true
152
149
  ajv validate -s schema.json -d server.json || (echo "server.json failed schema validation"; exit 1)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mcpcap
3
- Version: 0.4.6
3
+ Version: 0.4.7
4
4
  Summary: A modular Python MCP Server for analyzing PCAP files
5
5
  Author: mcpcap contributors
6
6
  License: MIT License
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
28
28
  commit_id: COMMIT_ID
29
29
  __commit_id__: COMMIT_ID
30
30
 
31
- __version__ = version = '0.4.6'
32
- __version_tuple__ = version_tuple = (0, 4, 6)
31
+ __version__ = version = '0.4.7'
32
+ __version_tuple__ = version_tuple = (0, 4, 7)
33
33
 
34
- __commit_id__ = commit_id = 'g08d39baa0'
34
+ __commit_id__ = commit_id = 'gbe761c304'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mcpcap
3
- Version: 0.4.6
3
+ Version: 0.4.7
4
4
  Summary: A modular Python MCP Server for analyzing PCAP files
5
5
  Author: mcpcap contributors
6
6
  License: MIT License
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes