Repository navigation
[UPDATE PROMPTS] Add CodeQL MCP server to Copilot coding agent environment - #4
Merged
Merged
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 7b18c848-a49d-4648-a3ee-80a6508d3e51
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 7b18c848-a49d-4648-a3ee-80a6508d3e51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Prompt Update
🎯 Changes
What Changed
copilot-setup-steps.yml: installs Node.js 26 andcodeql-development-mcp-server@2.27.1, runscodeql-development-mcp-server-setup-packs, and verifies the executables.ql-tdd-agent.md: prefersql-mcpMCP tools when connected (CLI fallback), and requires a regression test first for FN/FP fixes.README.md: new optional Step 2a documenting the repository-level MCP configuration for Copilot coding agent.Why This Change
Assigning an FN/FP issue to
@copilotpreviously gave the agent only the CodeQL CLI. This lets the agent also use the CodeQL MCP server tools while keeping the existing issue, agent, PR workflow.Issues Addressed
The template had no CodeQL MCP configuration.
🔍 Impact
Previous Behavior
The agent used only the
codeqlCLI.New Behavior
Once the repository's Copilot MCP settings register
ql-mcp(see README Step 2a), the agent can use MCP tools and falls back to the CLI otherwise. Copilot coding agent supports MCP tools only, not prompts or resources.🧪 Validation
copilot-setup-stepsworkflow runs on this PR since it touches that file)Test Scenarios
npm run formatthennpm run lintandnpm run format:check: passed.codeql-development-mcp-server@2.27.1exists with binscodeql-development-mcp-serverandcodeql-development-mcp-server-setup-packs, and that Node^24.15.0 || >=26.0.0is required.📋 Checklist
🔗 References