Troubleshooting
Preview
The AI Debug Assistant is currently in preview and may change in future releases.
Choosing the right path
If you're experiencing issues with the CFS Debug chat participant, we recommend switching to the CFS MCP debug server with any MCP-compatible AI client for maximum portability and future compatibility.
See Getting started for connection steps.
Port conflict
If the OS cannot assign a port, or you need a specific port:
- Go to Settings → Extensions → CodeFusion Studio → General, or search for (
cfs.mcp.port). - Change the Port (
cfs.mcp.port) to a specific free port (for example, 3001 or 3002). Set it to0to let the OS assign a port automatically. - Run
(CFS) MCP: Stop Debug Serverthen(CFS) MCP: Start Debug Server. - Update your AI client configuration to use the new port.
No active debug session
Most tools require an active debug session. Start debugging with F5 or via the Run menu before asking the assistant to inspect state or control execution. Alternatively, you can ask the assistant to start a debug session using the appropriate configuration name. For example: "Start debugging CFS: Debug with GDB and OpenOCD (ARM Embedded)".
No Copilot model available
If you see the error No Copilot model available. Please ensure GitHub Copilot is installed and authenticated, the @cfs-debug chat participant cannot access the required AI model. To resolve this:
- Ensure GitHub Copilot is installed and you are signed in
- Ensure your GitHub Copilot plan includes access to Claude models (such as Claude Sonnet 4.5 or Claude Opus 4.6)
CFS Debug Assistant tools not appearing in GitHub Copilot Chat
If the CFS Debug Assistant tools are not available in GitHub Copilot Chat:
- Check that your VS Code version is 1.96.0 or later (Help → About)
- Ensure GitHub Copilot is installed and you are signed in
- Confirm the CodeFusion Studio extension is installed and active
Claude Code cannot connect
If Claude Code cannot reach the MCP server:
- Run
(CFS) MCP: Server Statusin the Command Palette to confirm the MCP server is running - Run
(MCP) List Serversorclaude mcp listto confirmcfs-debugis registered and check the URL and port are correct -
If the port has changed, re-register the server:
claude mcp remove cfs-debug claude mcp add --transport http cfs-debug http://localhost:<port>/mcp
Test the connection independently
Use the MCP Inspector to test the server directly:
npx @modelcontextprotocol/inspector
Select Streamable HTTP transport and Proxy connection type, then enter http://localhost:<port>/mcp (replace <port> with the port assigned at startup — check using (CFS) MCP: Server Status). You can browse all available tools, resources, and prompts, and execute them manually to verify everything is working before involving an AI client.
Additional information
- Model Context Protocol specification
- GitHub Copilot VS Code extension
- Claude Code
- Debug Adapter Protocol
- GDB Toolbox — automate GDB command sequences with JSON-based scripts
- Core Dump Analysis Tool — offline post-mortem analysis of Zephyr core dumps