- Implement 4 production-ready audit scan tools in src/shards/audit.py - scan_status_reconciliation: detect terminated users still enabled in AD - scan_job_title_drift: detect title mismatches between Workday and AD - scan_department_mismatches: detect department/cost center drift - scan_name_variance_mismatches: detect display name inconsistencies - Add comprehensive integration test suite (tests/integration_test_audit_shard.py) - Create demo client (test_client.py) and MCP protocol simulator (test_mcp_protocol.py) - Add tool catalog generator (list_tools.py) for visibility across all 33 registered tools - Fix Windows console encoding in src/main.py to support emoji in shard status output - Add version management utility (scripts/bump_version.py) for release automation - Update workday test imports to use new drift_detection module path Completes session goal of establishing SOC 2-compliant cross-system drift detection per SESSION_SNAPSHOT_2026-04-13.md. All audit tools validated against mock data with expected mismatch scenarios (Bob Martinez, Carol Chen, David Kim cases). Refs: WIS-014, WIS-015, WIS-016, WIS-017, WIS-018
4.8 KiB
MCP Server Troubleshooting Guide
Issue: MCP Server Not Showing in VS Code Copilot
What We've Done
- ✅ Updated
.vscode/settings.jsonwith full Python path - ✅ Added PYTHONPATH and PYTHONUNBUFFERED environment variables
- ✅ Verified server has proper
mcp.run(transport="stdio")setup - ✅ Created alternative configuration file
Diagnostic Steps
1. Check VS Code Output Panel
How:
- Open:
View→Output - Select dropdown:
GitHub Copilot Chat - Look for MCP-related errors
What to look for:
Failed to start MCP server "nexus"Python not foundModule not found- Any error mentioning "nexus" or "mcp"
2. Verify Copilot Extension Version
Required: GitHub Copilot extension v0.12.0 or newer
Check:
- Extensions panel (
Ctrl+Shift+X) - Search: "GitHub Copilot"
- Check version number
- Update if needed
Note: MCP support is a recent feature. Older versions won't recognize MCP servers.
3. Verify Settings Location
Workspace vs User Settings:
The configuration should be in workspace settings, not user settings.
Check:
.vscode/settings.json ← Should be here (workspace)
Not here:
%APPDATA%\Code\User\settings.json ← User settings (wrong location)
4. Alternative Configuration Locations
VS Code Copilot may look for MCP servers in:
Option A: Workspace settings (recommended)
.vscode/settings.json
Option B: User-level MCP config
%APPDATA%\Code\User\globalStorage\github.copilot-chat\mcp_settings.json
I've created mcp_settings.json in the workspace root as an alternative.
To use Option B:
- Copy
mcp_settings.jsonto the user-level path above - Create the directory if it doesn't exist
- Reload VS Code
5. Test Server Manually
Verify the server can start:
cd nexus-mcp
.venv\Scripts\python.exe src\main.py
Expected: Server starts and waits for stdio input (no output is normal) Press Ctrl+C to exit
If this fails, there's a problem with the server itself (not VS Code config).
6. Check for Python Path Issues
Current configuration uses:
${workspaceFolder}/nexus-mcp/.venv/Scripts/python.exe
Test if VS Code resolves this:
- Open Terminal in VS Code
- Run:
echo ${workspaceFolder} - Should show:
C:\Users\castn1.CORP\OneDrive - Wheels\Repos\mcp_servers
If blank, VS Code can't resolve workspace variables.
Workaround: Use absolute path in settings.json:
"command": "C:/Users/castn1.CORP/OneDrive - Wheels/Repos/mcp_servers/nexus-mcp/.venv/Scripts/python.exe"
Common Issues & Solutions
Issue: "command not found: python"
Solution: Use absolute path to Python:
"command": "C:/Users/castn1.CORP/OneDrive - Wheels/Repos/mcp_servers/nexus-mcp/.venv/Scripts/python.exe"
Issue: "No such file or directory: main.py"
Solution: Check cwd is correct:
"cwd": "${workspaceFolder}/nexus-mcp"
Issue: "Module not found" errors
Solution: Add PYTHONPATH:
"env": {
"PYTHONPATH": "${workspaceFolder}/nexus-mcp/src:${workspaceFolder}/nexus-mcp/lib"
}
Issue: Server starts but tools don't appear
Possible causes:
- Copilot extension too old (update to v0.12.0+)
- MCP protocol mismatch
- Server responding but not following MCP spec
Debug: Check Copilot output panel for protocol errors
Alternative: Use Claude Desktop Instead
If VS Code Copilot continues to have issues, you can use Claude Desktop with the same MCP server:
Location: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"nexus": {
"command": "C:/Users/castn1.CORP/OneDrive - Wheels/Repos/mcp_servers/nexus-mcp/.venv/Scripts/python.exe",
"args": [
"C:/Users/castn1.CORP/OneDrive - Wheels/Repos/mcp_servers/nexus-mcp/src/main.py"
],
"env": {
"USE_MOCK": "true",
"ENABLE_AUDIT": "true"
}
}
}
}
Still Not Working?
Try this minimal test:
- Create a simple MCP server test:
# test_simple_mcp.py
from mcp.server.fastmcp import FastMCP
mcp = FastMCP("test")
@mcp.tool()
def hello() -> str:
"""Say hello"""
return "Hello from MCP!"
if __name__ == "__main__":
mcp.run(transport="stdio")
- Add to settings.json:
"github.copilot.chat.mcpServers": {
"test": {
"command": "python",
"args": ["${workspaceFolder}/test_simple_mcp.py"]
}
}
- Reload VS Code
- Try
@testin Copilot Chat
If this works, the issue is with the Nexus server. If not, it's a VS Code/Copilot configuration issue.
Report Issues
If none of these work, the issue may be:
- VS Code Copilot doesn't support MCP yet on your version
- Feature not available in your region/license
- Bug in Copilot extension