Flito docs

MCP

Use Flito from ChatGPT, Claude, Cursor and other AI apps, or from your own agent.

Flito is an MCP server (Streamable HTTP, protocol 2025-06-18). Two addresses reach it:

  • https://flito.ai/mcp works for every Flito. When you sign in, it asks which Flito you use, sends you there to sign in, then passes every call through to it.
  • $FLITO_URL/mcp is your Flito's own address. Sign in with OAuth, or send an API key as the bearer.

Connect an AI app

  1. Open Settings, Apps (or Apps & Connectors), then Advanced settings, and turn on Developer mode.
  2. Choose Create, name it Flito, paste https://flito.ai/mcp (or your Flito's /mcp address) and choose OAuth.
  3. Sign in to Flito when asked, and choose read only or read and write.

How sign-in works

connect to /mcpsign in at /.well-known/oauth-protected-resource/mcpopen the Flito sign-in pagesign in, choose read only or read and writea token for you, with that accesstool calls, as youAI appYour FlitoYouAI appYour FlitoYou
connect to /mcpsign in at/.well-known/oauth-protected-resource/mcpopen the Flito sign-in pagesign in, chooseread only orread and writea token for you,with that accesstool calls, as youAI appYour FlitoYouAI appYour FlitoYou
  • The app gets no more than the person who connected it, and only read access if they chose read only.
  • The connect page also accepts an API key in place of signing in. The connection then gets no more than the key, and ends when the key is revoked or expires.
  • Workspace admins see every connected app, and every tool call each one made, in Settings, Integrations, API and AI. See Keys and scopes.

How changes work

Over a sign-in or an API key alike, the app makes changes as the person. Every change is kept in the record's history under the app's name, where it can be undone. Every AI working in Flito, Scout in the app included, is told:

  • You act as the user: changes you make run at once, under their name, and each one is kept in the record’s history with who made it, where the CRM can undo it.
  • ASK FIRST. Before any of these, show the user exactly what will happen (who an email goes to, its subject and full text; the quote’s lines and total; which records and what changes) and wait for a clear yes in this chat: sending anything to people (emails, broadcasts through the CRM or Mailchimp, quotes for signature, sequences); creating a quote or changing its lines or prices; deleting, archiving or merging anything; changing more than 5 records at once; anything that spends credits; and settings, pipelines or automations.
  • JUST DO IT. Other changes the user plainly asked for need no extra question: add a note or task, complete a task, update a field to the value they gave, move a deal to the stage they named, and add a company, contact, lead or deal (after checking it is not already on file). Then say what you did, with the link.
  • If you are not sure the user asked for a change, ask. Never say something is done unless the tool’s answer shows it was.

Tools

