pdf-modifier 1.9.1__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 (115) hide show
  1. pdf_modifier-1.9.1/.dockerignore +71 -0
  2. pdf_modifier-1.9.1/.gitignore +65 -0
  3. pdf_modifier-1.9.1/CHANGELOG.md +395 -0
  4. pdf_modifier-1.9.1/Dockerfile +56 -0
  5. pdf_modifier-1.9.1/LICENSE +21 -0
  6. pdf_modifier-1.9.1/PKG-INFO +193 -0
  7. pdf_modifier-1.9.1/README.md +156 -0
  8. pdf_modifier-1.9.1/pyproject.toml +92 -0
  9. pdf_modifier-1.9.1/server.json +22 -0
  10. pdf_modifier-1.9.1/specs/AI-001-detection/proposal.md +55 -0
  11. pdf_modifier-1.9.1/specs/AI-001-detection/tasks.md +127 -0
  12. pdf_modifier-1.9.1/specs/AI-001-detection/verification.md +62 -0
  13. pdf_modifier-1.9.1/specs/AUD-001-audio/proposal.md +48 -0
  14. pdf_modifier-1.9.1/specs/AUD-001-audio/tasks.md +100 -0
  15. pdf_modifier-1.9.1/specs/AUD-001-audio/verification.md +43 -0
  16. pdf_modifier-1.9.1/specs/FONT-001-custom-fonts/proposal.md +124 -0
  17. pdf_modifier-1.9.1/specs/FONT-001-custom-fonts/tasks.md +155 -0
  18. pdf_modifier-1.9.1/specs/FONT-001-custom-fonts/verification.md +140 -0
  19. pdf_modifier-1.9.1/specs/INFRA-001-docker/proposal.md +56 -0
  20. pdf_modifier-1.9.1/specs/INFRA-001-docker/tasks.md +140 -0
  21. pdf_modifier-1.9.1/specs/INFRA-001-docker/verification.md +72 -0
  22. pdf_modifier-1.9.1/specs/ML-001-multilingual/proposal.md +47 -0
  23. pdf_modifier-1.9.1/specs/ML-001-multilingual/tasks.md +100 -0
  24. pdf_modifier-1.9.1/specs/ML-001-multilingual/verification.md +45 -0
  25. pdf_modifier-1.9.1/specs/README.md +98 -0
  26. pdf_modifier-1.9.1/specs/VIS-001-vision/proposal.md +47 -0
  27. pdf_modifier-1.9.1/specs/VIS-001-vision/tasks.md +87 -0
  28. pdf_modifier-1.9.1/specs/VIS-001-vision/verification.md +42 -0
  29. pdf_modifier-1.9.1/specs/WEB-001-web-ui/proposal.md +60 -0
  30. pdf_modifier-1.9.1/specs/WEB-001-web-ui/tasks.md +211 -0
  31. pdf_modifier-1.9.1/specs/WEB-001-web-ui/verification.md +97 -0
  32. pdf_modifier-1.9.1/specs/archive/WEB-002-preview-element-grouping/features.json +30 -0
  33. pdf_modifier-1.9.1/specs/archive/WEB-002-preview-element-grouping/proposal.md +60 -0
  34. pdf_modifier-1.9.1/specs/archive/WEB-002-preview-element-grouping/tasks.md +45 -0
  35. pdf_modifier-1.9.1/specs/archive/WEB-002-preview-element-grouping/verification.md +44 -0
  36. pdf_modifier-1.9.1/src/pdf_modifier/__init__.py +26 -0
  37. pdf_modifier-1.9.1/src/pdf_modifier/__main__.py +13 -0
  38. pdf_modifier-1.9.1/src/pdf_modifier/ai/__init__.py +1 -0
  39. pdf_modifier-1.9.1/src/pdf_modifier/ai/client.py +296 -0
  40. pdf_modifier-1.9.1/src/pdf_modifier/ai/exceptions.py +29 -0
  41. pdf_modifier-1.9.1/src/pdf_modifier/ai/models.py +81 -0
  42. pdf_modifier-1.9.1/src/pdf_modifier/ai/prompts/__init__.py +39 -0
  43. pdf_modifier-1.9.1/src/pdf_modifier/ai/prompts/classify_doc.j2 +23 -0
  44. pdf_modifier-1.9.1/src/pdf_modifier/ai/prompts/detect_fields.j2 +20 -0
  45. pdf_modifier-1.9.1/src/pdf_modifier/ai/prompts/redact_pii.j2 +24 -0
  46. pdf_modifier-1.9.1/src/pdf_modifier/ai/reviewer.py +134 -0
  47. pdf_modifier-1.9.1/src/pdf_modifier/ai/router.py +112 -0
  48. pdf_modifier-1.9.1/src/pdf_modifier/ai/throttle.py +109 -0
  49. pdf_modifier-1.9.1/src/pdf_modifier/core/__init__.py +50 -0
  50. pdf_modifier-1.9.1/src/pdf_modifier/core/analyzer.py +322 -0
  51. pdf_modifier-1.9.1/src/pdf_modifier/core/consistency.py +224 -0
  52. pdf_modifier-1.9.1/src/pdf_modifier/core/exceptions.py +61 -0
  53. pdf_modifier-1.9.1/src/pdf_modifier/core/font_resolver.py +234 -0
  54. pdf_modifier-1.9.1/src/pdf_modifier/core/models.py +193 -0
  55. pdf_modifier-1.9.1/src/pdf_modifier/core/modifier.py +674 -0
  56. pdf_modifier-1.9.1/src/pdf_modifier/interfaces/__init__.py +3 -0
  57. pdf_modifier-1.9.1/src/pdf_modifier/interfaces/cli.py +535 -0
  58. pdf_modifier-1.9.1/src/pdf_modifier/interfaces/mcp.py +384 -0
  59. pdf_modifier-1.9.1/src/pdf_modifier/logger.py +35 -0
  60. pdf_modifier-1.9.1/src/pdf_modifier/web/__init__.py +1 -0
  61. pdf_modifier-1.9.1/src/pdf_modifier/web/app.py +72 -0
  62. pdf_modifier-1.9.1/src/pdf_modifier/web/config.py +39 -0
  63. pdf_modifier-1.9.1/src/pdf_modifier/web/deps.py +45 -0
  64. pdf_modifier-1.9.1/src/pdf_modifier/web/routes/__init__.py +7 -0
  65. pdf_modifier-1.9.1/src/pdf_modifier/web/routes/ai.py +34 -0
  66. pdf_modifier-1.9.1/src/pdf_modifier/web/routes/health.py +11 -0
  67. pdf_modifier-1.9.1/src/pdf_modifier/web/routes/pdf.py +225 -0
  68. pdf_modifier-1.9.1/src/pdf_modifier/web/session.py +129 -0
  69. pdf_modifier-1.9.1/src/pdf_modifier/web/storage.py +153 -0
  70. pdf_modifier-1.9.1/tests/__init__.py +0 -0
  71. pdf_modifier-1.9.1/tests/conftest.py +60 -0
  72. pdf_modifier-1.9.1/tests/data/sample.pdf +0 -0
  73. pdf_modifier-1.9.1/tests/integration/__init__.py +0 -0
  74. pdf_modifier-1.9.1/tests/integration/test_custom_fonts.py +148 -0
  75. pdf_modifier-1.9.1/tests/integration/test_integration.py +228 -0
  76. pdf_modifier-1.9.1/tests/unit/__init__.py +0 -0
  77. pdf_modifier-1.9.1/tests/unit/ai/__init__.py +1 -0
  78. pdf_modifier-1.9.1/tests/unit/ai/test_client.py +74 -0
  79. pdf_modifier-1.9.1/tests/unit/ai/test_models.py +106 -0
  80. pdf_modifier-1.9.1/tests/unit/ai/test_prompts.py +40 -0
  81. pdf_modifier-1.9.1/tests/unit/ai/test_reviewer.py +66 -0
  82. pdf_modifier-1.9.1/tests/unit/ai/test_router.py +115 -0
  83. pdf_modifier-1.9.1/tests/unit/ai/test_throttle.py +80 -0
  84. pdf_modifier-1.9.1/tests/unit/core/__init__.py +0 -0
  85. pdf_modifier-1.9.1/tests/unit/core/test_analyzer.py +196 -0
  86. pdf_modifier-1.9.1/tests/unit/core/test_analyzer_embedded_fonts.py +163 -0
  87. pdf_modifier-1.9.1/tests/unit/core/test_batch.py +119 -0
  88. pdf_modifier-1.9.1/tests/unit/core/test_consistency.py +93 -0
  89. pdf_modifier-1.9.1/tests/unit/core/test_exceptions.py +55 -0
  90. pdf_modifier-1.9.1/tests/unit/core/test_file_size_validation.py +179 -0
  91. pdf_modifier-1.9.1/tests/unit/core/test_font_models.py +195 -0
  92. pdf_modifier-1.9.1/tests/unit/core/test_font_resolver.py +359 -0
  93. pdf_modifier-1.9.1/tests/unit/core/test_hyperlinks.py +54 -0
  94. pdf_modifier-1.9.1/tests/unit/core/test_modifier.py +268 -0
  95. pdf_modifier-1.9.1/tests/unit/core/test_modifier_background.py +192 -0
  96. pdf_modifier-1.9.1/tests/unit/core/test_modifier_custom_fonts.py +181 -0
  97. pdf_modifier-1.9.1/tests/unit/core/test_modifier_size.py +53 -0
  98. pdf_modifier-1.9.1/tests/unit/core/test_modifier_whole_span.py +142 -0
  99. pdf_modifier-1.9.1/tests/unit/core/test_page_range.py +180 -0
  100. pdf_modifier-1.9.1/tests/unit/harness/__init__.py +0 -0
  101. pdf_modifier-1.9.1/tests/unit/harness/test_reviewer_pool_contract.py +224 -0
  102. pdf_modifier-1.9.1/tests/unit/interfaces/__init__.py +0 -0
  103. pdf_modifier-1.9.1/tests/unit/interfaces/test_cli.py +211 -0
  104. pdf_modifier-1.9.1/tests/unit/interfaces/test_cli_custom_fonts.py +113 -0
  105. pdf_modifier-1.9.1/tests/unit/interfaces/test_file_size_validation.py +273 -0
  106. pdf_modifier-1.9.1/tests/unit/interfaces/test_mcp.py +261 -0
  107. pdf_modifier-1.9.1/tests/unit/interfaces/test_mcp_embedded_fonts.py +159 -0
  108. pdf_modifier-1.9.1/tests/unit/rename/__init__.py +0 -0
  109. pdf_modifier-1.9.1/tests/unit/rename/test_no_stale_project_name.py +159 -0
  110. pdf_modifier-1.9.1/tests/unit/scripts/test_gen_env.py +96 -0
  111. pdf_modifier-1.9.1/tests/unit/web/__init__.py +1 -0
  112. pdf_modifier-1.9.1/tests/unit/web/test_routes.py +284 -0
  113. pdf_modifier-1.9.1/tests/unit/web/test_session.py +98 -0
  114. pdf_modifier-1.9.1/tests/unit/web/test_storage.py +70 -0
  115. pdf_modifier-1.9.1/uv.lock +1909 -0
