Our own product · MCP and AI integration
PilotAgent for ChatGPT and Claude: an MCP app with its own sign-in.
PilotAgent answers Facebook Marketplace buyers for sellers. Checking on it used to mean opening a dashboard. Now sellers can ask “any new leads?”, “why didn’t that buyer get a reply?” or “turn replies off for tonight” in the AI assistant they already use, including by voice while driving. Julien built the server, the sign-in and the safety rules behind it.
- Type
- Remote MCP server and OAuth 2.1 sign-in
- Status
- Live since 31 October 2026
- Works in
- ChatGPT (custom MCP app) and Claude (connector)
- Our role
- Design, build, security review and rollout
What sellers can do
Nine tools, chosen so the assistant can help without being able to do harm.
Most tools only read. The single write tool can only change reply settings, and only after the seller confirms.
- Two free tools, no account needed
- Ready-to-send replies for nine common Marketplace situations, and a check that flags scam patterns in a buyer’s message, such as verification-code requests, fake payment emails and overpayment. They return fixed text, so they cost nothing to run.
- Six read tools for signed-in sellers
- Account overview, recent leads, recent chats, a single chat, a step-by-step setup check, and “why didn’t this buyer get a reply?”, which diagnoses a missed buyer from the same data as the dashboard.
- One write tool, with a safety catch
- Change reply settings: on or off, reply speed, night mode, language, which listings it answers, replies per chat and handover. Every change is shown as a preview first and saved only when the seller confirms it.
- Two ways in
- One server with two entry points: a ChatGPT app that mixes the free and signed-in tools, and a Claude connector that asks the seller to sign in when they connect it.
Sign-in
A proper OAuth 2.1 server, not a shared password.
ChatGPT and Claude each connect with the seller’s permission, and that permission can be withdrawn at any time.
- Its own OAuth 2.1 sign-in server, separate from the dashboard login. ChatGPT and Claude register themselves automatically, and only their redirect addresses are accepted.
- PKCE with S256 only, one-time codes, and a consent page in eight languages, so the seller sees exactly what they are allowing.
- Access lasts an hour. Refresh tokens last 60 days and change on every use, and if an old one is ever replayed, the whole connection is revoked.
- Tokens, codes and secrets are stored only as SHA-256 hashes, tied to the server’s address. Dashboard sessions are refused on the MCP endpoint.
- Sellers can see and revoke their connections, and a password reset ends them all.
Safety
Built on the assumption that some text it reads will try to give it orders.
An AI assistant reads buyer messages, and buyers can write anything. So the rules that matter live in the server, not in the prompt.
- No accidental changes. A settings change saves only with the seller’s confirmation and the ID of the preview they saw. That ID is tied to the same seller, agent and values, and expires after 10 minutes, so a single injected tool call cannot save anything.
- Buyer messages are untrusted. When chats are returned to ChatGPT or Claude, they are marked as information to read, never instructions to follow.
- Changes go through the same merge-only path as the dashboard, and are refused if they would overwrite instructions the seller wrote by hand.
- Deliberate limits: the app never messages buyers, never touches Facebook, and never edits prompts or listings.
- Account data only goes to active customers. The “why no reply” tool still works on a lapsed plan, so it can explain that the plan is the reason.
How it’s built
Small, tested and switched on carefully.
- Stack
- Node.js, Express and TypeScript; PostgreSQL with Drizzle; React for the consent and connected-apps pages
- Protocol
- MCP over Streamable HTTP, stateless, plain JSON; tools carry read-only and destructive hints
- Size
- About 1,900 lines across four server modules, with three OAuth tables
- Tests
- 43 automated tests covering the sign-in flow, token rotation and revocation, plan limits and preview-then-confirm saving
- Before launch
- A security review, with fixes for consent-page impersonation, a required preview ID, rate limits and revocation on password reset
- Rollout
- Behind a feature flag, tested end to end in ChatGPT, including voice mode, before going live
The app meets OpenAI’s store rules, which reject apps that advertise or mention pricing, so the free tools are useful in their own right and the value is in signing in. Submission to the OpenAI app directory is the next step. Read more about PilotAgent itself.
Want your product inside ChatGPT or Claude?
We build MCP servers, sign-in and the safety rules around them, so AI assistants can use your system without being able to misuse it.
Discuss a project