Skip to content

[UPDATE PROMPTS] Add CodeQL MCP server to Copilot coding agent environment - #4

Merged
felickz merged 2 commits into
mainfrom
felickz-miniature-umbrella
Oct 8, 2026
Merged

felickz merged 2 commits into
mainfrom
felickz-miniature-umbrella

Conversation

@felickz

@felickz felickz commented Oct 8, 2026

Copy link
Copy Markdown

📝 Prompt Update

  • Scope: Global, Templates
  • Hierarchy Level: Level 1-2 (agent environment and agent guidance)
  • Target Language (if applicable): all

🎯 Changes

What Changed

  • copilot-setup-steps.yml: installs Node.js 26 and codeql-development-mcp-server@2.27.1, runs codeql-development-mcp-server-setup-packs, and verifies the executables.
  • ql-tdd-agent.md: prefers ql-mcp MCP 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 @copilot previously 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 codeql CLI.

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

  • Manual testing completed
  • Workflow validation performed (the copilot-setup-steps workflow runs on this PR since it touches that file)
  • No forbidden files included (no queries, tests, or analysis files)

Test Scenarios

  1. npm run format then npm run lint and npm run format:check: passed.
  2. Verified on the npm registry that codeql-development-mcp-server@2.27.1 exists with bins codeql-development-mcp-server and codeql-development-mcp-server-setup-packs, and that Node ^24.15.0 || >=26.0.0 is required.

📋 Checklist

  • Only prompt system files included
  • No query implementation files
  • No analysis or summary files
  • Documentation updated (PROMPTS.md/README.md if needed)
  • Links and references validated

🔗 References

felickz and others added 2 commits October 8, 2026 16:24
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
@felickz
felickz merged commit d019a77 into main Oct 8, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant