GroupDocs.Redaction.Mcp AGENTS.md

A set of instructions for AI coding agents working on a server that lets AI use GroupDocs.Redaction document-editing tools through the Model Context Protocol. The server can redact text, metadata, annotations, and selected image areas, or report document details.

In plain words
What is it for?
It is for developing, maintaining, or extending a .NET server that performs document redaction and inspection.
Why use it?
It gives coding agents the repository layout, dependencies, available tools, and expected behavior so they can work on the project safely and consistently.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/groupdocs-redaction/groupdocs.redaction.mcp/agents-md
Clone the repo
git clone --depth 1 https://github.com/groupdocs-redaction/GroupDocs.Redaction.Mcp

Made for: Codex, OpenCode.

Per session 1,627 This file is loaded in full into every session.
When invoked 1,627 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.01627 $0.01627
Opus 5 $0.00813 $0.00813
Sonnet 5 $0.00325 $0.00325
Haiku 4.5 $0.00163 $0.00163

Measured 2d ago against content hash ef05c9612e57, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

GroupDocs.Redaction.Mcp AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 116 lines

How it starts

The opening of the file, as written. The whole thing — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md — Guide for AI coding agents

Brief orientation for AI coding agents (Claude Code, Copilot, Cursor, Aider, Amp, Codex) working in this repository.

What this repo is

A standalone MCP server for GroupDocs.Redaction for .NET — exposes document redaction operations as AI-callable tools via the Model Context Protocol.

Published to NuGet as GroupDocs.Redaction.Mcp with the McpServer package type, and to ghcr.io/groupdocs-redaction/redaction-net-mcp + docker.io/groupdocs/redaction-net-mcp as a container image.

MCP tools exposed

Tool Description
RedactText Redact text matching a regex pattern in a document; saves result as <name>_redacted.<ext>
EraseMetadata Erase document metadata fields (author, title, company, dates, and other properties)
RedactAnnotations Replace or delete annotations and comments in a document
RedactImageArea Cover a rectangular page region with a solid-color box (pixel coordinates)
GetDocumentInfo Return file type, page count, size, and per-page dimensions as JSON (no modification)

All tools accept FileInput (resolved via IFileResolver). The four redaction tools (RedactText, EraseMetadata, RedactAnnotations, RedactImageArea) write output files to storage; GetDocumentInfo is read-only and returns JSON.

Folder layout

src/                                             ← all projects + sln + Directory.Build.props
  GroupDocs.Redaction.Mcp/
    Program.cs                                   ← host bootstrap + stdio transport
    RedactionLicenseManager.cs                   ← applies GroupDocs.Total license
    Tools/
      RedactTextTool.cs                          ← [McpServerTool] — RedactText
      EraseMetadataTool.cs                       ← [McpServerTool] — EraseMetadata
      RedactAnnotationsTool.cs                   ← [McpServerTool] — RedactAnnotations
      RedactImageAreaTool.cs                     ← [McpServerTool] — RedactImageArea
      GetDocumentInfoTool.cs                     ← [McpServerTool] — GetDocumentInfo
    .mcp/
      server.json                                ← NuGet.org reads this to generate mcp.json snippet
    GroupDocs.Redaction.Mcp.csproj               ← PackageType=McpServer + ToolCommandName
  GroupDocs.Redaction.Mcp.Tests/
  GroupDocs.Redaction.Mcp.sln
  Directory.Build.props
build/
  dependencies.props                             ← single source of truth for all versions
changelog/                                       ← one MD file per change (see changelog/README.md)
docker/
  Dockerfile                                     ← multi-stage, runtime on aspnet:10.0
  docker-compose.yml
.github/workflows/                               ← build_packages.yml, run_tests.yml, publish_prod.yml, publish_docker.yml

Read the full file on GitHub · 116 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 116 lines · 1,627 tokens per session scan A ef05c9612e57

Subscribe to this mod's changes

GroupDocs.Redaction.Mcp AGENTS.md is an instructions file published in the GitHub repository groupdocs-redaction/GroupDocs.Redaction.Mcp (0 stars, last pushed 1mo ago), licensed MIT. It adds 1,627 tokens to every session, about $0.0081 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

GroupDocs.Metadata.Mcp AGENTS.md

AGENTS.md instructions for groupdocs-metadata/GroupDocs.Metadata.Mcp, covering agents.md — guide for ai coding agents, what this repo is, mcp tools exposed, folder layout and dependencies.

groupdocs-metadata/GroupDocs.Metadata.Mcp · 1,689 tokens

GroupDocs.Signature.Mcp AGENTS.md

AGENTS.md instructions for groupdocs-signature/GroupDocs.Signature.Mcp, covering agents.md — guide for ai coding agents, what this repo is, mcp tools exposed, folder layout and dependencies.

groupdocs-signature/GroupDocs.Signature.Mcp · 1,834 tokens

GroupDocs.Parser.Mcp AGENTS.md

AGENTS.md instructions for groupdocs-parser/GroupDocs.Parser.Mcp, covering agents.md — guide for ai coding agents, what this repo is, mcp tools exposed, folder layout and dependencies.

groupdocs-parser/GroupDocs.Parser.Mcp · 1,566 tokens

GroupDocs.Watermark.Mcp AGENTS.md

AGENTS.md instructions for groupdocs-watermark/GroupDocs.Watermark.Mcp, covering agents.md — guide for ai coding agents, what this repo is, mcp tools exposed, folder layout and dependencies.

groupdocs-watermark/GroupDocs.Watermark.Mcp · 1,758 tokens

GroupDocs.Viewer.Mcp AGENTS.md

AGENTS.md instructions for groupdocs-viewer/GroupDocs.Viewer.Mcp, covering agents.md — guide for ai coding agents, what this repo is, mcp tools exposed, folder layout and dependencies.

groupdocs-viewer/GroupDocs.Viewer.Mcp · 1,374 tokens

mcp-server-powerpoint architecture-patterns.instructions.md

Instructions for sbroenne/mcp-server-powerpoint, covering architecture patterns, .net class design (mandatory), layered architecture (critical), command pattern and structure (per domain).

sbroenne/mcp-server-powerpoint · 1,597 tokens