Skip to content

AI agents (MCP)

Sencai runs a server that speaks the Model Context Protocol (MCP) - an open standard that lets an AI assistant call a defined set of tools on your behalf, with its own authentication and scoping, rather than you copy-pasting data back and forth. This page covers connecting an MCP-capable AI client (Claude, another MCP client, or your own agent) to your organization.

https://mcp.sencai.space/mcp

The server speaks MCP’s Streamable HTTP transport over this single URL (the same endpoint handles the protocol’s connection, tool-call, and teardown requests). Authenticate with a personal access token - Authorization: Bearer sencai_pat_... - not your browser session. There’s no separate account or API key system for MCP specifically: it’s the same token described on that page, and it reaches the same organization-scoped surface.

  1. Create a token at Settings → Integrations → AI Agents (/gravity/settings/integrations/ai-agents) - see API tokens for the exact steps. Use read if you only want the AI assistant to look things up; use read/write if you also want it able to take the gated write actions below.
  2. In your MCP client, add a server pointing at https://mcp.sencai.space/mcp using the Streamable HTTP transport, and set an Authorization: Bearer <your token> header on it. Exactly where you enter the URL and header depends on your specific client - consult its own documentation for MCP server configuration.
  3. If you want write actions available, an Owner or Admin also needs to turn on AI-agent write access for the organization from the same settings screen (see below) - a token alone isn’t enough.

The same settings screen shows an Agent Activity log of every write action an AI agent has taken through your organization’s tokens, so you can review what happened after the fact.

Every read tool is automatically scoped to your own organization - none of them accepts an organization ID, and none can be pointed at anyone else’s data.

ToolWhat it returns
get_organisation_infoYour organization’s name and account tier
get_billing_statusCurrent subscription tier and quota limits (max instances, members, monthly budget)
list_cloud_instancesCloud instances owned by your organization
get_cloud_instance_statusStatus of one instance, by ID
list_fleet_agentsFleet agents enrolled under your organization
get_compliance_scoreYour organization’s current compliance score
search_docsFull-text search over Sencai’s public documentation
pingLiveness/echo - no data access

Write tools require three things to all be true, checked server-side on every call:

  1. The token used has the read_write scope.
  2. AI-agent write access is turned on for the organization (off by default - an Owner or Admin turns it on from the same settings screen).
  3. The organization is on a paid plan (Starter or above).
ToolWhat it does
create_cloud_instance_from_marketplaceDeploys a new cloud instance from an approved marketplace app’s template
invite_organisation_memberInvites an existing Sencai user (by email) into your organization
trigger_runbookTriggers an existing runbook against your organization’s fleet

Write actions are being rolled out gradually, so a specific write action may not be available yet even with everything above turned on.