Skip to content

Releases: groupdocs-redaction/GroupDocs.Redaction.Mcp

26.5.1

24 May 22:37

Choose a tag to compare

26.5.1 — Image-area redaction now works on Linux & macOS

What changed

  • Fixed redact_image_area on Linux/macOS (including the Docker image). Added
    GdiPlusResolver (registered from Program.cs at startup) that maps the
    gdiplus.dll P/Invoke — emitted by System.Drawing.Common's GDI+ interop, which
    GroupDocs.Redaction reaches through Aspose.Pdf — to the platform's libgdiplus
    (libgdiplus.so / libgdiplus.dylib). It's a no-op on Windows (built-in GDI+).
  • Engine (GroupDocs.Redaction) stays at 26.5.0; only the MCP package version is bumped.

Why

On non-Windows, the .NET native-library loader probes gdiplus.dll,
libgdiplus.dll, and the .so/.dylib variants of those names — but never the
installed libgdiplus.so / libgdiplus.dylib. So redact_image_area threw
System.DllNotFoundException: Unable to load shared library 'gdiplus.dll' on Linux
and macOS even when libgdiplus was installed (apt libgdiplus / brew
mono-libgdiplus), and inside the Docker image. The resolver intercepts that load
and redirects it to the real libgdiplus. The other four tools never touched this
path and were unaffected.

This surfaced via the integration suite: RedactImageAreaTests failed on the
ubuntu and macOS CI legs (Windows passed — GDI+ is built in).

Migration / impact

  • libgdiplus must still be present on the host: the Docker image installs it; native
    (dnx / global tool) users install it per the README
    (apt-get install libgdiplus / brew install mono-libgdiplus). The resolver only
    fixes the name mapping, not a missing library.
  • No API or tool-surface change. GdiPlusResolver must run before the first GDI+
    P/Invoke — do not remove the GdiPlusResolver.Register(); call at the top of
    Program.cs.

Full Changelog: 26.5.0...26.5.1

26.5.0

22 May 14:17

Choose a tag to compare

Initial public release of GroupDocs.Redaction MCP Server

What changed

  • NuGet package GroupDocs.Redaction.Mcp published with McpServer package type.
  • Five MCP tools exposed:
    • RedactText — redacts text matching a regex pattern in a document and saves the result as <name>_redacted.<ext>.
    • EraseMetadata — erases document metadata fields (author, title, company, dates, and other properties).
    • RedactAnnotations — replaces or deletes annotations and comments in a document.
    • RedactImageArea — covers a rectangular page region with a solid-color box (pixel coordinates).
    • GetDocumentInfo — returns file type, page count, size, and per-page dimensions as JSON without modifying the document.
  • GetDocumentInfo added at clone time per the cross-product standard for MCP server repos.
  • The four redaction tools (RedactText, EraseMetadata, RedactAnnotations, RedactImageArea) ported from the GroupDocs.Redaction framework subproject; a Pitfall #18 catch-and-format exception wrapper added at clone time to each tool.
  • Installable via dnx GroupDocs.Redaction.Mcp@26.5.0 --yes (.NET 10 SDK required), dotnet tool install -g GroupDocs.Redaction.Mcp, or Docker.
  • Docker image published to ghcr.io/groupdocs-redaction/redaction-net-mcp and docker.io/groupdocs/redaction-net-mcp.
  • Environment variables: GROUPDOCS_MCP_STORAGE_PATH, optional GROUPDOCS_MCP_OUTPUT_PATH, GROUPDOCS_LICENSE_PATH.
  • Native dependencies on Linux: SkiaSharp.NativeAssets.Linux.NoDependencies 3.119.1 (pulled transitively via GroupDocs.Redaction.Net100) + System.Drawing.EnableUnixSupport runtime host config option. System.Drawing.Common 9.0.3 is used for image-area redaction (rectangular box overlay). Dockerfile installs libgdiplus libfontconfig1 (base set; no ttf-mscorefonts required — Redaction does structural redaction and pixel-box overlays, not text-glyph rendering).
  • Evaluation mode produces watermarked output; no hard block on unlicensed use.

Why

Exposes GroupDocs.Redaction for .NET as AI-callable MCP tools for Claude, Cursor,
VS Code / GitHub Copilot, and other MCP-compatible agents, enabling automated
document redaction workflows in AI pipelines.

Migration / impact

First release — no migration required.

Full Changelog: https://github.com/groupdocs-redaction/GroupDocs.Redaction.Mcp/commits/26.5.0