Skip to content

txAdmin skill tells users to put the admin password in tracked .cursor/mcp.json #42

Closed

Description

@TMHSDigital

Summary

The txAdmin skill tells Cursor users to put TXADMIN_USERNAME and TXADMIN_PASSWORD in the env block of .cursor/mcp.json, which is a tracked file in this repo (and commonly committed in users' own repos). Following the documented setup puts admin credentials into a version-controlled file. The repo itself contains only placeholder values.

Where

  • skills/txadmin-integration/SKILL.md:34 ("add them to the env block of the server entry in .cursor/mcp.json")
  • skills/txadmin-integration/SKILL.md:36-51 (example with "TXADMIN_PASSWORD": "your-admin-password")
  • skills/txadmin-integration/SKILL.md:24 ("never ... written to the repository")
  • .cursor/mcp.json (tracked)
  • .gitignore:25-27 (.cursor/* then !.cursor/mcp.json)

Details

.gitignore deliberately un-ignores .cursor/mcp.json, and git ls-files lists it. The documented workflow is to work inside the clone, so a user who follows the skill and then commits or opens a PR can push a txAdmin admin password. The skill's own statement at line 24 contradicts its example. README, docs/GETTING-STARTED.md and mcp-server/README.md do not mention these variables at all, so the skill is the only guidance.

Impact

A txAdmin account with control.server, commands.resources or players.kick (often a full admin) can stop the server and manage players. Committing its password, especially to a public repo, exposes control of the game server's panel.

Steps to reproduce

  1. Follow skills/txadmin-integration/SKILL.md:34-51 inside the clone.
  2. Run git status: .cursor/mcp.json is modified and staged changes would include the password.

Suggested fix

  • Recommend setting the variables in the user's shell or OS environment, or in the user-level ~/.cursor/mcp.json, which is never committed. If Cursor supports env interpolation in mcp.json (for example ${env:TXADMIN_PASSWORD}), show that form instead of literals.
  • Add an explicit warning not to put credentials in the tracked project file.
  • Optionally support a local, git-ignored override file.
  • Add the env var table (with TXADMIN_URL default http://127.0.0.1:40120) to README and mcp-server/README.md.

Acceptance criteria

  • No doc shows credential values inside a tracked config file.
  • The skill explains where to set the variables safely and warns against committing them.
  • README and mcp-server/README.md list the txAdmin env vars.

Getting started

  • Relevant files: skills/txadmin-integration/SKILL.md, .gitignore, README.md, mcp-server/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: Cursor MCP configuration docs

Filed by repo-audit/full-audit at 701824d. Severity: medium. Effort: S. audit-key: documentation|skills/txadmin-integration/SKILL.md|TXADMIN_PASSWORD

Activity

  1. added
    documentation
    good first issue
    on Nov 21, 2026
  2. TMHSDigital commented on Nov 21, 2026

    @TMHSDigital
    OwnerAuthor

    Fixed in 5149e6e.

    The txAdmin skill now tells users to set the credentials in the OS/shell environment, warns against putting them in project files like .cursor/mcp.json, and shows ${env:NAME} references instead of literal values; README and mcp-server/README document the environment variables with defaults.

    Verified: git grep finds no literal credential values in any tracked config or doc.

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

    documentationgood first issueseverity: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions