pptx-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 (61) hide show
  1. pptx_mcp-0.1.0/.claude/settings.local.json +8 -0
  2. pptx_mcp-0.1.0/.gitignore +25 -0
  3. pptx_mcp-0.1.0/CLAUDE.md +52 -0
  4. pptx_mcp-0.1.0/LICENSE +21 -0
  5. pptx_mcp-0.1.0/PKG-INFO +809 -0
  6. pptx_mcp-0.1.0/README.md +779 -0
  7. pptx_mcp-0.1.0/SECURITY.md +52 -0
  8. pptx_mcp-0.1.0/examples/brand_config.yaml +52 -0
  9. pptx_mcp-0.1.0/examples/sample_deck.json +171 -0
  10. pptx_mcp-0.1.0/examples/test_invocation.py +142 -0
  11. pptx_mcp-0.1.0/pptx_mcp/__init__.py +3 -0
  12. pptx_mcp-0.1.0/pptx_mcp/__main__.py +6 -0
  13. pptx_mcp-0.1.0/pptx_mcp/agents/__init__.py +1 -0
  14. pptx_mcp-0.1.0/pptx_mcp/agents/archetypes.py +132 -0
  15. pptx_mcp-0.1.0/pptx_mcp/agents/base.py +49 -0
  16. pptx_mcp-0.1.0/pptx_mcp/agents/content_mapper.py +46 -0
  17. pptx_mcp-0.1.0/pptx_mcp/agents/designer.py +333 -0
  18. pptx_mcp-0.1.0/pptx_mcp/agents/iterator.py +244 -0
  19. pptx_mcp-0.1.0/pptx_mcp/agents/planner.py +454 -0
  20. pptx_mcp-0.1.0/pptx_mcp/agents/reviewer.py +93 -0
  21. pptx_mcp-0.1.0/pptx_mcp/brand/__init__.py +1 -0
  22. pptx_mcp-0.1.0/pptx_mcp/brand/config.py +88 -0
  23. pptx_mcp-0.1.0/pptx_mcp/brand/defaults.py +258 -0
  24. pptx_mcp-0.1.0/pptx_mcp/cli.py +239 -0
  25. pptx_mcp-0.1.0/pptx_mcp/engine/__init__.py +1 -0
  26. pptx_mcp-0.1.0/pptx_mcp/engine/charts.py +103 -0
  27. pptx_mcp-0.1.0/pptx_mcp/engine/composition.py +279 -0
  28. pptx_mcp-0.1.0/pptx_mcp/engine/generator.py +631 -0
  29. pptx_mcp-0.1.0/pptx_mcp/engine/layouts.py +1667 -0
  30. pptx_mcp-0.1.0/pptx_mcp/engine/parser.py +342 -0
  31. pptx_mcp-0.1.0/pptx_mcp/engine/shapes.py +254 -0
  32. pptx_mcp-0.1.0/pptx_mcp/models/__init__.py +79 -0
  33. pptx_mcp-0.1.0/pptx_mcp/models/brand.py +93 -0
  34. pptx_mcp-0.1.0/pptx_mcp/models/review.py +78 -0
  35. pptx_mcp-0.1.0/pptx_mcp/models/slides.py +414 -0
  36. pptx_mcp-0.1.0/pptx_mcp/py.typed +0 -0
  37. pptx_mcp-0.1.0/pptx_mcp/review/__init__.py +1 -0
  38. pptx_mcp-0.1.0/pptx_mcp/review/engine.py +199 -0
  39. pptx_mcp-0.1.0/pptx_mcp/review/rules.py +262 -0
  40. pptx_mcp-0.1.0/pptx_mcp/server.py +1076 -0
  41. pptx_mcp-0.1.0/pptx_mcp/utils/__init__.py +1 -0
  42. pptx_mcp-0.1.0/pptx_mcp/utils/errors.py +33 -0
  43. pptx_mcp-0.1.0/pptx_mcp/utils/logging.py +38 -0
  44. pptx_mcp-0.1.0/pptx_mcp/utils/paths.py +96 -0
  45. pptx_mcp-0.1.0/pyproject.toml +57 -0
  46. pptx_mcp-0.1.0/requirements-lock.txt +45 -0
  47. pptx_mcp-0.1.0/requirements.txt +5 -0
  48. pptx_mcp-0.1.0/schemas/brand_config.json +73 -0
  49. pptx_mcp-0.1.0/schemas/slide_definition.json +73 -0
  50. pptx_mcp-0.1.0/tests/__init__.py +0 -0
  51. pptx_mcp-0.1.0/tests/test_archetypes.py +35 -0
  52. pptx_mcp-0.1.0/tests/test_brand_matrix.py +143 -0
  53. pptx_mcp-0.1.0/tests/test_cli.py +150 -0
  54. pptx_mcp-0.1.0/tests/test_composition.py +130 -0
  55. pptx_mcp-0.1.0/tests/test_edge_cases.py +239 -0
  56. pptx_mcp-0.1.0/tests/test_generator.py +524 -0
  57. pptx_mcp-0.1.0/tests/test_parser.py +111 -0
  58. pptx_mcp-0.1.0/tests/test_paths.py +177 -0
  59. pptx_mcp-0.1.0/tests/test_review.py +292 -0
  60. pptx_mcp-0.1.0/tests/test_server_tools.py +373 -0
  61. pptx_mcp-0.1.0/uv.lock +1382 -0
