AI and MCP

Turn text into structured data, and let assistants work with your app

Send text and a schema, and get back data that matches it. Give an AI assistant a key that reaches one app and nothing else.

Growth and above. Extraction requests per month: 1,000 on Growth, 10,000 on Scale, unlimited on Enterprise. MCP calls per month: 10,000, 100,000, unlimited.

What you get

Structured extraction

Send text, or text with an image, and a JSON schema. The answer is forced through the schema, so the model cannot reply in prose and you get data your code can parse.

Named schemas or your own

Use a schema from the catalog, or send your own with the request.

Your key or ours

Use the platform’s AI by default, or choose a provider and model and bring your own API key. The key is encrypted at rest and can never be read back.

Clean failures

If AI is not set up, or the plan or monthly allowance stops a call, you get a specific error to catch, not a crash.

MCP connector keys

Create a key for one application with the mcp.connect scope and paste it into Claude Code, Claude Desktop, ChatGPT, or any MCP client. The assistant can only see and change what that key allows.

MCP for setup

The TenancyEngine MCP server has tools to create applications, workspaces, API keys, webhooks, and custom domains, and to read usage, so an assistant can set up your app for you.

In your code

These calls come from the TenancyEngine.Sdk package on NuGet. Every capability is also a REST API, so any language that can make an HTTPS request can use it.

Extract data from text
const string schema = """
{ "type": "object",
  "properties": { "customer": { "type": "string" }, "total": { "type": "number" } },
  "required": ["customer", "total"] }
""";

try
{
    var result = await te.ExtractAsync(applicationId, noteText, schema: schema, ct: ct);
    var json = result.Data; // JSON text that matches the schema
}
catch (TenancyEnginePlanRequiredException)
{
    // The plan does not include extraction, or this month's allowance is used up.
}
catch (TenancyEngineNotConfiguredException)
{
    // AI is not set up for this app yet. Show a friendly message.
}
Connect Claude Code to your app
# The console shows this command, filled in, when you create a connector key.
claude mcp add --transport http my-app <gateway-url> \
  --header "Authorization: Bearer <connector-key>"

What to know before you build on it

  • AI and MCP are not part of Starter.
  • A connector key reaches one application and carries only the scopes you grant. It cannot reach your other applications.
  • The per-app knowledge base and chat widget are in early access.

Questions developers ask

Can an assistant see data it should not?

A connector key is tied to one application and carries only the scopes you grant. The assistant can do what those scopes and your app’s tools allow, and nothing else.

Which AI providers can I use?

Choose a vendor and model on the AI provider page, or point to a self-hosted endpoint that speaks the OpenAI format over HTTPS.

What if AI is not configured yet?

The extraction call returns a specific “not configured” error and does not use any of your allowance.

Try it on the free Starter plan

One app and up to five customer workspaces. Upgrade when you need more.

Request access