Normalize Copilot MCP tool names#374
Open
ozymandiashh wants to merge 1 commit into
Open
Conversation
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.
Summary
Closes #371 by making Copilot MCP tool calls show up in MCP server breakdowns instead of being counted as ordinary core tools.
Root cause
CodeBurn's MCP aggregation expects tool names in the Claude-style
mcp__server__toolformat. Copilot records MCP calls as<server>-<tool>intoolRequests, for examplegithub-mcp-server-list_issues,cyberday-get_tasks, andmempalace-mempalace_search. The Copilot provider only mapped built-in tools likebashandread_file, so those MCP calls stayed as raw strings andextractMcpTools()ignored them.What changed
<server>-<tool>tomcp__server__toolin both legacy session-state logs and VS Code transcript logs.bashstill reports asBashand does not get misclassified as MCP.mcp__...names idempotently.toolRequestselements.Validation
I ran a concrete Copilot fixture through the actual CLI. The fixture contains this assistant
toolRequestsinput:codeburn report --format json --provider copilot --from 2026-05-21 --to 2026-05-21now reports the MCP tools as MCP servers and leaves only Bash in core tools:{ "reportMcpServers": [ { "name": "github_mcp_server", "calls": 1 }, { "name": "cyberday", "calls": 1 }, { "name": "mempalace", "calls": 1 } ], "reportCoreTools": [ { "name": "Bash", "calls": 1 } ] }Additional checks: