# Undeploying your Patchworks MCP server

## Introduction

There may be times when you want to undeploy your current Patchworks MCP server - for example, to revert it to `draft` for editing, or to take it offline while you make changes in a separate `draft`.

## Need to know

* Undeploying a `deployed` MCP server will cause any existing connections with AI assistants to be disconnected. This remains the case until another [deployment](/product-documentation/developer-hub/patchworks-mcp/patchworks-mcp-hosted/working-with-your-hosted-patchworks-mcp-server-deployment/deploying-updated-mcp-tools-for-an-existing-draft.md) is made. &#x20;
* When a `deployed` version is undeployed, its status changes to `draft`. If there were an existing `draft` version, it would be overwritten.

## The steps

{% stepper %}
{% step %}
**Access your MCP server deployments**

Select the `settings` option (at the bottom of the navigation menu):

<div align="left"><figure><img src="/files/2CflJsyeX7pwhkBMYz1t" alt=""><figcaption></figcaption></figure></div>

Then select the `MCP servers` option:

<figure><img src="/files/ex9d8TO1FbjQzcLvwHxx" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Deploy the draft**

Click the ellipsis icon for the `deployed` entry:

<figure><img src="/files/zwjpiROY96hmpOb47c7V" alt=""><figcaption></figcaption></figure>

Then select the `undeploy` option:

<figure><img src="/files/OOaq6bJ7edyQkdsq0g4q" alt=""><figcaption></figcaption></figure>

The `deployed` status changes to `draft`. If there were an existing `draft` version, it would be overwritten.
{% endstep %}
{% endstepper %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.wearepatchworks.com/product-documentation/developer-hub/patchworks-mcp/patchworks-mcp-hosted/working-with-your-hosted-patchworks-mcp-server-deployment/undeploying-your-patchworks-mcp-server.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
