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.
Endpoint and authentication
Section titled “Endpoint and authentication”https://mcp.sencai.space/mcpThe 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.
Setting it up
Section titled “Setting it up”- Create a token at Settings → Integrations → AI Agents
(
/gravity/settings/integrations/ai-agents) - see API tokens for the exact steps. Usereadif you only want the AI assistant to look things up; useread/writeif you also want it able to take the gated write actions below. - In your MCP client, add a server pointing at
https://mcp.sencai.space/mcpusing the Streamable HTTP transport, and set anAuthorization: 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. - 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.
Read tools
Section titled “Read tools”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.
| Tool | What it returns |
|---|---|
get_organisation_info | Your organization’s name and account tier |
get_billing_status | Current subscription tier and quota limits (max instances, members, monthly budget) |
list_cloud_instances | Cloud instances owned by your organization |
get_cloud_instance_status | Status of one instance, by ID |
list_fleet_agents | Fleet agents enrolled under your organization |
get_compliance_score | Your organization’s current compliance score |
search_docs | Full-text search over Sencai’s public documentation |
ping | Liveness/echo - no data access |
Write tools
Section titled “Write tools”Write tools require three things to all be true, checked server-side on every call:
- The token used has the
read_writescope. - 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).
- The organization is on a paid plan (Starter or above).
| Tool | What it does |
|---|---|
create_cloud_instance_from_marketplace | Deploys a new cloud instance from an approved marketplace app’s template |
invite_organisation_member | Invites an existing Sencai user (by email) into your organization |
trigger_runbook | Triggers 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.
What’s next
Section titled “What’s next”- API tokens - create and manage the token this connects with
- Platform API overview
- Audit log - every write action an agent takes is recorded there too, in addition to the in-app Agent Activity log
- FAQ