scitex_msword.mcp_server

MCP server scaffold exposing scitex-msword as a tool surface.

This is a scaffold: a focused tool surface is wired up, covering

  • legacy BOOST v16 dogfooding tools (diff_docx, mark_additions, mark_modifications, preserve_bold_tokens, extract_highlights, extract_comments, list_profiles), and

  • the full Track-Changes (revision) API surface from PR #8 (enable_track_changes, is_track_changes_enabled, wrap_as_tracked_insertion, wrap_as_tracked_deletion, extract_tracked_changes, accept_all_tracked_changes, reject_all_tracked_changes).

Further tools can be added by following the _tool helper pattern.

Install requirements (optional):

pip install scitex-msword[mcp]

Run the server (stdio):

python -m scitex_msword.mcp_server

The server is implemented against the official Anthropic mcp Python SDK using its FastMCP convenience wrapper. If the mcp package is not installed, importing this module still succeeds — only the serve() entrypoint raises.

Functions

build_server()

Construct and return a FastMCP server with scitex-msword tools wired.

serve()

Run the MCP server over stdio (blocking).