You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e91fef9
Browse filesBrowse the repository at this point in the historyBrowse files
docs: document all 10 MCP tools and configuration in mcp-server README (#46)
The MCP Server page listed 4 of the 10 tools, no parameters, and no
configuration, and its data list omitted docs_index.json.
- Tools table generated from server.py signatures with parameters and
allowed values for all 10 tools.
- Configuration table for the txAdmin, data-path and scaffold-root
variables with defaults.
- Data files list matches mcp-server/data/, plus where scaffolded files
land and how to run the tests.
Fixes#46
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copy file name to clipboardExpand all lines: mcp-server/README.md
+30-10Lines changed: 30 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,12 +4,20 @@ A Model Context Protocol (MCP) server that provides AI-powered tools for FiveM a
4
4
5
5
## Tools
6
6
7
-
| Tool | Description |
8
-
|------|-------------|
9
-
|`scaffold_resource_tool`| Create a new resource with boilerplate files |
10
-
|`lookup_native_tool`| Search the native function database by name or description |
11
-
|`generate_manifest_tool`| Generate a properly formatted fxmanifest.lua |
12
-
|`search_events_tool`| Search the event reference database |
7
+
| Tool | Parameters | Description |
8
+
|------|------------|-------------|
9
+
|`scaffold_resource_tool`|`name`, `game` (gta5, rdr3, both), `language` (lua, javascript, csharp), `framework` (standalone, esx, qbcore, qbox, oxcore, vorp, rsg), `workspace_path`?, `output_path`?, `overwrite`? (default false) | Create a resource with boilerplate files at `<output_path or workspace_path>/<name>`. Refuses to write into an existing non-empty directory unless `overwrite` is true. |
10
+
|`lookup_native_tool`|`query`?, `game`? (gta5, rdr3; default gta5), `side`? (client, server, shared), `category`? (e.g. VEHICLE) | Search natives by name (any case, with or without underscores), hash, or description; browse categories. |
11
+
|`generate_manifest_tool`|`name`, `game`, `language`, `framework`, `scripts`?, `dependencies`?, `has_nui`?, `workspace_path`? | Return `fxmanifest.lua` content; with `workspace_path`, scripts, author and NUI page are detected from the resource. |
The server is configured to run automatically via Cursor's MCP integration (see `.cursor/mcp.json`). To run it manually:
38
+
The server runs automatically through your MCP client (see the MCP Server section of the main README for Cursor, Claude Code and generic stdio setup). To run it manually:
31
39
32
40
```bash
33
41
python server.py
34
42
```
35
43
44
+
It finds `data/` next to `server.py`, so it can be started from any working directory.
45
+
46
+
### Run the tests
47
+
48
+
```bash
49
+
pip install -r requirements-dev.txt
50
+
python -m pytest
51
+
```
52
+
36
53
## Configuration
37
54
38
55
| Variable | Required | Default | Description |
39
56
|----------|----------|---------|-------------|
40
57
|`TXADMIN_URL`| No |`http://127.0.0.1:40120`| Base URL of the txAdmin panel |
41
58
|`TXADMIN_USERNAME`| For txAdmin tools | - | Admin username used to log into the panel |
42
59
|`TXADMIN_PASSWORD`| For txAdmin tools | - | Admin password |
60
+
|`CFX_DATA_PATH`| No |`data/` next to `server.py`| Directory with the native, event and docs data. `CFX_NATIVES_PATH` is accepted as an alias. |
61
+
|`CFX_SCAFFOLD_ROOT`| No | server working directory | Where `scaffold_resource_tool` creates resources when neither `output_path` nor `workspace_path` is given |
43
62
44
63
Set the txAdmin credentials in your OS or shell environment, never in a committed file such as `.cursor/mcp.json` (see `skills/txadmin-integration/SKILL.md`).
45
64
46
65
## Data files
47
66
48
67
The `data/` directory contains JSON databases:
49
68
50
-
-`natives_gta5.json` - GTA5 native function reference
51
-
-`natives_rdr3.json` - RDR3 native function reference
69
+
-`natives_gta5.json` - GTA5 native function reference (game natives plus the CFX platform natives that apply to GTA5)
70
+
-`natives_rdr3.json` - RDR3 native function reference (game natives plus the CFX platform natives that apply to RDR3)
52
71
-`events.json` - Common FiveM/RedM events
72
+
-`docs_index.json` - Offline index of docs.fivem.net pages (title, URL, section, text snippet)
53
73
54
-
These are snapshots used for offline lookup. For the most current data, refer to the official native reference at https://docs.fivem.net/natives/.
74
+
These are snapshots used for offline lookup, refreshed by the `update-natives.yml` and `update-docs-index.yml` workflows. For the most current data, refer to the official native reference at https://docs.fivem.net/natives/.
0 commit comments