mcp

v1.0.3
@ezyform/mcp Checked 2 hours ago Published 21 days ago

MCP server for the EzyForm Agent API

MCP server for the EzyForm Agent API. Lets AI agents in Cursor, Claude Desktop, and other MCP clients manage forms programmatically. 1. Create an API key in Account → API Keys in the EzyForm app. 2. Add to your MCP client config: 1. ezyform_create_form — blank form 2. ezyform_update_form_draft — structured fields (validated by backend) 3. ezyform_publish_form — go live 4. ezyform_list_submissions — read responses (from/to as YYYY-MM-DD) 5. ezyform_export_submissions — CSV/JSON/PDF/ZIP (narrow with dates or ids; large ZIPs stay in the UI) 6.

Summary extracted from the README.

@ezyform/mcp

MCP server for the EzyForm Agent API. Lets AI agents in Cursor, Claude Desktop, and other MCP clients manage forms programmatically.

Full setup guide: https://ezyform.app/p/ai-agents

Setup

  1. Create an API key in Account → API Keys in the EzyForm app.
  2. Add to your MCP client config:
{
  "mcpServers": {
    "ezyform": {
      "command": "npx",
      "args": ["-y", "@ezyform/mcp"],
      "env": {
        "EZYFORM_API_URL": "https://ezyform.app",
        "EZYFORM_API_KEY": "ezyform_live_..."
      }
    }
  }
}

Local development

cd packages/ezyform-mcp
bun install
bun run build
{
  "mcpServers": {
    "ezyform": {
      "command": "node",
      "args": ["/path/to/EzyForm/packages/ezyform-mcp/dist/index.js"],
      "env": {
        "EZYFORM_API_URL": "http://localhost:5173",
        "EZYFORM_API_KEY": "ezyform_live_..."
      }
    }
  }
}

Workflow

  1. ezyform_create_form — blank form
  2. ezyform_update_form_draft — structured fields (validated by backend)
  3. ezyform_publish_form — go live
  4. ezyform_list_submissions — read responses (from/to as YYYY-MM-DD)
  5. ezyform_export_submissions — CSV/JSON/PDF/ZIP (narrow with dates or ids; large ZIPs stay in the UI)
  6. ezyform_create_refill_link — share refill URL with respondent

Read resources ezyform://schema/fields, ezyform://docs/workflow, and ezyform://docs/errors for full reference.

Environment

Variable Description
EZYFORM_API_URL Base URL of your EzyForm deployment
EZYFORM_API_KEY ezyform_live_… key from Account settings

Client identification

Every MCP request sends X-EzyForm-Client: ezyform-mcp/x.y.z automatically (version matches this package). EzyForm uses this for API usage analytics.

Direct REST integrators may send their own value, e.g. X-EzyForm-Client: my-app/1.0. If omitted, usage is recorded as unknown.

Publishing

CI (automatic, npm Trusted Publishing)

Pushes to the sudo branch that change MCP source files trigger an automatic publish via GitHub Actions (.github/workflows/deploy.yml) using npm Trusted Publishing (OIDC — no long-lived NPM_TOKEN).

  • If you forget to bump the version, CI auto-increments the patch, publishes, and commits the bump back with [skip ci].
  • If you manually set a version ahead of npm (e.g. 1.1.0), that version is published as-is.
  • CI uses the runner's npm publish (npm CLI ≥ 11.5.1). Do not use bun publish or bunx npm — neither forwards GitHub OIDC.
  • Provenance is off. Sigstore will not attest a public npm package built from a private GitHub repo (ENEEDAUTH is auth; E422 … visibility: "private" is provenance). If the repo is ever public, set publishConfig.provenance back to true.

One-time bootstrap (required before CI can publish)

npm Trusted Publishing needs a package record on the registry before you can link a trusted publisher. Do this once:

1. Create the @ezyform org on npmjs.com (Organizations → Add organization → name: ezyform).

2. Reserve the package name (pick one):

cd packages/ezyform-mcp
bun install && bun run build
bunx npm@latest login          # browser auth + 2FA if enabled
bunx npm@latest publish --access public

If manual publish fails with no clear error, try the bootstrap helper (publishes a minimal stub so you can configure OIDC):

cd packages/ezyform-mcp
bunx setup-trusted-publishing --access public

3. Configure Trusted Publisher on npmjs.com:

  • Open https://www.npmjs.com/package/@ezyform/mcp → Settings → Trusted publishing
  • Provider: GitHub Actions
  • Repository owner: sudoR3D
  • Repository name: Potro
  • Workflow filename: deploy.yml (filename only, exact)
  • Environment: leave empty (this job does not use a GitHub Environment)
  • Allowed actions: enable npm publish (configs created after Sep 2026 default to stage only)
  • Save — then complete a successful CI publish within 2 days or the config expires

4. Push a commit that includes this workflow (or an MCP file). Re-running the old failed job still uses the old YAML.

Do not use a classic NPM_TOKEN for publish. npm is restricting tokens that bypass 2FA; OIDC trusted publishing is the supported path. The GitHub NPM_TOKEN secret is unused.

Manual

cd packages/ezyform-mcp
bun install
bun run build
./scripts/ensure-publish-version.sh   # optional: check / auto-bump locally
bunx npm@latest publish --access public