Troubleshooting
Common issues and solutions for the Constellation MCP Server when used with coding assistants like Claude Code, GitHub Copilot, and other MCP-compatible development tools.
Setup and Configuration Issues
Configuration Not Found
⛓️💥 Symptom:
Configuration Error - Constellation MCP Server
I cannot execute this tool because constellation.json is not found in your git repository.
🔍 Cause:
The Constellation MCP server requires a constellation.json configuration file at the root of your git repository.
🪛 Solution:
-
Navigate to your git repository root directory
-
Initialize Constellation:
constellation init
Note: The server will start in "degraded mode" without a config file, but tools will return setup instructions instead of results.
Invalid Configuration Errors
⛓️💥 Symptom:
Invalid configuration: branch is missing
Invalid configuration: no languages configured
Invalid configuration: projectId is missing
🔍 Cause:
Your constellation.json file is missing required fields or contains invalid values.
🪛 Solution:
-
Check Required Fields:
{
"branch": "main",
"projectId": "proj:00000000000000000000000000000000",
"languages": {
"typescript": {
"fileExtensions": [".ts", ".tsx"]
}
}
} -
Validate Language Configuration: Each language must have at least one file extension:
"languages": {
"typescript": {
"fileExtensions": [".ts", ".tsx"]
}
} -
Validate File Extensions: All file extensions must start with a dot:
.ts,.tsx,.js(correct)ts,tsx,js(incorrect)
-
Recreate Configuration:
rm constellation.json
constellation init
Authentication Errors
Authentication Failed
⛓️💥 Symptom:
Authentication Failed
The Constellation API rejected your access key.
🔍 Cause:
- Missing
CONSTELLATION_ACCESS_KEYenvironment variable - Invalid API key
- Expired API key
🪛 Solution:
-
Set up authentication via CLI:
constellation auth -
Verify environment variable:
echo $CONSTELLATION_ACCESS_KEYShould output your Access Key (not empty).
-
Restart your coding assistant after updating authentication.
Verification:
Check the MCP server logs on startup for:
[CONSTELLATION] Environment check:
CONSTELLATION_ACCESS_KEY: ***SET***
If you see NOT SET, run constellation auth again.
Project Not Indexed
Project Not Found in Index
⛓️💥 Symptom:
Project Not Indexed
The project cannot be found in the Constellation index.
Project Details:
Project ID: proj:00000000000000000000000000000000
Branch: main
🔍 Cause:
- The project hasn't been indexed yet
- You're on a different branch than what was indexed
- The project ID in
constellation.jsondoesn't match the indexed project
🪛 Solution:
-
Index your codebase:
constellation index -
Verify you're on the correct branch:
git branch --show-currentThe branch should match the
branchfield in yourconstellation.json. -
Use full re-index if incremental fails:
constellation index --full -
Switch branches if needed (each branch has a separate index):
git checkout feature-branch
constellation index
No Data Found / Empty Results
⛓️💥 Symptom:
No data found. This may indicate:
1. The project hasn't been indexed yet
2. The specified item doesn't exist
3. Project needs re-indexing
🔍 Cause:
- Project not indexed
- Search query too restrictive
- Symbol/file doesn't exist in the indexed data
- Stale index after code changes
🪛 Solution:
-
Re-index the project:
constellation index -
Use full re-index:
constellation index --full -
Broaden search criteria in your code:
// Too restrictive
const result = await api.searchSymbols({
query: 'handleUserAuthenticationRequest',
filterByKind: ['function'],
isExported: true
});
// Broader search
const result = await api.searchSymbols({
query: 'handleUser',
limit: 20
});
Symbol and File Issues
Symbol Not Found
⛓️💥 Symptom:
Symbol not found: MyClass
🔍 Cause:
- Symbol doesn't exist
- Incorrect symbol identifier format
- Symbol not indexed (private/local symbols may not be indexed)
🪛 Solution:
-
Correct AI assistant: Tell your AI assistant to reconsider the symbol for which it is searching and, if possible, provide it with the valid symbol name.
-
Update the project index:
constellation index
File Not Found
⛓️💥 Symptom:
File not found: src/components/Button.tsx
🔍 Cause:
- File doesn't exist
- Incorrect file path (relative vs absolute)
- File not tracked by git
- File not in configured languages
🪛 Solution:
-
Check if file is tracked:
git ls-files | grep Button.tsxUntracked files are not indexed.
-
Check language configuration in
constellation.json:{
"languages": {
"typescript": {
"fileExtensions": [".ts", ".tsx"]
}
}
} -
Use relative paths from project root:
src/components/Button.tsx(correct)/Users/name/project/src/components/Button.tsx(incorrect)
-
Update the project index after adding files:
constellation index
MCP Server Issues
Server Failed to Start
⛓️💥 Symptom:
CONSTELLATION MCP SERVER FAILED TO START
🔍 Cause:
- Configuration errors
- Missing dependencies
- Incompatible Node.js version
- Permission issues
🪛 Solution:
-
Check the specific error message displayed above the failure banner.
-
Verify installation:
npm install -g @constellationdev/mcp
# or
npx -y @constellationdev/mcp -
Check Node.js version:
node --version # Should be v18.0.0 or higher -
Check your coding assistant's logs for detailed error messages.
Degraded Mode Warning
⛓️💥 Symptom:
[CONSTELLATION] WARNING: Server starting in degraded mode
[CONSTELLATION] Configuration error: ...
[CONSTELLATION] Tools will return setup instructions when called
🔍 Cause:
- Missing or invalid
constellation.json - Configuration loading error
Behavior:
- Server starts successfully
- The
execute_codetool returns setup instructions instead of executing code - Allows your coding assistant to guide you through setup
🪛 Solution:
Follow the setup instructions in the configuration error message:
- Run
constellation init - Run
constellation auth - Run
constellation index - Restart your coding assistant or reload the MCP server
Getting Help
If you continue to experience issues:
-
Check Documentation:
- Getting started guide: Overview
- Tools reference: Code Mode Tools
-
Collect Debug Information:
# Check configuration
cat constellation.json
# Check authentication
echo $CONSTELLATION_ACCESS_KEY
# Re-index fully
constellation index --full -
Check your coding assistant's logs:
- Claude Desktop: Check the OUTPUT panel
- VS Code extensions: Check the extension output
- Other assistants: Refer to their documentation
-
Report Issues:
- GitHub Issues: [https://github.com/shiftinbits/constellation-mcp/issues]
- Include: Error message, steps to reproduce, configuration (without API key), logs