Stirling MCP configuration #6671
Unanswered
PersianGru
asked this question in
Q&A
Replies: 1 comment 5 replies
-
|
MCP is currently in our alpha image not our latest tag, we have some fixes and documentation being rolled out for MCP in 1-2 days |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Please someone help me with setting up MCP server for Stirling-PDF V2


I see the option is available
Every time I am trying to test the connection, I am seeing this in the docker log
ERROR s.s.p.c.CustomAuditEventRepository - Failed to persist audit event (fail-open); principal=<JWT_TOKEN_REDACTED>
org.springframework.dao.DataIntegrityViolationException: could not execute statement [Value too long for column "PRINCIPAL CHARACTER VARYING(255)": "'<JWT_TOKEN_REDACTED>' (~1455 chars)"; SQL statement: insert into audit_events ...]
Caused by: org.h2.jdbc.JdbcSQLDataException: Value too long for column "PRINCIPAL CHARACTER VARYING(255)"
Using Microsoft for auth. and connection is like this
Litellm --> Microsoft EntraID app ---> stirling-pdf
And also auth mode is OAuth 2.1 (external IdP) and I am not able to change it to anything else
Docker compose is:
services:
stirling-pdf:
build:
context: ../..
dockerfile: docker/embedded/Dockerfile.fat
container_name: stirling-pdf-fat
restart: unless-stopped
deploy:
resources:
limits:
memory: 6G
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8080$${SYSTEM_ROOTURIPATH:-''}/api/v1/info/status | grep -q 'UP'"]
interval: 5s
timeout: 10s
retries: 16
ports:
- "8585:8080"
volumes:
- ../../stirling/latest/data:/usr/share/tessdata:rw
- ../../stirling/latest/config:/configs:rw
- ../../stirling/latest/logs:/logs:rw
environment:
DISABLE_ADDITIONAL_FEATURES: "false"
SECURITY_ENABLELOGIN: "true"
FAT_DOCKER: "true"
SYSTEM_DEFAULTLOCALE: en-US
UI_APPNAME: Stirling-PDF
UI_HOMEDESCRIPTION: Full-featured Stirling-PDF with all capabilities
UI_APPNAMENAVBAR: Stirling-PDF Fat
SYSTEM_MAXFILESIZE: "200"
METRICS_ENABLED: "true"
SYSTEM_GOOGLEVISIBILITY: "true"
SHOW_SURVEY: "true"
networks:
- stirling-network
networks:
stirling-network:
driver: bridge
volumes:
stirling-data:
stirling-config:
stirling-logs:
Beta Was this translation helpful? Give feedback.
All reactions