Agents & MCP · A tourism marketing organization · 2026
Funding agreement to campaign plans, with a human approval gate
An agent reads a funding agreement PDF, splits it into campaigns, and drafts the plans, budget, task tree, handoff email and calendar holds. Nothing is sent until a person approves.
A campaign manager uploads one agreement and gets reconciled campaign drafts to review and edit in chat. Sending stays a human decision, enforced in code.
- Role
- Sole engineer
- Stack
- TypeScript · Next.js · MCP (official TypeScript SDK) · Agent skills · PostgreSQL · Drizzle · Microsoft Graph · Vitest
A tourism marketing organization funds regional co-op campaigns under formal agreements. Each agreement is a long PDF: legal boilerplate first, then schedules and appendices that hold the campaigns, their budgets, targets, timing and markets. Turning one agreement into working plans was manual setup for every region. I built the app that does the first pass, as a local web app with its own MCP server that an agent host loads.
A manager uploads the agreement and it goes on a job queue. An agent claims the job, reads the PDF with a skill that knows where the substance lives, reports progress as it goes, and saves a structured result through a tool. Its tool allowlist is only those queue tools plus a file reader. Code then reconciles the result: the per-campaign amounts must sum to the agreement's total. The rule for the agent is to never invent a number. A missing or garbled figure stays blank and becomes an open question for the campaign lead, and so does any gap the reconciliation finds.
From the saved campaigns the app builds drafts: a scope plan per campaign, a budget workbook, a project task tree, a handoff email and calendar holds. A second agent edits these with the manager in chat, through typed tools for plan fields, prose blocks, budget cells and email bodies. Every edit returns applied or rejected, and the prompt treats a claimed change without a successful tool call as a failure.
The approval gate lives in code, not in the prompt. The build step can only produce drafts. The one function that sends anything runs when a person presses Approve and send. It releases each piece (email, kickoff invite, reporting holds) separately, skips pieces that already went out when retried, and reverts the campaign to drafted if every send failed. A failed send is never reported as sent. Vitest suites cover the pipeline, the documents and the UI pieces.