Cursor supports MCP via stdio. Use the bundled shim.
Setup
Open Cursor settings → MCP → "Add new MCP server". Or edit ~/.cursor/mcp.json directly:
{
"mcpServers": {
"agent_api": {
"command": "node",
"args": ["C:/path/to/5m-mcp/dist/mcp-stdio.js"],
"env": {
"AGENT_API_URL": "http://127.0.0.1:30120/agent_api/mcp",
"AGENT_API_TOKEN": "PASTE_YOUR_TOKEN_HERE"
}
}
}
}Restart Cursor. The agent_api tools appear under MCP servers.
Notes
- Cursor's MCP support is tools only — prompts (the
scaffold-fivem-resourceslash command) won't surface as a UI slash. The grill workflow is still available via thescaffold_fivem_resource_workflowtool, which Cursor's agent will auto-call when you express intent to create a new resource. - Cursor doesn't show MCP server boot logs anywhere obvious. If tools don't appear, try restarting Cursor with the developer console open, or run
npm run smoke:stdiofrom the repo to confirm the shim works.