> ## Documentation Index
> Fetch the complete documentation index at: https://docs.runlayer.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Runlayer Plugin

> Runlayer's unified MCP entrypoint for org-approved tools, skills, and connectors.

Runlayer Plugin is Runlayer's unified MCP entrypoint for your organization. Instead of asking users to install and manage many separate MCP servers, Runlayer Plugin gives them one standard connection that can discover and run the tools they already have access to in Runlayer.

It is designed for teams that want broad tool access without broad tool sprawl: one install surface for users, one governance layer for admins, and one place for models to discover what they can actually use.

> [!NOTE]
>
> Runlayer Plugin is distinct from [Runlayer MCP](https://docs.runlayer.com/runlayer-mcp.md), the platform self-MCP for
> querying audit logs, analytics, and governance. Runlayer Plugin is the unified connector
> gateway: it exposes the active, hosted connectors your organization has added, subject to
> policy restrictions and your access grants. It does **not** expose local
> connectors, draft or disabled connectors, or tools your policies block.

## What Runlayer Plugin Includes

Runlayer Plugin is a special Runlayer plugin that is built dynamically for each user.

For each request, Runlayer builds that user's Runlayer Plugin view from:

* active hosted connectors the user can access through policies
* accessible Runlayer skills
* Runlayer platform tools exposed through the Runlayer MCP connector

Runlayer Plugin does not include:

* local connectors that run on a user's machine
* draft or disabled connectors as normal executable tools
* connectors blocked by policy for that user
* tools the user could not use through the underlying connector directly

> [!NOTE]
>
> Runlayer Plugin does not grant new permissions. It only exposes capabilities the user
> already has through Runlayer, and every tool execution still goes through the
> underlying connector's normal Runlayer controls.

## Why teams use it

Runlayer Plugin is useful when your team wants a default, opinionated way to use MCP safely at scale.

Without it, users often end up with fragmented client setup, duplicate connectors, inconsistent tool availability, and unclear security boundaries. Runlayer Plugin fixes that by giving the organization a single approved surface for tool discovery and execution.

In practice, that means:

* admins can standardize the MCP experience across teams
* users get a simpler setup and fewer things to configure
* models get connector tools in the form best suited to their client's discovery capabilities
* Runlayer policies, approvals, OAuth checks, ToolGuard, and audit logs stay in the loop

## Find and connect Runlayer Plugin

Runlayer Plugin appears first in the default **Plugins** view.

You can also reach it:

* from the **Add to Client** flow for a connector or skill. When that connector or skill is included in Runlayer Plugin, Runlayer recommends the plugin before the direct, per-item setup instructions. Click **Connect** to open Runlayer Plugin with the same client selected.
* from the **Connectors** or **Skills** page. Select one or more items and click **Add to Client**, then choose **Use the Runlayer Plugin** to connect the organization-wide plugin.

Direct connector and skill installation remains available when you need a separate client entry.

Connecting Runlayer Plugin doesn't require the Runlayer CLI or `uv`: a client needs only the MCP URL and a sign-in. Of the options on this page, only [Auto Sync](#auto-sync) and the native plugin install in **Add to Client** use the CLI. See [Where the Runlayer CLI fits](https://docs.runlayer.com/connecting-clients.md#runlayer-cli).

## Admin rollout options

Give each supported AI client the same golden path to Runlayer. [Enable Auto Sync for Runlayer Plugin](#auto-sync), then [complete the org install](#org-installs) for every client your organization supports. Auto Sync keeps local client connections configured. Each org install adds the client-specific package or routing guidance.

### Auto Sync

Open the Runlayer Plugin page in Runlayer, click **Add to Organization**, and enable **Auto Sync**. This adds Runlayer Plugin to supported local clients, including Cursor. For setup, verification, and MDM deployment, see [Automatic Configuration Provisioning](https://docs.runlayer.com/auto-provisioning.md).

> [!WARNING]
>
> If you'll be completing an [Anthropic org install](#anthropic-org-install), exclude Claude Code from Auto Sync. With both active, Claude Code loads two Runlayer Plugin connections.

### Org Installs

Complete the paths below for the clients your organization uses.

#### Anthropic org install

Install the Runlayer Plugin package through Claude admin plugin settings.

The downloaded `runlayer.zip` contains:

* `runlayer/.claude-plugin/plugin.json`
* `runlayer/.mcp.json`
* `runlayer/skills/runlayer/SKILL.md`

**1. Download runlayer.zip**

In Runlayer, open the Runlayer Plugin page, click **Add to Organization**, select **Anthropic**, and click **Download zip**.

**2. Open Claude admin plugin settings**

Go to [Claude admin plugin settings](https://claude.ai/admin-settings/plugins) and click **Add plugin**.

![Claude admin plugin settings with the Add plugins button](https://mintcdn.com/anysource/fZm77qITbGvJTaVc/images/onelayer-anthropic-install/step-1.png?fit=max\&auto=format\&n=fZm77qITbGvJTaVc\&q=85\&s=6674e55c4f4377dc60528b568a062634)

**3. Select Upload a file**

Choose **Upload a file**.

![Claude add plugins dialog with Upload a file selected](https://mintcdn.com/anysource/fZm77qITbGvJTaVc/images/onelayer-anthropic-install/step-2.png?fit=max\&auto=format\&n=fZm77qITbGvJTaVc\&q=85\&s=83bf016620a3479b65bf7d9baf9ba71d)

**4. Upload the zip**

Select `runlayer.zip` and click **Upload**.

![Claude upload plugin dialog with runlayer.zip ready to upload](https://mintcdn.com/anysource/fZm77qITbGvJTaVc/images/onelayer-anthropic-install/step-3.png?fit=max\&auto=format\&n=fZm77qITbGvJTaVc\&q=85\&s=babbf386087bfce0387cfa7f84243eb3)

**5. Add the connector**

Claude then asks to add the plugin's connector. Click **Add**, then **Done**.

If you cancel this prompt, the plugin installs without its connector and Claude can't reach Runlayer. Remove the plugin and upload `runlayer.zip` again.

**6. Require access**

Change user access to **Required**.

![Claude plugin settings with user access set to Required](https://mintcdn.com/anysource/fZm77qITbGvJTaVc/images/onelayer-anthropic-install/step-4.png?fit=max\&auto=format\&n=fZm77qITbGvJTaVc\&q=85\&s=96e8d5848c281ce25dd7473593897a72)

**7. Connect each user**

Each user goes to **Customize → Connectors** in Claude (**Settings → Connectors** in older versions) and clicks **Connect** on the Runlayer connector to sign in. Until they do, Claude can't call Runlayer tools. After that, the connector must also be on in the chat; see [Turn it on in a Claude chat](#claude-chat).

#### OpenAI org install

Publish Runlayer Plugin and its skill to your ChatGPT organization.

The downloaded `runlayer.zip` contains:

* `runlayer/SKILL.md`
* `runlayer/agents/openai.yaml`
* `runlayer/assets/runlayer-logo.svg`

**1. Open ChatGPT Admin Connectors settings**

Go to [ChatGPT Admin Connectors](https://chatgpt.com/admin/ca), enable developer mode, and click **Create** in Apps and Connectors.

**2. Create the MCP connector**

Use the values shown in the Runlayer dialog:

| Field | Value |
| - | - |
| Name | `Runlayer Plugin` |
| Description | `Unified MCP server that provides access to all your organization's connectors, skills, plugins, and Runlayer platform tools.` |
| MCP Server URL | The URL shown in the Runlayer dialog |
| Authentication | OAuth |

Complete the OAuth authorization when prompted.

**3. Publish the connector**

Publish the connector so it is available to your organization.

**4. Review risks and configure confirmation**

Review potential risks, mark them as reviewed, and configure action confirmation. For read-only actions, select **Allow read actions with no user confirmation**, then save.

**5. Upload the Runlayer skill**

Click **Download zip** in the Runlayer dialog. Go to [chatgpt.com/skills](https://chatgpt.com/skills), click **+ New skill**, select **Upload from your computer**, and upload `runlayer.zip`.

**6. Share the skill**

Share the skill and set access to **Installed for everyone**.

#### Cursor org install

Auto Sync connects Runlayer Plugin in Cursor. Add a companion persistent rule so Cursor Agent stays on the preferred path when native integrations or local CLIs are also available.

For organization-wide rollout, create a Team Rule in the [Cursor dashboard](https://cursor.com/dashboard/team-content) and enforce it if users should not be able to disable it. For a smaller rollout, add the instructions as a User Rule in **Cursor → Customize → Rules** or commit an always-applied project rule such as `.cursor/rules/runlayer-routing.mdc`.

For a project rule, start with:

```md theme={null}
---
description: Route external service work through Runlayer
alwaysApply: true
---

When a task may require an external service or organization-specific guidance:

- If a separately connected Runlayer-managed connector exposes the needed tool, use it directly.
- Otherwise, if Runlayer Plugin advertises the needed connector tool directly, use it.
- Otherwise, if Runlayer Plugin exposes `search_tools` and `execute_tool`, call `search_tools` first, then call `execute_tool` with the exact tool name and arguments returned.
- When organization-specific guidance may apply, call `search_skills` first (or `list_skills` to browse), then use the returned IDs with `get_skill` and `get_skill_file`.
- When work may be delegated, call `list_agents`, inspect a candidate with `get_agent`, then call `run_agent`.
- Do not use a Cursor-native integration or unmanaged local CLI for a service available through Runlayer.
- Never guess Runlayer tool names.
- If no Runlayer-managed path is available, or one returns an authentication failure or Runlayer denial, tell the user. Do not silently bypass it through an unmanaged path.
```

Team Rules and User Rules use the instruction body without the project-rule frontmatter. See [Cursor Rules](https://cursor.com/docs/rules) for rule scopes and management.

## How connector tools are presented

Runlayer Plugin remains one MCP connection, but it can present connector tools in two forms. Runlayer selects the form automatically based on the client's discovery capabilities:

| Presentation | What the model sees | How the model calls a connector tool |
| - | - | - |
| Direct (flattened) | The user's accessible connector tools, with connector-prefixed names | Call the advertised tool directly. |
| Nested | The `search_tools` and `execute_tool` meta-tools | Search by capability, then execute the exact returned tool name and arguments. |

Flattened presentation works well for clients that can defer or search a large MCP tool set themselves. Nested presentation keeps the initial tool surface small for clients without those capabilities. The connection, available tools, permissions, and Runlayer controls are the same in both forms.

Runlayer serves flattened connector tools to Claude Web and Desktop, Claude Cowork, ChatGPT Web, Cursor, and VS Code reporting version 1.103 or newer. Supported Claude Code versions and Codex 0.122 or newer with installations reconciled by the Runlayer CLI also receive flattened tools. Older or unreconciled Codex installations, Copilot CLI, older or unrecognized VS Code versions, other Copilot identities, and unsupported clients use nested presentation. Older clients, disabled native discovery, or unsupported models may still load more tool schemas upfront. Flat routing is on by default, and turning it off for a deployment keeps every client on nested presentation. Self-hosted operators turn it off with `FF_DISABLE=plugins-flat-mode`; deployments still on WorkOS feature flags turn it on with `FF_ENABLE=plugins-flat-mode`.

To keep a client on nested presentation, send the `X-Runlayer-Tool-Exposure: force-initial` header with every request to the Runlayer Plugin. Use it for agent harnesses that load every listed tool definition up front, such as Claude Agent SDK or headless Claude Code runs with tool search disabled. For example, in an Agent SDK or `.mcp.json` HTTP server entry:

```json theme={null}
{
  "type": "http",
  "url": "https://<your-runlayer-host>/api/v1/proxy/plugins/<plugin-id>/mcp",
  "headers": { "X-Runlayer-Tool-Exposure": "force-initial" }
}
```

Only connector-tool presentation varies. Dedicated [skill tools](#skills-tools), [agent tools](#agent-tools), and [artifact tools](#artifact-tools) remain directly available in either form.

[Custom Plugins with Dynamic tools enabled](https://docs.runlayer.com/platform-plugins.md#dynamic-tools) use
the same routing rules, but only expose their selected tools and linked skills.
They do not inherit the built-in Runlayer Plugin's platform-tool surface.

### Nested connector discovery

When `search_tools` and `execute_tool` are available, the connector flow is:

1. The model calls `search_tools` with the task it wants to accomplish.
2. Runlayer Plugin searches across the user's accessible connectors and returns relevant tool definitions.
3. The model calls `execute_tool` with the exact returned tool name and arguments.
4. Runlayer routes the call to the underlying connector and applies the same policy, security, auth, and audit controls as a direct connector call.

> [!NOTE]
>
> `search_tools` searches connector tools and Runlayer platform tools that are not
> advertised directly. Organization skills, agents, and artifacts never appear in its
> results; models should use their dedicated top-level tools instead.

### `search_tools`

Use `search_tools` before `execute_tool` when Runlayer Plugin presents connector tools in nested form.

Inputs:

| Argument | Required | Description |
| - | - | - |
| `query` | No | Natural-language description of the capability needed. |
| `top_k` | No | Number of results to return. Default is `5`, maximum is `10`. |

Results include the exact tool name, description, source connector name, and input schema. When the connector sets behavior hints on a tool, the result also has an `annotations` object with those hints (`readOnlyHint`, `destructiveHint`, `idempotentHint`, `openWorldHint`). A client that should only call read-only tools can filter on `annotations.readOnlyHint` without listing every connector first. Hints come from the connector and aren't enforced; use [policies](https://docs.runlayer.com/platform-policies.md) to block writes.

Example:

```json theme={null}
{
  "query": "create GitHub issue",
  "top_k": 5
}
```

### `execute_tool`

Use `execute_tool` after selecting a tool from `search_tools` results.

Inputs:

| Argument | Required | Description |
| - | - | - |
| `tool_name` | Yes | Exact tool name returned by `search_tools`. |
| `arguments` | Yes | JSON object matching the returned input schema. Use `{}` if the tool takes no arguments. |

Example:

```json theme={null}
{
  "tool_name": "create_issue",
  "arguments": {
    "repo": "acme/app",
    "title": "Deployment bug",
    "body": "Deployment failed after the latest release."
  }
}
```

> [!TIP]
>
> Never guess a Runlayer Plugin tool name. Use the name advertised directly or
> returned by `search_tools`.

### Skills tools

Runlayer Plugin also exposes dedicated tools for [organization skills](https://docs.runlayer.com/platform-skills.md) — reusable instructions, playbooks, SOPs, and checklists. These remain directly available regardless of how connector tools are presented:

| Tool | Purpose |
| - | - |
| `search_skills` | Find organization skills relevant to the current task. |
| `list_skills` | Browse or filter available organization skills. |
| `get_skill` | Inspect a selected skill and its available files. |
| `get_skill_file` | Read the full contents of a skill file. |

The normal flow is `search_skills` (or `list_skills` to browse) → `get_skill` → `get_skill_file`. Runlayer Plugin also exposes tools for creating, editing, and deleting skills when the user has access.

Because `search_tools` never returns skills, prompts and client instructions that want skills applied should direct the model at the skills tools, not at `search_tools`.

### Agent tools

Runlayer Plugin exposes Runlayer agent tools directly as well. Use `list_agents` to find a persistent agent, `get_agent` to inspect it, and `run_agent` to delegate work. Agent tools, including `create_agent`, `update_agent`, and `delete_agent`, do not go through `search_tools` or `execute_tool`.

### Artifact tools

Runlayer Plugin exposes [artifact](https://docs.runlayer.com/platform-artifacts.md) tools directly, so a model can save a report, page, or file and hand back an authenticated Runlayer link:

| Tool | Purpose |
| - | - |
| `create_artifact` | Publish a file as an artifact and get its link. |
| `prepare_artifact_upload` | Get an upload URL, valid 15 minutes, for a file on disk, then publish it with `create_artifact` or `update_artifact` without sending its contents through the conversation ([details](https://docs.runlayer.com/artifacts/create.md#upload-a-file-from-disk)). |
| `list_artifacts` | Find artifacts you created or that were shared with you. |
| `get_artifact` / `get_artifact_content` | Inspect an artifact or read its contents. |
| `update_artifact` / `edit_artifact` | Replace or make a targeted edit to an artifact you own. |
| `delete_artifact` | Delete an artifact. |

Artifact tools require agent access. Tools that create, change, or delete an artifact require `confirm=true`.

## Skills and `/runlayer`

Anthropic and OpenAI org-install packages include a Runlayer skill that teaches supported clients how to use Runlayer Plugin. The skill is also available as an optional personal download. Cursor has a companion [routing rule](#cursor-org-install). Auto Sync installs only the MCP connection.

New install packages expose the MCP server as `runlayer-plugin`. Older organization installs may still expose the same server as `onelayer`; those installs continue to work because the proxy URL and plugin identity are unchanged.

The skill tells the model to:

* use Runlayer Plugin as the default entrypoint for tools, plugins, skills, and agents
* call a directly advertised connector tool when available, or call `search_tools` before `execute_tool` when nested discovery is available
* use `search_skills` or `list_skills`, then `get_skill` and `get_skill_file`, for workspace guidance
* use `list_agents`, `get_agent`, and `run_agent` for delegation
* avoid guessing tool names
* route external tool calls through Runlayer so security policies and audit logs remain in effect

In supported clients, this appears as an org-level `/runlayer` skill so users can ask for Runlayer tools and skills without installing separate prompt packages manually.

## Permissions and security

Runlayer Plugin keeps the same security model as direct connector usage.

* **User-scoped results**: each user sees only hosted connectors and skills they can access.
* **Policy-aware discovery**: policy changes affect what appears in Runlayer Plugin on the next request.
* **Normal execution path**: direct connector tools and `execute_tool` both delegate to the underlying connector proxy, so PBAC, ToolGuard, OAuth/session checks, and audit logging still apply.
* **Platform tools follow policy too**: skill, agent, and artifact tools, including the delete tools, run through the Runlayer MCP server's normal proxy path and are allowed by default. `confirm=true` is set by the model, not by a person, so it is not an approval step. To restrict these tools, add a deny [policy](https://docs.runlayer.com/platform-policies.md): org-wide with [Block Destructive Tools](https://docs.runlayer.com/platform-policies.md#block-destructive-tools-organization-wide), which matches the delete tools; only when an agent is acting, with `meta.actor.id` `regex` `.+`; or only when reached through a plugin, with `meta.plugin.id` `regex` `.+`. `update_artifact` and `edit_artifact` can replace an artifact's content but are not marked destructive, so deny them by name if you need to.
* **OAuth preserved**: if a connector needs user authorization, Runlayer Plugin can surface an auth-required tool instead of silently hiding the connector.
* **Partial results**: if one connector is slow or temporarily unavailable, Runlayer Plugin can still return tools from other available connectors.

## Unattended automation and scheduled jobs

Runlayer Plugin always works as a user: it serves the tools, skills and connector credentials of the person it authenticates. A scheduled job or a third-party automation tool can use it with no one at the keyboard, as long as it authenticates as a user and that user has already authorized the connectors the job needs.

1. **Pick the user the automation runs as.** For shared automation, use a dedicated account (for example a service account in your identity provider) rather than a person's, so jobs don't stop when someone leaves. Give it only the access the jobs need with [policies](https://docs.runlayer.com/platform-policies.md); Runlayer Plugin shows it only what those policies allow, and every call is audited as that user.
2. **Authorize its connectors once.** Sign in to Runlayer as that user, open **Connectors**, and click **Connect** on every OAuth connector the jobs call. Otherwise the first call returns an `AUTH_REQUIRED_<connector>` tool or an authorization link instead of data, and an unattended job stalls there. See [Authorizing at use time](https://docs.runlayer.com/platform-connectors.md#authorizing-at-use-time).
3. **Authenticate the automation client** in one of two ways:
   * **Personal API key (no browser at all).** While signed in as that user, create a key in **Settings → Personal API keys**, then send it in the `x-runlayer-api-key` header to `https://<your-runlayer-host>/mcp`:

     ```json theme={null}
     {
       "mcpServers": {
         "runlayer-plugin": {
           "type": "http",
           "url": "https://<your-runlayer-host>/mcp",
           "headers": { "x-runlayer-api-key": "<the user's personal API key>" }
         }
       }
     }
     ```

     Personal API keys don't expire. They stop working when they're revoked on the same settings page or when the user is deactivated. Organization API keys are rejected here with `403 Organization API keys are not supported on this endpoint`, because Runlayer Plugin needs a user.
   * **OAuth once, then refresh.** If the client supports MCP OAuth and stores its tokens, complete the browser sign-in once. Runlayer issues a 2-hour access token and a refresh token that stays valid for 30 days after its last use, so a job that runs at least once a month keeps working without a person. It has to sign in again only if the token goes unused for 30 days or the user is deactivated.

Keep one key per automation tool, named after it, so you can revoke one without breaking the others, and store it in that tool's secret store, never in a repository or an image.

> [!NOTE]
>
> If the automation is a Runlayer agent, use a [schedule](https://docs.runlayer.com/platform-agents.md) instead: scheduled runs execute as the schedule creator, with their connector credentials. If it's your own code with an [agent account](https://docs.runlayer.com/platform-agent-accounts.md), an OBO token works on Runlayer Plugin and acts as the delegating user. An M2M token has no user, so Runlayer Plugin rejects it with `403 Plugin proxy requires user context`; call the connector URLs (`/api/v1/proxy/{server_id}/mcp`) or the agent-account endpoint (`/api/v1/proxy/agent-account/{agent_account_id}/mcp`) instead.

## User examples

Once Runlayer Plugin is connected, users can ask their AI client for work in normal language.

Examples:

* “Use Runlayer to find the right GitHub tool and create an issue for this bug.”
* “Search for Slack tools I can use, then summarize messages about the incident.”
* “Use `/runlayer` to list available skills for release management.”
* “Find the Salesforce tool for reading account details, then look up Acme.”

If the model cannot find a tool, ask it to check Runlayer Plugin first:

```text theme={null}
Check Runlayer Plugin for the tool you need. Call an advertised connector tool directly, or use search_tools and execute_tool when they are available. Never guess a tool name.
```

### Turn it on in a Claude chat

On Claude on the web and in the desktop app, mentioning Runlayer in a prompt doesn't switch the connector on. Claude only calls tools from connectors that are on for the current conversation.

1. **Sign in once.** In Claude, open **Customize → Connectors** and click **Connect** on the Runlayer connector.
2. **Check it's on in the chat.** Click **+** at the bottom left of the message box, open **Connectors**, and make sure the Runlayer connector is switched on. The switch is per conversation, so check it first when a chat can't find Runlayer tools.
3. **Ask for the work.** Naming Runlayer (or `/runlayer`, where the org skill is installed) is optional, but it helps when another connector in the chat offers a similar tool.

Anthropic's [custom connector guide](https://support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp) describes the same menus. In Claude Code, run `/mcp` to check that the Runlayer server is connected.

## Troubleshooting

> [accordion] Runlayer Plugin is connected, but no connector tools are available
>
> The user may not have access to any active hosted connectors. Check connector status and policies for that user. Local connectors are not included in Runlayer Plugin.

> [accordion] A connector I expected is missing
>
> Runlayer Plugin only includes active hosted connectors visible to the user through policy. Draft, disabled, local, or policy-blocked connectors will not appear as normal executable tools.

> [accordion] Runlayer Plugin asks me to authenticate a connector
>
> The underlying connector requires user OAuth or another user-scoped authorization. Complete the authorization, then search again.

> [accordion] The model guessed a tool name and failed
>
> Ask it to use an advertised tool name directly or call `search_tools` first when
> nested discovery is available. Runlayer Plugin tool names must match the names
> advertised directly or returned by search results.

> [accordion] The model uses search\_tools but never finds my skills
>
> Skills never appear in `search_tools` results. Ask the model to call
> `search_skills` (or `list_skills` to browse), then `get_skill`, then
> `get_skill_file`. If a skill is still missing, confirm the user has access to it
> on the Skills page.

> [accordion] One connector is down, but others still appear
>
> Runlayer Plugin is best-effort during discovery. If one connector times out or returns a non-auth error, Runlayer Plugin can still return tools from other available connectors.

## Related docs

> [card] [Plugins](https://docs.runlayer.com/platform-plugins.md)
>
> Learn how dynamic tools work for Runlayer plugins.

> [card] [Policies](https://docs.runlayer.com/platform-policies.md)
>
> Control which users can access each connector and tool.

> [card] [Audit Logs](https://docs.runlayer.com/platform-audit-logs.md)
>
> Review Runlayer Plugin and connector activity.

> [card] [Skills](https://docs.runlayer.com/platform-skills.md#from-repo-to-claude-and-cursor)
>
> The end-to-end flow from a skill in your repo to Claude and Cursor.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.