aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/pdf-form-filler-mcp/Makefile35
-rw-r--r--textproc/pdf-form-filler-mcp/distinfo3
-rw-r--r--textproc/pdf-form-filler-mcp/pkg-descr6
4 files changed, 45 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index 92d2035da077..fd0ce1c7d979 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1234,6 +1234,7 @@
SUBDIR += pa-aspell
SUBDIR += pageedit
SUBDIR += par
+ SUBDIR += pdf-form-filler-mcp
SUBDIR += pdf-reader-mcp
SUBDIR += pdfgrep
SUBDIR += pdfoutline
diff --git a/textproc/pdf-form-filler-mcp/Makefile b/textproc/pdf-form-filler-mcp/Makefile
new file mode 100644
index 000000000000..ba3817277ae3
--- /dev/null
+++ b/textproc/pdf-form-filler-mcp/Makefile
@@ -0,0 +1,35 @@
+PORTNAME= pdf-form-filler-mcp
+DISTVERSION= 0.1.0
+CATEGORIES= textproc # machine-learning
+DIST_SUBDIR= ${PORTNAME}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= MCP server for filling PDF forms (AcroForm and XFA)
+WWW= https://github.com/yurivict/pdf-form-filler-mcp
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}uv-build>0:devel/py-uv-build@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mcp>=1.0.0:misc/py-mcp@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pymupdf>=1.24.0:print/py-PyMuPDF@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pypdf>=3.0.0:print/py-pypdf@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= pep517 autoplist pytest
+
+USE_GITHUB= yes
+GH_ACCOUNT= yurivict
+GH_TAGNAME= e0ab783
+
+TEST_ENV= ${MAKE_ENV} \
+ PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} \
+ PATH=${STAGEDIR}${PREFIX}/bin:${PATH}
+TEST_WRKSRC= ${WRKSRC}/tests
+
+NO_ARCH= yes
+
+# tests as of 0.1.0: 8 passed in 4.38s
+
+.include <bsd.port.mk>
diff --git a/textproc/pdf-form-filler-mcp/distinfo b/textproc/pdf-form-filler-mcp/distinfo
new file mode 100644
index 000000000000..bcdfc9be57ae
--- /dev/null
+++ b/textproc/pdf-form-filler-mcp/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1775688596
+SHA256 (pdf-form-filler-mcp/yurivict-pdf-form-filler-mcp-0.1.0-e0ab783_GH0.tar.gz) = 7db071aca19a60d5cf84092b2b538f15f0b80be9375d0cbae5f17f40ae5f4f68
+SIZE (pdf-form-filler-mcp/yurivict-pdf-form-filler-mcp-0.1.0-e0ab783_GH0.tar.gz) = 80563
diff --git a/textproc/pdf-form-filler-mcp/pkg-descr b/textproc/pdf-form-filler-mcp/pkg-descr
new file mode 100644
index 000000000000..7635e422f1e3
--- /dev/null
+++ b/textproc/pdf-form-filler-mcp/pkg-descr
@@ -0,0 +1,6 @@
+pdf-form-filler-mcp is an MCP STDIO server allowing to fill PDF forms.
+
+It allows AI agents to find the list of form fields in a given MCP server,
+to fill these fields, and to save the resulting PDF.
+
+It supports both AcroForm and XFA PDF forms.