Overview
The Corelayer MCP server lets AI agents access Corelayer through the Model Context Protocol (MCP). Agents can discover Corelayer groups, list issues, read issue details, inspect summaries and anomaly monitors, check a change against organization memory before it ships, and use that context in their normal workflows. Use Corelayer MCP when you want an AI tool to answer questions like:- “What are the highest-priority open production issues right now?”
- “What has our org hit before for a change like this?”
- “Find issues in the workspace, then create tickets or daily summaries in my planning tool.”
For most hosted connectors, use the remote MCP endpoint:
Remote MCP
Remote MCP is the easiest way to connect a hosted AI agent or connector to Corelayer. The agent talks to Corelayer over HTTPS and authenticates with a Corelayer API key. Remote MCP requires an MCP host that supports HTTP MCP servers and bearer-token authentication. If your host only supports local stdio MCP servers, use the local package below. Use this connection shape in MCP clients that support remote HTTP servers:serverUrl instead of url, or collect the bearer token in
a separate authentication field. Use your host’s MCP configuration format, but
keep the same endpoint and authorization header.
Remote MCP currently exposes read-only tools. It does not expose close, reopen,
or bulk close operations.
Authentication
Create a dedicated API key for your MCP connector:401 with the message Invalid or expired API key.
Use a dedicated key per connector or automation. This makes it easier to audit,
rotate, and revoke access without disrupting other workflows.
How Connectors Find a Group
Most Corelayer tools are scoped to a group. A connector does not need to know thegroupId before setup.
The normal connector flow is:
- Call
corelayer.list_groups. - Let the agent pick the matching group by name, or ask the user to choose.
- Pass the selected group’s
idasgroupIdto group-scoped tools.
Available Remote Tools
Tool Results
Each tool returns a one-line summary followed by the full result as JSON, so agents can use IDs and fields from the response directly. For example,corelayer.list_issues returns each issue’s id and slug, and
corelayer.get_issue returns the issue’s groupId along with its root cause.
When corelayer.preflight cannot complete its check, it returns an error that
says so, with the reason, instead of an empty list of checks.
Example Connector Workflows
Daily triage:Local MCP
Use local MCP when your AI coding agent runs MCP servers as local stdio processes. The local server is distributed as an npm package:Local Authentication
The local MCP server resolves credentials in this order:CORELAYER_API_KEY- the local CLI token from
~/.corelayer/config.json
CORELAYER_API_KEY because it is explicit, revocable, and easier to
audit.
Optional Local Default Group
If your local agent usually works in one Corelayer group, setCORELAYER_DEFAULT_GROUP so group-scoped tools can omit groupId:
corelayer.list_groups discovery flow instead of a
process-level default group.
Additional Local Tools
The local MCP package also exposes write tools for authenticated local agents:corelayer.bulk_close_issues requires explicit issue IDs, caps requests at 500
IDs, and never uses a select-all mutation.
To run the local server with read tools only, set
CORELAYER_MCP_ENABLE_WRITES=false. The server then lists the same read tools
as remote MCP and none of the tools in this section.