" has no usable certificate` | The agent doesn't have a certificate for this MCP server yet | Check the device's assurance level and that it has a user assigned |
+
+When a user opens the approval link for an MCP server that has no OAuth client, the page says `this upstream is not configured for your tenant`.
+Delete the MCP server in the console and add it again with the client ID and client secret of your OAuth app.
+
+## Catalog entries
+
+The catalog fills in the form when you add an MCP server.
+Use the URL in the last column when you name the server in a policy.
+
+| Catalog entry | Upstream | URL in a policy |
+|---|---|---|
+| GitHub | `github` | `https://api.githubcopilot.com/mcp` |
+| Linear | `linear` | `https://mcp.linear.app/mcp` |
+| Notion | `notion` | `https://mcp.notion.com/mcp` |
+| Slack | `slack` | `https://mcp.slack.com/mcp` |
+| Sentry | `sentry` | `https://mcp.sentry.dev/mcp` |
+| Figma | `figma` | `https://mcp.figma.com/mcp` |
+| Atlassian Jira | `jira` | `https://mcp.atlassian.com/v1/mcp/authv2` |
+| Stripe | `stripe` | `https://mcp.stripe.com` |
+
+Choose **Custom** to add any other MCP server that uses OAuth.
diff --git a/platform/mcp-gateway.mdx b/platform/mcp-gateway.mdx
new file mode 100644
index 00000000..654982cc
--- /dev/null
+++ b/platform/mcp-gateway.mdx
@@ -0,0 +1,192 @@
+---
+updated_at: November 18, 2026
+title: MCP Gateway
+html_title: How the Smallstep MCP Gateway Protects MCP Servers with Device Identity
+description: Learn how the Smallstep MCP gateway replaces API keys in AI agent configurations with hardware-attested device certificates, brokered OAuth tokens, access policy, and an audit trail.
+---
+
+The Smallstep MCP gateway puts the Model Context Protocol (MCP) servers your team uses behind device identity.
+An AI agent on an enrolled device reaches an MCP server, such as GitHub or Linear, through the gateway.
+It proves itself with the device's certificate, and no API key is stored on the laptop.
+The gateway records every session and tool call, and it can apply an access policy to each call.
+
+
+
+The MCP gateway is in early access.
+
Contact Smallstep to turn it on for your team.
+
+
+
+## The problem
+
+An MCP client such as Claude Code usually authenticates to an MCP server with a personal access token or an OAuth token that sits in a configuration file on the laptop.
+Anyone who copies the token can use it from another machine, and you have no record of what an agent did with it.
+
+Smallstep MCP Gateway offers:
+
+- **No API key on the laptop.**
+ The MCP client's configuration holds a command that starts the Smallstep Agent, and nothing else.
+ The device's certificate opens the connection, and its private key can't be copied off the device.
+- **A record of what agents do.**
+ Smallstep logs every MCP session and tool call linked to the device and the user.
+- **Policy on every call.**
+ You write rules about which users, devices, and clients may call which tools.
+
+## Request flow
+
+```mermaid
+sequenceDiagram
+ participant Client as MCP client
+ participant Agent as Smallstep Agent
+ participant Gateway as MCP gateway
+ participant Broker as Token broker
+ participant Server as MCP server
+ Client->>Agent: Start the agent's MCP proxy
+ Agent->>Gateway: Connect with the device certificate (mutual TLS)
+ Gateway->>Gateway: Verify the certificate, find the device and user, evaluate policy
+ Gateway->>Broker: Ask for the user's access token
+ Broker->>Gateway: OAuth access token for this MCP server
+ Gateway->>Server: Forward the request with the access token
+ Server->>Client: Response, relayed through the gateway and the agent
+```
+
+1. The MCP client starts the Smallstep Agent's MCP proxy as a local MCP server.
+ The client's configuration names that command.
+ It holds no token and no URL.
+2. The agent opens a mutual TLS connection to your team's gateway endpoint and presents the device's certificate.
+ The private key stays in the device's TPM or Secure Enclave.
+3. The gateway checks that the certificate chains to your team's trust roots.
+ It finds the device in your device inventory and reads the user from the certificate.
+ A device that isn't active in the inventory is refused.
+4. The gateway evaluates your access policy when the client opens a session, and again on every call in that session.
+5. The gateway asks the token broker for the user's OAuth access token for that MCP server, and forwards the request with it.
+6. The MCP server answers as it would for any authorized client.
+ It receives the user's access token and never sees the device certificate.
+
+Mutual TLS protects the connection between the device and the gateway.
+The connection from the gateway to the MCP server uses TLS and the user's access token.
+
+## Components
+
+**MCP server.**
+The service an agent calls, such as the GitHub or Linear MCP server, or one you host.
+You publish an MCP server through the gateway in the Smallstep console under **Protect → MCP Proxies**.
+The console calls each entry an MCP proxy.
+
+**MCP gateway.**
+The endpoint that verifies device certificates and forwards requests.
+Each team has its own gateway endpoint, shown under **Protect → MCP Gateway**.
+
+**Trust roots.**
+The certificate authority (CA) certificate the gateway uses to verify device certificates.
+You set it once for the team.
+
+**Device credential.**
+When you add an MCP server, Smallstep creates a credential for it.
+The Smallstep Agent on each device requests a certificate from that credential and renews it without anyone's help.
+The certificate is valid for 24 hours.
+
+**The agent's MCP proxy.**
+A command in the [Smallstep Agent](./smallstep-agent.mdx) that an MCP client runs as a local MCP server.
+It relays the client's requests to the gateway over the agent's connection.
+
+**Token broker.**
+The service that holds each user's OAuth grant for each MCP server and hands the gateway an access token when it needs one.
+
+**Session.**
+One conversation between an MCP client and an MCP server through the gateway.
+A session belongs to the user and the device that opened it.
+
+## What the device proves
+
+The certificate a device presents to the gateway comes from a **hardware-attested** key.
+That is a stronger claim than a hardware-bound key.
+
+- A **hardware-bound** key is generated inside the device's TPM or Secure Enclave and can't be exported.
+ The device can use the key, and nobody can copy it to another machine.
+- A **hardware-attested** key is hardware-bound, and the hardware has proven it.
+ Before Smallstep issues the certificate, the secure hardware gives the CA cryptographic evidence that it generated the key and holds it.
+ The CA issues the certificate only when that evidence checks out for a device it knows.
+
+Without attestation, a certificate request says where the key lives, and the CA has to take the device's word for it.
+With attestation, the CA has verified it.
+[Core Concepts](./core-concepts.mdx#device-attestation) explains device attestation in more depth.
+
+Smallstep issues a certificate for an MCP server only to a device with high assurance in your inventory.
+The gateway reads the user from the certificate, so the device also needs a user assigned.
+
+The gateway relies on the device inventory and the user assignments you already have in Smallstep.
+It works the same way whichever MDM and identity provider those come from.
+
+## Where the OAuth token lives
+
+MCP servers still authorize people with OAuth.
+The gateway moves the token off the device.
+
+The first time a person uses an MCP server through the gateway, they get a link to approve access in their browser.
+They sign in to the MCP server's provider and approve, as they would for any OAuth app.
+The resulting grant goes to the token broker.
+The broker encrypts it with a key that belongs to your team.
+
+After that, the gateway gets the access token from the broker and adds it to each request on the way to the MCP server.
+The token never reaches the device, the agent, or the MCP client.
+
+Each team uses its own OAuth app for each MCP server.
+You register the app with the provider and give its client ID and client secret to Smallstep when you add the MCP server.
+
+## Access policy
+
+An access policy is a set of Cedar statements.
+A statement can refer to the user, the device and its inventory attributes, the MCP client, the MCP server, and the tool being called.
+
+The gateway evaluates the policy in one of three modes:
+
+- **Off.** Nothing is evaluated. This is the starting mode.
+- **Monitor.** Every call is evaluated and the decision is recorded. Nothing is refused.
+- **Enforce.** Every call is evaluated and recorded, and a call the policy denies is refused.
+
+Monitor shows you what a policy would refuse, on real traffic, before you turn on Enforce.
+
+A refused call returns an error to the MCP client inside the MCP conversation.
+The agent can read it and tell the person that their organization's policy blocked the call.
+
+The [MCP gateway reference](./mcp-gateway-reference.mdx) lists what a policy can refer to.
+
+## What is recorded
+
+- **Sessions.**
+ Who connected, from which device, with which MCP client, to which MCP server, and when the session ended and why.
+- **A timeline for each session.**
+ Each call, each policy decision, and each token exchange, in order.
+- **Decisions.**
+ The outcome of each policy evaluation, the policy that determined it, and the exact set of policy versions in force.
+- **Events.**
+ MCP activity also appears in your team's audit events, next to device and certificate events.
+
+Sessions and their timelines are recorded in every mode, including Off.
+Decisions are recorded in Monitor and Enforce.
+
+By default the gateway keeps a hash and the size of a tool call's arguments, and not the arguments themselves.
+You can turn on argument capture for your team to store them.
+
+## What the gateway doesn't do
+
+- **It doesn't make an enrolled device safe to compromise.**
+ The gateway stops a copied credential from working anywhere else.
+ It doesn't stop prompt injection, a malicious MCP server, or software already running on an enrolled device from using that device's access.
+- **It doesn't reach agents that run somewhere else.**
+ The MCP client has to run on the enrolled device and start the agent's MCP proxy there.
+ An agent hosted in a vendor's cloud can't present your device's certificate.
+- **It doesn't stop someone from going around it.**
+ A person can still connect an MCP client directly to an MCP server with a token of their own.
+ Preventing that depends on the controls the MCP server and the MCP client offer.
+- **Ending a session doesn't remove access.**
+ Revoking a session disconnects it.
+ The MCP client can open a new session if the device is still active and the policy allows it.
+
+## Next steps
+
+- [Protect MCP Servers](../tutorials/protect-mcp-servers.mdx): put an MCP server behind the gateway and connect an MCP client.
+- [Control MCP access with policy](../tutorials/mcp-gateway-policy.mdx): write a policy, watch what it would refuse, and enforce it.
+- [Audit MCP activity](../tutorials/mcp-gateway-audit.mdx): read sessions, timelines, and decisions, and end a session.
+- [MCP gateway reference](./mcp-gateway-reference.mdx): the policy schema, the values a session or a decision can have, limits, and error messages.
diff --git a/tutorials/mcp-gateway-audit.mdx b/tutorials/mcp-gateway-audit.mdx
new file mode 100644
index 00000000..3f9fe049
--- /dev/null
+++ b/tutorials/mcp-gateway-audit.mdx
@@ -0,0 +1,170 @@
+---
+updated_at: November 18, 2026
+title: Audit MCP Activity
+html_title: Audit AI Agent Activity Through the Smallstep MCP Gateway
+description: Read MCP sessions, per-call timelines, policy decisions, and audit events for AI agents that reach MCP servers through the Smallstep MCP gateway, and end a session.
+---
+
+The Smallstep MCP gateway records what AI agents do with the MCP servers behind it.
+This guide shows where to find those records in the Smallstep console and how to end a session.
+
+
+
+ The MCP gateway is in early access.
+
Contact Smallstep to turn it on for your team.
+
+
+
+## Before you begin
+
+You will need:
+
+- An MCP server behind the gateway.
+ See [Protect MCP Servers](./protect-mcp-servers.mdx).
+- The Owner, Admin, or Device Admin role in Smallstep.
+ Only an Owner or Admin can end a session.
+
+## What is recorded
+
+The **Audit** page in the Smallstep console has three tabs:
+
+| Tab | What it shows | Recorded when |
+|---|---|---|
+| **Sessions** | One row for each connection between an MCP client and an MCP server, with a timeline of its calls | Always |
+| **Decisions** | The outcome of each policy evaluation | The policy mode is Monitor or Enforce |
+| **Events** | MCP activity next to your team's device and certificate events | Always |
+
+The gateway keeps sessions, timelines, and decisions for 30 days after a session ends.
+
+# Read sessions
+
+In the Smallstep console, go to **Audit → Sessions**.
+
+Each row is one session.
+A session belongs to the user and the device that opened it.
+
+| Column | What it shows |
+|---|---|
+| **Status** | Whether the session is active, and how it ended |
+| **Principal** | The user's email address, read from the device certificate |
+| **Device · client** | The device, and the name and version the MCP client reported, such as `claude-code 2.1.327` |
+| **Resource** | The MCP server's host |
+| **End reason** | Why the session ended, such as "closed by client" or "consent required" |
+| **Events** | The number of entries in the session's timeline |
+
+Search by user, device, or host, and filter by status.
+
+The MCP client reports its own name and version.
+The gateway can't verify them.
+
+The [MCP gateway reference](../platform/mcp-gateway-reference.mdx#sessions) explains each status and end reason.
+
+## Read a session's timeline
+
+Select a session to open its timeline.
+The timeline lists what happened in the session, in order:
+
+```text
+decision · initialize allow baseline-allow · Monitor · not enforced
+token exchange token issued · → mcp.linear.app
+session active
+initialize HTTP 200 · 375 ms
+decision · tools/call · search_documentation allow baseline-allow · Monitor · not enforced
+tools/call · search_documentation HTTP 200 · 1109 ms
+session ended · closed by client
+```
+
+| Entry | What it records |
+|---|---|
+| A method name, such as `tools/call · save_issue` | One call, with the MCP server's HTTP status and the time it took |
+| **decision** | The policy's outcome for the call that follows it, the policy that determined it, and the mode |
+| **token exchange** | The gateway got the user's access token for the MCP server |
+| **consent** | The user has to approve access to the MCP server first |
+| **session** | A change in the session's status |
+
+Decision entries appear only when the policy mode is Monitor or Enforce.
+
+A call that the gateway refused reads **no upstream response**, because the call never reached the MCP server.
+The decision before it reads **deny** and **enforced**.
+
+While a session is active, the timeline updates as new calls arrive.
+
+## Record tool arguments
+
+By default, the timeline shows a hash and the size of a tool call's arguments.
+It doesn't show the arguments.
+
+To store the arguments:
+
+1. Go to **Protect → MCP Gateway**.
+2. Under **Mode**, turn on **Capture tool arguments**.
+
+The timeline then shows the arguments of each tool call, up to 4 KiB for each call.
+Arguments larger than that aren't stored.
+
+Tool arguments can hold sensitive data, such as the text of an issue or a search query.
+Turn capture on only if your team may store that data.
+
+# Read decisions
+
+Go to **Audit → Decisions**.
+
+The line at the top counts the decisions in the time range, by outcome.
+When some decisions in the range have the outcome **would refuse**, it also says how many calls Enforce would have refused.
+
+| Outcome | Meaning |
+|---|---|
+| **allow** | The policy allowed the call |
+| **would refuse** | The policy denied the call, the mode was Monitor, and the call went ahead |
+| **deny** | The policy denied the call, the mode was Enforce, and the call was refused |
+
+Each row shows the policy that determined the outcome, the MCP server and tool, the user, and the mode.
+A row that reads **no matching policy** means no `permit` statement matched the call.
+
+Select a row to see more:
+
+- The user, the device, the session, the MCP client, the tool, and the method.
+- The policies that determined the outcome.
+- The activation that was in force, so you can read back the exact policy text.
+
+A decision record holds IDs and hashes.
+It doesn't hold policy text or user attributes.
+
+# Read events
+
+Go to **Audit → Events** and filter by the category **MCP**.
+
+MCP events sit in the same list as your team's other events.
+You can read a device's enrollment, its certificates, and its MCP sessions in one place.
+
+| Type | When it's recorded |
+|---|---|
+| Session resolved | The gateway matched a device certificate to a device and a user |
+| Session started | The MCP server accepted a new session |
+| Session ended | A session ended |
+| Consent required | A user has to approve access to an MCP server |
+| Token issued | The gateway got an access token for the MCP server |
+| Tool called | A tool call passed the policy |
+| Policy decision | The gateway evaluated a call in Monitor or Enforce |
+
+# End a session
+
+1. Go to **Audit → Sessions**.
+2. On an active session, choose **Revoke**.
+3. Choose **Revoke session**.
+
+The gateway refuses the session's next request within 10 seconds.
+The agent's MCP proxy on the device stops with the message `session not found`, and the MCP client has to start it again.
+
+
+
+ Revoking ends one session.
+ It doesn't block the user or the device, and the MCP client can open a new session.
+ To keep someone out, use a forbid statement in Enforce, or remove the device from your inventory.
+
+
+
+# Next steps
+
+- [Control MCP access with policy](./mcp-gateway-policy.mdx): decide which calls the gateway allows.
+- [MCP gateway reference](../platform/mcp-gateway-reference.mdx): every status, end reason, and message.
diff --git a/tutorials/mcp-gateway-policy.mdx b/tutorials/mcp-gateway-policy.mdx
new file mode 100644
index 00000000..a3a4371d
--- /dev/null
+++ b/tutorials/mcp-gateway-policy.mdx
@@ -0,0 +1,215 @@
+---
+updated_at: November 18, 2026
+title: Control MCP Access with Policy
+html_title: Control Which Users, Devices, and Tools Can Use MCP Servers with Cedar Policy
+description: Write a Cedar access policy for the Smallstep MCP gateway, watch what it would refuse in Monitor mode, then enforce it and roll back if you need to.
+---
+
+The Smallstep MCP gateway can evaluate an access policy on every call an AI agent makes to an MCP server.
+A policy can refer to the user, the device, the MCP client, the MCP server, and the tool.
+
+This guide takes one policy from a draft to enforcement.
+You start from a baseline that allows everything, add a statement that refuses some tools, watch what it would refuse, and then enforce it.
+
+
+
+ The MCP gateway is in early access.
+
Contact Smallstep to turn it on for your team.
+
+
+
+## Before you begin
+
+You will need:
+
+- An MCP server behind the gateway, and a device that can reach it.
+ See [Protect MCP Servers](./protect-mcp-servers.mdx).
+- The Owner or Admin role in Smallstep.
+
+This guide uses Linear as the MCP server.
+
+## How policy works
+
+A policy is one [Cedar](https://www.cedarpolicy.com/) statement.
+A `permit` statement allows calls, and a `forbid` statement refuses them.
+A call goes ahead only when a `permit` statement matches it and no `forbid` statement does.
+
+Three things decide what happens to a call:
+
+- **The policies you saved.**
+ Saving a policy doesn't change what the gateway does.
+- **The activation.**
+ An activation is the set of policies the gateway evaluates.
+ You choose which policies are in it.
+- **The mode.**
+ In **Off**, the gateway evaluates nothing.
+ In **Monitor**, it evaluates every call and records the decision, and refuses nothing.
+ In **Enforce**, it refuses the calls the policy denies.
+
+You find all three in the Smallstep console under **Protect → MCP Gateway**.
+
+# Step 1: Start from the baseline
+
+1. In the Smallstep console, go to **Protect → MCP Gateway**.
+2. Under **Policies**, choose **Start from the baseline**.
+
+The button appears while your team has no policies.
+If your team already has policies, check that the live activation includes a policy that permits every action, such as [`baseline-allow`](../platform/mcp-gateway-reference.mdx#the-baseline).
+
+The console saves three policies and activates one of them:
+
+- `baseline-allow` permits every call.
+ It is active.
+- `example-managed-devices-only` and `example-github-read-only-for-contractors` are examples of `forbid` statements.
+ They are saved and not active.
+
+The mode doesn't change.
+
+
+
+ Keep a policy that permits every action in your activation, and restrict with forbid statements.
+ The policy applies to the call that opens a session, as well as to tool calls.
+ The policy editor's starter template permits tool calls only.
+ If that template is the only active policy, Enforce refuses every session.
+
+
+
+# Step 2: Turn on Monitor
+
+Under **Mode**, choose **Monitor**.
+
+The change saves at once, and the gateway applies it within 30 seconds.
+From then on, the gateway records a decision for every call.
+It doesn't refuse anything.
+
+# Step 3: Write a policy
+
+1. Under **Policies**, choose **New policy**.
+2. Replace the text under **Cedar** with your statement.
+3. Check the line under the editor.
+ It reads `Parsed as @id("…")` when the statement is valid.
+ Otherwise it shows **Cedar does not compile** and the reason.
+4. Choose **Save policy**.
+
+This example refuses Linear tools whose names start with `save_`, `create_`, `update_`, or `delete_`:
+
+```text
+@id("linear-block-writes")
+@description("Refuse Linear tools whose names start with save_, create_, update_, or delete_.")
+forbid (
+ principal,
+ action == Smallstep::Action::"tools/call",
+ resource in Smallstep::Upstream::"https://mcp.linear.app/mcp"
+)
+when {
+ resource.name like "save_*" ||
+ resource.name like "create_*" ||
+ resource.name like "update_*" ||
+ resource.name like "delete_*"
+};
+```
+
+Three rules apply to every statement:
+
+- The `@id` annotation is the policy's ID.
+ If you change it, you create a different policy.
+- One policy holds one statement.
+- Write the MCP server's URL without a trailing slash.
+ A statement that names the URL with a trailing slash never matches.
+
+
+
+ This statement matches tools by name, so it refuses only the names it matches.
+ An MCP server can have other tools that change data.
+ Run step-agent mcp tools list --upstream linear on a device to read the tool names before you rely on a statement like this one.
+
+
+
+The [MCP gateway reference](../platform/mcp-gateway-reference.mdx#policy-schema) lists everything a statement can refer to.
+
+# Step 4: Activate the policy
+
+Saving a policy doesn't activate it.
+
+1. Go back to **Protect → MCP Gateway**.
+2. Under **Activation**, select `baseline-allow` and `linear-block-writes`.
+ The line below the list reads `2 selected · 1 permit · 1 forbid`.
+3. Choose **Activate**.
+
+The console confirms that the new activation is live and that the mode is unchanged.
+Because the mode is Monitor, nothing is refused yet.
+
+# Step 5: See what the policy would refuse
+
+## Simulate one call
+
+1. Under **Policies**, choose **Simulate**.
+2. Enter a user's email address and a device.
+ For the device, paste its ID from the device's page under **Devices**.
+3. For **Upstream URL**, enter `https://mcp.linear.app/mcp`.
+4. Leave **Method** as `tools/call`, and enter `save_issue` for **Tool**.
+5. Choose **Run**.
+
+The result shows the outcome, the mode, and the policies that determined it.
+The simulator uses the device's attributes from your inventory, and it records nothing.
+
+## Watch real calls
+
+Use the MCP server from an MCP client for a while.
+Then go to **Audit → Decisions**.
+
+A call that the policy denied in Monitor has the outcome **would refuse**.
+The call still went ahead.
+The line above the table counts them:
+
+```text
+Enforcing would have refused 1 of 21 calls in the last 24 hours.
+```
+
+Select a decision to see the user, the device, the MCP client, the tool, and the policy that determined the outcome.
+
+# Step 6: Enforce the policy
+
+1. Go to **Protect → MCP Gateway**.
+2. Under **Mode**, choose **Enforce**.
+3. Read the confirmation, which names the activation the gateway will enforce, and choose **Enforce**.
+
+The gateway applies the change within 30 seconds.
+
+A refused call returns an error to the MCP client.
+The message names the policy:
+
+```text
+denied by policy linear-block-writes for https://mcp.linear.app/mcp tool save_issue
+```
+
+Claude Code shows this message to the model, so the agent can tell the person that a policy blocked the call.
+Other calls in the same session keep working.
+
+The decision appears under **Audit → Decisions** with the outcome **deny**.
+
+# Roll back
+
+To stop refusing calls, set **Mode** back to **Monitor**.
+The gateway applies the change within 30 seconds.
+
+To return to an earlier set of policies:
+
+1. Go to **Protect → MCP Gateway**.
+2. Under **Activation**, find the activation in **History**.
+3. Choose **Roll back to this**, then **Roll back**.
+
+A rollback doesn't change the mode.
+The gateway applies it within 30 seconds.
+
+# Retire a policy
+
+To remove a policy from the list, open it and choose **Archive**.
+You can't archive a policy while the live activation includes it.
+An archived policy can't be activated again.
+Its versions stay readable from the activations and decisions that used them.
+
+# Next steps
+
+- [Audit MCP activity](./mcp-gateway-audit.mdx): read sessions, timelines, and decisions.
+- [MCP gateway reference](../platform/mcp-gateway-reference.mdx): the policy schema, actions, limits, and error messages.
diff --git a/tutorials/protect-mcp-servers.mdx b/tutorials/protect-mcp-servers.mdx
new file mode 100644
index 00000000..4b802d6b
--- /dev/null
+++ b/tutorials/protect-mcp-servers.mdx
@@ -0,0 +1,284 @@
+---
+updated_at: November 18, 2026
+title: Protect MCP Servers
+html_title: Protect MCP Servers with Device Identity and the Smallstep MCP Gateway
+description: Put an MCP server such as Linear behind the Smallstep MCP gateway, so AI agents on enrolled devices connect with a hardware-attested device certificate and no API key on the laptop.
+---
+
+This guide shows how to put a Model Context Protocol (MCP) server behind the Smallstep MCP gateway.
+When you finish, an AI agent on an enrolled device reaches the MCP server with the device's certificate.
+The MCP client's configuration holds no API key.
+
+The guide uses Linear as the example.
+The steps are the same for the other MCP servers in the console's catalog.
+
+[MCP Gateway](../platform/mcp-gateway.mdx) explains how the parts fit together.
+
+
+
+ The MCP gateway is in early access.
+
Contact Smallstep to turn it on for your team.
+ This guide was tested with Smallstep Agent 0.70.0 on Linux.
+
+
+
+## Before you begin
+
+You will need:
+
+- The MCP gateway turned on for your team.
+- The Owner or Admin role in Smallstep.
+- A device enrolled in Smallstep with the [Smallstep Agent](../platform/smallstep-agent.mdx) 0.70.0 or later.
+ The device needs high assurance and a user assigned.
+- An account with the MCP server's provider that can register an OAuth app.
+
+# Step 1: Configure the gateway
+
+The gateway accepts a device only when its certificate chains to your team's trust roots.
+Set the trust roots once for the team.
+
+## Download the root certificate
+
+MCP server certificates come from your team's Accounts authority.
+
+1. In Certificate Manager, go to [Authorities](https://smallstep.com/app/?next=/cm/authorities).
+2. Select the Accounts authority.
+3. Download the **Root Certificate**.
+
+## Save the trust roots
+
+1. In the Smallstep console, go to **Protect → MCP Gateway**.
+2. Under **Device trust roots**, upload the root certificate.
+ You can also paste its text.
+3. If the file holds more than one certificate, the console asks you to pick one.
+ Pick the certificate marked **Root**.
+4. Choose **Save trust roots**.
+
+The same page shows your team's **Gateway endpoint**.
+Devices connect to this host.
+You don't need to copy it, because the agent receives it with each MCP server you add.
+
+# Step 2: Add an MCP server
+
+The gateway forwards each request with the user's own OAuth access token.
+To get those tokens, Smallstep needs an OAuth app that your team registers with the MCP server's provider.
+
+## Start the form
+
+1. In the Smallstep console, go to **Protect → MCP Proxies** and choose **Add MCP proxy**.
+2. Under **Pick an MCP server**, choose **Linear**.
+ The card fills in the name, the **Upstream** value, the MCP server's URL, and the provider's OAuth settings.
+3. Under **Provider OAuth client**, copy the callback URL.
+
+Keep the form open.
+
+## Register an OAuth app
+
+1. On the Linear card, follow **Register an OAuth app**.
+ It opens the provider's page for new OAuth apps.
+2. Create an app, and set its redirect or callback URL to the URL you copied.
+3. Copy the app's client ID and client secret.
+
+## Finish the form
+
+1. Back in the Smallstep console, enter the **Client ID** and the **Client secret**.
+2. Leave the other fields as the card set them.
+3. Choose **Add MCP proxy**.
+
+
+
+ Enter both the client ID and the client secret before you save.
+ Without them, nobody can approve access to the MCP server.
+ You can't edit an MCP server after you add it.
+ To change a setting, delete the MCP server and add it again.
+
+
+
+Smallstep creates a credential for the MCP server.
+The Smallstep Agent on each of your team's devices requests a certificate from it and keeps the certificate renewed.
+A device can take a few minutes to receive a new MCP server.
+
+Note the **Upstream** value, `linear` in this example.
+Commands on the device use it to name the MCP server.
+
+# Step 3: Configure clients
+
+## Check that the device has its certificate
+
+On an enrolled device, run:
+
+```bash
+step-agent status
+```
+
+The MCP server appears by name with a check mark once the agent has its certificate:
+
+```text
+Linear (mcp-linear) ✔
+```
+
+## Approve access to the MCP server
+
+Each person approves access once for each MCP server.
+On the device, run:
+
+```bash
+step-agent mcp tools list --upstream linear
+```
+
+The first time, the command stops and prints a link:
+
+```text
+consent required: open https://… to authorize this upstream
+```
+
+1. Open the link in a browser.
+ The link is valid for 10 minutes.
+2. Sign in to the provider and approve access for the OAuth app.
+3. Run the command again.
+
+If the link shows `this upstream is not configured for your tenant`, the MCP server has no OAuth client.
+Delete it under **Protect → MCP Proxies** and add it again with the client ID and client secret.
+
+When access is approved, the command lists the MCP server's tools:
+
+```text
+✓ device certificate accepted; MCP session established through the gateway
+ upstream server: Linear 1.0.2
+ protocol version: 2025-11-25
+✓ 84 tool(s) available from the upstream:
+ • get_attachment
+ • list_comments
+ …
+```
+
+The device, the gateway, and the MCP server now work together.
+
+## Connect an MCP client
+
+An MCP client reaches the MCP server by running the agent's MCP proxy as a local MCP server.
+The MCP command is the same for every agent harness.
+For example, for the Linear upstream:
+
+```bash
+step-agent mcp proxy --upstream linear
+```
+
+This guide covers Claude Code and Claude Desktop. For another MCP client, add a local MCP server that uses the standard input and output transport, with the above command and arguments.
+
+### Claude Code
+
+To add the Linear upstream MCP server to Claude Code, run:
+
+```bash
+claude mcp add linear -- step-agent mcp proxy --upstream linear
+```
+
+### Claude Desktop
+
+For drag-and-drop install into Claude Desktop, you can make an MCP bundle (`.mcpb`) file.
+The bundle holds no token or URL, so you can send it by email or chat.
+
+You'll need one bundle for each MCP server.
+
+#### Create the bundle
+
+1. Make a folder, and in it make a file with the name `manifest.json` and this content:
+
+ ```json
+ {
+ "manifest_version": "0.3",
+ "name": "linear-via-smallstep",
+ "display_name": "Linear (via Smallstep)",
+ "version": "1.0.0",
+ "description": "Linear, through the Smallstep MCP Gateway.",
+ "author": {
+ "name": "Example Corp IT"
+ },
+ "server": {
+ "type": "binary",
+ "entry_point": "/Applications/SmallstepAgent.app/Contents/MacOS/SmallstepAgent",
+ "mcp_config": {
+ "command": "/Applications/SmallstepAgent.app/Contents/MacOS/SmallstepAgent",
+ "args": ["mcp", "proxy", "--upstream", "linear"],
+ "platform_overrides": {
+ "win32": {
+ "command": "C:\\Program Files\\Smallstep Agent\\smallstep-agent.exe"
+ }
+ }
+ }
+ },
+ "compatibility": {
+ "platforms": ["darwin", "win32"]
+ }
+ }
+ ```
+
+ For a different MCP server, change `name`, `display_name`, `description`, and the `--upstream` value.
+
+2. In the folder, make the bundle:
+
+ ```bash
+ zip linear.mcpb manifest.json
+ ```
+
+ You can also use the [MCPB command-line tool](https://github.com/modelcontextprotocol/mcpb). It checks the manifest before making the bundle:
+
+ ```bash
+ npx @anthropic-ai/mcpb pack . linear.mcpb
+ ```
+
+#### Install the bundle
+
+Send these steps with the bundle:
+
+1. Approve access to the MCP server one time, as in [Approve access to the MCP server](#approve-access-to-the-mcp-server).
+ On macOS, run:
+
+ ```bash
+ /Applications/SmallstepAgent.app/Contents/MacOS/SmallstepAgent mcp tools list --upstream linear
+ ```
+
+ On Windows, run:
+
+ ```powershell
+ & "C:\Program Files\Smallstep Agent\smallstep-agent.exe" mcp tools list --upstream linear
+ ```
+
+2. Drag `linear.mcpb` into the Claude Desktop window, or open it.
+3. Choose **Install**.
+
+The MCP server's tools then show in Claude Desktop.
+
+# Verify and troubleshoot
+
+## See the session
+
+Use a tool from the MCP server in your MCP client.
+Then, in the Smallstep console, go to **Audit → Sessions**.
+
+Each connection appears as one row.
+The row shows the user, the device, the MCP client and its version, and the MCP server's host.
+Select a row to read the session's timeline, which lists each call in order.
+
+[Audit MCP activity](./mcp-gateway-audit.mdx) explains what the timeline records.
+
+## Common problems
+
+| What you see | Cause | What to do |
+|---|---|---|
+| `no MCP proxy configured for upstream "linear"` | The device hasn't received the MCP server, or the **Upstream** value doesn't match | Check the **Upstream** value under **Protect → MCP Proxies**. Wait a few minutes after you add an MCP server |
+| `consent required: open … to authorize this upstream` | This person hasn't approved access to the MCP server | Open the link and approve |
+| `this upstream is not configured for your tenant` in the browser | The MCP server has no OAuth client | Delete the MCP server and add it again with the client ID and client secret |
+| `denied by policy for https://…` | The access policy refuses the session | Read the decision under **Audit → Decisions**. See [Control MCP access with policy](./mcp-gateway-policy.mdx) |
+| The connection fails before any message from the gateway | The device's certificate doesn't chain to the gateway's trust roots | Check the trust roots under **Protect → MCP Gateway** |
+
+The [MCP gateway reference](../platform/mcp-gateway-reference.mdx#messages-from-the-agent) lists more messages.
+
+# Next steps
+
+The gateway starts with its access policy turned off.
+Every enrolled device with a certificate can use every tool of the MCP servers you add.
+
+- [Control MCP access with policy](./mcp-gateway-policy.mdx): decide which users, devices, and tools are allowed, and test a policy before you enforce it.
+- [Audit MCP activity](./mcp-gateway-audit.mdx): read sessions, timelines, and decisions, and end a session.