fc26-mcp 0.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
fc26_mcp-0.2.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Afjal
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,3 @@
1
+ include README.md README_LE_BRIDGE.md LICENSE mcp_config.json
2
+ recursive-include src/fc26_mcp/data *.xml
3
+ recursive-include src/fc26_mcp *.lua
@@ -0,0 +1,175 @@
1
+ Metadata-Version: 2.4
2
+ Name: fc26-mcp
3
+ Version: 0.2.0
4
+ Summary: MCP servers for EA SPORTS FC 26 squad editing and Live Editor control
5
+ Author: Afjal
6
+ License: MIT
7
+ Keywords: fc26,fifa,mcp,live-editor,squad-file,modding
8
+ Classifier: Development Status :: 4 - Beta
9
+ Classifier: Intended Audience :: End Users/Desktop
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Programming Language :: Python :: 3.8
13
+ Classifier: Programming Language :: Python :: 3.9
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Topic :: Games/Entertainment
18
+ Requires-Python: >=3.8
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Dynamic: license-file
22
+
23
+ # FC 26 MCP
24
+
25
+ [![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/)
26
+
27
+ MCP servers for EA SPORTS FC 26. Works with Claude, Codex, Pi, Cursor, Cline, Windsurf, and any other agent that supports the [Model Context Protocol](https://modelcontextprotocol.io/).
28
+
29
+ Two servers are included:
30
+
31
+ 1. **`fc26-mcp-file`** — parses and edits raw `Squads*` files in FBCHUNKS/T3DB format.
32
+ 2. **`fc26-mcp-live`** — controls FC 26 through [xAranaktu's Live Editor](https://www.patreon.com/collection/1744905) Lua API while the game runs.
33
+
34
+ ---
35
+
36
+ ## Install
37
+
38
+ From PyPI:
39
+
40
+ ```bash
41
+ pip install fc26-mcp
42
+ ```
43
+
44
+ From GitHub:
45
+
46
+ ```bash
47
+ pip install git+https://github.com/INSANE0777/Fc26-live-editor-mcp.git
48
+ ```
49
+
50
+ From source:
51
+
52
+ ```bash
53
+ git clone https://github.com/INSANE0777/Fc26-live-editor-mcp.git
54
+ cd fc26-mcp
55
+ pip install -e .
56
+ ```
57
+
58
+ ---
59
+
60
+ ## Quick start
61
+
62
+ ### 1. Squad file MCP
63
+
64
+ ```bash
65
+ fc26-mcp-file --squad-file "C:\Path\To\SquadsFile"
66
+ ```
67
+
68
+ The bundled FC 26 metadata is used automatically. You can override it with `--meta-file`.
69
+
70
+ ### 2. Live Editor MCP bridge
71
+
72
+ 1. Launch FC 26 and inject Live Editor.
73
+ 2. Load Career Mode.
74
+ 3. Install the Lua bridge into Live Editor once:
75
+
76
+ ```bash
77
+ fc26-mcp-live --install-lua "C:\Path\To\FC 26 LE v26.3.5\lua\scripts"
78
+ ```
79
+
80
+ 4. In Live Editor, go to **Features → Lua Engine** and run `le_bridge.lua`.
81
+ 5. Start the MCP server:
82
+
83
+ ```bash
84
+ fc26-mcp-live --bridge-root "C:\Path\To\FC 26 LE v26.3.5\le_bridge"
85
+ ```
86
+
87
+ ---
88
+
89
+ ## Tools
90
+
91
+ ### File parser
92
+ - `list_clubs`
93
+ - `search_players`
94
+ - `get_player_club`
95
+ - `plan_transfers`
96
+ - `apply_transfers`
97
+
98
+ ### Live Editor bridge (28 tools)
99
+ - Core: `le_ping`, `le_list_clubs`, `le_search_players`, `le_get_player_club`
100
+ - Transfers/loans: `le_transfer_player`, `le_loan_player`, `le_release_player`, `le_terminate_loan`
101
+ - Lists: `le_add_to_transfer_list`, `le_add_to_loan_list`, `le_remove_from_lists`, `le_is_transfer_listed`, `le_is_loan_listed`
102
+ - Player state: `le_set_player_sharpness`, `le_set_player_morale`, `le_set_player_form`, `le_set_player_fitness`
103
+ - Budget: `le_get_transfer_budget`, `le_set_transfer_budget`
104
+ - Database editor: `le_get_db_tables`, `le_get_db_fields`, `le_get_db_rows`, `le_edit_db_field`, `le_insert_db_row`, `le_delete_db_row`
105
+ - Stats: `le_get_players_stats`, `le_get_player_stats`
106
+ - Power user: `le_execute_lua`
107
+
108
+ See [README_LE_BRIDGE.md](README_LE_BRIDGE.md) for detailed Live Editor docs.
109
+
110
+ ---
111
+
112
+ ## MCP client config
113
+
114
+ Use `mcp_config.json` as a template, or add these servers manually:
115
+
116
+ ```json
117
+ {
118
+ "mcpServers": {
119
+ "fc26-file": {
120
+ "command": "fc26-mcp-file",
121
+ "args": [
122
+ "--squad-file",
123
+ "C:\Path\To\SquadsFile"
124
+ ]
125
+ },
126
+ "fc26-live": {
127
+ "command": "fc26-mcp-live",
128
+ "args": [
129
+ "--bridge-root",
130
+ "C:\Path\To\FC 26 LE v26.3.5\le_bridge"
131
+ ]
132
+ }
133
+ }
134
+ }
135
+ ```
136
+
137
+ ### Claude Desktop
138
+
139
+ Open `claude_desktop_config.json` and add the server blocks above.
140
+
141
+ ### Cursor
142
+
143
+ Open **Cursor Settings → MCP → Add MCP Server**, paste the command and args.
144
+
145
+ ### Cline / Roo Code
146
+
147
+ Add the JSON to your MCP settings file.
148
+
149
+ ### Pi
150
+
151
+ Pi detects stdio MCP servers from `mcp_config.json` or your workspace settings.
152
+
153
+ ---
154
+
155
+ ## Environment variables
156
+
157
+ | Variable | Purpose |
158
+ |----------|---------|
159
+ | `FIFA_SQUAD_FILE` | Default squad file path for `fc26-mcp-file` |
160
+ | `FIFA_META_FILE` | Override bundled FC 26 metadata XML |
161
+ | `FC26_BRIDGE_ROOT` | Bridge folder for `fc26-mcp-live` |
162
+
163
+ ---
164
+
165
+ ## Safety
166
+
167
+ - Always back up your squad files and Career Mode saves before editing.
168
+ - Career Mode tools only work inside Career Mode.
169
+ - `le_execute_lua` can run arbitrary code — use it carefully.
170
+
171
+ ---
172
+
173
+ ## License
174
+
175
+ MIT
@@ -0,0 +1,153 @@
1
+ # FC 26 MCP
2
+
3
+ [![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/)
4
+
5
+ MCP servers for EA SPORTS FC 26. Works with Claude, Codex, Pi, Cursor, Cline, Windsurf, and any other agent that supports the [Model Context Protocol](https://modelcontextprotocol.io/).
6
+
7
+ Two servers are included:
8
+
9
+ 1. **`fc26-mcp-file`** — parses and edits raw `Squads*` files in FBCHUNKS/T3DB format.
10
+ 2. **`fc26-mcp-live`** — controls FC 26 through [xAranaktu's Live Editor](https://www.patreon.com/collection/1744905) Lua API while the game runs.
11
+
12
+ ---
13
+
14
+ ## Install
15
+
16
+ From PyPI:
17
+
18
+ ```bash
19
+ pip install fc26-mcp
20
+ ```
21
+
22
+ From GitHub:
23
+
24
+ ```bash
25
+ pip install git+https://github.com/INSANE0777/Fc26-live-editor-mcp.git
26
+ ```
27
+
28
+ From source:
29
+
30
+ ```bash
31
+ git clone https://github.com/INSANE0777/Fc26-live-editor-mcp.git
32
+ cd fc26-mcp
33
+ pip install -e .
34
+ ```
35
+
36
+ ---
37
+
38
+ ## Quick start
39
+
40
+ ### 1. Squad file MCP
41
+
42
+ ```bash
43
+ fc26-mcp-file --squad-file "C:\Path\To\SquadsFile"
44
+ ```
45
+
46
+ The bundled FC 26 metadata is used automatically. You can override it with `--meta-file`.
47
+
48
+ ### 2. Live Editor MCP bridge
49
+
50
+ 1. Launch FC 26 and inject Live Editor.
51
+ 2. Load Career Mode.
52
+ 3. Install the Lua bridge into Live Editor once:
53
+
54
+ ```bash
55
+ fc26-mcp-live --install-lua "C:\Path\To\FC 26 LE v26.3.5\lua\scripts"
56
+ ```
57
+
58
+ 4. In Live Editor, go to **Features → Lua Engine** and run `le_bridge.lua`.
59
+ 5. Start the MCP server:
60
+
61
+ ```bash
62
+ fc26-mcp-live --bridge-root "C:\Path\To\FC 26 LE v26.3.5\le_bridge"
63
+ ```
64
+
65
+ ---
66
+
67
+ ## Tools
68
+
69
+ ### File parser
70
+ - `list_clubs`
71
+ - `search_players`
72
+ - `get_player_club`
73
+ - `plan_transfers`
74
+ - `apply_transfers`
75
+
76
+ ### Live Editor bridge (28 tools)
77
+ - Core: `le_ping`, `le_list_clubs`, `le_search_players`, `le_get_player_club`
78
+ - Transfers/loans: `le_transfer_player`, `le_loan_player`, `le_release_player`, `le_terminate_loan`
79
+ - Lists: `le_add_to_transfer_list`, `le_add_to_loan_list`, `le_remove_from_lists`, `le_is_transfer_listed`, `le_is_loan_listed`
80
+ - Player state: `le_set_player_sharpness`, `le_set_player_morale`, `le_set_player_form`, `le_set_player_fitness`
81
+ - Budget: `le_get_transfer_budget`, `le_set_transfer_budget`
82
+ - Database editor: `le_get_db_tables`, `le_get_db_fields`, `le_get_db_rows`, `le_edit_db_field`, `le_insert_db_row`, `le_delete_db_row`
83
+ - Stats: `le_get_players_stats`, `le_get_player_stats`
84
+ - Power user: `le_execute_lua`
85
+
86
+ See [README_LE_BRIDGE.md](README_LE_BRIDGE.md) for detailed Live Editor docs.
87
+
88
+ ---
89
+
90
+ ## MCP client config
91
+
92
+ Use `mcp_config.json` as a template, or add these servers manually:
93
+
94
+ ```json
95
+ {
96
+ "mcpServers": {
97
+ "fc26-file": {
98
+ "command": "fc26-mcp-file",
99
+ "args": [
100
+ "--squad-file",
101
+ "C:\Path\To\SquadsFile"
102
+ ]
103
+ },
104
+ "fc26-live": {
105
+ "command": "fc26-mcp-live",
106
+ "args": [
107
+ "--bridge-root",
108
+ "C:\Path\To\FC 26 LE v26.3.5\le_bridge"
109
+ ]
110
+ }
111
+ }
112
+ }
113
+ ```
114
+
115
+ ### Claude Desktop
116
+
117
+ Open `claude_desktop_config.json` and add the server blocks above.
118
+
119
+ ### Cursor
120
+
121
+ Open **Cursor Settings → MCP → Add MCP Server**, paste the command and args.
122
+
123
+ ### Cline / Roo Code
124
+
125
+ Add the JSON to your MCP settings file.
126
+
127
+ ### Pi
128
+
129
+ Pi detects stdio MCP servers from `mcp_config.json` or your workspace settings.
130
+
131
+ ---
132
+
133
+ ## Environment variables
134
+
135
+ | Variable | Purpose |
136
+ |----------|---------|
137
+ | `FIFA_SQUAD_FILE` | Default squad file path for `fc26-mcp-file` |
138
+ | `FIFA_META_FILE` | Override bundled FC 26 metadata XML |
139
+ | `FC26_BRIDGE_ROOT` | Bridge folder for `fc26-mcp-live` |
140
+
141
+ ---
142
+
143
+ ## Safety
144
+
145
+ - Always back up your squad files and Career Mode saves before editing.
146
+ - Career Mode tools only work inside Career Mode.
147
+ - `le_execute_lua` can run arbitrary code — use it carefully.
148
+
149
+ ---
150
+
151
+ ## License
152
+
153
+ MIT
@@ -0,0 +1,150 @@
1
+ # FC 26 Live Editor MCP Bridge
2
+
3
+ This MCP bridge lets an AI assistant control FC 26 **through Live Editor** while the game is running. It exposes most of the Live Editor Lua API as MCP tools.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ pip install fc26-mcp
9
+ ```
10
+
11
+ ## Files
12
+
13
+ After installation:
14
+
15
+ - `fc26-mcp-live` — MCP server command
16
+ - `fc26_mcp/le_bridge.lua` — bundled Lua bridge script (installed with the package)
17
+
18
+ You must copy `le_bridge.lua` into your Live Editor scripts folder once:
19
+
20
+ ```bash
21
+ fc26-mcp-live --install-lua "C:\Path\To\FC 26 LE v26.3.5\lua\scripts"
22
+ ```
23
+
24
+ ## How it works
25
+
26
+ 1. MCP server receives a tool call.
27
+ 2. It writes a JSON command file to `le_bridge/in/{id}.json`.
28
+ 3. The Lua script running in Live Editor picks up the command, executes it via Live Editor's API, and writes the result to `le_bridge/out/{id}.json`.
29
+ 4. MCP server reads the result and returns it.
30
+
31
+ ## Setup
32
+
33
+ 1. Launch FC 26 and inject Live Editor.
34
+ 2. Load Career Mode.
35
+ 3. Open Live Editor → **Features → Lua Engine**.
36
+ 4. Load and execute `lua/scripts/le_bridge.lua`.
37
+ - You should see `[MCP Bridge] Full MCP bridge started` in the Live Editor log.
38
+ 5. Start the MCP server:
39
+
40
+ ```bash
41
+ fc26-mcp-live --bridge-root "C:\Path\To\FC 26 LE v26.3.5\le_bridge"
42
+ ```
43
+
44
+ ## MCP client config
45
+
46
+ ```json
47
+ {
48
+ "mcpServers": {
49
+ "fc26-live-editor": {
50
+ "command": "fc26-mcp-live",
51
+ "args": [
52
+ "--bridge-root",
53
+ "C:\Path\To\FC 26 LE v26.3.5\le_bridge"
54
+ ]
55
+ }
56
+ }
57
+ }
58
+ ```
59
+
60
+ ## MCP tools
61
+
62
+ ### Core
63
+ - `le_ping` — check bridge connection
64
+ - `le_list_clubs` — list all teams
65
+ - `le_search_players` — search players by name
66
+ - `le_get_player_club` — show player's current club
67
+
68
+ ### Transfers / contracts
69
+ - `le_transfer_player` — transfer to a club
70
+ - `le_loan_player` — loan to a club
71
+ - `le_release_player` — release to free agents
72
+ - `le_terminate_loan` — end a loan
73
+ - `le_add_to_transfer_list`
74
+ - `le_add_to_loan_list`
75
+ - `le_remove_from_lists`
76
+ - `le_is_transfer_listed`
77
+ - `le_is_loan_listed`
78
+
79
+ ### Player state (Career Mode)
80
+ - `le_set_player_sharpness` (0-100)
81
+ - `le_set_player_morale` (0-100)
82
+ - `le_set_player_form` (0-100)
83
+ - `le_set_player_fitness` (5-95)
84
+
85
+ ### Club budget
86
+ - `le_get_transfer_budget`
87
+ - `le_set_transfer_budget`
88
+
89
+ ### Database editor
90
+ - `le_get_db_tables` — list accessible tables
91
+ - `le_get_db_fields` — list fields of a table
92
+ - `le_get_db_rows` — read rows from a table
93
+ - `le_edit_db_field` — edit a field in a row
94
+ - `le_insert_db_row` — insert a row
95
+ - `le_delete_db_row` — delete a row
96
+
97
+ ### Stats
98
+ - `le_get_players_stats`
99
+ - `le_get_player_stats`
100
+
101
+ ### Power user
102
+ - `le_execute_lua` — run arbitrary Lua code inside Live Editor (dangerous; use with care)
103
+
104
+ ## Example transfer
105
+
106
+ ```json
107
+ {
108
+ "name": "le_transfer_player",
109
+ "arguments": {
110
+ "playerid": 220901,
111
+ "new_teamid": 2,
112
+ "transfersum": 0,
113
+ "wage": 0,
114
+ "contract_length": 60
115
+ }
116
+ }
117
+ ```
118
+
119
+ Or by name:
120
+
121
+ ```json
122
+ {
123
+ "name": "le_transfer_player",
124
+ "arguments": {
125
+ "player": "Raya Martín",
126
+ "new_club": "Aston Villa"
127
+ }
128
+ }
129
+ ```
130
+
131
+ ## Example database edit
132
+
133
+ ```json
134
+ {
135
+ "name": "le_edit_db_field",
136
+ "arguments": {
137
+ "table": "players",
138
+ "match_field": "playerid",
139
+ "match_value": 220901,
140
+ "field": "overallrating",
141
+ "value": 99
142
+ }
143
+ }
144
+ ```
145
+
146
+ ## Important
147
+
148
+ - Career Mode tools only work inside **Career Mode**.
149
+ - Always back up your Career Mode save before running transfers or DB edits.
150
+ - The bridge times out after 30 seconds if the Lua script is not running.
@@ -0,0 +1,24 @@
1
+ {
2
+ "mcpServers": {
3
+ "fc26-squad-file": {
4
+ "command": "fc26-mcp-file",
5
+ "args": [
6
+ "--squad-file",
7
+ "C:\Users\Afjal\AppData\Local\EA SPORTS FC 26\settings\SquadsFIFER'sBeta1xRODE'sNewSeasonModAlpha3"
8
+ ],
9
+ "env": {
10
+ "FIFA_SQUAD_FILE": "C:\Users\Afjal\AppData\Local\EA SPORTS FC 26\settings\SquadsFIFER'sBeta1xRODE'sNewSeasonModAlpha3"
11
+ }
12
+ },
13
+ "fc26-live-editor": {
14
+ "command": "fc26-mcp-live",
15
+ "args": [
16
+ "--bridge-root",
17
+ "C:\Users\Afjal\Downloads\Example folder - Copy\LE\FC 26 LE v26.3.5\le_bridge"
18
+ ],
19
+ "env": {
20
+ "FC26_BRIDGE_ROOT": "C:\Users\Afjal\Downloads\Example folder - Copy\LE\FC 26 LE v26.3.5\le_bridge"
21
+ }
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,40 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "fc26-mcp"
7
+ version = "0.2.0"
8
+ description = "MCP servers for EA SPORTS FC 26 squad editing and Live Editor control"
9
+ readme = "README.md"
10
+ license = {text = "MIT"}
11
+ requires-python = ">=3.8"
12
+ authors = [
13
+ {name = "Afjal"}
14
+ ]
15
+ keywords = ["fc26", "fifa", "mcp", "live-editor", "squad-file", "modding"]
16
+ classifiers = [
17
+ "Development Status :: 4 - Beta",
18
+ "Intended Audience :: End Users/Desktop",
19
+ "License :: OSI Approved :: MIT License",
20
+ "Programming Language :: Python :: 3",
21
+ "Programming Language :: Python :: 3.8",
22
+ "Programming Language :: Python :: 3.9",
23
+ "Programming Language :: Python :: 3.10",
24
+ "Programming Language :: Python :: 3.11",
25
+ "Programming Language :: Python :: 3.12",
26
+ "Topic :: Games/Entertainment",
27
+ ]
28
+
29
+ [project.scripts]
30
+ fc26-mcp-file = "fc26_mcp.mcp_server:main"
31
+ fc26-mcp-live = "fc26_mcp.mcp_le_bridge:main"
32
+
33
+ [tool.setuptools]
34
+ package-dir = {"" = "src"}
35
+
36
+ [tool.setuptools.packages.find]
37
+ where = ["src"]
38
+
39
+ [tool.setuptools.package-data]
40
+ fc26_mcp = ["data/*.xml", "le_bridge.lua"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,3 @@
1
+ """FC 26 MCP package."""
2
+
3
+ __version__ = "0.2.0"