@@ -0,0 +1,71 @@
1
+ # =============================================================================
2
+ # .dockerignore — exclude non-essential files from Docker build context
3
+ # =============================================================================
4
+
5
+ # Version control
6
+ .git
7
+ .gitignore
8
+
9
+ # Python
10
+ __pycache__
11
+ *.pyc
12
+ *.pyo
13
+ *.pyd
14
+ .Python
15
+ *.egg-info
16
+ dist/
17
+ build/
18
+ .eggs/
19
+
20
+ # Virtual environments
21
+ .venv/
22
+ venv/
23
+ env/
24
+
25
+ # IDE
26
+ .idea/
27
+ .vscode/
28
+ *.swp
29
+ *.swo
30
+ *~
31
+
32
+ # Testing
33
+ .pytest_cache/
34
+ .coverage
35
+ htmlcov/
36
+ .mypy_cache/
37
+ .ruff_cache/
38
+
39
+ # Node / frontend
40
+ node_modules/
41
+ site/.astro/
42
+ site/dist/
43
+ site/node_modules/
44
+
45
+ # Documentation (not needed in container)
46
+ docs/
47
+
48
+ # Spec files (dev artifacts)
49
+ specs/
50
+
51
+ # OS files
52
+ .DS_Store
53
+ Thumbs.db
54
+
55
+ # Environment files (never ship secrets)
56
+ .env
57
+ .env.*
58
+ *.env
59
+ !.env.example
60
+
61
+ # Docker files (not needed inside image)
62
+ docker-compose*.yml
63
+ *.dockerfile
64
+ !Dockerfile
65
+
66
+ # CI/CD
67
+ .github/
68
+
69
+ # Misc
70
+ *.md.bak
71
+ *.tmp
@@ -0,0 +1,65 @@
1
+
2
+ # Python
3
+ __pycache__/
4
+ *.py[cod]
5
+ *$py.class
6
+
7
+ # Distribution / packaging
8
+ dist/
9
+ build/
10
+ *.egg-info/
11
+
12
+ # Virtual Environment
13
+ .venv/
14
+ venv/
15
+ ENV/
16
+
17
+ # Testing
18
+ .pytest_cache/
19
+ .coverage
20
+ coverage.xml
21
+ htmlcov/
22
+
23
+ # Format
24
+ .mypy_cache/
25
+ .ruff_cache/
26
+
27
+ # Environment
28
+ .env
29
+ .env.local
30
+ .env.*.local
31
+
32
+ # Storage (user uploads)
33
+ storage/
34
+
35
+ # PDFs (except test data)
36
+ *.pdf
37
+ !frontend/e2e/fixtures/*.pdf
38
+ !tests/data/*.pdf
39
+ !backend/tests/data/*.pdf
40
+
41
+ # Sensitive
42
+ sensitive/
43
+
44
+ # Windows artifacts
45
+ nul
46
+
47
+ # Project Specific
48
+ tests/examples_output/
49
+ backend/tests/examples_output/
50
+ !tests/data/sample.pdf
51
+ !backend/tests/data/sample.pdf
52
+ *.log
53
+ .DS_Store
54
+
55
+ # AI
56
+ .claude/
57
+ .gemini/
58
+
59
+ # Astro / Site
60
+ site/node_modules/
61
+ site/dist/
62
+ site/.astro/
63
+ specs/archive/*/review-transcript.jsonl
64
+ specs/archive/*/review-request.json
65
+ specs/archive/*/review-transcript.jsonl.stderr
@@ -0,0 +1,395 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+
9
+ ## [1.9.1](https://github.com/mlorentedev/pdf-modifier-mcp/compare/v1.9.0...v1.9.1) (2026-10-13)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * **ai:** route to mimo-v2.6-flash, the successor to the retired mimo-v2.5 ([#178](https://github.com/mlorentedev/pdf-modifier-mcp/issues/178)) ([f3e1ad8](https://github.com/mlorentedev/pdf-modifier-mcp/commit/f3e1ad883e57a3259a59382efbb6280dcc9eb0d6))
15
+ * **harness:** port the reviewer pool and attestation to the SSOT shape (CI-001) ([#175](https://github.com/mlorentedev/pdf-modifier-mcp/issues/175)) ([b7291a1](https://github.com/mlorentedev/pdf-modifier-mcp/commit/b7291a1407b15a4a2d29b19f3ca897a55766d8b5))
16
+
17
+ ## [1.9.0](https://github.com/mlorentedev/pdf-modifier-mcp/compare/v1.8.0...v1.9.0) (2026-09-22)
18
+
19
+
20
+ ### Features
21
+
22
+ * add consistency reviewer for replacement targets ([#139](https://github.com/mlorentedev/pdf-modifier-mcp/issues/139)) ([7616fb0](https://github.com/mlorentedev/pdf-modifier-mcp/commit/7616fb0c677d598ea19f9735438657d3ef1680ae))
23
+ * **core:** whole-span exact match option to avoid substring collisions ([#151](https://github.com/mlorentedev/pdf-modifier-mcp/issues/151)) ([0d8e723](https://github.com/mlorentedev/pdf-modifier-mcp/commit/0d8e7232c2da996f0042bf71e146b5d1f5209de5))
24
+
25
+
26
+ ### Bug Fixes
27
+
28
+ * preserve PDF background and font weight on text replacement ([#136](https://github.com/mlorentedev/pdf-modifier-mcp/issues/136)) ([1f8e947](https://github.com/mlorentedev/pdf-modifier-mcp/commit/1f8e947494e0a190edd03a7836c54a0a72e7e2de))
29
+
30
+ ## [1.8.0](https://github.com/mlorentedev/pdf-modifier-mcp/compare/v1.7.1...v1.8.0) (2026-08-06)
31
+
32
+
33
+ ### Features
34
+
35
+ * **web:** PDF preview — element grouping, click-to-locate, precise highlight ([#118](https://github.com/mlorentedev/pdf-modifier-mcp/issues/118)) ([#121](https://github.com/mlorentedev/pdf-modifier-mcp/issues/121)) ([e60d607](https://github.com/mlorentedev/pdf-modifier-mcp/commit/e60d6077f5ec22fe7c39b319d82f1383e8d4b3b0))
36
+
37
+
38
+ ### Documentation
39
+
40
+ * **spec:** archive WEB-002 (PR [#121](https://github.com/mlorentedev/pdf-modifier-mcp/issues/121) merged) + pdf.js/grouping lesson ([#123](https://github.com/mlorentedev/pdf-modifier-mcp/issues/123)) ([e97a9be](https://github.com/mlorentedev/pdf-modifier-mcp/commit/e97a9beaac8301670ad4b089646a224d69cb4a5b))
41
+
42
+ ## [1.7.1](https://github.com/mlorentedev/pdf-modifier-mcp/compare/v1.7.0...v1.7.1) (2026-06-24)
43
+
44
+
45
+ ### Bug Fixes
46
+
47
+ * sync uv.lock version with pyproject.toml (1.7.0) ([#107](https://github.com/mlorentedev/pdf-modifier-mcp/issues/107)) ([e2af8d9](https://github.com/mlorentedev/pdf-modifier-mcp/commit/e2af8d936584a86de6ed9b4e823d65b689cec8fd))
48
+
49
+ ## [1.7.0](https://github.com/mlorentedev/pdf-modifier-mcp/compare/v1.6.0...v1.7.0) (2026-06-24)
50
+
51
+
52
+ ### Features
53
+
54
+ * **infra:** Docker multi-stage builds, compose stack, Makefile targets ([#91](https://github.com/mlorentedev/pdf-modifier-mcp/issues/91)) ([2fc84be](https://github.com/mlorentedev/pdf-modifier-mcp/commit/2fc84be248b3a89e144b094eb53c42ffe0ebceca))
55
+
56
+ ## [1.6.0](https://github.com/mlorentedev/pdf-modifier-mcp/compare/v1.5.0...v1.6.0) (2026-06-24)
57
+
58
+
59
+ ### Features
60
+
61
+ * **ai:** NaN Cloud AI layer with model router + throttle ([#88](https://github.com/mlorentedev/pdf-modifier-mcp/issues/88)) ([ae05deb](https://github.com/mlorentedev/pdf-modifier-mcp/commit/ae05deb36ff6cabd60c21deceaf22209705ca6f5))
62
+ * **web:** FastAPI + SvelteKit web UI for PDF editing ([#89](https://github.com/mlorentedev/pdf-modifier-mcp/issues/89)) ([e1ea0eb](https://github.com/mlorentedev/pdf-modifier-mcp/commit/e1ea0ebec48c026f51354e5e7503420e60f7380b))
63
+
64
+ ## [1.5.0](https://github.com/mlorentedev/pdf-modifier-mcp/compare/v1.4.3...v1.5.0) (2026-06-21)
65
+
66
+
67
+ ### Features
68
+
69
+ * **core:** custom font support with FontResolver pattern ([#86](https://github.com/mlorentedev/pdf-modifier-mcp/issues/86)) ([09e7e45](https://github.com/mlorentedev/pdf-modifier-mcp/commit/09e7e45e6af8682875d7d8190a3fdb5a203a5594)), closes [#3](https://github.com/mlorentedev/pdf-modifier-mcp/issues/3)
70
+ * **core:** page range support for targeted PDF modifications ([#84](https://github.com/mlorentedev/pdf-modifier-mcp/issues/84)) ([68e1c19](https://github.com/mlorentedev/pdf-modifier-mcp/commit/68e1c1935e2f485e2e6217a83096a62dd530d71d))
71
+
72
+ ## [1.4.3](https://github.com/mlorentedev/pdf-modifier-mcp/compare/v1.4.2...v1.4.3) (2026-06-20)
73
+
74
+
75
+ ### Bug Fixes
76
+
77
+ * **security:** harden .gitignore + add pre-implementation audit ([#82](https://github.com/mlorentedev/pdf-modifier-mcp/issues/82)) ([f53288c](https://github.com/mlorentedev/pdf-modifier-mcp/commit/f53288c8d57b31324c2d5e5fdfcdceee0d1bd656))
78
+
79
+
80
+ ### Documentation
81
+
82
+ * architecture session — 12 ADRs, 6 specs, AGENTS.md migration ([#79](https://github.com/mlorentedev/pdf-modifier-mcp/issues/79)) ([2dd5e26](https://github.com/mlorentedev/pdf-modifier-mcp/commit/2dd5e264b6aace81b1582d9bc45a7f1a01a3191c))
83
+
84
+ ## [1.4.2](https://github.com/mlorentedev/pdf-modifier-mcp/compare/v1.4.1...v1.4.2) (2026-05-29)
85
+
86
+
87
+ ### Documentation
88
+
89
+ * migrate project-bound knowledge into docs/ (KPM-017) ([#63](https://github.com/mlorentedev/pdf-modifier-mcp/issues/63)) ([61a08a7](https://github.com/mlorentedev/pdf-modifier-mcp/commit/61a08a7ad0b05dda908187d3e864070023724b36))
90
+
91
+ ## [1.4.1](https://github.com/mlorentedev/pdf-modifier-mcp/compare/v1.4.0...v1.4.1) (2026-03-15)
92
+
93
+
94
+ ### Documentation
95
+
96
+ * update docs for v1.4 features ([#59](https://github.com/mlorentedev/pdf-modifier-mcp/issues/59)) ([4b10f11](https://github.com/mlorentedev/pdf-modifier-mcp/commit/4b10f11d3e7a6fe258ca05bd7a0e5958f5c1d3db))
97
+
98
+ ## [1.4.0](https://github.com/mlorentedev/pdf-modifier-mcp/compare/v1.3.0...v1.4.0) (2026-03-15)
99
+
100
+
101
+ ### Features
102
+
103
+ * add file size validation to prevent OOM with large PDFs ([#54](https://github.com/mlorentedev/pdf-modifier-mcp/issues/54)) ([d289274](https://github.com/mlorentedev/pdf-modifier-mcp/commit/d28927409e5a1e6a34d7ae4e33aae1493b8c53de))
104
+ * **core:** implement multi-span regex matching ([#57](https://github.com/mlorentedev/pdf-modifier-mcp/issues/57)) ([ad56a05](https://github.com/mlorentedev/pdf-modifier-mcp/commit/ad56a05ccbd02ef68edd9beebf9dc752b1e77512)), closes [#4](https://github.com/mlorentedev/pdf-modifier-mcp/issues/4)
105
+ * **mcp:** add batch processing support ([#56](https://github.com/mlorentedev/pdf-modifier-mcp/issues/56)) ([fb24f32](https://github.com/mlorentedev/pdf-modifier-mcp/commit/fb24f32f65405d0bb3c3bc3edae9191803e3ca3e)), closes [#11](https://github.com/mlorentedev/pdf-modifier-mcp/issues/11)
106
+
107
+
108
+ ### Bug Fixes
109
+
110
+ * **ci:** auto-trigger CI on release-please PR branch ([#58](https://github.com/mlorentedev/pdf-modifier-mcp/issues/58)) ([ef7e73a](https://github.com/mlorentedev/pdf-modifier-mcp/commit/ef7e73a87f099e0697ea178b4c4165fbd602f519))
111
+
112
+ ## [1.3.0](https://github.com/mlorentedev/pdf-modifier-mcp/compare/v1.2.0...v1.3.0) (2026-03-14)
113
+
114
+
115
+ ### Features
116
+
117
+ * **analyzer:** add hyperlink inventory support ([#41](https://github.com/mlorentedev/pdf-modifier-mcp/issues/41)) ([b072402](https://github.com/mlorentedev/pdf-modifier-mcp/commit/b07240234e96491392694964e9029ce090164aea))
118
+ * **security:** add password protection support and structured json logging ([#35](https://github.com/mlorentedev/pdf-modifier-mcp/issues/35)) ([fbab7bf](https://github.com/mlorentedev/pdf-modifier-mcp/commit/fbab7bffd9be5c3fb891b7cc2072898e71a46479))
119
+ * test semantic release workflow ([aa7158e](https://github.com/mlorentedev/pdf-modifier-mcp/commit/aa7158e46ba679195efaab5c43659cc4cb367567))
120
+
121
+
122
+ ### Bug Fixes
123
+
124
+ * **ci:** bypass branch protection by pushing tags manually and using --no-push ([#45](https://github.com/mlorentedev/pdf-modifier-mcp/issues/45)) ([d398e1b](https://github.com/mlorentedev/pdf-modifier-mcp/commit/d398e1ba8b0bf4ac706bb810ef393c7a66632d40))
125
+ * **ci:** correct YAML syntax error in release workflow ([#46](https://github.com/mlorentedev/pdf-modifier-mcp/issues/46)) ([1014c2a](https://github.com/mlorentedev/pdf-modifier-mcp/commit/1014c2a0da327d593e931c5109b6d981d54cdb78))
126
+ * **ci:** disable branch push during release to bypass strict protection ([#44](https://github.com/mlorentedev/pdf-modifier-mcp/issues/44)) ([ca35911](https://github.com/mlorentedev/pdf-modifier-mcp/commit/ca35911fd912db6a2974ed0805b9f1a8a86a6262))
127
+ * **ci:** enable ci on all branches and remove redundant release valid… ([2b9170a](https://github.com/mlorentedev/pdf-modifier-mcp/commit/2b9170a6cf0239d6f47fe745811284ee1988460e))
128
+ * **ci:** enable ci on all branches and remove redundant release validation ([ebb662e](https://github.com/mlorentedev/pdf-modifier-mcp/commit/ebb662ed0192194f4eece80373c51a2405146aa4))
129
+ * **ci:** ensure publish-mcp job checks out the actual released tag ([#37](https://github.com/mlorentedev/pdf-modifier-mcp/issues/37)) ([b8099d5](https://github.com/mlorentedev/pdf-modifier-mcp/commit/b8099d58dbccfafd51314a8b4929bb10bb7faf2f))
130
+ * **ci:** fetch full history to fix semantic-release detached head error ([395106f](https://github.com/mlorentedev/pdf-modifier-mcp/commit/395106f5adbddf0ec4c458f2ebec55d7c591c442))
131
+ * **ci:** improve new release detection in release workflow ([#36](https://github.com/mlorentedev/pdf-modifier-mcp/issues/36)) ([0dd63b0](https://github.com/mlorentedev/pdf-modifier-mcp/commit/0dd63b09044c90fdde7c33bfe45adfb4acec757a))
132
+ * **ci:** only publish to PyPI when dist artifacts exist ([#33](https://github.com/mlorentedev/pdf-modifier-mcp/issues/33)) ([81e14eb](https://github.com/mlorentedev/pdf-modifier-mcp/commit/81e14ebb1955c3413a2d105a0e17d5919b6976ea))
133
+ * **ci:** repair yaml syntax error in ci workflow ([0b03ce2](https://github.com/mlorentedev/pdf-modifier-mcp/commit/0b03ce2e0b896a30a22dabddf7060c32a13060aa))
134
+ * **ci:** replace docker action with native python semantic-release workflow ([c4dc483](https://github.com/mlorentedev/pdf-modifier-mcp/commit/c4dc48371f4c7a520dd2fd4bd50992922dc40c86))
135
+ * **ci:** revert to RELEASE_TOKEN to bypass branch protection ([#39](https://github.com/mlorentedev/pdf-modifier-mcp/issues/39)) ([5e1f9a7](https://github.com/mlorentedev/pdf-modifier-mcp/commit/5e1f9a7156ae57cd66f64831eca403f4394b79b2))
136
+ * **ci:** robust release detection and fix token usage ([#38](https://github.com/mlorentedev/pdf-modifier-mcp/issues/38)) ([849730f](https://github.com/mlorentedev/pdf-modifier-mcp/commit/849730f820adbf051d80fad6ecdd3005d2db2e34))
137
+ * **ci:** trigger release on push to master for robustness ([2604a10](https://github.com/mlorentedev/pdf-modifier-mcp/commit/2604a108c40ea50d9f14a0c02df4cc3836e0fb8b))
138
+ * **ci:** use trusted pypi publisher action ([4652568](https://github.com/mlorentedev/pdf-modifier-mcp/commit/46525688c4161f4a4de3e2996f9f5eae1acfde6d))
139
+ * **cli:** improve hyperlink counter visibility ([#42](https://github.com/mlorentedev/pdf-modifier-mcp/issues/42)) ([8549509](https://github.com/mlorentedev/pdf-modifier-mcp/commit/85495094e2180fdb08dff4a28866607ebcbb1d5d))
140
+ * **release:** avoid protected branch push issue ([#28](https://github.com/mlorentedev/pdf-modifier-mcp/issues/28)) ([f42799e](https://github.com/mlorentedev/pdf-modifier-mcp/commit/f42799e782ebcef0a179b1aa93da269f7b024f05))
141
+ * **release:** correct changelog template for semantic-release v9 ([#27](https://github.com/mlorentedev/pdf-modifier-mcp/issues/27)) ([7439740](https://github.com/mlorentedev/pdf-modifier-mcp/commit/7439740ae12df8f2154798f638bc29c5d9561171))
142
+ * **release:** disable internal pypi upload in semantic-release config ([4149d89](https://github.com/mlorentedev/pdf-modifier-mcp/commit/4149d892437e1b0d4bb851a3ac577d63eb41802a))
143
+ * **release:** remove problematic remote type config ([827a5ef](https://github.com/mlorentedev/pdf-modifier-mcp/commit/827a5ef555bbbeb5240fa2ef1ce374d002e402cb))
144
+ * **release:** remove problematic remote type config ([f9a44f9](https://github.com/mlorentedev/pdf-modifier-mcp/commit/f9a44f94345e58bcba81f13cd49968cb9a24faf7))
145
+ * **release:** remove remote config entirely to fix CI error ([0985808](https://github.com/mlorentedev/pdf-modifier-mcp/commit/0985808ae667eb7fb0c97b46d8b21721ab990dad))
146
+ * **release:** update semantic-release config for v9 compatibility ([#26](https://github.com/mlorentedev/pdf-modifier-mcp/issues/26)) ([3100eae](https://github.com/mlorentedev/pdf-modifier-mcp/commit/3100eae3b6e30bf5fafa1440de642492ec621564))
147
+ * **release:** update semantic-release config to v9 standards ([6f05422](https://github.com/mlorentedev/pdf-modifier-mcp/commit/6f05422d4e75ac20b04ec56bdcb8d9d53a2078aa))
148
+ * **release:** update semantic-release config to v9 standards ([82f313e](https://github.com/mlorentedev/pdf-modifier-mcp/commit/82f313e0be7ddc3545843f5c1cf9f92ab54f076c))
149
+ * **release:** use PAT token in checkout for git push ([#30](https://github.com/mlorentedev/pdf-modifier-mcp/issues/30)) ([ce839c5](https://github.com/mlorentedev/pdf-modifier-mcp/commit/ce839c542f91e2a8e15641a8a3737495c1a4192b))
150
+ * **release:** use RELEASE_TOKEN PAT to bypass branch protection ([#29](https://github.com/mlorentedev/pdf-modifier-mcp/issues/29)) ([0af8e9e](https://github.com/mlorentedev/pdf-modifier-mcp/commit/0af8e9e0e745179f2258b70987bd7957a4ac8a97))
151
+ * remove unsupported description argument from FastMCP ([cfe1225](https://github.com/mlorentedev/pdf-modifier-mcp/commit/cfe12255b55d7c19ad131e6ec4ff2784e6cc346e))
152
+ * resolve TypeError in FastMCP initialization ([879e712](https://github.com/mlorentedev/pdf-modifier-mcp/commit/879e712ca29f22c413060d90dbf8491008a1d1b4))
153
+ * **site:** improve UI contrast and accessible colors ([#49](https://github.com/mlorentedev/pdf-modifier-mcp/issues/49)) ([38c8e27](https://github.com/mlorentedev/pdf-modifier-mcp/commit/38c8e2722cc85ed63469a6b10f09cf47633d668d))
154
+ * **smithery:** remove .well-known folder (for HTTP servers only) ([#34](https://github.com/mlorentedev/pdf-modifier-mcp/issues/34)) ([29cb390](https://github.com/mlorentedev/pdf-modifier-mcp/commit/29cb39054601cc9140dd4078c76a14244ff85726))
155
+ * **smithery:** use uvx to run package from PyPI ([#32](https://github.com/mlorentedev/pdf-modifier-mcp/issues/32)) ([dffb565](https://github.com/mlorentedev/pdf-modifier-mcp/commit/dffb56587b903246d219eefac3926be6119e35df))
156
+
157
+
158
+ ### Documentation
159
+
160
+ * add smithery server card for discovery ([dfa30d3](https://github.com/mlorentedev/pdf-modifier-mcp/commit/dfa30d39c153fedb30baaeb5a8785b9ff6672655))
161
+ * add Starlight documentation site with GitHub Pages deployment ([d4e00a0](https://github.com/mlorentedev/pdf-modifier-mcp/commit/d4e00a03325c9a8ef6f3f1837ec0003dfa0f5ffc))
162
+ * finalize readme with latest tools and stack info ([#50](https://github.com/mlorentedev/pdf-modifier-mcp/issues/50)) ([b5aad8a](https://github.com/mlorentedev/pdf-modifier-mcp/commit/b5aad8ac60ab7b3c0dca2fa3db2388ef0a7b2a6c))
163
+ * **site:** add branding, badges, favicon, and improved content ([237b166](https://github.com/mlorentedev/pdf-modifier-mcp/commit/237b166171cd024e0e6c4c1bd5cea71e5b83554d))
164
+
165
+ ## [1.2.0](https://github.com/mlorentedev/pdf-modifier-mcp/compare/v1.1.1...v1.2.0) (2026-03-14)
166
+
167
+
168
+ ### Features
169
+
170
+ * **analyzer:** add hyperlink inventory support ([#41](https://github.com/mlorentedev/pdf-modifier-mcp/issues/41)) ([b072402](https://github.com/mlorentedev/pdf-modifier-mcp/commit/b07240234e96491392694964e9029ce090164aea))
171
+
172
+
173
+ ### Bug Fixes
174
+
175
+ * **ci:** bypass branch protection by pushing tags manually and using --no-push ([#45](https://github.com/mlorentedev/pdf-modifier-mcp/issues/45)) ([d398e1b](https://github.com/mlorentedev/pdf-modifier-mcp/commit/d398e1ba8b0bf4ac706bb810ef393c7a66632d40))
176
+ * **ci:** correct YAML syntax error in release workflow ([#46](https://github.com/mlorentedev/pdf-modifier-mcp/issues/46)) ([1014c2a](https://github.com/mlorentedev/pdf-modifier-mcp/commit/1014c2a0da327d593e931c5109b6d981d54cdb78))
177
+ * **ci:** disable branch push during release to bypass strict protection ([#44](https://github.com/mlorentedev/pdf-modifier-mcp/issues/44)) ([ca35911](https://github.com/mlorentedev/pdf-modifier-mcp/commit/ca35911fd912db6a2974ed0805b9f1a8a86a6262))
178
+ * **ci:** ensure publish-mcp job checks out the actual released tag ([#37](https://github.com/mlorentedev/pdf-modifier-mcp/issues/37)) ([b8099d5](https://github.com/mlorentedev/pdf-modifier-mcp/commit/b8099d58dbccfafd51314a8b4929bb10bb7faf2f))
179
+ * **ci:** revert to RELEASE_TOKEN to bypass branch protection ([#39](https://github.com/mlorentedev/pdf-modifier-mcp/issues/39)) ([5e1f9a7](https://github.com/mlorentedev/pdf-modifier-mcp/commit/5e1f9a7156ae57cd66f64831eca403f4394b79b2))
180
+ * **ci:** robust release detection and fix token usage ([#38](https://github.com/mlorentedev/pdf-modifier-mcp/issues/38)) ([849730f](https://github.com/mlorentedev/pdf-modifier-mcp/commit/849730f820adbf051d80fad6ecdd3005d2db2e34))
181
+ * **cli:** improve hyperlink counter visibility ([#42](https://github.com/mlorentedev/pdf-modifier-mcp/issues/42)) ([8549509](https://github.com/mlorentedev/pdf-modifier-mcp/commit/85495094e2180fdb08dff4a28866607ebcbb1d5d))
182
+ * **site:** improve UI contrast and accessible colors ([#49](https://github.com/mlorentedev/pdf-modifier-mcp/issues/49)) ([38c8e27](https://github.com/mlorentedev/pdf-modifier-mcp/commit/38c8e2722cc85ed63469a6b10f09cf47633d668d))
183
+
184
+
185
+ ### Documentation
186
+
187
+ * finalize readme with latest tools and stack info ([#50](https://github.com/mlorentedev/pdf-modifier-mcp/issues/50)) ([b5aad8a](https://github.com/mlorentedev/pdf-modifier-mcp/commit/b5aad8ac60ab7b3c0dca2fa3db2388ef0a7b2a6c))
188
+
189
+ ## [v1.1.1](https://github.com/mlorentedev/pdf-modifier-mcp/releases/tag/v1.1.1) (2026-03-08)
190
+
191
+
192
+
193
+ ### Bug fixes
194
+
195
+
196
+ - improve new release detection in release workflow ([`0dd63b0`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/0dd63b09044c90fdde7c33bfe45adfb4acec757a))
197
+
198
+
199
+
200
+
201
+
202
+ ### Chores
203
+
204
+
205
+ - sync server.json to v1.1.0 and conditionalize mcp publishing ([`f297411`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/f2974117a6266c981b95aae89b746b5ac072c3e4))
206
+
207
+ - fix mcp ownership comment position in README for registry validation ([`c20f5a4`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/c20f5a4f88bbc386a54df0685768f1e0b89ecc42))
208
+
209
+
210
+
211
+
212
+
213
+ ## [v1.1.0](https://github.com/mlorentedev/pdf-modifier-mcp/releases/tag/v1.1.0) (2026-03-08)
214
+
215
+
216
+
217
+ ### Chores
218
+
219
+
220
+ - fix semantic-release version_variables syntax for server.json ([`877325c`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/877325c0c35041da148531ebb6fa07711a268c74))
221
+
222
+ - standardize mcp distribution and harden core ([`e7fe913`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/e7fe9134b7e714641955f7a3335fd8efa4d7b77a))
223
+
224
+
225
+
226
+
227
+
228
+ ### Documentation
229
+
230
+
231
+ - add branding, badges, favicon, and improved content ([`237b166`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/237b166171cd024e0e6c4c1bd5cea71e5b83554d))
232
+
233
+ - add Starlight documentation site with GitHub Pages deployment ([`d4e00a0`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/d4e00a03325c9a8ef6f3f1837ec0003dfa0f5ffc))
234
+
235
+
236
+
237
+
238
+
239
+ ### Features
240
+
241
+
242
+ - add password protection support and structured json logging ([`fbab7bf`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/fbab7bffd9be5c3fb891b7cc2072898e71a46479))
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+ ## [v1.0.3](https://github.com/mlorentedev/pdf-modifier-mcp/releases/tag/v1.0.3) (2026-01-15)
251
+
252
+
253
+
254
+ ### Bug fixes
255
+
256
+
257
+ - remove .well-known folder (for HTTP servers only) ([`29cb390`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/29cb39054601cc9140dd4078c76a14244ff85726))
258
+
259
+
260
+
261
+
262
+
263
+ ## [v1.0.2](https://github.com/mlorentedev/pdf-modifier-mcp/releases/tag/v1.0.2) (2026-01-15)
264
+
265
+
266
+
267
+ ### Bug fixes
268
+
269
+
270
+ - only publish to PyPI when dist artifacts exist ([`81e14eb`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/81e14ebb1955c3413a2d105a0e17d5919b6976ea))
271
+
272
+
273
+
274
+
275
+
276
+ ## [v1.0.1](https://github.com/mlorentedev/pdf-modifier-mcp/releases/tag/v1.0.1) (2026-01-15)
277
+
278
+
279
+
280
+ ### Bug fixes
281
+
282
+
283
+ - use uvx to run package from PyPI ([`dffb565`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/dffb56587b903246d219eefac3926be6119e35df))
284
+
285
+
286
+
287
+
288
+
289
+ ### Refactoring
290
+
291
+
292
+ - simplify release workflow and fix deprecation warning ([`4fe922c`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/4fe922c74529186da9ac1a8b8fe2844dd512995c))
293
+
294
+
295
+
296
+
297
+
298
+ ## [v1.0.0](https://github.com/mlorentedev/pdf-modifier-mcp/releases/tag/v1.0.0) (2026-01-15)
299
+
300
+
301
+
302
+ ### Bug fixes
303
+
304
+
305
+ - use PAT token in checkout for git push ([`ce839c5`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/ce839c542f91e2a8e15641a8a3737495c1a4192b))
306
+
307
+ - use RELEASE_TOKEN PAT to bypass branch protection ([`ce839c5`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/ce839c542f91e2a8e15641a8a3737495c1a4192b))
308
+
309
+ - use RELEASE_TOKEN in checkout for git push auth ([`ce839c5`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/ce839c542f91e2a8e15641a8a3737495c1a4192b))
310
+
311
+ - use RELEASE_TOKEN PAT to bypass branch protection ([`0af8e9e`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/0af8e9e0e745179f2258b70987bd7957a4ac8a97))
312
+
313
+ - avoid protected branch push issue ([`f42799e`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/f42799e782ebcef0a179b1aa93da269f7b024f05))
314
+
315
+ - update semantic-release config for v9 compatibility ([`f42799e`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/f42799e782ebcef0a179b1aa93da269f7b024f05))
316
+
317
+ - correct changelog template syntax for semantic-release v9 ([`f42799e`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/f42799e782ebcef0a179b1aa93da269f7b024f05))
318
+
319
+ - use --no-push --no-commit to avoid protected branch issue ([`f42799e`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/f42799e782ebcef0a179b1aa93da269f7b024f05))
320
+
321
+ - correct changelog template for semantic-release v9 ([`7439740`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/7439740ae12df8f2154798f638bc29c5d9561171))
322
+
323
+ - update semantic-release config for v9 compatibility ([`7439740`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/7439740ae12df8f2154798f638bc29c5d9561171))
324
+
325
+ - correct changelog template syntax for semantic-release v9 ([`7439740`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/7439740ae12df8f2154798f638bc29c5d9561171))
326
+
327
+ - update semantic-release config for v9 compatibility ([`3100eae`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/3100eae3b6e30bf5fafa1440de642492ec621564))
328
+
329
+ - disable internal pypi upload in semantic-release config ([`4149d89`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/4149d892437e1b0d4bb851a3ac577d63eb41802a))
330
+
331
+ - use trusted pypi publisher action ([`4652568`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/46525688c4161f4a4de3e2996f9f5eae1acfde6d))
332
+
333
+ - replace docker action with native python semantic-release workflow ([`c4dc483`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/c4dc48371f4c7a520dd2fd4bd50992922dc40c86))
334
+
335
+ - fetch full history to fix semantic-release detached head error ([`395106f`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/395106f5adbddf0ec4c458f2ebec55d7c591c442))
336
+
337
+ - repair yaml syntax error in ci workflow ([`0b03ce2`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/0b03ce2e0b896a30a22dabddf7060c32a13060aa))
338
+
339
+ - remove remote config entirely to fix CI error ([`0985808`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/0985808ae667eb7fb0c97b46d8b21721ab990dad))
340
+
341
+ - trigger release on push to master for robustness ([`2604a10`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/2604a108c40ea50d9f14a0c02df4cc3836e0fb8b))
342
+
343
+ - remove problematic remote type config ([`f9a44f9`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/f9a44f94345e58bcba81f13cd49968cb9a24faf7))
344
+
345
+ - update semantic-release config to v9 standards ([`82f313e`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/82f313e0be7ddc3545843f5c1cf9f92ab54f076c))
346
+
347
+ - enable ci on all branches and remove redundant release validation ([`ebb662e`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/ebb662ed0192194f4eece80373c51a2405146aa4))
348
+
349
+ - remove unsupported description argument from FastMCP ([`cfe1225`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/cfe12255b55d7c19ad131e6ec4ff2784e6cc346e))
350
+
351
+
352
+
353
+
354
+
355
+ ### Continuous integration
356
+
357
+
358
+ - reduce python matrix to min (3.10) and max (3.12) versions ([`6d23ad7`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/6d23ad7b9f9cc649e9189755752ce8914b8f88d4))
359
+
360
+ - switch to official python-semantic-release action for stability ([`fad8a7c`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/fad8a7c307714f03c0cc39d84faa7e1f32d38f03))
361
+
362
+ - remove release verification step to avoid detached head errors ([`fba23a8`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/fba23a818e5f01a84bed6d1183027fc630b13127))
363
+
364
+ - add semantic-release config verification to CI pipeline ([`4f2ea0d`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/4f2ea0dce42d286548539872b7d68b71fe8d32aa))
365
+
366
+ - test release workflow on feature branch ([`1f1dc85`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/1f1dc85f2924b83969c2736ed7c2c75ceb9ddc69))
367
+
368
+
369
+
370
+
371
+
372
+ ### Documentation
373
+
374
+
375
+ - add smithery server card for discovery ([`dfa30d3`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/dfa30d39c153fedb30baaeb5a8785b9ff6672655))
376
+
377
+
378
+
379
+
380
+
381
+ ### Features
382
+
383
+
384
+ - test semantic release workflow ([`aa7158e`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/aa7158e46ba679195efaab5c43659cc4cb367567))
385
+
386
+
387
+
388
+
389
+
390
+ ### Refactoring
391
+
392
+
393
+ - switch to tag-based release workflow (removes semantic-release) ([`edd0892`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/edd08926adfa754bb107dcfedbae8229e2928983))
394
+
395
+ - modernize project structure and update CI/CD ([`e024b0e`](https://github.com/mlorentedev/pdf-modifier-mcp/commit/e024b0e3af890f55457f15881c8fc9a2956221ea))
@@ -0,0 +1,56 @@
1
+ # =============================================================================
2
+ # Backend Dockerfile — pdf-modifier (FastAPI)
3
+ # Multi-stage: builder (download wheels) → runtime (install + run, non-root)
4
+ # =============================================================================
5
+
6
+ # ---------------------------------------------------------------------------
7
+ # Stage 1: Builder — download wheels to avoid network in runtime
8
+ # ---------------------------------------------------------------------------
9
+ FROM python:3.12-slim-bookworm AS builder
10
+
11
+ WORKDIR /build
12
+
13
+ COPY pyproject.toml uv.lock ./
14
+
15
+ RUN pip install --no-cache-dir uv && \
16
+ uv pip compile pyproject.toml --python-version 3.12 -q -o requirements.txt && \
17
+ pip wheel --no-cache-dir --wheel-dir /wheels -r requirements.txt
18
+
19
+ # ---------------------------------------------------------------------------
20
+ # Stage 2: Runtime — minimal image, non-root user
21
+ # ---------------------------------------------------------------------------
22
+ FROM python:3.12-slim-bookworm AS runtime
23
+
24
+ RUN groupadd -r appuser && useradd -r -g appuser -d /app -s /sbin/nologin appuser
25
+
26
+ WORKDIR /app
27
+
28
+ # Venv lives OUTSIDE /app so volume mounts don't overwrite it
29
+ RUN python -m venv /opt/venv
30
+ ENV PATH="/opt/venv/bin:$PATH"
31
+
32
+ # Install wheels (no network needed)
33
+ COPY --from=builder /wheels /wheels
34
+ RUN pip install --no-cache-dir /wheels/* && rm -rf /wheels
35
+
36
+ # Copy source and install package
37
+ COPY pyproject.toml ./
38
+ COPY src/ ./
39
+ COPY server.json CHANGELOG.md LICENSE README.md ./
40
+ RUN pip install --no-cache-dir .
41
+
42
+ # Verify critical binaries exist
43
+ RUN python -c "import uvicorn; print(f'uvicorn {uvicorn.__version__}')" && \
44
+ which uvicorn
45
+
46
+ # Runtime directories
47
+ RUN mkdir -p /app/.pdf-modifier/logs /app/storage && chown -R appuser:appuser /app /opt/venv
48
+
49
+ EXPOSE 8000
50
+
51
+ HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
52
+ CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')" || exit 1
53
+
54
+ USER appuser
55
+
56
+ CMD ["uvicorn", "pdf_modifier.web.app:create_app", "--factory", "--host", "0.0.0.0", "--port", "8000"]
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Manu Lorente
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.