Repository navigation
Description
Summary
The only MCP server registration is the repo-local .cursor/mcp.json, which uses paths relative to this repository. Users who install the plugin and open their own resource folder, and users of Claude Code or other MCP clients, get no working server. The server's data directory also defaults to a CWD-relative ./data.
Where
.cursor-plugin/plugin.json(declaresskillsandrules, no MCP server entry).cursor/mcp.json:4-8(python mcp-server/server.py,CFX_NATIVES_PATH ./mcp-server/data)mcp-server/server.py:28(NATIVES_PATH = os.environ.get("CFX_NATIVES_PATH", "./data"))mcp-server/server.py:66, 110, 136(the same path reused for natives, events and docs)README.md:228-238(MCP Server section covers Cursor only)CLAUDE.md:11("Works with ... Claude Code ... and any MCP-compatible client")
Details
plugin.jsonhas no MCP server declaration, so installing the plugin (symlink into the Cursor plugins folder) registers the skills and rules but not the 10 tools..cursor/mcp.jsonresolves only when the open workspace is this repo, since bothmcp-server/server.pyand./mcp-server/dataare relative.NATIVES_PATHis relative to the process CWD. It works forcd mcp-server && python server.pyor with the env override. Any other launch (an absolute script path from a user project, or a client config without the env var) makes native, event and docs lookups fail with "database not found". The variable name also covers events and docs, which is confusing.- No
.mcp.json,claude mcp addexample, or generic stdio config is documented, despite the "any MCP-compatible client" claim.
Where scaffolded files are written is tracked separately in "scaffold_resource_tool overwrites existing files and writes relative to the CWD".
Impact
Skills tell the agent to call MCP tools that are not registered (or are registered with paths that do not resolve), so the agent hits dead ends. Claude Code users have no documented setup. This affects every installation outside a checkout opened as the workspace.
Steps to reproduce
- Symlink the repo into the Cursor plugins directory as documented in
CLAUDE.md. - Open an unrelated resource folder in Cursor and ask the agent to look up
GetEntityCoords: no cfx-dev-tools tools are available. - Separately, from any directory other than
mcp-server/, runpython <repo>/mcp-server/server.pywith no env and calllookup_native_tool("GetEntityCoords"): it returns "native database not found".
Suggested fix
- Default the data dir to
Path(__file__).resolve().parent / "data"when no env var is set. IntroduceCFX_DATA_PATHand keepCFX_NATIVES_PATHas an alias. - Declare the MCP server in the plugin manifest using the Cursor plugin MCP field, with a path relative to the plugin root (confirm the exact key supported by the current Cursor plugin spec).
- Add a root
.mcp.jsonfor Claude Code and a README section withclaude mcp add cfx-dev-tools -- python /abs/path/to/mcp-server/server.pyplus a generic stdio config. - Optionally add a
pyproject.tomlconsole script souvx/pipxcan launch the server.
Acceptance criteria
-
python /abs/path/mcp-server/server.pylaunched from any CWD finds the native, event and docs data with no env vars. - Installing the plugin and opening an unrelated folder in Cursor exposes the 10 tools (or the docs explain the one required step).
- README documents setup for Claude Code and a generic MCP client.
-
CFX_NATIVES_PATHstill works for existing configs.
Getting started
- Relevant files:
mcp-server/server.py,.cursor-plugin/plugin.json,.cursor/mcp.json,README.md - How to run checks: there is no test suite yet; run the MCP server with
cd mcp-server && pip install -r requirements.txt && python server.py, and CI checks live in.github/workflows/validate.yml - Related docs:
mcp-server/README.md,docs/GETTING-STARTED.md
Filed by repo-audit/full-audit at 701824d. Severity: high. Effort: M. audit-key: enhancement|.cursor-plugin/plugin.json|mcpServers
Activity
TMHSDigital commentedon Nov 21, 2026
Fixed in 2a2e46a.
The data directory now defaults to mcp-server/data next to server.py (CFX_DATA_PATH, with CFX_NATIVES_PATH as alias); added mcp.json referenced from plugin.json
mcpServers(same convention as the sibling Developer Tools plugins), a root .mcp.json for Claude Code, and README setup for Claude Code and generic stdio clients.Verified: Loaded the server from an unrelated working directory: native, event and docs lookups all returned results;
CFX_NATIVES_PATH=./datastill honored. The Cursor plugin install path was not tested in a live Cursor instance.