Skip to content

No working MCP server registration for plugin installs or non-Cursor clients #32

Closed

Description

@TMHSDigital

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 (declares skills and rules, 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.json has 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.json resolves only when the open workspace is this repo, since both mcp-server/server.py and ./mcp-server/data are relative.
  • NATIVES_PATH is relative to the process CWD. It works for cd mcp-server && python server.py or 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 add example, 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

  1. Symlink the repo into the Cursor plugins directory as documented in CLAUDE.md.
  2. Open an unrelated resource folder in Cursor and ask the agent to look up GetEntityCoords: no cfx-dev-tools tools are available.
  3. Separately, from any directory other than mcp-server/, run python <repo>/mcp-server/server.py with no env and call lookup_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. Introduce CFX_DATA_PATH and keep CFX_NATIVES_PATH as 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.json for Claude Code and a README section with claude mcp add cfx-dev-tools -- python /abs/path/to/mcp-server/server.py plus a generic stdio config.
  • Optionally add a pyproject.toml console script so uvx/pipx can launch the server.

Acceptance criteria

  • python /abs/path/mcp-server/server.py launched 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_PATH still 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

  1. TMHSDigital commented on Nov 21, 2026

    @TMHSDigital
    OwnerAuthor

    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=./data still honored. The Cursor plugin install path was not tested in a live Cursor instance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementseverity: high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions