agentleFS
ralphkraussralphkrauss/agent-orchestrator/.cursor/rules/mcp-tool-configs.mdc

agent-orchestrator / rules

Cursor rule4 starsChanged 7 months agoMITView on GitHub

Secret handling and safety rules for MCP tool config files and repo-local MCP helper scripts

  • Reads credentials

The file

We split this mcp-tool-configs.mdc into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Never commit real tokens, API keys, .env contents, or user-level config.

    line 21
  2. Very specific:

    Prefer user-level secrets at ~/.config/agent-orchestrator/mcp-secrets.env, process environment, or local gh auth.

    line 27
  3. Very specific:

    Add new MCP servers to every supported client config in one pass: .mcp.json, .cursor/mcp.json, .codex/config.toml, and opencode.json.

    line 30
  4. Distinctive:

    Keep simple non-secret env near the command definition so reviewers can see what the server receives.

    line 32

≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
mcp-tool-configs.mdc
---
description: "Secret handling and safety rules for MCP tool config files and repo-local MCP helper scripts"
globs:
  - ".mcp.json"
  - ".cursor/mcp.json"
  - ".codex/config.toml"
  - "opencode.json"
  - "scripts/mcp-secret-bridge.mjs"
  - "scripts/init-mcp-secrets.mjs"
  - "scripts/gh-mcp-server.mjs"
  - "scripts/run-npx-mcp.mjs"
  - "docs/development/mcp-tooling.md"
  - "justfile"
alwaysApply: false
---
<!-- Generated from .agents/ by scripts/sync-ai-workspace.mjs. Do not edit directly. -->


# MCP Tool Configs

- Never commit real tokens, API keys, `.env` contents, or user-level config.
- Secret-bearing MCP server entries must launch through
  `scripts/mcp-secret-bridge.mjs`.
- The bridge may map canonical repo variables such as `GITHUB_TOKEN` to the
  child variable a server expects, such as `GITHUB_PERSONAL_ACCESS_TOKEN` or
  `GH_TOKEN`.
- Prefer user-level secrets at
  `~/.config/agent-orchestrator/mcp-secrets.env`, process environment, or
  local `gh` auth. Do not use repo-local secret files.
- Add new MCP servers to every supported client config in one pass:
  `.mcp.json`, `.cursor/mcp.json`, `.codex/config.toml`, and `opencode.json`.
- Keep simple non-secret env near the command definition so reviewers can see
  what the server receives.
- Guard high-risk CLI wrappers with blocked command patterns and client-side
  approval where supported.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.