Skip to content
Developers · Concept Intermediate

MCP server

Give an AI client live, scoped access to a Sluicio cell over the Model Context Protocol — the remote (Streamable HTTP) and local (stdio) transports, scoped viewer service-account tokens, the tool catalogue, and the one tool that writes (a proposal a human must approve).

SLSluicio team 9 min read Updated Jul 2026

A Sluicio cell exposes a Model Context Protocol server, so an AI client — Claude, Cursor, your own agent platform — can answer questions about the cell from live data: which integrations are unhealthy right now?, show me the order-bus system’s members, we paged at 03:10 — what were the traces doing?

It is not a copy of your telemetry handed to a model. Every tool is a call against the same /api/v1 REST surface the UI uses, executed as the caller’s token — so an assistant sees exactly what that token would see in the browser, and nothing more. There is no second source of truth and no MCP-side filtering to keep in step with your access rules.

Three things are worth deciding before you wire it up:

  • Which transport — remote HTTP for a deployed cell, stdio for a client that spawns a local process.
  • Which token, and how tightly scoped — this is the decision that actually bounds what the assistant can read.
  • Whether the assistant may file proposals — the one thing it can do besides read, and even that changes nothing until a human approves it.
Remote — Streamable HTTPLocal — stdio
EndpointPOST https://<your-host>/api/v1/mcpthe cell-mcp binary on the client’s host
Ships withevery deployment — it’s mounted on cell-apibuilt from the app repo
AuthAuthorization: Bearer <token>, or OAuthSLUICIO_TOKEN env var
Use it fordeployed cells, sandboxed clientsclients that spawn a host process

