For AgenticCoder, use this configuration with the clean entry point that has no debug output:
{
"mcp": {
"docs-rag": {
"type": "stdio",
"command": "node",
"args": [
"/data/docs-rag/dist/mcp/agentic-stdio.js"
],
"cwd": "/data/docs-rag",
"env": {
"QDRANT_URL": "http://localhost:6333",
"OLLAMA_URL": "http://localhost:11434",
"OLLAMA_EMBEDDING_MODEL": "nomic-embed-text"
},
"disabled": false
}
}
}
✅ Clean JSON output - No dotenv debug messages interfering with protocol
✅ Direct Node execution - Uses compiled binary for reliability
✅ Environment variables - Hardcoded defaults ensure server starts properly
✅ Absolute file paths - No ambiguity in execution location
Build the project:
cd /data/docs-rag
npm run build
Ensure compiled file exists:
ls -la /data/docs-rag/dist/mcp/agentic-stdio.js
Dependencies running:
http://localhost:6333http://localhost:11434This configuration should resolve the "invalid character 'd'" JSON parsing error by providing clean JSON responses only from the MCP server.