Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Build, run and live-test FiveM servers with AI agents: RCON, DevCon, window control, mcpb bridge.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
FIVEM_HOST, FIVEM_CLIENT_DEVCON_PORT, FIVEM_RCON_ADDRESS, FIVEM_RCON_PASSWORD, FIVEM_SERVER_LOG, FIVEM_MCPB_TOKEN, FIVEM_EXECUTABLE, FIVEM_CONSOLE_CAPACITY, FIVEM_QUIET_MS, FIVEM_COMMAND_TIMEOUT_MS, FIVEM_MCP_DEBUGค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"fivem": {
"command": "npx",
"args": [
"-y",
"fivem-mcp-server"
],
"env": {
"FIVEM_HOST": "ใส่ค่าของคุณ",
"FIVEM_CLIENT_DEVCON_PORT": "ใส่ค่าของคุณ",
"FIVEM_RCON_ADDRESS": "ใส่ค่าของคุณ",
"FIVEM_RCON_PASSWORD": "ใส่ค่าของคุณ",
"FIVEM_SERVER_LOG": "ใส่ค่าของคุณ",
"FIVEM_MCPB_TOKEN": "ใส่ค่าของคุณ",
"FIVEM_EXECUTABLE": "ใส่ค่าของคุณ",
"FIVEM_CONSOLE_CAPACITY": "ใส่ค่าของคุณ",
"FIVEM_QUIET_MS": "ใส่ค่าของคุณ",
"FIVEM_COMMAND_TIMEOUT_MS": "ใส่ค่าของคุณ",
"FIVEM_MCP_DEBUG": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add fivem --env FIVEM_HOST='ใส่ค่าของคุณ' --env FIVEM_CLIENT_DEVCON_PORT='ใส่ค่าของคุณ' --env FIVEM_RCON_ADDRESS='ใส่ค่าของคุณ' --env FIVEM_RCON_PASSWORD='ใส่ค่าของคุณ' --env FIVEM_SERVER_LOG='ใส่ค่าของคุณ' --env FIVEM_MCPB_TOKEN='ใส่ค่าของคุณ' --env FIVEM_EXECUTABLE='ใส่ค่าของคุณ' --env FIVEM_CONSOLE_CAPACITY='ใส่ค่าของคุณ' --env FIVEM_QUIET_MS='ใส่ค่าของคุณ' --env FIVEM_COMMAND_TIMEOUT_MS='ใส่ค่าของคุณ' --env FIVEM_MCP_DEBUG='ใส่ค่าของคุณ' -- npx -y fivem-mcp-serverเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"fivem": {
"command": "npx",
"args": [
"-y",
"fivem-mcp-server"
],
"env": {
"FIVEM_HOST": "ใส่ค่าของคุณ",
"FIVEM_CLIENT_DEVCON_PORT": "ใส่ค่าของคุณ",
"FIVEM_RCON_ADDRESS": "ใส่ค่าของคุณ",
"FIVEM_RCON_PASSWORD": "ใส่ค่าของคุณ",
"FIVEM_SERVER_LOG": "ใส่ค่าของคุณ",
"FIVEM_MCPB_TOKEN": "ใส่ค่าของคุณ",
"FIVEM_EXECUTABLE": "ใส่ค่าของคุณ",
"FIVEM_CONSOLE_CAPACITY": "ใส่ค่าของคุณ",
"FIVEM_QUIET_MS": "ใส่ค่าของคุณ",
"FIVEM_COMMAND_TIMEOUT_MS": "ใส่ค่าของคุณ",
"FIVEM_MCP_DEBUG": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"fivem": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"fivem-mcp-server"
],
"env": {
"FIVEM_HOST": "ใส่ค่าของคุณ",
"FIVEM_CLIENT_DEVCON_PORT": "ใส่ค่าของคุณ",
"FIVEM_RCON_ADDRESS": "ใส่ค่าของคุณ",
"FIVEM_RCON_PASSWORD": "ใส่ค่าของคุณ",
"FIVEM_SERVER_LOG": "ใส่ค่าของคุณ",
"FIVEM_MCPB_TOKEN": "ใส่ค่าของคุณ",
"FIVEM_EXECUTABLE": "ใส่ค่าของคุณ",
"FIVEM_CONSOLE_CAPACITY": "ใส่ค่าของคุณ",
"FIVEM_QUIET_MS": "ใส่ค่าของคุณ",
"FIVEM_COMMAND_TIMEOUT_MS": "ใส่ค่าของคุณ",
"FIVEM_MCP_DEBUG": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
FIVEM_HOST envFIVEM_CLIENT_DEVCON_PORT envFIVEM_RCON_ADDRESS envFIVEM_SERVER_LOG envFIVEM_EXECUTABLE envFIVEM_CONSOLE_CAPACITY envFIVEM_QUIET_MS envFIVEM_COMMAND_TIMEOUT_MS envFIVEM_MCP_DEBUG envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub ziyacivan ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใส่ค่าเหล่านี้: FIVEM_RCON_PASSWORD, FIVEM_MCPB_TOKEN
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.6.0) เข้า registry 2 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, sync. labs
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Lipsync videos, dub them into other languages, make talking videos and open sync. Studio.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
An MCP (Model Context Protocol) server that lets AI agents — Claude, Qwen, or anything that speaks MCP — build, run and live-test FiveM servers from the same machine.
It is the missing test layer for the "did it actually work in-game?" question: the agent can run real console commands, watch both the server log and the *live F8 console of a running FiveM client*, wait for specific output, and react — without you touching the keyboard.
agent (Claude / Qwen / …)
│ MCP over stdio ▼ fivem-mcp-server ──► UDP RCON / getinfo ──► FXServer (game port, e.g. 30120) ──► TCP devcon (29200/29300) ──► FiveM Legacy client F8 console ──► tail ─────────────────────► FXServer's redirected stdout log
v0.5 drives the whole loop: server console (RCON), client F8 console (devcon), the game window (launch, focus, screenshot, keyboard/mouse) and an in-game bridge (mcpb) for natives, exports and NUI callbacks — plus ready-made test prompts. Tools answer with structured content, carry MCP annotations, and stop as soon as the client cancels. All of it live-verified against a real FXServer + FiveM Legacy client (see docs/plan.md and scripts/live-*.mjs).
| Channel | Address |
|---|---|
| npm | fivem-mcp-server — npx -y fivem-mcp-server |
| MCP Registry | io.github.ziyacivan/fivem-mcp (registry.modelcontextprotocol.io) |
| Source releases | GitHub Releases, tagged vX.Y.Z |
The repository's GitHub Packages sidebar is deliberately empty: the artifact lives on npmjs.com, not GitHub Packages — the latter would force a scoped @ziyacivan/ package name and a second registry for no benefit.
client_* tools since devcon binds to localhost by default).rcon_password set for server_command).Published on npm — no clone needed. Add it to Claude Code in one line:
claude mcp add fivem -s user \
-e FIVEM_RCON_PASSWORD=your-rcon-password \ -e FIVEM_SERVER_LOG=C:\FXServer\my-data\server.log \ -- npx -y fivem-mcp-server
(-s user = available in every project; drop it for a per-project entry. Verify with claude mcp get fivem — status should read ✓ Connected. Remove with claude mcp remove fivem -s user.)
For a shared project config, put .mcp.json in the repo root and commit it — Claude Code asks to approve it on first open, and env values can be interpolated from your local .env-less shell via ${VAR} expansion:
{
"mcpServers": { "fivem": { "command": "npx", "args": ["-y", "fivem-mcp-server"], "env": { "FIVEM_RCON_PASSWORD": "${FIVEM_RCON_PASSWORD}", "FIVEM_SERVER_LOG": "${FIVEM_SERVER_LOG}" } } } }
For Claude Desktop (or any client with JSON config), add to claude_desktop_config.json:
{
"mcpServers": { "fivem": { "command": "npx", "args": ["-y", "fivem-mcp-server"], "env": { "FIVEM_RCON_PASSWORD": "your-rcon-password" } } } }
The server is also listed in the MCP Registry as io.github.ziyacivan/fivem-mcp. Building from source (development):
git clone https://github.com/ziyacivan/fivem-mcp
cd fivem-mcp && pnpm install && pnpm build claude mcp add fivem -- node ./dist/index.js # points at your working copy
| Variable | Default | Meaning |
|---|---|---|
FIVEM_HOST | 127.0.0.1 | Machine running the FiveM client (devcon host) |
FIVEM_EXECUTABLE | %LOCALAPPDATA%\FiveM\FiveM.exe | FiveM.exe for the launch tool |
FIVEM_CLIENT_DEVCON_PORT | 29200 then 29300 | Override the client devcon port |
FIVEM_RCON_ADDRESS | FIVEM_HOST:30120 | FXServer game port (UDP RCON + getinfo) |
FIVEM_RCON_PASSWORD | — | Matches rcon_password in server.cfg; needed by server_command |
FIVEM_SERVER_LOG | — | Path to FXServer's redirected stdout; enables server-side read_console / wait_for_console. Not needed by the bridge since v0.5 (results poll in-band) — it is the pre-0.5 fallback transport |
FIVEM_MCPB_TOKEN | — | Matches mcpb_token on the server; sent with every bridge request |
FIVEM_CONSOLE_CAPACITY | 5000 | Client console lines kept in the ring buffer |
FIVEM_QUIET_MS | 400 | Consider command output done after this quiet period |
FIVEM_COMMAND_TIMEOUT_MS | 5000 | Default max wait for client_command output |
FIVEM_MCP_DEBUG | — | 1 traces devcon frames and RCON round-trips on stderr |
| Tool | What it does |
|---|---|
status | Connection state: RCON, log file, client devcon. Call first. |
server_info | getinfo over UDP — hostname, players, max clients, protocol, game build. No credentials needed. |
server_command | Any server console command over UDP RCON; returns the captured output. |
client_command | Types into the F8 console of a running Legacy client over devcon (nothing steals focus). This is the local console command layer — connect, quit, tooling; RegisterCommand chat commands are a different system (use server_command, which runs with console privileges, or the input/bridge tools). Returns the console lines it printed. |
read_console | Recent lines: client = live devcon stream (with afterSeq paging), server = tail of FIVEM_SERVER_LOG. Filter by channel/contains/pattern. |
wait_for_console | Block until a line matching a regex appears — your assertion primitive. |
list_commands | Every command the client console knows (devcon handshake). |
launch | Start FiveM, optionally straight into host:port (default: the configured server). |
quit_game | Graceful quit over devcon; force kills the FiveM process tree. |
window_status | Game window existence, title, pid, rect, foreground state. |
focus_window / restore_focus | Bring the game forward / give focus back to your window. Input tools focus automatically. |
screenshot | PNG of the game window (PrintWindow, screen-BitBlt fallback). Downscaled — default 900, optional crop rect. Every shot costs transcript tokens all session: prefer text probes, shoot small. |
press_key / hold_key / release_key | Real scan-code input — GTA's DirectInput ignores VK-only injection. Held keys are released if the process dies. |
type_text | Literal Unicode events — the channel the F8 console and chat NUI read. |
mouse_move / click / scroll | Relative moves drive the camera; absolute coordinates position the cursor for NUI. |
wait | Pause between actions (loading screens, walk cycles). |
read_client_log | The newest CitizenFX_log_*.log from the FiveM install. |
bridge | Invoke the mcpb bridge resource: ping, players, poll, call_export, trigger_event (server half) and ping, position, teleport, freeze, call_native, send_nui, nui_callback (client half). op is validated against the chosen target. |
Two workflows are shipped as MCP prompts, distilled from the live-verified loops:
bridge/)Client-side testing (natives, NUI callbacks, position) is outside what devcon and RCON can reach — the small companion resource closes that gap and ships in this repo.
# on the dev server
cp -r bridge/ /resources/mcpb # or a junction
and point this server at it with FIVEM_MCPB_TOKEN. Then:
bridge { target: "client", src: 1, op: "position" }
bridge { target: "server", op: "call_export", args: "{\"resource\":\"myres\",\"method\":\"money\",\"args\":[1]}" }
Client results come back through an in-band queue polled over RCON (~100 ms granularity since v0.5 — no log file needed; pre-0.5 resources still fall back to the log tail).
Dev servers only. mcpb_enabled defaults to false, the command is accepted only from the console/RCON (never from a player), and the token is checked when set — but call_native is exactly as safe as the console it runs behind. Keep RCON and this bridge off anything you care about; see SECURITY.md. The full wire contract: docs/protocol.md §4.
server_command: "ensure my-resource"wait_for_console: target=server, pattern="Started resource my-resource|Error"client_command: "connect localhost:30120" drives the join itself, then read_console: target=client catches client-side console output that never reaches the server log.127.0.0.1 unless the client is started with -devcon (then 0.0.0.0); this tool assumes the loopback default and never needs more. Do not tunnel it.rcon_password strong; FIVEM_RCON_PASSWORD lives in your MCP config — protect that file the same way.server_command as giving the agent root on your box the moment it can exec anything; run it only against development servers.pnpm test # vitest: fake devcon/rcon servers, byte-level SendInput/PNG checks, bridge contract, docs drift
pnpm typecheck pnpm check # biome pnpm build # -> dist/ pnpm run ci # all of the above (plain pnpm ci is a pnpm builtin and errors)
Releasing: move the Unreleased changelog notes under the new version heading, then pnpm version (bumps and syncs server.json + the bridge manifest, and tags), npm publish from your machine (prepublishOnly runs the full gate), and git push --follow-tags. The Release workflow then re-runs the gate, creates the GitHub Release from CHANGELOG.md, and registers the version with the MCP Reg
ตัดมาแค่ช่วงต้น อ่านต่อใน repo