Every Flito has these tools. A workspace may have more.

  • search: Find companies, contacts, deals, leads, quotes and invoices by name, email, phone, domain or number, in one call.
  • fetch: Open one CRM record by id (from search or any list): a company (with its account summary), contact, deal, lead, quote or invoice (with line items), or task.
  • get_account_summary: The full picture of one company account: key figures (open and won deals, quotes, invoices owed, activity in the last 30 days), its people, its deals with stages, recent activity and open tasks.
  • find_companies: List companies with filters: text, states, lifecycle stage, owner, or any field.
  • find_contacts: List people: by text (name, email, phone, title), company, current employees only, or any field.
  • find_deals: List deals with filters: text, stage (key or label), open only, company, owner, amount range, close-date range, or any field.
  • find_leads: List leads (people being worked towards a deal): by text, status, source or owner.
  • find_quotes: List quotes: by text (number, company), company, deal or any field (e.g. status).
  • find_invoices: List invoices: by text, status (draft, issued, sent, partially_paid, paid, overdue, void), company or deal; or only the ones still owed.
  • get_recent_activity: The latest timeline entries (emails, calls, notes, meetings, tasks, quotes, e-sign) on one record, or across the whole workspace.
  • list_tasks: Tasks to do or done: mine or everyone’s, overdue, due in the next N days, or on one record.
  • list_segments: The saved segments (audiences) in the CRM: name, object type, dynamic or static, cached member count and a link.
  • count_segment: Count an audience live and show a sample: a saved segment by id, or an ad-hoc one from an object type and conditions (e.g. companies where state is CA and lifecycleStage is customer).
  • pipeline_summary: Where the deals sit: deal count, total and probability-weighted amount per stage of a pipeline, and the grand totals.
  • aggregate_records: Answer "how many / how much, by what" over any CRM object: group by up to 3 fields and compute count, sum, avg, min or max.
  • find_email_threads: Search the CRM inbox (the mailboxes connected to the CRM) for conversations by words, a person or a company, newest first.
  • read_email_thread: Read one conversation from the CRM inbox, oldest message first: who wrote, to whom, when, and the text without quoted history.
  • draft_quote: Turn a request, for example from an email thread, into a priced quote draft: finds the buyer and each product in the catalog, works out quantities, unit prices and totals the way the CRM’s quote builder does, and says w…
  • create_quote: Create a quote from the same arguments as draft_quote (draft first and show the user).
  • check_deal: How one deal stands: its stage, amount and close date, the company and contact, its quotes (sent, signed, expiring), invoices, recent activity and open tasks, with plain flags for what looks at risk (close date passed, …
  • send_email: Send one email to at most 5 people from the user's CRM mailbox.
  • send_quote_for_signature: Email a quote to the customer to sign, with a button to its page.
  • add_quote_line: Add one line to a quote, after the lines it has: a product from the catalog (its id, or words that find it, as in draft_quote) or a free description for anything else, such as a setup fee or freight, with a quantity and…
  • update_quote_line: Change one line on a quote: its quantity, its unit price in USD, or the words of a line that is not a catalog product.
  • remove_quote_line: Take one line off a quote.
  • approve_quote: Approve a quote that waits on approval, so it can go out for signature, or reject it to send it back for changes.
  • convert_quote_to_invoice: Make the invoice for a quote, with its lines and money, as Convert to invoice does in the CRM.
  • create_company: Add a company.
  • create_contact: Add a person, optionally at a company (by id, or by exact company name).
  • create_deal: Open a deal.
  • create_lead: Add a lead: a person to work towards a deal.
  • create_task: Add a to-do, optionally on a company, contact, deal, quote or lead, with a due date and priority.
  • add_note: Add a note to the timeline of a company, contact, deal, quote or lead.
  • update_deal_stage: Move a deal to another stage of its pipeline (key or label).
  • complete_task: Mark a task done.
  • update_record: Change fields on a company, contact, deal, lead or quote, e.g. {"jobTitle": "Head of Procurement"} or {"amount": 125000, "closeDate": "2026-12-15"}.
  • preview_change: Show the user a change before you make it: who an email goes to with its subject and full text, a new quote or a quote line added, changed or removed with the lines and the total, each field of a record from old to new,…
  • list_capabilities: Find any CRM action this connection may use, by words or by area, or pass an id (area.action) to get its full input schema.
  • run_capability: Run any capability from list_capabilities by id with its input, as its area tool would (quote_actions runs the quote ones).

Every action in the CRM also has a tool for its area (quote_actions, invoice_actions, deal_actions and so on), which lists each action it runs with the fields it needs. list_capabilities finds an action by words and gives all its fields; run_capability runs any of them by id.

From your own code

Your agent can use the same tools with an MCP client and an API key:

npm install @modelcontextprotocol/sdk
flito-mcp.ts
import { Client } from '@modelcontextprotocol/sdk/client/index.js'
import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js'

const transport = new StreamableHTTPClientTransport(new URL(`${process.env.FLITO_URL}/mcp`), {
  requestInit: { headers: { Authorization: `Bearer ${process.env.FLITO_API_KEY}` } },
})
const client = new Client({ name: 'my-agent', version: '1.0.0' })
await client.connect(transport)

const { tools } = await client.listTools()
console.log(tools.map((tool) => tool.name))

// Find records by name, email or number
const found = await client.callTool({ name: 'search', arguments: { query: 'Acme' } })
console.log(found.content)

// Run any capability by id
const quotes = await client.callTool({
  name: 'run_capability',
  arguments: { capability: 'quote.list', input: { limit: 5 } },
})
console.log(quotes.content)

await client.close()

These docs over MCP

These docs are an MCP server too, separate from your Flito: https://flito.ai/docs/api/mcp lets an AI app search and read every page. See Docs for AI.

Was this page useful?

On this page