[CHORE]: Move llmguardplugin to plugins/external/llmguard

Open
#22 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
74/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Active
Tech stack
docker-compose, python
Domain
backend, ci-cd

Research direction

Start by comparing plugins/external/llmguard/ in the source repository with the target repository, then copy the listed contents verbatim. Verify installation with pip install -e plugins/external/llmguard and run pytest plugins/external/llmguard/tests/. Done means the plugin is present, its README reflects the new home, and CI covers lint and tests.

Written by the indexing model from the issue text.

Description

Summary

Move the llmguardplugin external plugin from the mcp-context-forge monorepo into this repository at plugins/external/llmguard/, as part of the broader plugin ecosystem separation tracked in IBM/mcp-context-forge#2100.

What to move

Copy the contents of plugins/external/llmguard/ from IBM/mcp-context-forge verbatim:

plugins/external/llmguard/
├── .dockerignore
├── .env.template
├── .ruff.toml
├── Containerfile
├── MANIFEST.in
├── Makefile
├── README.md
├── cache_tokenizers.py
├── docker-compose.yaml
├── llmguardplugin/
│   ├── __init__.py
│   ├── cache.py
│   ├── llmguard.py
│   ├── plugin-manifest.yaml
│   ├── plugin.py
│   ├── policy.py
│   └── schema.py
├── examples/
├── pyproject.toml
├── resources/
├── run-server.sh
└── tests/

Dependencies (as-is)

From pyproject.toml:

llm-guard>=0.3.16
mcp>=1.28.1,<2
orjson>=3.11.9
rapidfuzz>=3.14.5
redis>=8.0.1

Note: mcp-contextforge-gateway is intentionally absent — it is a runtime-only dependency provided by the host gateway process and is not declared to avoid cryptography version conflicts with llm-guard's transitive dependency on presidio-anonymizer. This is documented in the existing pyproject.toml.

The plugin is moved as-is. Version constraint updates and the gateway dependency question are tracked separately (see sub-issues).

Acceptance criteria

  • Plugin lands at plugins/external/llmguard/ in this repository
  • pyproject.toml is present and installable (pip install -e plugins/external/llmguard)
  • Existing tests pass (pytest plugins/external/llmguard/tests/)
  • CI covers the plugin (lint + test)
  • README updated to reflect new home

References

Dominant language
Python
Stars
1
Forks
1
Avg merge
4h 29m
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from IBM/contextforge-examples

All issues in IBM/contextforge-examples

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.