ead-factory

v1.5.0
io.github.g-digital-by-Garrigues/ead-factory Checked 8 hours ago Published 3 days ago

MCP server for EAD Factory: qualified evidence, signature, notifications and chat via AI agents.

Values you need

VariableWhat it is
MCP_ALLOW_INSECURE_FILE_URLoptional Set 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_ALLOW_UNVERIFIED_BEARERoptional Escape 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_ALLOWED_HOSTSoptional Comma-separated allowed Host headers. Empty = Host validation disabled (default). When set, requests with a Host outside the list are rejected.
MCP_ALLOWED_ORIGINSoptional Comma-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_API_BASE_URLoptional Gateway ROOT URL (e.g. https://api.int.gcloudfactory.com) — each manager's path prefix is appended automatically; do NOT include a manager path here
MCP_API_BASE_URL_CHAToptional Full base URL override for the chat manager, used as-is (default: https://api.gcloudfactory.com/chat-bot-manager)
MCP_API_BASE_URL_EVIDENCEoptional Full base URL override for the evidence manager, used as-is (default: https://api.gcloudfactory.com/digital-trust)
MCP_API_BASE_URL_NOTIFICATIONoptional Full base URL override for the notification manager, used as-is (default: https://api.gcloudfactory.com/notifications)
MCP_API_BASE_URL_SIGNATUREoptional Full base URL override for the signature manager, used as-is (default: https://api.gcloudfactory.com/signature-manager)
MCP_BRIDGE_STATE_FILEoptional Path 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.
MCP_FILE_ALLOWED_ROOTSoptional Comma-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_MAX_BYTESoptional Maximum 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_URL_ALLOWED_HOSTSoptional Comma-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_HTTP_HOSToptional Interface 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_HTTP_MAX_BODY_BYTESoptional Maximum 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 fil
MCP_HTTP_PUBLICoptional Set 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 s
MCP_OTEL_ENABLEDoptional Set to "true" to emit OpenTelemetry traces/metrics (requires @opentelemetry/sdk-node to be installed separately). Off by default — zero overhead for npx/stdio users.
MCP_SVC_CLIENT_IDrequired OAuth2 client_credentials client ID.
MCP_SVC_CLIENT_SECRETrequired secret OAuth2 client_credentials client secret. (See https://webforms.pipedrive.com/f/bYUKJVgt3TZ0QiINtf0mimlgL3BJw79kQaN3i7nXnqoPYabRqYPI5KX9ohhp7T5TTt for credential acquisition.)
MCP_SVC_INTROSPECT_URLoptional RFC 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_SCOPEoptional Optional OAuth2 scope for the service-account token request.
MCP_SVC_TOKEN_URLrequired Token endpoint URL for the OAuth2 client_credentials flow.
MCP_TRANSPORToptional Which 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.
PORToptional HTTP port when running in hosted (HTTP) mode; ignored in stdio mode

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add ead-factory -e 'MCP_SVC_CLIENT_ID=<MCP_SVC_CLIENT_ID>' -e 'MCP_SVC_CLIENT_SECRET=<MCP_SVC_CLIENT_SECRET>' -e 'MCP_SVC_TOKEN_URL=<MCP_SVC_TOKEN_URL>' -- npx -y @g-digital/mcp-ead-factory@1.5.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "ead-factory": {
      "args": [
        "-y",
        "@g-digital/mcp-ead-factory@1.5.0"
      ],
      "command": "npx",
      "env": {
        "MCP_SVC_CLIENT_ID": "<MCP_SVC_CLIENT_ID>",
        "MCP_SVC_CLIENT_SECRET": "<MCP_SVC_CLIENT_SECRET>",
        "MCP_SVC_TOKEN_URL": "<MCP_SVC_TOKEN_URL>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "ead-factory": {
      "args": [
        "-y",
        "@g-digital/mcp-ead-factory@1.5.0"
      ],
      "command": "npx",
      "env": {
        "MCP_SVC_CLIENT_ID": "<MCP_SVC_CLIENT_ID>",
        "MCP_SVC_CLIENT_SECRET": "<MCP_SVC_CLIENT_SECRET>",
        "MCP_SVC_TOKEN_URL": "<MCP_SVC_TOKEN_URL>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "MCP_SVC_CLIENT_ID",
      "id": "mcp-svc-client-id",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "MCP_SVC_CLIENT_SECRET",
      "id": "mcp-svc-client-secret",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "MCP_SVC_TOKEN_URL",
      "id": "mcp-svc-token-url",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "ead-factory": {
      "args": [
        "-y",
        "@g-digital/mcp-ead-factory@1.5.0"
      ],
      "command": "npx",
      "env": {
        "MCP_SVC_CLIENT_ID": "${input:mcp-svc-client-id}",
        "MCP_SVC_CLIENT_SECRET": "${input:mcp-svc-client-secret}",
        "MCP_SVC_TOKEN_URL": "${input:mcp-svc-token-url}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.ead-factory]
command = "npx"
args = ["-y", "@g-digital/mcp-ead-factory@1.5.0"]
env = { "MCP_SVC_CLIENT_ID" = "<MCP_SVC_CLIENT_ID>", "MCP_SVC_CLIENT_SECRET" = "<MCP_SVC_CLIENT_SECRET>", "MCP_SVC_TOKEN_URL" = "<MCP_SVC_TOKEN_URL>" }

For AI agents

  1. Ask the user for: MCP_SVC_CLIENT_ID, MCP_SVC_CLIENT_SECRET, MCP_SVC_TOKEN_URL. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: evidence_case_file_delete_bulk, evidence_case_file_search, evidence_case_file_create, evidence_case_file_update_bulk, evidence_case_file_get, evidence_case_file_update, evidence_case_file_relationship_assign, evidence_case_file_report_preview, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json