Qt
Read post

Introducing the Coco MCP Server Preview

Qt's Coco MCP Server Preview is a Model Context Protocol server that exposes Coco code coverage CLI tools as structured MCP tool calls for AI coding agents. It solves the problem of AI agents lacking runtime coverage data when generating tests by providing exact per-instrumentation-point execution data. Key tools include check_coverage_summary, import_execution_report, get_coverage_overview, get_file_coverage_detail, and analyze_patch_coverage. The server uses progressive disclosure to minimize token usage and supports C++, QML, and mixed Qt projects. A workflow example shows parser.cpp coverage improving from 47.6% to 88.9% using AI-generated tests guided by the MCP server. Future plans include CRAP metrics, Python support, and QML code coverage.

    #mcp#c++
Jun 30•6m read time•From qt.io
Post cover image
Table of contents
Authors: Otso Virtanen and James VanceThe Context Problem in Test Case GenerationNew to code coverage?Introducing the Coco MCP ServerTools exposed by the Coco MCP serverWorkflow examplesWhat’s Next?Need More Information?
18 Impressions
Qt's image
Qt

Qt's platform is a central hub for developers and UI/UX designers, offering insights into cross-plat...

162 Followers

•

583 Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard