Skip to content

[P2] Expose pptx in both directions (input requires pandoc >= 3.8.3) #49

Description

@vivekVells

Links

Correction to the original issue

This issue previously stated that pandoc cannot read pptx and that pptx should therefore be output-only. That was wrong.

Pandoc 3.8.3, released 2025-12-01, added a native PowerPoint reader:

Add pptx (PowerPoint) as new input format (Anton Antich).
New module Text.Pandoc.Readers.Pptx, exporting readPptx``

The original claim came from testing against a local pandoc 3.7.0.2, which is 14 months old, and reporting the result as a permanent property of pandoc. The conclusion that a python-pptx dependency would be needed is withdrawn.

Problem

pptx is exposed by this project in neither direction, despite pandoc supporting both:

Pandoc support Exposed by mcp-pandoc
pptx as output all supported versions no
pptx as input >= 3.8.3 no

Why it is blocked

pyproject.toml declares pandoc>=2.4, which is the PyPI Python library, not the binary. Nothing constrains which pandoc binary a user has. So "mcp-pandoc supports pptx input" currently has no truth value: it depends on a version we neither declare nor check.

Adding pptx input without a version floor would give two users on the same server version different capabilities, with no signal explaining why.

Acceptance criteria

  • A minimum pandoc version is declared and checked first, see the blocking issue
  • pptx added to output_format, treated as an advanced format requiring output_file
  • pptx added to input_format only if the declared minimum is >= 3.8.3, otherwise gated on a detected capability
  • Tests both directions, skipped when the local pandoc is too old
  • README states the pandoc version required for pptx input

Out of scope

Any non-pandoc pptx library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions