Formfill

io.github.CloudCorpRecords由 GitHub 帳號 CloudCorpRecords 發布v0.1.0更新於 Nov 7, 2026

Create BaseStation PDF form autofill jobs from natural-language instructions via its API.

已驗證STDIO僅桌面效率與工作流檔案與儲存

概覽

AI 產生的概覽

依自然語言說明建立 BaseStation PDF 表單自動填寫工作,以 base64 送出 PDF,並回傳工作 ID 與上傳頁面連結。

可以做什麼
  • 以自然語言說明加上 base64 編碼的 PDF 表單建立 BaseStation 自動填寫工作
  • 回傳上游的工作 ID、上傳頁面連結,以及 BaseStation 對說明的解析摘要
  • 可選擇傳入回呼 URL,用於工作完成通知
  • 除 MCP 工具外,也能透過命令列執行同一項操作
適用情境
適合讓助理把一份 PDF 表單連同簡短填寫說明交給 BaseStation 處理,並取回工作編號與上傳連結。它只涵蓋建立工作這一步,不包含表單取得或工作追蹤。
執行需求
透過 npx 或 Docker 在本機以 stdio 執行。需要 BASESTATION_API_KEY 中的 BaseStation API 金鑰;可選 BASESTATION_API_URL、MAX_PDF_MB(預設 15)與 REQUEST_TIMEOUT_MS(預設 15000)。需要能連線至 BaseStation API 的網路。
安裝前請注意
BASESTATION_API_KEY 會以 bearer 憑證送往 BaseStation API,PDF 內容與填寫說明也會上傳給該第三方。工作在上游建立,可能消耗 BaseStation 的付費額度。README 指出端點路徑與認證標頭形式屬於標註的重建,實際呼叫可能與線上 API 不一致。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Formfill,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

formfill

Hand BaseStation a PDF form and a sentence about what goes in it. formfill creates a BaseStation autofill job: you describe in plain language how the form should be filled, attach the form itself as base64, and BaseStation returns a job ID, an upload page URL, and its parsed summary of your instructions.

This package is a small API-key REST client for that one operation, exposed both as an MCP tool and as a CLI command behind a single bin.

Configuration

  • BASESTATION_API_KEY (required) — your BaseStation API key. Without it every call fails with an error naming the variable; no request is made and no job is invented.
  • BASESTATION_API_URL (optional) — API base URL. Defaults to https://app.hellobasestation.com.
  • MAX_PDF_MB (optional) — maximum decoded PDF size, in megabytes. Defaults to 15. A formFile decoding to more than the limit is refused locally, before any request.
  • REQUEST_TIMEOUT_MS (optional) — outbound request timeout in milliseconds. Defaults to 15000.

Tool

  • basestation.create_autofill_job — creates a BaseStation autofill job for PDF form filling.
    • instructions (string, required): natural language instructions for how to fill the form.
    • formFile (string, required): base64-encoded PDF file to fill.
    • callbackUrl (string, optional): callback URL for job completion notification.
    • On success the result is the upstream JSON as JSON text, carrying job_id, upload_page_url, and instructions_summary.

How a call flows

  1. Arguments are checked locally: required strings present, formFile valid base64, decoded size within MAX_PDF_MB, and BASESTATION_API_KEY set. Any failure is an error result and nothing is sent.
  2. A POST goes to the autofill jobs endpoint with a JSON body of {instructions, formFile, callbackUrl} (the callback only when given) and the API key as a bearer credential.
  3. An upstream HTTP error surfaces as formfill error: HTTP <status>, plus the upstream error text when the body carries one. A 2xx reply that is missing job_id, upload_page_url, or instructions_summary is reported as an error rather than dressed up as a job.

Provenance

The tool name, parameters, return fields, and configuration above come from the upstream package's published README. The endpoint path (/api/autofill/jobs) and the Authorization: Bearer <key> header form are a labelled reconstruction — the README pins the tool surface but not the API's endpoint path or payload envelope.

CLI

bash
npx @reneturcios/formfill basestation.create_autofill_job '{"instructions":"Fill in the applicant name as Ada Lovelace","formFile":"<base64-pdf>"}'npx @reneturcios/formfill --version

Output is the tool's result text (the upstream JSON on success). Exit codes: 0 on success, 1 on an error result, 2 on a usage error.

MCP server

bash
npx -y @reneturcios/formfill mcp

MCP client config:

json
{  "mcpServers": {    "formfill": {      "command": "npx",      "args": ["-y", "@reneturcios/formfill", "mcp"],      "env": {        "BASESTATION_API_KEY": "<your key>"      }    }  }}

Docker

bash
docker run -i -e BASESTATION_API_KEY=<your key> ghcr.io/cloudcorprecords/formfilldocker run --rm -e BASESTATION_API_KEY=<your key> ghcr.io/cloudcorprecords/formfill basestation.create_autofill_job '{"instructions":"...","formFile":"..."}'

Development

bash
npm installnpm run build   # tsc -> dist/npm test        # tsx --test test/*.test.ts (fake fetch only, no network)npm run dev     # run the CLI from source

License

MIT — Copyright (c) 2026 Rene Turcios

來源:README.md,提交 ee73f19

工具

1

basestation.create_autofill_job

Creates a BaseStation autofill job for PDF form filling.

輸入參數formFile必填callbackUrlinstructions必填

版本歷史

1
  1. v0.1.0最新Nov 4, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分