HUB
Sign inSign up
gocertius logo

gdigital/gocertius

By gdigital

•Updated 1 day ago

GoCertius MCP: evidence, simple and two-factor advanced e-signature, dossiers, notifications, chats.

Buildkit cacheImage
Languages & frameworks
Developer tools
Monitoring & observability
0

10K+

gdigital/gocertius repository overview

GoCertius MCP: evidence, simple and two-factor advanced e-signature, dossiers, notifications, chats.

Image gdigital/gocertius · Version 2.1.2 · npm @g-digital/mcp-gocertius · License MIT

⁠Run it

The image starts the HTTP transport by default. Pick the mode that matches how you connect.

From an MCP client over stdio (Claude Desktop, Claude Code, Cursor, …) — override the transport with -e MCP_TRANSPORT=stdio and keep -i. In this mode the server signs in by itself with the credentials in .env:

docker run --rm -i --env-file .env -e MCP_TRANSPORT=stdio gdigital/gocertius:2.1.2
{
  "mcpServers": {
    "gocertius": {
      "command": "docker",
      "args": ["run", "--rm", "-i", "--env-file", ".env", "-e", "MCP_TRANSPORT=stdio", "gdigital/gocertius:2.1.2"]
    }
  }
}

Without -e MCP_TRANSPORT=stdio the container ignores stdin and waits for HTTP requests, so the client hangs.

As an HTTP service — publish the port and point your client at /mcp:

docker run -d -p 8080:8080 --env-file .env gdigital/gocertius:2.1.2

Every request to http://<host>:8080/mcp must carry Authorization: Bearer <token> — a valid, unexpired token for the upstream API; a request without one is answered 401. In this mode the server acts with the caller's token, never with the credentials in its own .env, so reaching the port is not enough to act with your account. Keep MCP_TRANSPORT out of .env and set it on the command line as above.

⁠Configuration

Required — the server will not start without these:

VariableSecretWhat it is
MCP_AUTH_USER_KEYyesLong-lived GoCertius user key, exchanged automatically for a short-lived session token. Use it for headless or automated access instead of an account password.
MCP_API_BASE_URLnoUpstream API root. Required only when MCP_AUTH_USER_KEY is also set: your user key is exchanged for a session token against this host, and the server will not start without both. Not required for a credential-less deployment (inbound Bearer only).
Optional variables (17)
VariableSecretWhat it is
MCP_SVC_INTROSPECT_URLnoRFC 7662 token introspection URL for inbound Bearer verification in HTTP mode. Opt-in, and required when MCP_HTTP_PUBLIC=true. Leave empty for stdio (local) use.
MCP_SVC_CLIENT_IDnoClient ID this server presents to the introspection endpoint above (its resource-server credentials). Only needed alongside MCP_SVC_INTROSPECT_URL; it does not authenticate you to GoCertius.
MCP_SVC_CLIENT_SECRETyesClient secret this server presents to the introspection endpoint above (its resource-server credentials). Only needed alongside MCP_SVC_INTROSPECT_URL; it does not authenticate you to GoCertius.
MCP_TRANSPORTnoWhich transport to run: "stdio" for local/CLI use, "http" to host the server. Empty or unset means stdio. The Docker image sets http itself, so keep this variable out of any env file you pass to the container. Unknown values fail fast at startup.
MCP_BRIDGE_STATE_FILEnoPath to a file where the SSE bridge persists its state (pollable-task delivery) across restarts. Omit to disable persistence — pollable tasks still work, but in-flight SSE subscriptions are lost on restart.
PORTnoHTTP port when running in hosted (HTTP) mode; ignored in stdio mode
MCP_HTTP_HOSTnoInterface the HTTP transport binds to. Default 127.0.0.1 (localhost only). Set 0.0.0.0 to expose on all interfaces (containers do this automatically).
MCP_ALLOWED_ORIGINSnoComma-separated allowed browser Origins (DNS-rebinding defense). Empty = reject any request carrying an Origin header; non-browser clients (CLI/SDK) send no Origin and are always allowed. Use '*' to allow all.
MCP_ALLOWED_HOSTSnoComma-separated allowed Host headers. Empty = Host validation disabled (default). When set, requests with a Host outside the list are rejected.
MCP_HTTP_PUBLICnoSet to "true" for public/multi-tenant deployments. Activates Host validation and refuses to start unless (1) MCP_ALLOWED_ORIGINS or MCP_ALLOWED_HOSTS is set AND (2) inbound Bearer introspection is configured (MCP_SVC_INTROSPECT_URL + MCP_SVC_CLIENT_ID/SECRET) or MCP_ALLOW_UNVERIFIED_BEARER=true is set explicitly (fail-closed).
MCP_ALLOW_UNVERIFIED_BEARERnoEscape hatch for MCP_HTTP_PUBLIC=true WITHOUT inbound-token introspection: set to "true" ONLY when an upstream gateway already verifies Bearer tokens. The server logs a prominent warning and forwards tokens upstream unverified.
MCP_HTTP_MAX_BODY_BYTESnoMaximum accepted POST /mcp request-body size in bytes (default 16777216 = 16 MiB — sized so base64 file uploads within the documented tool limits fit). Oversized requests get a 413 JSON-RPC error before/while reading — closes a memory-exhaustion DoS vector in public deployments. Note: base64 file sources are capped by this limit BEFORE MCP_FILE_MAX_BYTES applies.
MCP_ALLOW_INSECURE_FILE_URLnoSet to "true" to allow plain http:// fileUrl downloads in evidence_create (default https-only). Private/internal addresses are rejected regardless (resolution-time check; see the documented DNS TOCTOU limitation in the hosted-deployment runbook).
MCP_FILE_MAX_BYTESnoMaximum accepted file size in bytes for any tool that ingests a file (path/base64/url source), default 1073741824 = 1 GiB. Oversized files are rejected before upload; see each file-accepting tool's error for the exact remediation.
MCP_FILE_ALLOWED_ROOTSnoComma-separated absolute directory paths. When set, a local "path" file source must resolve under one of them (symlinks excluded). Empty (default) = no restriction.
MCP_FILE_URL_ALLOWED_HOSTSnoComma-separated hostnames. When set, a "url" file source's host must be in this list, checked before any network call. Empty (default) = no restriction.
MCP_OTEL_ENABLEDnoSet to "true" to emit OpenTelemetry traces/metrics (requires @opentelemetry/sdk-node to be installed separately). Off by default — zero overhead for npx/stdio users.

⁠Documentation


Published by g-digital by Garrigues. This page is generated at release time from the server's own configuration, so the variables above are the ones this exact image reads.

Tag summary
Recent tags
Content type
Image
Digest
sha256:3f963a21b…
Size
86.2 MB
Last updated
1 day ago
docker pull gdigital/gocertius:latest