Tools

March 9, 2026 ยท View on GitHub

Complete reference of MCP tools provided by the CodeQL Development MCP Server.

Overview

The server exposes default tools and opt-in monitoring tools. Default tools are registered on startup; monitoring tools require explicit opt-in (see Monitoring and Reporting). Users control which tools are enabled in their MCP client configuration.

Authoritative reference: The MCP-served resource at codeql://server/tools (server/src/resources/server-tools.md) is the canonical documentation for default tools. Update that file when adding, removing, or changing any default tool.

Default Tools

For the complete default tools reference (CodeQL CLI tools, LSP tools, query development tools, common workflows, and input conventions), see server/src/resources/server-tools.md.

Optional Monitoring Tools

These tools are disabled by default and require opt-in. See Monitoring and Reporting for details.

Session Management

ToolDescription
session_endEnd a query development session with final status
session_getGet complete details of a specific query development session
session_listList query development sessions with optional filtering
session_update_stateUpdate the current state of a query development session

Session Analytics

ToolDescription
session_calculate_current_scoreCalculate current quality score for a session based on its state
session_get_call_historyGet MCP call history for a specific session
session_get_score_historyGet quality score history for a specific session
session_get_test_historyGet test execution history for a specific session

Batch Operations

ToolDescription
sessions_aggregateGenerate aggregate insights from multiple sessions based on filters
sessions_compareCompare multiple query development sessions across specified dimensions
sessions_exportExport session data in specified format for external analysis