Remote is the recommended path. Because the endpoint is mounted on the API service, it exists wherever cell-api does — the dev docker-compose, the single-host Caddy setup whose /api/* rule already proxies to cell-api, and the Helm chart on the same ingress. No separate service, no extra port, no proxy rule, no TLS certificate. It also works from clients that run sandboxed and cannot reach a local binary or localhost at all.

Add it in your client as a custom / remote MCP connector, pointing at:

https://<your-host>/api/v1/mcp

The cell shows you its own connector URL on Developers → API & MCP, computed from the live origin, so you can copy it rather than assembling it by hand.

To check the endpoint answers before involving a client at all:

Terminal window
curl -sS https://sluicio.example.com/api/v1/mcp \
-H "Authorization: Bearer $SLUICIO_TOKEN" \
-H "Content-Type: application/json" \
-H "MCP-Protocol-Version: 2025-06-18" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

The transport is stateless — no session is created and none is issued, every request carries its own token, and each dispatch stands alone. A cell restart mid-conversation therefore breaks nothing. GET and DELETE answer 405 with a body saying why: there are no sessions to delete, and no server-initiated messages to stream (for push, see below).

For clients that spawn a host process — classic desktop chat clients, Cursor — build the stdio server from an app-repo checkout:

Terminal window
make mcp # builds bin/cell-mcp

Then point the client’s mcpServers block at it. The binary is a thin client: it talks to your cell over the same REST API, so it needs a base URL and a token.

{
"mcpServers": {
"sluicio": {
"command": "/path/to/bin/cell-mcp",
"env": {
"SLUICIO_BASE_URL": "https://sluicio.example.com",
"SLUICIO_TOKEN": "con_sa_…"
}
}
}
}

This is the part that matters. An MCP connection is exactly as broad as the token behind it, so the token is the security boundary.

Authenticate with an ordinary Sluicio Bearer token, and use a scoped viewer service-account token — created under Settings → Service accounts, where you name the account, give it a role, and issue a token (shown once, with an optional expiry). Two independent limits then apply, and they’re the same two Sluicio applies to people:

  • The role caps what it may do. A token’s effective role is the lower of the account’s role and the token’s own access cap, so a read-only cap makes the connection read-only at the API’s own gates — not by convention, and not reversibly by anything the client sends.
  • The account’s team memberships bound what it may see, per signal. A service account joins teams exactly like a user and resolves visibility the same way, including per-signal narrowing. So you can hand an assistant team A’s logs and metrics and nothing else: it won’t see team B’s services in a listing, in a search result, or in a trace.

MCP inherits all of this from the REST API automatically. There is nothing on the MCP side to configure, and no way for a tool to reach past it.

Prefer a service account over a personal access token: it isn’t tied to an employee’s access, an admin manages its lifecycle, and its scope is chosen deliberately rather than inherited from whoever happened to set it up. Tokens are stored hashed and shown once — see the security model.

OAuth is supported for connectors that require it instead of a static token: the cell serves protected-resource and authorization-server discovery metadata, dynamic client registration, an authorize/consent screen, and a token endpoint. The resulting access is scoped identically — the authenticated principal is still an ordinary Sluicio identity.

The catalogue is deliberately small; a short list keeps a model’s tool selection accurate. Every tool declares an output schema and returns structured content alongside its text, so a client knows the shape of an answer before it asks, and every tool carries annotations (readOnlyHint, destructiveHint and friends) so a client can present the read surface as safe, and tell the proposal tools apart from the rest.

Start with sluicio_cell_brief. One call answers what am I looking at, and is anything wrong?: the org and environment name; counts of integrations, systems and services with how many are unhealthy, erroring or quiet; what is firing right now, worst first, each with its runbook where the rule has one; services carrying traffic that no alert rule watches; and how many proposals are waiting for review. An agent orients in one round trip instead of five.

ToolWhat it returns
sluicio_cell_briefStart here. Org and environment, counts, what’s firing now (worst first, with runbooks), unwatched services, pending proposals
sluicio_list_integrationsIntegrations with rolled-up health, and their status per environment; optional environment
sluicio_get_integrationOne integration, with per-service health and the columns of its Messages view; optional environment
sluicio_integration_candidatesSuggested integrations: groups of unassigned services that call each other, and services that look like several flows (an attribute such as node_red.flow.id that splits their messages one value per message), with the traffic per value
sluicio_list_servicesDiscovered services, health, and service facets
sluicio_list_systemsSystems with rolled-up health
sluicio_get_systemOne system and its member services
sluicio_system_typesThe system-types catalog, each with its docs URL
sluicio_healthWhat’s unhealthy and why — entities grouped with their failing checks
sluicio_errorsThe “in trouble” feed
sluicio_error_reportErrors since a given time, grouped with the causing checks
sluicio_alert_instancesRecent alert-rule firings with state and severity
sluicio_digestThe since-last-visit digest
sluicio_metric_catalogMetric catalog search
sluicio_metric_seriesOne metric’s time series, per service
sluicio_search_tracesMessage search by integration, span attribute, service, errors-only or error text. See Questions about one message
sluicio_get_traceOne trace by id with all its spans. With integration, that integration’s part of it, and its attributes named as its Messages view names them. Each span lists its payload links
sluicio_search_logsLog search by query, severity, service, integration or attributes
sluicio_usage_reportThe admin usage report — per-signal coverage and storage estimates (admin token only)
sluicio_list_alert_rulesAlert rules, filtered by integration, service or system, each with where it stands now: firing, ok or disabled, since when, and the last value it read. A health check is an alert rule bound to an integration, a service or a system
sluicio_get_alert_ruleOne alert rule: its full condition, scope, channels, runbook and state
sluicio_list_completion_rulesAn integration’s trace-completion rules: start span, stages and their timeouts
sluicio_delayed_messagesThe messages those rules flagged: trace id, rule, environment, the stage each is stuck at and the spans it is waiting for. open returns only the ones still stuck, however long ago they were flagged
sluicio_list_notification_channelsWhere notifications go: channels and notification profiles, without credentials, URLs or addresses
sluicio_span_namesThe span names an integration carries, optionally for one of its services
sluicio_metric_label_valuesThe values of one metric attribute, such as which subscriptions or queues a metric’s series belong to
sluicio_backtest_ruleA dry run of a check against stored telemetry: how often it would have fired, and when
sluicio_dry_run_completion_ruleA dry run of a trace-completion rule, a draft or an existing one with changes: how many traces it would follow (out of how many the services sent), complete, pending and delayed, and where they get stuck
sluicio_proposal_optionsEvery value a proposal may use: check types, aggregations, operators, windows, severities, channel ids
sluicio_propose_check_tuningFiles a proposal to change an alert rule: threshold, severity, sustain window, enabled, its channels or its environments. See below
sluicio_propose_alert_ruleFiles a proposal for a new health check
sluicio_propose_trace_completion_ruleFiles a proposal for a new trace-completion rule on an integration
sluicio_propose_completion_rule_changeFiles a proposal to change an existing trace-completion rule: start span, stages, timeouts, channels, name
sluicio_propose_integration_settingsFiles a proposal to change an integration’s matchers, environments, sources or error notifications
sluicio_propose_metric_sourceFiles a proposal that adds one metric or log source to an integration
sluicio_propose_changesFiles a batch: up to 100 proposals of the kinds above under one rationale, reviewed and approved together

Results respect the token’s scope everywhere, including search: a log query that would match a service outside the token’s teams simply doesn’t match it.

People ask about the thing a message carries, not about a trace id: “what happened to invoice 123?”. sluicio_search_traces answers that in one call. Each result carries payload_links, the addresses of the message’s payload from the organization’s payload links, so the agent can hand over the file itself; Sluicio does not fetch it.

  • integration scopes the search to one integration by id, name or slug. Only its part of its services’ traffic is searched.
  • attributes are conditions on span or resource attributes, each {key, op, value}. op is equals (the default), not_equals, contains, not_contains, in, matches, exists or not_exists, as in the filters of the Messages view.
  • The key can be the attribute as the telemetry names it (iId) or, with an integration, the label it shows that attribute under as a column in its Messages view (Invoice Id). The response lists each label it translated under resolved_attributes.
  • Each result carries the integration’s column values under their labels, so an agent explains the message in the words the team sees in the Messages view.
  • include_spans attaches every span of the first 10 results. “Explain everything that happened to invoice 123” no longer means fetching the latest thousand traces and reading them one by one.
  • errors_only is off by default when an integration or attributes are given, since the message someone asks about usually went through.
  • With an integration, each result also says where the message stands against the integration’s trace-completion rules, under completion: complete once every stage was reached, or waiting or delayed (inside or past the stage’s timeout) with the stage it has not reached and how many it has. not_started means the message never emitted the rule’s start span, so the rule does not follow it. It is the verdict the rule alerts on, so “did invoice 123 get through, and if not, where is it?” is one call.

sluicio_get_trace with integration returns that integration’s part of the trace with attribute_labels, and sluicio_get_integration lists the integration’s columns, so an agent can see which names it can ask by. Both read through the same access checks as the app: a message outside the token’s scope is not found.

Everything above reads, except the seven sluicio_propose_* tools. They let an assistant propose a change: an existing check (its threshold, severity, sustain window, whether it is enabled, the channels it sends to, and whether it watches every environment or only some), a new health check, a new trace-completion rule or a change to an existing one, or an integration’s settings (its matchers, declared environments, metric and log sources, and whether unacknowledged errors notify anyone).

Proposing changes nothing. The tool files a proposal: a stored, reviewable change request carrying the assistant’s stated reasoning and a before/after diff, which someone with edit rights approves or rejects in the Proposals inbox. A proposal that creates something shows the new check or rule as it would read, with the exact request beside it. Only approval applies it, by making the same request a person would make by hand, as the reviewer: if the reviewer could not have made the change themselves (creating a completion rule takes an org admin, say), approving it fails too.

A proposal is checked when it is filed, so the inbox only holds changes that could be approved: a check the cell would refuse to create is refused as a proposal, and the same new check or rule filed twice is one proposal. sluicio_proposal_options lists the valid values, sluicio_backtest_rule dry-runs a check against the stored telemetry, and sluicio_dry_run_completion_rule does the same for a completion rule, so the rationale can say how often the check would have fired, or how many traces the rule would follow, rather than guess. A completion rule whose start span no trace carries follows nothing and never fires; its dry run shows that as 0 of N traces before anyone approves it.

Batches. Setting up a cell’s alerting is many near-identical changes: channels on every check, the start span of every completion rule. sluicio_propose_changes files them as one batch with one rationale, which the inbox shows as one card with Approve & apply all and Reject all; each item can still be decided on its own. Every item is checked when the batch is filed, and one invalid item refuses the whole batch, naming it. Approving checks every item’s target for edits made since before applying any, then applies the items in the order they were filed, each through its own route as a single proposal would be. That is not one database transaction, so an item that fails to apply stops the batch there: the items before it stay applied, and it and those after it stay pending.

Two things to know about trace-completion rules: a message is a trace, so the trace id is the correlation key and there is no other, and a rule reads the integration’s services in every environment, without an environment filter of its own.

Three properties make this safe enough to exist in an otherwise read-only catalogue:

  • A rationale is required. A proposal with no reason isn’t reviewable, so the tool refuses to file one. The reasoning is shown to the reviewer verbatim — “fired 40 times in 24 h, every instance auto-resolved within two minutes” is reviewable; “threshold seems low” is not.
  • The cell snapshots the current values itself rather than trusting the ones the caller reports. If a human edits the rule while a proposal is pending, approval is blocked as drift instead of silently reverting their edit.
  • Proposals expire. An unreviewed proposal lapses after two weeks rather than sitting in the inbox looking actionable, because approving reasoning nobody can still check is worse than losing it.

Every change an assistant makes is recorded in the audit log marked as originating from MCP, so an admin can filter for what did the agents do? The marker is set inside the cell rather than read from a header, so a caller can neither disguise its own writes as an agent’s nor an agent’s as its own.

Rate limits. Token-authenticated callers get a generous per-caller ceiling — 600 requests per minute with a burst of 120, keyed on the service account rather than the individual token, so minting a second token doesn’t buy more budget. It exists to protect the telemetry database from a looping agent, not to ration normal use. A blocked call returns 429 with Retry-After; browser sessions are never limited.

Cross-origin browser calls must carry a Bearer token. A page open in a user’s browser can POST to the endpoint, and the browser will attach their session cookie unasked. Refusing ambient credentials from a foreign origin closes that without an origin allowlist that would lock out legitimate browser-based clients.

Protocol versions. The cell speaks 2025-06-18, and also 2025-03-26 and 2024-11-05. An unknown revision gets a 400 naming what the cell does speak, rather than a silent mismatch later.

MCP is request/response: an agent asks, the cell answers. If you want the cell to tell you when something happens — an alert firing, a new service appearing, a configuration change — don’t poll a tool on a timer. Use event subscriptions or an alert webhook instead: they survive a disconnect where a held connection would not, and they cost the cell nothing while nothing is happening.