Merge pull request #23601 from dvdksn/mcp-docs-remake

mcp: rewrite mcp toolkit/gateway documentation
This commit is contained in:
David Karlsson
2025-10-28 10:52:16 +01:00
committed by GitHub
8 changed files with 209 additions and 353 deletions

View File

@@ -11,7 +11,7 @@ weight: 30
description: Learn about Docker's MCP catalog on Docker Hub
keywords: Docker, ai, mcp servers, ai agents, extension, docker desktop, llm, docker hub
grid:
- title: Get started
- title: Get started with MCP Toolkit
description: Learn how to quickly install and use the MCP Toolkit to set up servers and clients.
icon: explore
link: /ai/mcp-catalog-and-toolkit/get-started/
@@ -23,77 +23,67 @@ grid:
description: Learn about the MCP Toolkit to manage MCP servers and clients
icon: /icons/toolkit.svg
link: /ai/mcp-catalog-and-toolkit/toolkit/
- title: MCP Gateway
description: Learn about the underlying technology that powers the MCP Toolkit
icon: developer_board
link: /ai/mcp-catalog-and-toolkit/toolkit/
- title: Docker Hub MCP server
description: Explore about the Docker Hub server for searching images, managing repositories, and more
icon: device_hub
link: /ai/mcp-catalog-and-toolkit/toolkit/
---
{{< summary-bar feature_name="Docker MCP Catalog and Toolkit" >}}
[Model Context Protocol](https://modelcontextprotocol.io/introduction) (MCP) is
an open protocol that standardizes how AI applications access external tools and data sources. Through a client-server architecture, applications such as [Gordon](/manuals/ai/gordon/_index.md) or Claude Desktop act as clients that send requests to MCP servers, which then process these requests and deliver the necessary context to AI models.
an open protocol that standardizes how AI applications access external tools
and data sources. By connecting LLMs to local development tools, databases,
APIs, and other resources, MCP extends their capabilities beyond their base
training.
Building and managing MCP tools can be complex. Docker MCP Catalog and Toolkit simplifies this by providing a secure, streamlined way to build, share, and run MCP tools, addressing common challenges developers face.
Through a client-server architecture, applications such as Claude, ChatGPT, and
[Gordon](/manuals/ai/gordon/_index.md) act as clients that send requests to MCP
servers, which then process these requests and deliver the necessary context to
AI models.
Docker MCP Catalog and Toolkit simplifies the developer experience across the following areas:
MCP servers extend the utility of AI applications, but running servers locally
also presents several operational challenges. Typically, servers must be
installed directly on your machine and configured individually for each
application. Running untrusted code locally requires careful vetting, and the
responsibility of keeping servers up-to-date and resolving environment
conflicts falls on the user.
- Discovery: Centralized discovery through a verified catalog of versioned tools.
- Credential management: Secure credential management with OAuth-based authentication.
- Execution: Safe execution by running tools in isolated, containerized environments.
- Portability: True portability. MCP tools work seamlessly across Claude, Cursor, Visual Studio Code, and other platforms without requiring code changes.
## Docker MCP features
This integrated approach means you can launch MCP servers in seconds, add new tools through either CLI or GUI interfaces, and rely on Docker's pull-based infrastructure for trusted delivery of your tools.
Docker provides three integrated components that address the challenges of
running local MCP servers:
![MCP overview](./images/mcp-overview.svg)
MCP Catalog
: A curated collection of verified MCP servers, packaged and distributed as
container images via Docker Hub. All servers are versioned, come with full
provenance and SBOM metadata, and are continuously maintained and updated with
security patches.
To understand how Docker MCP Catalog and Toolkit achieves this streamlined experience, let's explore the underlying architecture and how its key components work together.
MCP Toolkit
: A graphical interface in Docker Desktop for discovering, configuring, and
managing MCP servers. The Toolkit provides a unified way to search for servers,
handle authentication, and connect them to AI applications.
## MCP architecture overview
MCP Gateway
: The core open source component that powers the MCP Toolkit. The MCP Gateway
manages MCP containers provides a unified endpoint that exposes your enabled
servers to all AI applications you use.
MCP follows a client-server architecture that enables standardized communication between AI applications and external tools. This foundational understanding helps you build and integrate MCP solutions effectively.
This integrated approach ensures:
### MCP servers
- Simplified discovery and setup of trusted MCP servers from a curated catalog
of tools
- Centralized configuration and authentication from within Docker Desktop
- A secure, consistent execution environment by default
- Improved performance since applications can share a single server runtime,
compared to having to spin up duplicate servers for each application.
MCP servers are specialized programs that provide specific tools and capabilities to AI models through [Model Context Protocol](https://modelcontextprotocol.io/introduction). Each server focuses on a particular domain, like GitHub integration, database access, or file management. You can think of them as extensions that give AI models the ability to interact with external systems and data sources.
### MCP clients
MCP clients are the bridge between AI applications and MCP servers. They enable AI systems to discover, connect to, and interact with external tools and data sources through the standardized MCP protocol. A single client can connect to multiple MCP servers, while each server can also serve multiple clients, creating a flexible many-to-many relationship that allows for rich integration possibilities.
When you interact with an AI application that supports MCP, the client establishes connections to configured servers, discovers available tools and resources from all connected servers, executes requests when needed, and manages contextual information to enhance AI responses.
### MCP Gateway
The [MCP Gateway](/manuals/ai/mcp-catalog-and-toolkit/mcp-gateway.md) is Docker's open-source solution which connects MCP servers to MCP clients. It provides a unified endpoint that consolidates multiple MCP servers from the Docker MCP Catalog into a single, manageable connection point. Instead of clients connecting directly to individual MCP servers, the MCP Gateway sits in between, providing centralized connectivity, secure layer, and enterprise controls.
In the context of Docker's MCP ecosystem:
- MCP Catalog hosts the MCP servers (the tools/capabilities)
- MCP Gateway orchestrates and secures those servers
- MCP clients connect through the Gateway to access cataloged servers
## How MCP components work together
MCP components communicate through a structured flow that connects your development environment to external services. The following diagram shows how MCP works in practice with the key components:
1. The MCP client (VS Code) serves as your development environment where you interact with AI assistance.
2. The MCP Gateway acts as a secure orchestration layer, managing and routing connection between the client (VS Code) and the GitHub Official MCP server.
3. The MCP server acts as the bridge, providing specialized capabilities. In the following example, the GitHub Official server offers tools like creating pull requests, creating branches, and retrieving issues.
4. The data source (GitHub) provides the actual service or platform that the MCP server connects to for real-time information and actions.
This architecture enables seamless integration where you can access GitHub functionality directly from VS Code through standardized MCP communication. The server translates requests between your development environment and external services, making it easy to incorporate various tools and data sources into your AI-assisted workflow without complex custom integrations.
![Example of the GitHub MCP server](./images/mcp-toolkit-overview.png)
> [!TIP]
> Example:
> If you work in Visual Studio Code's _agent mode_ and ask it to create a
> branch in GitHub, it needs an MCP server provided by GitHub to do that.
>
> The MCP server provided by GitHub provides _tools_ to your model to perform
> atomic actions, like:
>
> - `Create a PR`
> - `Create a branch`
> - ...
>
![MCP overview](./images/mcp-overview.svg)
## Learn more

View File

@@ -8,32 +8,34 @@ weight: 10
{{< summary-bar feature_name="Docker MCP Toolkit" >}}
Docker Model Context Protocol (MCP) Toolkit makes it easy to set up, manage, and run containerized MCP servers, and connect them to AI agents. It provides secure defaults, one-click setup, and support for a growing ecosystem of LLM-based clients. This page shows you how to get started quickly with the Docker MCP Toolkit.
The Docker MCP Toolkit makes it easy to set up, manage, and run containerized
Model Context Protocol (MCP) servers, and connect them to AI agents. It
provides secure defaults and support for a growing ecosystem of LLM-based
clients. This page shows you how to get started quickly with the Docker MCP
Toolkit.
## Requirements
## Setup
Before you begin, make sure you meet the following requirements to get started with Docker MCP Toolkit.
### Download and install Docker Desktop
- Install [Docker Desktop version 4.42.0](/manuals/desktop/release-notes.md#4420) and later.
- To try the MCP Toolkit Learning center walkthrough, you must install [Docker Desktop version 4.46.0](/manuals/desktop/release-notes.md#4460) and later.
### Enable Docker MCP Toolkit
1. Open the Docker Desktop settings and select **Beta features**.
2. Select **Enable Docker MCP Toolkit**.
3. Select **Apply**.
1. Download and install the latest version of [Docker Desktop](/get-started/get-docker/).
2. Open the Docker Desktop settings and select **Beta features**.
3. Select **Enable Docker MCP Toolkit**.
4. Select **Apply**.
There are multiple ways to get started with Docker MCP Toolkit. You can:
- Try the [Learning center](#learning-center) walkthrough in Docker Desktop, available in [Docker Desktop version 4.46.0](/manuals/desktop/release-notes.md#4460) and later.
- Alternatively, follow the step-by-step instructions on this page to use Docker Desktop or the CLI to [Install an MCP server](#install-an-mcp-server), [add a client, and test your setup](#install-an-mcp-client-and-test-your-setup) with example prompts.
## Learning center
- The **Learning center** in Docker Desktop provides walkthroughs and resources
to help you get started with Docker products and features.
The **Learning center** in Docker Desktop provides walkthroughs and resources to help you get started with Docker products and features.
On the **MCP Toolkit** page, the **Get started** walkthrough that guides you
through installing an MCP server, connecting a client, and testing your
setup.
On the **MCP Toolkit** page, Docker Desktop shows the **Get started** walkthrough that guides you through installing an MCP server, connecting a client, and testing your setup.
- Alternatively, follow the step-by-step instructions on this page to use
Docker Desktop or the CLI to [Install an MCP server](#install-an-mcp-server),
[add a client, and test your setup](#install-an-mcp-client-and-test-your-setup)
with example prompts.
## Install an MCP server
@@ -44,7 +46,7 @@ On the **MCP Toolkit** page, Docker Desktop shows the **Get started** walkthroug
2. Search for the **GitHub Official** server from the catalog and then select the plus icon to add it.
3. In the **GitHub Official** server page, select the **Configuration** tab and select **OAuth**.
>[!NOTE]
> [!NOTE]
>
> The type of configuration required depends on the server you select. For the GitHub Official server, you must authenticate using OAuth.
@@ -68,7 +70,7 @@ On the **MCP Toolkit** page, Docker Desktop shows the **Get started** walkthroug
$ docker mcp oauth authorize github
```
>[!NOTE]
> [!NOTE]
>
> The type of configuration required depends on the server you select. For the GitHub Official server, you must authenticate using OAuth.
@@ -79,12 +81,12 @@ On the **MCP Toolkit** page, Docker Desktop shows the **Get started** walkthroug
```console
$ docker mcp server enable playwright
```
{{< /tab >}}
{{< /tabs >}}
{{< /tab >}}
{{< /tabs >}}
Youve now successfully added an MCP server. Next, install an MCP client and test your setup with an example prompt.
## Install an MCP client and test your setup
After you've installed MCP servers, you can add clients to the MCP Toolkit. These clients can interact with the installed MCP servers, turning the MCP Toolkit into a gateway. In the following section, lets add the Claude Desktop client.
@@ -96,17 +98,18 @@ After you've installed MCP servers, you can add clients to the MCP Toolkit. Thes
2. Find **Claude Desktop** and select **Connect**.
If Claude Desktop isn't installed, select **Download** to install it, then select **Connect**.
3. Restart Claude Desktop if it's running, and it can now access all the servers in the MCP Toolkit.
4. Open Claude Desktop and run a test by submitting the following prompt using the Sonnet Opus 4.1 model:
4. Open Claude Desktop and run a test by submitting the following prompt:
```text
Take a screenshot of the header element on docs.docker.com
```
Claude prompts you for permissions and shares a screenshot of the header element from the Docker documentation page.
![Screenshot showing the header of Docker docs.](./images/claude-desktop-example.png)
{{< /tab >}}
{{< tab name="From the Docker CLI">}}
@@ -115,12 +118,14 @@ After you've installed MCP servers, you can add clients to the MCP Toolkit. Thes
```console
$ docker mcp client connect claude-desktop --global
```
2. Restart Claude Desktop if it's running, and it can now access all the servers in the MCP Toolkit.
3. Open Claude Desktop and run a test by submitting the following prompt using the Sonnet 4 model:
```text
Take a screenshot of the header element on docs.docker.com
```
Claude prompts you for permissions and shares a screenshot of the header element from the Docker documentation page.
![Screenshot showing the header of Docker docs.](./images/claude-desktop-example.png)
@@ -128,8 +133,8 @@ After you've installed MCP servers, you can add clients to the MCP Toolkit. Thes
{{< /tab >}}
{{< /tabs >}}
## Related pages
## Further reading
- [MCP Toolkit](/manuals/ai/mcp-catalog-and-toolkit/toolkit.md)
- [MCP Catalog](/manuals/ai/mcp-catalog-and-toolkit/catalog.md)
- [Open-source MCP Gateway](/manuals/ai/mcp-catalog-and-toolkit/mcp-gateway.md)
- [MCP Gateway](/manuals/ai/mcp-catalog-and-toolkit/mcp-gateway.md)

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 144 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 129 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

View File

@@ -7,128 +7,117 @@ aliases:
- /ai/mcp-gateway/
---
The MCP Gateway is Docker's open-source enterprise-ready solution for
orchestrating and managing [Model Context Protocol
(MCP)](https://spec.modelcontextprotocol.io/) servers securely across
development and production environments. It is designed to help organizations
connect MCP servers from the [Docker MCP Catalog](https://hub.docker.com/mcp) to
MCP Clients without compromising security, visibility, or control.
The MCP Gateway is Docker's open source solution for orchestrating Model
Context Protocol (MCP) servers. It acts as a centralized proxy between clients
and servers, managing configuration, credentials, and access control.
By unifying multiple MCP servers into a single, secure endpoint, the MCP Gateway offers
the following benefits:
- Secure by default: MCP servers run in isolated Docker containers with restricted
privileges, network access, and resource usage.
- Unified management: One gateway endpoint centralizes configuration, credentials,
and access control for all MCP servers.
- Enterprise observability: Built-in monitoring, logging, and filtering tools ensure
full visibility and governance of AI tool activity.
When using MCP servers without the MCP Gateway, you need to configure
applications individually for each AI application. With the MCP Gateway, you
configure applications to connect to the Gateway. The Gateway then handles
server lifecycle, routing, and authentication across all your servers.
> [!NOTE]
> If you use Docker Desktop with MCP Toolkit enabled, the Gateway runs
> automatically in the background. You don't need to start or configure it
> manually. This documentation is for users who want to understand how the
> Gateway works or run it directly for advanced use cases.
> [!TIP]
> E2B sandboxes now include direct access to the Docker MCP Catalog, giving developers
> access to over 200 tools and services to seamlessly build and run AI agents. For
> more information, see [E2B Sandboxes](sandboxes.md).
## Who is the MCP Gateway designed for?
## How it works
The MCP Gateway solves problems encountered by various groups:
MCP Gateway runs MCP servers in isolated Docker containers with restricted
privileges, network access, and resource usage. It includes built-in logging
and call-tracing capabilities to ensure full visibility and governance of AI
tool activity.
- Developers: Deploy MCP servers locally and in production using Docker Compose,
with built-in support for protocol handling, credential management, and security policies.
- Security teams: Achieve enterprise-grade isolation and visibility into AI tool
behavior and access patterns.
- Operators: Scale effortlessly from local development environments to production
infrastructure with consistent, low-touch operations.
The MCP Gateway manages the server's entire lifecycle. When an AI application
needs to use a tool, it sends a request to the Gateway. The Gateway identifies
which server handles that tool and, if the server isn't already running, starts
it as a Docker container. The Gateway then injects any required credentials,
applies security restrictions, and forwards the request to the server. The
server processes the request and returns the result through the Gateway back to
the AI application.
## Key features
The MCP Gateway solves a fundamental problem: MCP servers are just programs
that need to run somewhere. Running them directly on your machine means dealing
with installation, dependencies, updates, and security risks. By running them
as containers managed by the Gateway, you get isolation, consistent
environments, and centralized control.
- Server management: List, inspect, and call MCP tools, resources and prompts from multiple servers
- Container-based servers: Run MCP servers as Docker containers with proper isolation
- Secrets management: Secure handling of API keys and credentials via Docker Desktop
- Dynamic discovery and reloading: Automatic tool, prompt, and resource discovery from running servers
- Monitoring: Built-in logging and call tracing capabilities
## Usage
## Install a pre-release version of the MCP Gateway
To use the MCP Gateway, you'll need Docker Desktop with MCP Toolkit enabled.
Follow the [MCP Toolkit guide](toolkit.md) to enable and configure servers
through the graphical interface.
If you use Docker Desktop, the MCP Gateway is readily available. Use the
following instructions to test pre-release versions.
### Manage the MCP Gateway from the CLI
### Prerequisites
With MCP Toolkit enabled, you can also interact with the MCP Gateway using the
CLI. The `docker mcp` suite of commands lets you manage servers and tools
directly from your terminal. You can also manually run Gateways with custom
configurations, including security restrictions, server catalogs, and more.
- Docker Desktop with the [MCP Toolkit feature enabled](../mcp-catalog-and-toolkit/toolkit.md#enable-docker-mcp-toolkit).
- Go 1.24+ (for development)
To run an MCP Gateway manually, with customized parameters, use the `docker
mcp` suite of commands.
### Install using a pre-built binary
1. Browse the [MCP Catalog](https://hub.docker.com/mcp) for a server that you
want to use, and copy the install command from the **Manual installation**
section.
You can download the latest binary from the [GitHub releases page](https://github.com/docker/mcp-gateway/releases/latest).
Rename the relevant binary and copy it to the destination matching your OS:
| OS | Binary name | Destination folder |
|---------|------------------|-------------------------------------|
| Linux | `docker-mcp` | `$HOME/.docker/cli-plugins` |
| macOS | `docker-mcp` | `$HOME/.docker/cli-plugins` |
| Windows | `docker-mcp.exe` | `%USERPROFILE%\.docker\cli-plugins` |
Or copy it into one of these folders for installing it system-wide:
{{< tabs group="" >}}
{{< tab name="On Unix environments">}}
* `/usr/local/lib/docker/cli-plugins` OR `/usr/local/libexec/docker/cli-plugins`
* `/usr/lib/docker/cli-plugins` OR `/usr/libexec/docker/cli-plugins`
> [!NOTE]
> You may have to make the binaries executable with `chmod +x`:
> ```bash
> $ chmod +x ~/.docker/cli-plugins/docker-mcp
> ```
{{< /tab >}}
{{< tab name="On Windows">}}
* `C:\ProgramData\Docker\cli-plugins`
* `C:\Program Files\Docker\cli-plugins`
{{< /tab >}}
{{</tabs >}}
You can now use the `mcp` command:
```bash
docker mcp --help
```
## Use the MCP Gateway
1. Select a server of your choice from the [MCP Catalog](https://hub.docker.com/mcp)
and copy the install command from the **Manual installation** section.
1. For example, run this command in your terminal to install the `duckduckgo`
For example, run this command in your terminal to install the `duckduckgo`
MCP server:
```console
docker mcp server enable duckduckgo
```
1. Connect a client, like Visual Studio Code:
2. Connect a client, like Claude Code:
```console
docker mcp client connect vscode
docker mcp client connect claude-code
```
1. Run the gateway:
3. Run the gateway:
```console
docker mcp gateway run
```
Now your MCP gateway is running and you can leverage all the servers set up
behind it from Visual Studio Code.
behind it from Claude Code.
[View the complete docs on GitHub.](https://github.com/docker/mcp-gateway?tab=readme-ov-file#usage)
### Install the MCP Gateway manually
## Related pages
For Docker Engine without Docker Desktop, you'll need to download and install
the MCP Gateway separately before you can run it.
- [Docker MCP Toolkit and catalog](/manuals/ai/mcp-catalog-and-toolkit/_index.md)
1. Download the latest binary from the [GitHub releases page](https://github.com/docker/mcp-gateway/releases/latest).
2. Move or symlink the binary to the destination matching your OS:
| OS | Binary destination |
| ------- | ----------------------------------- |
| Linux | `~/.docker/cli-plugins/docker-mcp` |
| macOS | `~/.docker/cli-plugins/docker-mcp` |
| Windows | `%USERPROFILE%\.docker\cli-plugins` |
3. Make the binaries executable:
```bash
$ chmod +x ~/.docker/cli-plugins/docker-mcp
```
You can now use the `docker mcp` command:
```bash
docker mcp --help
```
## Additional information
For more details on how the MCP Gateway works and available customization
options, see the complete documentation [on GitHub](https://github.com/docker/mcp-gateway).

View File

@@ -11,21 +11,17 @@ aliases:
{{< summary-bar feature_name="Docker MCP Toolkit" >}}
The Docker MCP Toolkit is a gateway that lets you set up, manage, and run
containerized MCP servers and connect them to AI agents. It removes friction
from tool usage by offering secure defaults, one-click setup, and support for a
growing ecosystem of LLM-based clients. It is the fastest way from MCP tool
discovery to local execution.
> [!NOTE]
> If you need to run your own MCP gateway,
> see [Docker MCP Gateway](/manuals/ai/mcp-catalog-and-toolkit/mcp-gateway.md).
The Docker MCP Toolkit is a management interface integrated into Docker Desktop
that lets you set up, manage, and run containerized MCP servers and connect
them to AI agents. It removes friction from tool usage by offering secure
defaults, easy setup, and support for a growing ecosystem of LLM-based clients.
It is the fastest way from MCP tool discovery to local execution.
## Key features
- Cross-LLM compatibility: Instantly works with Claude Desktop, Cursor, Continue.dev, and [Gordon](/manuals/ai/gordon/_index.md).
- Cross-LLM compatibility: Works with Claude, Cursor, and other MCP clients.
- Integrated tool discovery: Browse and launch MCP servers from the Docker MCP Catalog directly in Docker Desktop.
- Zero manual setup: No dependency management, runtime configuration, or server setup required.
- Zero manual setup: No dependency management, runtime configuration, or setup required.
- Functions as both an MCP server aggregator and a gateway for clients to access installed MCP servers.
## How the MCP Toolkit works
@@ -44,24 +40,7 @@ can run a container directly, without managing dependencies or configuring
runtimes.
Depending on the MCP server, the tools it provides might run within the same
container as the server or in dedicated containers:
{{< tabs group="" >}}
{{< tab name="Single container">}}
![Screenshot showing a single-container MCP Toolkit setup.](./images/mcp-servers.svg)
{{< /tab >}}
{{< tab name="Separate containers">}}
![Screenshot showing a multi-container MCP Toolkit setup.](./images/mcp-servers-2.svg)
{{< /tab >}}
{{</tabs >}}
>[!NOTE]
>
> The Docker MCP Toolkit was originally released as an extension. This extension is now deprecated and should be uninstalled.
container as the server or in dedicated containers for better isolation.
## Security
@@ -70,14 +49,18 @@ surfaces and ensure safe runtime behavior.
### Passive security
- Image signing and attestation: All MCP server images under `mcp/` in the [catalog](catalog.md)
are built by Docker and digitally
signed to verify their source and integrity. Each image includes a Software
Bill of Materials (SBOM) for full transparency.
Passive security refers to measures implemented at build-time, when the MCP
server code is packaged into a Docker image.
- Image signing and attestation: All MCP server images under `mcp/` in the [MCP
Catalog](catalog.md) are built by Docker and digitally signed to verify their
source and integrity. Each image includes a Software Bill of Materials (SBOM)
for full transparency.
### Active security
Security at runtime is enforced through resource and access limitations:
Active security refers to security measures at runtime, before and after tools
are invoked, enforced through resource and access limitations.
- CPU allocation: MCP tools are run in their own container. They are
restricted to 1 CPU, limiting the impact of potential misuse of computing
@@ -91,30 +74,45 @@ Security at runtime is enforced through resource and access limitations:
- Interception of tool requests: Requests to and from tools that contain sensitive
information such as secrets are blocked.
To learn more about the MCP server catalog, see [Catalog](catalog.md).
### OAuth authentication
### Example: Use the **GitHub Official** MCP server
Some MCP servers require authentication to access external services. The MCP
Toolkit handles OAuth flows for supported services, currently limited to
GitHub. When you authorize the MCP Toolkit to access your GitHub account, any
installed MCP server that needs GitHub access can use those credentials without
requiring separate authentication.
Imagine you want to enable [Ask Gordon](/manuals/ai/gordon/_index.md) to interact with your GitHub account:
To set up OAuth for a service, use the **OAuth** tab in the MCP Toolkit section
in Docker Desktop. Once authorized, the credentials are available to any MCP
server that needs them. You can revoke access at any time from the same tab.
1. From the **MCP Toolkit** menu, select the **Catalog** tab and find
the **GitHub Official** server and add it.
2. In the server's **Config** tab, [connect via OAuth](#authenticate-via-oauth).
## Usage examples
### Example: Use the GitHub Official MCP server with Ask Gordon
To illustrate how the MCP Toolkit works, here's how to enable the GitHub
Official MCP server and use [Ask Gordon](/manuals/ai/gordon/_index.md) to
interact with your GitHub account:
1. From the **MCP Toolkit** menu in Docker Desktop, select the **Catalog** tab
and find the **GitHub Official** server and add it.
2. In the server's **Config** tab, authenticate via OAuth.
3. In the **Clients** tab, ensure Gordon is connected.
4. From the **Ask Gordon** menu, you can now send requests related to your
GitHub account, in accordance to the tools provided by the GitHub Official server. To test it, ask Gordon:
GitHub account, in accordance to the tools provided by the GitHub Official
server. To test it, ask Gordon:
```text
What's my GitHub handle?
```
Make sure to allow Gordon to interact with GitHub by selecting **Always allow** in Gordon's answer.
Make sure to allow Gordon to interact with GitHub by selecting **Always
allow** in Gordon's answer.
> [!TIP]
> By default, the Gordon client is enabled,
> The Gordon client is enabled by default,
> which means Gordon can automatically interact with your MCP servers.
### Example: Use Claude Desktop as a client
Imagine you have Claude Desktop installed, and you want to use the GitHub MCP server,
@@ -136,15 +134,12 @@ and add Claude Desktop as a client:
You can interact with all your installed MCP servers in Visual Studio Code:
<!-- vale off -->
1. To enable the MCP Toolkit:
{{< tabs group="" >}}
{{< tab name="Enable globally">}}
1. Insert the following in your Visual Studio Code's User`mcp.json`:
1. Insert the following in your Visual Studio Code's User `mcp.json`:
```json
"mcp": {
@@ -173,8 +168,13 @@ You can interact with all your installed MCP servers in Visual Studio Code:
```
> [!NOTE]
> This command creates a `.vscode/mcp.json` file in the current directory. We
> recommend you add it to your `.gitignore` file.
> This command creates a `.vscode/mcp.json` file in the current
> directory. As this is a user-specific file, add it to your `.gitignore`
> file to prevent it from being committed to the repository.
>
> ```console
> echo ".vscode/mcp.json" >> .gitignore
> ```
{{< /tab >}}
{{</tabs >}}
@@ -190,23 +190,7 @@ You can interact with all your installed MCP servers in Visual Studio Code:
For more information about the Agent mode, see the
[Visual Studio Code documentation](https://code.visualstudio.com/docs/copilot/chat/mcp-servers#_use-mcp-tools-in-agent-mode).
<!-- vale on -->
## Further reading
## Authenticate via OAuth
You can connect the MCP Toolkit to your development workflow via
OAuth integration. For now, the MCP Toolkit only supports GitHub OAuth.
1. On https://github.com/, ensure you are signed in.
1. In Docker Desktop, select **MCP Toolkit** and select the **OAuth** tab.
1. In the GitHub entry, select **Authorize**. Your browser opens the GitHub authorization page.
1. In the GitHub authorization page, select **Authorize Docker**. Once the authorization
is successful, you are automatically redirected to Docker Desktop.
1. Install the **GitHub Official** MCP server, see [Install an MCP server](/manuals/ai/mcp-catalog-and-toolkit/get-started.md#install-an-mcp-server).
The MCP Toolkit now has access to your GitHub account. To revoke access, select **Revoke** in the **OAuth** tab.
See an example in [Use the **GitHub Official** MCP server](#example-use-the-github-official-mcp-server).
## Related pages
- [Open-source MCP Gateway](/manuals/ai/mcp-catalog-and-toolkit/mcp-gateway.md)
- [MCP Catalog](/manuals/ai/mcp-catalog-and-toolkit/catalog.md)
- [MCP Gateway](/manuals/ai/mcp-catalog-and-toolkit/mcp-gateway.md)

View File

@@ -108,8 +108,6 @@
"Okta",
"Okta-SAML",
"Old-Dockerfile",
"On-Unix-environments",
"On-Windows",
"Other-providers",
"PHP",
"PowerShell",
@@ -128,9 +126,7 @@
"Run-Ollama-in-a-container",
"Run-Ollama-outside-of-a-container",
"Rust",
"Separate-containers",
"Shell-script-deployment",
"Single-container",
"Specific-version",
"Svelte",
"Testcontainers-Cloud",