ead-enterprise-suite

v2.1.1
io.github.g-digital-by-Garrigues/ead-enterprise-suite Checked 2 hours ago Published 3 days ago

MCP server for EAD Enterprise Suite - signatures, evidence, notifications, dossiers 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_URLrequired Upstream 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).
MCP_AUTH_USER_KEYrequired secret Long-lived EAD Enterprise Suite user key, exchanged automatically for a short-lived session token. Use it for headless or automated access instead of an account password. (See https://www.eadtrust.eu/soluciones-legaltech/enterprise-suite/ for credential acquisition.)
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_IDoptional Client 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 EAD Enterprise Suite.
MCP_SVC_CLIENT_SECREToptional secret Client 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 EAD Enterprise Suite. (See https://www.eadtrust.eu/soluciones-legaltech/enterprise-suite/ 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_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-enterprise-suite -e 'MCP_API_BASE_URL=<MCP_API_BASE_URL>' -e 'MCP_AUTH_USER_KEY=<MCP_AUTH_USER_KEY>' -- npx -y @g-digital/mcp-ead-enterprise-suite@2.1.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "ead-enterprise-suite": {
      "args": [
        "-y",
        "@g-digital/mcp-ead-enterprise-suite@2.1.1"
      ],
      "command": "npx",
      "env": {
        "MCP_API_BASE_URL": "<MCP_API_BASE_URL>",
        "MCP_AUTH_USER_KEY": "<MCP_AUTH_USER_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "ead-enterprise-suite": {
      "args": [
        "-y",
        "@g-digital/mcp-ead-enterprise-suite@2.1.1"
      ],
      "command": "npx",
      "env": {
        "MCP_API_BASE_URL": "<MCP_API_BASE_URL>",
        "MCP_AUTH_USER_KEY": "<MCP_AUTH_USER_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "MCP_API_BASE_URL",
      "id": "mcp-api-base-url",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "MCP_AUTH_USER_KEY",
      "id": "mcp-auth-user-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "ead-enterprise-suite": {
      "args": [
        "-y",
        "@g-digital/mcp-ead-enterprise-suite@2.1.1"
      ],
      "command": "npx",
      "env": {
        "MCP_API_BASE_URL": "${input:mcp-api-base-url}",
        "MCP_AUTH_USER_KEY": "${input:mcp-auth-user-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.ead-enterprise-suite]
command = "npx"
args = ["-y", "@g-digital/mcp-ead-enterprise-suite@2.1.1"]
env = { "MCP_API_BASE_URL" = "<MCP_API_BASE_URL>", "MCP_AUTH_USER_KEY" = "<MCP_AUTH_USER_KEY>" }

For AI agents

  1. Ask the user for: MCP_API_BASE_URL, MCP_AUTH_USER_KEY. 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_create, evidence_list, evidence_seal, evidence_get, evidence_group_create, evidence_group_list, evidence_group_get, evidence_group_update, ….
  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