The Model Context Protocol (MCP) server allows LLM agents (Cursor, Windsurf, Claude Code, etc.) to access your app runtime logs and errors. While Copilot Agent mode works out-of-the-box, other clients require manual configuration.
Copilot (VS Code settings.json)
MacOS/Linux:
{
"mcp": {
"servers": {
"console-ninja": {
"command": "npx",
"args": ["-y", "-c", "node ~/.console-ninja/mcp/"]
}
}
}
}
Windows:
{
"mcp": {
"servers": {
"console-ninja": {
"command": "cmd.exe",
"args": ["/c", "node", "%USERPROFILE%/.console-ninja/mcp/"]
}
}
}
}
Cursor
All projects (modify ~/.cursor/mcp.json):
{
"mcpServers": {
"console-ninja": {
"command": "node",
"args": ["~/.console-ninja/mcp/"]
}
}
}
Claude Code
Run in terminal:
claude mcp add console-ninja -s project -- npx "-y" "-c" "node ~/.console-ninja/mcp"
Note: If you get a spawn node error, use the full path to your node executable.
Windsurf
Run Windsurf: MCP Configuration Panel and add the following:
MacOS/Linux:
{
"mcpServers": {
"console-ninja": {
"command": "npx",
"args": ["-y", "-c", "node ~/.console-ninja/mcp/"]
}
}
}
Windows:
{
"mcpServers": {
"console-ninja": {
"command": "cmd.exe",
"args": ["/c", "node", "%USERPROFILE%/.console-ninja/mcp/"]
}
}
}