Samtrip
A Persian-first travel platform, and a local pilot that lets Toup search it.


The need
A trip has two sides. A traveller needs to search, compare and review. The agencies, corporate teams and staff behind that need consistent states, shared records and a clear handoff between roles.
I built Samtrip to connect the two sides. I also wanted to see how an agent could work in the same domain, through concrete tools for search, fares and review.
The build
I built the traveller interfaces and the workspaces for agencies, corporate teams and staff. Then I built a local bridge between Toup and Samtrip’s sandbox API.
One model behind every workspace. The search, checkout and trip interfaces are Persian-first. Shared workflow state machines connect the roles and the stages a booking passes through.
Records under the screens. A double-entry ledger model, outbox processing and background jobs sit behind those interfaces.
A bounded set of tools for an agent. The bridge speaks MCP over stdio on Toup’s side and HTTP on Samtrip’s. It gives the agent flight search, offer details, price checks, fare rules and a handoff to customer review.
The stack is TypeScript, Next.js, React, Hono, PostgreSQL, Drizzle, pg-boss, Valkey, Python and FastMCP.
The local pilot
- Toup agentcalls the tools
- Local MCP bridgestdio to HTTP
- Samtrip sandbox APIsearch, offers, prices, fare rules
- Customer reviewthe review handoff
- The pilot stops here.
- Reservation
- Payment
- Ticket



Where it stops
The pilot stops at customer review.
Prototype. The traveller and workspace interfaces, the shared workflows behind them, and the local bridge to Toup, which runs against the sandbox API.
Not built. A hosted connection to Toup, and live supplier and payment connections. Today the supplier and payment paths are mock integrations.
The pilot’s tools do not create reservations, take payment or issue tickets. The screens are actual development interfaces with illustrative travel data, and the fares shown in Toman are demonstration content.
I am looking for capital and a first operational partner.