From 7d73cdc2ec49849158084250430eb312a0f22dbd Mon Sep 17 00:00:00 2001 From: Henry Mao <1828968+calclavia@users.noreply.github.com> Date: Sun, 26 Jan 2025 23:56:07 +0800 Subject: [PATCH 1/3] Add Dockerfile --- Dockerfile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..11ecbab --- /dev/null +++ b/Dockerfile @@ -0,0 +1,33 @@ +# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile +# Use a Python image with uv pre-installed +FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim AS uv + +# Install the project into /app +WORKDIR /app + +# Enable bytecode compilation +ENV UV_COMPILE_BYTECODE=1 + +# Copy from the cache instead of linking since it's a mounted volume +ENV UV_LINK_MODE=copy + +# Install the project's dependencies using the lockfile and settings +RUN --mount=type=cache,target=/root/.cache/uv --mount=type=bind,source=uv.lock,target=uv.lock --mount=type=bind,source=pyproject.toml,target=pyproject.toml uv sync --frozen --no-install-project --no-dev --no-editable + +# Then, add the rest of the project source code and install it +# Installing separately from its dependencies allows optimal layer caching +ADD . /app +RUN --mount=type=cache,target=/root/.cache/uv uv sync --frozen --no-dev --no-editable + +FROM python:3.12-slim-bookworm + +WORKDIR /app + +COPY --from=uv /root/.local /root/.local +COPY --from=uv --chown=app:app /app/.venv /app/.venv + +# Place executables in the environment at the front of the path +ENV PATH="/app/.venv/bin:$PATH" + +# when running the container, add --db-path and a bind mount to the host's db file +ENTRYPOINT ["mcp-server-esignatures"] \ No newline at end of file From c13e0894f31fb770ddc8700a625ecdbd74b5c8f5 Mon Sep 17 00:00:00 2001 From: Henry Mao <1828968+calclavia@users.noreply.github.com> Date: Sun, 26 Jan 2025 23:56:08 +0800 Subject: [PATCH 2/3] Add Smithery configuration --- smithery.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 smithery.yaml diff --git a/smithery.yaml b/smithery.yaml new file mode 100644 index 0000000..e680097 --- /dev/null +++ b/smithery.yaml @@ -0,0 +1,17 @@ +# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml + +startCommand: + type: stdio + configSchema: + # JSON Schema defining the configuration options for the MCP. + type: object + required: + - esignaturesSecretToken + properties: + esignaturesSecretToken: + type: string + description: The API secret token for the eSignatures server. + commandFunction: + # A function that produces the CLI command to start the MCP on stdio. + |- + (config) => ({command:'mcp-server-esignatures', args:[], env:{ESIGNATURES_SECRET_TOKEN:config.esignaturesSecretToken}}) \ No newline at end of file From 2e537b0744e642e77bfaa104b7b44fd229bec3e1 Mon Sep 17 00:00:00 2001 From: Henry Mao <1828968+calclavia@users.noreply.github.com> Date: Sun, 26 Jan 2025 23:56:09 +0800 Subject: [PATCH 3/3] Update README --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 4ea8a08..3beed95 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # mcp-server-esignatures MCP server +[![smithery badge](https://smithery.ai/badge/@esignaturescom/mcp-server-esignatures)](https://smithery.ai/server/@esignaturescom/mcp-server-esignatures) MCP server for eSignatures (https://esignatures.com) @@ -44,6 +45,14 @@ Command: `Invite John Doe to edit the NDA template, email: john@acme.com` ## Install +### Installing via Smithery + +To install mcp-server-esignatures for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@esignaturescom/mcp-server-esignatures): + +```bash +npx -y @smithery/cli install @esignaturescom/mcp-server-esignatures --client claude +``` + ### Create an eSignatures account Create an eSignatures account at https://esignatures.com for free, to test the Agent AI by creating templates and sending test contracts.