5.0 KiB
Troubleshooting Guide
When you encounter errors or issues with Claude Context, don't panic! This guide provides a systematic approach to identify and resolve problems.
- For MCP use cases, see MCP Use Cases section.
- For VSCode Extension use cases, see VSCode Extension Use Cases section.
For MCP Use Cases
Step 1: Check Indexing Status First
Since indexing runs in the background, many issues are related to indexing status.
Start by checking the indexing status:
Tell your agent:
"Check the indexing status"
, which will call get_indexing_status tool to get error messages, progress information, or status details. They are helpful for troubleshooting.
Step 2: Get Debug Logs
If Step 1 doesn't reveal the issue, collect detailed debug information:
Get your MCP logs:
- If you use Claude Code or Gemini CLI, start them with
--debugmode:claude --debug # or gemini --debug - If you use Cursor-like GUI IDEs, find the MCP logs in the Output panel, e.g. Cursor:
- Open the Output panel in Cursor (⌘⇧U)
- Select "MCP Logs" from the dropdown
- See Cursor MCP FAQ for details
Check your MCP Client Setting: If logs don't solve the problem, note:
- Which MCP client you're using
- Your MCP configuration JSON contents
- This helps locate configuration issues
Step 3: Reconnect MCP Server After Configuration Changes
If you locate the problem at Step 1 or Step 2, and have made changes to your environment configuration (such as environment variables, API keys, or MCP settings), try restarting and reconnecting to the MCP server:
Reconnection methods:
-
Claude Code: Use the command in the interactive mode:
/mcp reconnect claude-contextFor more details, see this comment.
-
Gemini CLI: Use the command in the interactive mode:
/mcp refreshFor more details, see this PR.
-
Cursor and other GUI IDEs: Look for a toggle icon or restart button to restart the MCP connection. e.g. Cursor MCP FAQ
After reconnecting, test if your issue is resolved and the system works normally.
Step 4: Search Documentation and Community
If the previous steps don't solve the issue, search existing resources:
-
Check Documentation:
- Main Documentation - General usage and setup
-
Check FAQ:
- Troubleshooting FAQ - Common issues and solutions
-
Search GitHub Issues:
- GitHub Issues - Known issues and discussions
- Search for similar problems and solutions
- Check both open and closed issues
Step 5: Report the Issue
If none of the above steps resolve your problem, please create a GitHub issue.
Step 6: After Version Updates
If the offical version of Claude Context has been updated, try reconnecting to the MCP server using the methods described in Step 3:
Reconnection methods:
- Claude Code:
/mcp reconnect claude-context - Gemini CLI:
/mcp refresh - Cursor and other GUI IDEs: Use the toggle icon or restart button
After reconnecting, test your use case again to see if the update resolved any previous issues or if new functionality is working as expected.
For VSCode Extension Use Cases
Step 1: Get Debug Logs
Get your logs:
- In the global search panel, type
> Toggle Developer Tools - Open the Chrome DevTools window to view logs
- See VSCode Developer Tools guide for details
Report your settings:
- Include extension settings from the panel if possible
- This information helps locate configuration issues
Step 2: Search Documentation and Community
If debug logs don't solve the issue, search existing resources:
-
Check Documentation:
- Main Documentation - General usage and setup
-
Check FAQ:
- Troubleshooting FAQ - Common issues and solutions
-
Search GitHub Issues:
- GitHub Issues - Known issues and discussions
- Search for similar problems and solutions
- Check both open and closed issues
Step 3: Report the Issue
If none of the above steps resolve your problem, please create a GitHub issue.
Step 4: After Version Updates
If the offical version of VSCode Extension has been updated, try reinstalling the extension.