---
title: "Boost Your Copilot with SonarQube via Docker MCP Toolkit and Gateway"
description: "The Sonar MCP server, launched from Docker Desktop's MCP Toolkit and exposed through the Docker MCP Gateway, lets GitHub Copilot's Agent Mode in IntelliJ read SonarQube findings without leaving the IDE."
url: "https://swe.quest/articles/boost-your-copilot-with-sonarqube-via-docker-mcp-toolkit-and-gateway-70de3e1cdb819df3"
canonical: "https://www.docker.com/blog/blog-sonarqube-copilot-docker-mcp-toolkit/"
source: "Docker"
published: "2025-08-29"
difficulty: "medium"
kind: "How-to"
reading_minutes: 4
tags: ["ai-agents","ai-coding","static-analysis","jvm"]
---

# Boost Your Copilot with SonarQube via Docker MCP Toolkit and Gateway

A post on [Docker](https://swe.quest/sources/docker.md), published 2025-08-29, 4 min read, How-to. Original: [https://www.docker.com/blog/blog-sonarqube-copilot-docker-mcp-toolkit/](https://www.docker.com/blog/blog-sonarqube-copilot-docker-mcp-toolkit/)

## Summary

The Sonar MCP server, launched from Docker Desktop's MCP Toolkit and exposed through the Docker MCP Gateway, lets GitHub Copilot's Agent Mode in IntelliJ read SonarQube findings without leaving the IDE. The walkthrough configures the server with a SonarQube URL, organization and token, then registers the gateway in Copilot's mcp.json as a stdio command. On a Spring Boot and Testcontainers demo project, the agent fixed security and maintainability issues and wrote tests for uncovered lines. Coverage rose from 72.1% to 91.1%, with an A rating in every category.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [Static analysis](https://swe.quest/tags/static-analysis.md) (Engineering practices)
- [Java & JVM](https://swe.quest/tags/jvm.md) (Languages)

## Prerequisites

- SonarQube basics
- Maven builds
- GitHub Copilot Agent Mode ([easy posts on AI for coding](https://swe.quest/tags/ai-coding.md?difficulty=easy))

## Keywords

SonarQube, Model Context Protocol, Docker MCP Toolkit, Docker MCP Gateway, GitHub Copilot, IntelliJ, JaCoCo, Spring Boot

## Related posts

- [How to Add MCP Servers to Claude Code with Docker MCP Toolkit](https://swe.quest/articles/how-to-add-mcp-servers-to-claude-code-with-docker-mcp-toolkit-cc8780c7393c09aa.md): Docker · 2025-10-10 · Medium · 13 min read · AI agents, AI for coding, Developer tools, Containers
  Docker MCP Toolkit lets Claude Code reach containerized MCP servers through a single Docker MCP Gateway entry in a project's .mcp.json, connected with one click in Docker Desktop or via \`docker mcp client connect claude-code\`.
- [How to add MCP Servers to Gemini CLI with Docker MCP Toolkit](https://swe.quest/articles/how-to-add-mcp-servers-to-gemini-cli-with-docker-mcp-toolkit-1fe07b53cff88339.md): Docker · 2025-10-15 · Medium · 14 min read · AI agents, Testing, Developer tools, Containers
  Gemini CLI can be connected to Docker MCP Toolkit so it can drive containerized MCP servers from the terminal.
- [Building AI Agents with Docker MCP Toolkit: A Developer’s Real-World Setup](https://swe.quest/articles/building-ai-agents-with-docker-mcp-toolkit-a-developer-s-real-world-setup-988aee07496da75c.md): Docker · 2025-08-19 · Medium · 6 min read · AI agents, Containers, LLMs
  A GitHub repository question-answering agent is built by running the GitHub MCP Gateway (docker/mcp-gateway) as a container under Docker Compose and connecting a Python agent to it over streamable-http via MCPTools.
- [Dynamic MCPs with Docker: Stop Hardcoding Your Agents’ World](https://swe.quest/articles/dynamic-mcps-with-docker-stop-hardcoding-your-agents-world-a530a7120388ea63.md): Docker · 2025-11-06 · Medium · 11 min read · AI agents, LLMs, Sandboxing & isolation, Containers, Developer tools
  Docker MCP Gateway now exposes primordial tools (mcp-find, mcp-add) that let agents search a curated catalog of 270+ MCP servers, add them to the live session, and trigger OAuth or elicitation flows, instead of hand-editing JSON config and restarting.
- [Better tools made Copilot code review worse. Here’s how we actually improved it.](https://swe.quest/articles/better-tools-made-copilot-code-review-worse-here-s-how-we-actually-improved-it-d13b0645c05f1e51.md): GitHub Engineering · 2026-07-10 · Medium · 9 min read · AI agents, Code review, LLMs, Evaluation, Cost optimization
  Swapping Copilot code review's bespoke exploration tools for the shared Copilot CLI tools (grep, glob, view) initially raised review cost and reduced useful comments, because the tool instructions encouraged broad, repo-browsing behavior instead of diff-anchored investigation.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
