Skip to main content

MCP tools

The Layero MCP server: https://mcp.layero.ru/mcp, Streamable HTTP transport, named layero in client configs. How to connect is described on Connect an agent; this page is what the server can do, one line per tool.

Account

ToolWhat it does
whoamiWho is connected: user, organisation, token expiry.
my_projectsThe list of projects with addresses and source (repository or CLI).

Site and deploys

ToolWhat it does
site_statusSite state: latest deploy, address, environments.
list_deploysThe project's build history.
deploy_logsBuild and application logs.
diagnose_deployWhy a build failed — with a log breakdown and the next step.
retry_deploy ⚠️Restart a failed build.
cancel_deploy ⚠️Cancel a running build.
rollback ⚠️Roll production back to a previous build.
publish_site ⚠️Publish ready static output (a folder with index.html) without the CLI; creates the project if it does not exist. publish_landing is a deprecated alias of publish_site.
env_vars ⚠️Read, set or delete the project's environment variables.

Domains

ToolWhat it does
list_domainsThe project's domains and their state.
connect_domain ⚠️Connect your own domain: returns the DNS records to create.
check_domainCheck whether the domain works: DNS and certificate.

Site content

ToolWhat it does
read_siteRead a page of the published site as text and markup.
site_screenshotA screenshot of a site page.
site_issuesWhat to fix on the site: broken links, meta tags, accessibility.
refactor_sitePropose a markup change — returns a patch, touches no files.
check_copyProofread Russian text against Layero's editorial rules.
check_performanceMeasure site speed: Core Web Vitals, Lighthouse.

Analytics

ToolWhat it does
connect_analytics ⚠️Connect Yandex Metrica to the project.
site_analyticsSite traffic over a period.

Data API

ToolWhat it does
data_api_statusWhether the Data API is enabled for the project's database, and its address.
data_api_methodsMethods (tables and functions) and who may call them.
data_api_grant ⚠️Open or close access to a method for a role.
data_api_keys ⚠️Issue or revoke Data API keys.
data_api_origins ⚠️Sites allowed to call from the browser (CORS).
data_api_probeA trial call of a method — check that access and the response are as expected.

Documentation

ToolWhat it does
search_docsSearch docs.layero.ru; the only tool that works without signing in.

Tools marked ⚠️ change the site, the project or access — the server declares them without readOnlyHint, and the client (Claude Code, Cursor, Codex) asks for confirmation before the call. The rest only read, and the client calls them without asking.

The rule for an agent: before rollback, publish_site, a writing env_vars, data_api_grant and data_api_keys, tell the person exactly what will change and wait for the answer — even when the client does not require confirmation.

Sign-in

The server answers search_docs without sign-in; everything else requires a Layero account. A client that supports OAuth opens the browser itself on the first call. For CI and environments without a browser — the header Authorization: Bearer $LAYERO_TOKEN; how to issue a token is on Connect an agent.

URL parameters: project and read_only

The server's scope can be narrowed right in the connection address:

https://mcp.layero.ru/mcp?project=<slug>
https://mcp.layero.ru/mcp?project=<slug>&read_only=true
  • project=<slug> — every tool works with this project only; my_projects returns just it, and a call with another project is refused.
  • read_only=true — the ⚠️ tools are not declared at all. Handy for an agent that should only diagnose.

The parameters go into the client config, in the url field — no separate mechanism is needed.