Introducing MCP and API

Your team's AI assistants work in your company's software as themselves and within their roles, with no integration to build.

Product · SegmentStream · 16 October 2026 · 4 min read

On this page

Your team already asks Claude and ChatGPT for help. With MCP and API, those assistants can work in your company's own software: find a deal, update a customer, approve an invoice, as the person asking and only within what their role allows. There is no integration to build for each tool. Every app on SegmentStream comes with it, generated from its ontology: the records your business runs on and the rules for changing them.

The same model is also a REST API for your other systems and a typed SDK for your app. Change a rule once, and every person, agent and system follows it.

The console's MCP page: the workspace's server address and how to connect Claude, ChatGPT, Claude Code and local clients; the agent acts as the member who connects it, with that member's roles
The app's MCP address and how to connect each client. The agent acts as the member who connected it.

What's new

  • An MCP server per app, at /mcp, built from your ontology.
  • Agents sign in as the person, with OAuth, and choose how much they may do.
  • Tools per role: an agent sees only the tools its person's roles allow.
  • A REST API with its own reference, interactive at /api/ontology/docs.
  • A typed SDK for your app's server code.
  • API keys for systems that call your app with nobody signed in.
  • Errors an agent can act on: a refused call says why, so the agent fixes it.

An MCP server for every app

Every app serves its ontology at /mcp on its own domain. Add the address to Claude or ChatGPT as a custom connector, or run one command in Claude Code:

claude mcp add --transport http crm https://crm.example.com/mcp

The tools come straight from your ontology. Each entity gets tools to find, get and read the history of its records, each action becomes a tool, and metric tools count, sum and compare. Every tool carries the descriptions you wrote, so the agent knows what a deal is and when moving one is refused before it calls anything.

Your app's Start page shows members the address and each client's steps, so nobody needs to ask a builder how to connect.

Agents sign in as the person

There is no shared key and no service account. Each member connects their own agent:

  1. 01

    The member adds the app's /mcp address to their AI tool

  2. 02

    The app opens its own sign-in page

  3. 03

    The member chooses

    everything their roles allow, read only, or deny

  4. 04

    The agent works as that member, and history names them

Connecting an agent to your app.
  • The agent acts with the roles the member holds at that moment. Change a role and the agent changes with it.
  • Tokens work only on that app's /mcp and expire within the hour; refresh tokens rotate on every use.
  • Deactivate a member and every agent they connected stops at once.

Tools per role

An agent's tool list holds only what its person's roles allow, and every call is checked again on the server. A role without the right to move deals never sees the tool that moves them, so it can't be talked into using it.

  1. deal_findSalesStrong:YesFinanceStrong:YesMarketingStrong:Yes
  2. deal_move_stageSalesStrong:YesFinanceWeak:NoMarketingWeak:No
  3. invoice_approveSalesWeak:NoFinanceStrong:YesMarketingWeak:No
  4. query_metricsSalesStrong:YesFinanceStrong:YesMarketingStrong:Yes

● strong   ◐ partial   ○ weak

An example: one ontology, three roles, three different tool lists.

Actions carry hints such as destructive or irreversible, so AI tools ask the person before running them. Read-only questions run at once.

The console's role comparison for the growth, sales and invoice_printer roles: each read and action in rows, with the permission it requires, and a dot where a role holds it
Who may do what, read from your code. The tool lists follow the same table.

A REST API with its own reference

The same ontology is a REST API at /api/ontology. Every entity and every action has its own route, described in an OpenAPI document.

  • An interactive reference at /api/ontology/docs. Signed in to the app in the same browser, you try every route as yourself.
  • Dry runs. An action called with validate_only checks the input and the caller's permission and returns every problem, without saving anything.
  • History on every record, with the action, who ran it, and each value before and after.

A typed SDK for your app

Your app's server code reads and changes records through a typed client generated from the same ontology. It acts as the signed-in member, so the app never holds database credentials and can't do more than the person using it.

API keys for unattended work

A website form, a support desk or another system that calls your app with nobody signed in uses an API key. A key holds exactly the roles it was created with, and history names it.

segmentstream ontology mcp --create-key support-desk --role sales

Work that runs on a timetable inside your workspace needs no key: it is a workflow, with a role of its own.

Errors an agent can act on

A refused call returns the action's own message, such as "A lost deal needs a reason", with the problem in each field. The agent reads it, fixes its input and tries again, instead of guessing why it failed.

Try it

Install SegmentStream:

curl -fsSL https://segmentstream.com/install.sh | sh

Then ask your coding agent (Claude Code, Codex, Cursor or another) to open your app to your team's AI tools. It could be:

Set up our SegmentStream app so the team can use it from Claude
and ChatGPT. Sales may find deals and move them between stages,
marketing may only read them. Add an API key for our website's
contact form that can only submit a lead, nothing else.

Read more on the MCP and API page, or why one gateway beats raw MCP servers in MCP gateway vs raw MCP servers.

Enterprise pilot

Start a pilot.

Our forward-deployed engineers build one solution on your data, in your own workspace, as code you own. Tell us what you run today and what you want; your note goes straight to our founder.

  • One solution, on your data, in your own workspace
  • First version live in two weeks
  • Parity proven before anything is switched off
  • Fixed scope and price, credited to your contract if you continue

Not ready for a pilot? Send the form anyway with your question. An engineer will reply, not a sales rep.

How the pilot works

Goes to our founder’s inbox. No sales queue, no newsletter.

Build your company’s own software. Let agents run it.

Start a pilot

Our engineers build the first version on your data in two weeks, at a fixed price.

Or build it yourself with your coding agent:

curl -fsSL https://segmentstream.com/install.sh | sh

We’ll email you product updates, tips and onboarding help. Unsubscribe anytime.