@@ -0,0 +1,8 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(/Users/swak/Documents/GitHub/pptx-mcp/.venv/bin/python:*)",
5
+ "Bash(.venv/bin/python -m pytest:*)"
6
+ ]
7
+ }
8
+ }
@@ -0,0 +1,25 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ *$py.class
4
+ *.so
5
+ *.egg-info/
6
+ *.egg
7
+ dist/
8
+ build/
9
+ .eggs/
10
+ *.pptx
11
+ !examples/*.pptx
12
+ .env
13
+ .venv/
14
+ venv/
15
+ ENV/
16
+ .pytest_cache/
17
+ .mypy_cache/
18
+ .ruff_cache/
19
+ htmlcov/
20
+ .coverage
21
+ *.log
22
+ .DS_Store
23
+ Thumbs.db
24
+ output/
25
+ *.bak
@@ -0,0 +1,52 @@
1
+ # PPTX MCP — Claude Code Instructions
2
+
3
+ ## Running the Server
4
+
5
+ - Use `.venv/bin/python` — system Python does not have dependencies installed
6
+ - Start: `.venv/bin/python -m pptx_mcp.server`
7
+ - CLI: `.venv/bin/python -m pptx_mcp serve`
8
+ - Tests: `.venv/bin/python -m pytest tests/ -q`
9
+
10
+ ## Tool Usage Patterns
11
+
12
+ ### Quick generation (single step)
13
+ Use `generate_presentation` — plans, optimizes, and renders in one call.
14
+
15
+ ### Controlled workflow (multi-step)
16
+ 1. `plan_presentation` — get a PresentationDefinition
17
+ 2. `optimize_design` — improve layout
18
+ 3. `create_presentation` — render to .pptx
19
+
20
+ ### Editing existing decks
21
+ 1. `read_presentation` — parse .pptx to JSON
22
+ 2. `add_slide` / `update_slide` / `delete_slide` / `move_slide` / `duplicate_slide`
23
+ 3. `review_presentation` — get design feedback
24
+ 4. `improve_presentation` — auto-fix issues
25
+
26
+ ### Discovery tools
27
+ - `get_slide_templates` — all 23 slide types with examples
28
+ - `get_brand_presets` — available brand configurations
29
+ - `get_deck_types` — deck archetypes (pitch, board, sales, all-hands)
30
+
31
+ ## Important Constraints
32
+
33
+ - `output_path` must end in `.pptx`
34
+ - `slide_index` is 0-based
35
+ - `plan_presentation` returns JSON, not a file
36
+ - Brand presets: executive, technical, minimal, creative, corporate
37
+ - All file paths should be absolute
38
+ - Hyperlinks only support http://, https://, mailto: schemes
39
+
40
+ ## Project Architecture
41
+
42
+ ```
43
+ pptx_mcp/
44
+ server.py — 16 MCP tools, 7 prompts, 2 resources
45
+ cli.py — CLI: serve, generate, read, review, plan, improve
46
+ models/ — Pydantic models (slides, brand, review)
47
+ engine/ — Generator, parser, layouts, charts, shapes
48
+ brand/ — Brand config loading + 5 presets
49
+ agents/ — Planner, designer, reviewer, iterator
50
+ review/ — Review engine + design rules
51
+ utils/ — Errors, logging, path validation
52
+ ```
pptx_mcp-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 swak
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.