← Files PostalFormARCHIVED FILE
README.md
6.17 KB · Nov 30, 2026 · 07:45 UTC
# PostalForm for ChatGPT Prepare a letter from the conversation or a selected PDF, review the printable document, addresses, options and price, then pay on PostalForm. No PostalForm customer account or sign-in is required. Each new draft is protected by a private capability held in its mailing panel. The MVP supports one recipient within the United States, Canada, Austria, Belgium, France, Germany, India, Luxembourg, the Netherlands, Spain, Switzerland and the United Kingdom. Choose standard mail (First Class in the U.S.) or express delivery where eligible, color or black-and-white, and single- or double-sided printing. Express cannot be combined with Certified or Registered Mail. Sender and recipient countries are selected independently. Certified Mail, Registered Mail and electronic return receipts appear where eligible for the destination; quotes and checkout are in USD. Drafting stays in ChatGPT. The panel uses the host's typography, theme tokens and display modes, without a second chat composer or website navigation. ## Package - `plugin.json` is the portable Agent Plugins manifest; `mcp.json` declares the v2.2.4 endpoint `https://postalform.com/chatgpt/v224/mcp`. - `assets/icon.png` is the existing white-envelope/red-heart brand mark, exported from the site favicon at 256 × 256. Both the listing logo and composer icon use this square PNG. - `skills/prepare-mailing/` teaches the customer workflow and status distinctions. - `.codex-plugin/plugin.json` and `.mcp.json` provide compatibility for existing local plugin loaders. - `assets/review-letter.pdf` is a fictional two-page document for review testing. - `extensions.com.openai.review` includes five positive and three negative review cases and describes the physical-mail commerce flow. Publication notes are under `extensions.com.openai.publication`. Both manifests retain matching review and listing data. - A private development bundle may use `.app.json` with the real registered MCP connection ID after creating that connection in ChatGPT. Public submission must use `mcp.json` and must not contain `.app.json` or `apps` references. Do not invent a connection ID. The existing `plugins/postalform` package, general-purpose `/mcp` API, machine payments and older widget remain available separately. Their tools are not exposed by this customer plugin. ## Build and try locally From the repository root, install dependencies and configure the normal PostgreSQL, Redis, storage and Stripe environment. Run `npm run migrate:up` and `npm run build:chatgpt-widget`, then start the application. `APP_URL` must match the reachable origin; HTTPS is required for a ChatGPT connection. For a visual preview with fixture data, run `npm --prefix chatgpt-widget run dev` and open `/mailroom.html?demo&scenario=review`. Scenarios also include `welcome`, `empty`, `addresses`, `expired` and `paid`; add `&mode=inline` for the compact result. This preview neither pays nor sends mail. Its harness is excluded from the production entry point. The older integration runbook documents v2.2.3; the v2.2.4 boundary and remaining host checks are documented in [the publication runbook](../../docs/chatgpt-publication.md). ## Connect and distribute Deploy the application and migrations to an approved HTTPS environment before registering `/chatgpt/v224/mcp` in ChatGPT developer mode. Choose **Authentication: None**. The widget generates a private expiring capability and sends it to PostalForm over a separate authenticated HTTPS connection; the MCP tools do not issue or return it. There is no account-wide history. Do not reuse an old OAuth registration, which may still prompt for sign-in. Use root `plugin.json` and `mcp.json` for a portable install. For a registered ChatGPT connection, download its plugin ZIP and copy the actual `.app.json` mapping from that export. The page URL uses a `plugin_asdk_app...` ID, while the exported mapping currently uses `asdk_app...`; preserve the exported value. Add `extensions.com.openai.apps` (and the compatibility manifest's `apps`) pointing to that file. In the ChatGPT-specific bundle, omit `mcp.json`, `.mcp.json`, `mcpServers`, and the `review` and `publication` extensions so it reuses the registered connection. Plugin-level review cases require a declared MCP server and cannot be uploaded in this mapped development bundle. Refresh the registered tools before uploading the ZIP because refreshing can reset its listing metadata. When uploading a new version, preserve the exported plugin name and increase its version. Keep personal development mappings out of the portable package. The global and thread entrypoint is **Prepare mailing**. PDF file actions expose **Mail this document** where the host supports file entrypoints. Availability varies by ChatGPT surface; selecting a PDF inside the panel remains supported. For public submission, use the portable package with the HTTPS MCP endpoint, verified publisher details, a guest test flow, test cases and an accessible demonstration video. Version 2.2.4 requires a new live walkthrough showing the customer's confirmation of suggested changes; the previous video does not show this step. Keep private reviewer access instructions in the dashboard, outside the ZIP. Follow [the publication runbook](../../docs/chatgpt-publication.md) for packaging and dashboard checks. Do not submit the local fixture preview as evidence of a tested ChatGPT connection. Publication is a separate action after review. Sources: [Extensions](https://developers.openai.com/plugins/build/extensions), [UI guidelines](https://developers.openai.com/plugins/concepts/ui-guidelines), [Authentication](https://developers.openai.com/plugins/build/auth), [Packaging](https://developers.openai.com/plugins/build/plugins), [Submission](https://developers.openai.com/plugins/deploy/submission). In 2.2.4, the model-facing tools return neither draft access capabilities nor private draft data. The customer reviews suggested chat changes in the panel before applying them. The capability is kept in the host's UI-only widget state, which is scoped to that widget and is not a guaranteed cross-device or cross-widget recovery mechanism. The older v2.2.3 endpoint retains its earlier model-visible token behavior and must not be used for this submission.
SHA-256: 00b6367fe38b40f4107196a4d918eb0266ce89778f8636dbcb387eff00c377cd