{"slug": "i-built-a-free-laravel-mcp-config-generator-vs-code-cursor-companion-for-native", "title": "I Built a Free Laravel MCP Config Generator + VS Code/Cursor Companion for Native macOS PHP Stacks", "summary": "A developer built a free, client-side Laravel MCP Config Generator that outputs ready-to-paste MCP configuration JSON for Cursor, Claude Code, Claude Desktop, Windsurf, and VS Code, each of which uses a different config path and key format. The tool pairs with a native macOS companion that exposes read-only MCP tools for site listings, database schemas, log tails, HTTP timings, and dumps, while write-capable tools like run_tinker and query_database require an explicit per-call approval prompt. The local MCP endpoint binds to 127.0.0.1:9921 with Host/Origin checks and ephemeral session Bearer tokens.", "body_md": "Connecting **Cursor**, **Claude Code**, **Claude Desktop**, or **Windsurf** to a local Laravel or WordPress project shouldn't require hand-editing four different JSON schemas every time you start a project.\n\nEvery AI client uses a slightly different MCP config path and key format:\n\n`.cursor/mcp.json` → `mcpServers.<name>.url`\n`.mcp.json` → `mcpServers.<name>` with `\"type\": \"http\"`\n`.vscode/mcp.json` → `servers.<name>` with `~/.codeium/windsurf/mcp_config.json` → `mcpServers.<name>.serverUrl`\n`claude_desktop_config.json` → `stdio` relay (`command` + `args`)\nI built a 100% client-side, zero-login **Laravel MCP Config Generator** that outputs ready-to-paste JSON for all of them in one click:\n\n👉 **Try it free:** [https://stratosapp.dev/tools/laravel-mcp-config-generator/](https://stratosapp.dev/tools/laravel-mcp-config-generator/)\n\nYou pick your AI client, paste your local loopback MCP endpoint (`http://127.0.0.1:9921/mcp`) and session Bearer token, and get the exact file path + schema without guessing field names.\n\nWhen connecting an AI coding agent to your local Laravel stack, you want **zero-friction read context** without letting a rogue prompt silently wipe a database:\n\n`get_sites`), database table schemas & foreign keys (` get_schema`), bounded `laravel.log` tails (`read_logs`), HTTP timings (` read_http_requests`), and captured dumps (` read_dumps`).` run_tinker`, `query_database`, `run_artisan`) queue for an explicit native macOS approval prompt per call instead of executing blindly.`127.0.0.1:9921` with Host/Origin checks and ephemeral session Bearer tokens.\nIf you're also troubleshooting local `.test` SSL certificates, benchmarking Docker Desktop VirtioFS vs native APFS PHP-FPM sockets, or migrating off Laravel Sail, grab our 3 read-only bash scripts on GitHub:\n\nWhich AI editor are you pairing with Laravel right now — Cursor, Claude Code, Windsurf, or VS Code? Let me know if you want another client schema added to the generator!", "url": "https://wpnews.pro/news/i-built-a-free-laravel-mcp-config-generator-vs-code-cursor-companion-for-native", "canonical_source": "https://dev.to/stratos_mac/i-built-a-free-laravel-mcp-config-generator-vs-codecursor-companion-for-native-macos-php-stacks-25eg", "published_at": "2026-11-28 02:42:00+00:00", "updated_at": "2026-11-28 02:43:29.813691+00:00", "lang": "en", "topics": ["ai-agents", "agent-protocols", "developer-tools", "ai-tools"], "entities": ["Laravel", "Cursor", "Claude Code", "Claude Desktop", "Windsurf", "VS Code", "WordPress", "macOS"], "also_reported_by": [], "takeaway": "Each AI client expects a different MCP config schema—Cursor's .cursor/mcp.json uses mcpServers.<name>.url, Windsurf uses serverUrl, and Claude Desktop needs a stdio relay—so generate per-client configs rather than hand-editing them.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/i-built-a-free-laravel-mcp-config-generator-vs-code-cursor-companion-for-native", "markdown": "https://wpnews.pro/news/i-built-a-free-laravel-mcp-config-generator-vs-code-cursor-companion-for-native.md", "text": "https://wpnews.pro/news/i-built-a-free-laravel-mcp-config-generator-vs-code-cursor-companion-for-native.txt", "jsonld": "https://wpnews.pro/news/i-built-a-free-laravel-mcp-config-generator-vs-code-cursor-companion-for-native.jsonld"}}