agentleFS
giantswarmgiantswarm/pro/.cursor/rules/mcp-tools-usage.mdc

pro / rules

Cursor rule1 starsChanged 5 months agoApache-2.0View on GitHub

How to use the pro MCP server tools efficiently for operational tasks (issues, sub-issues, boards)

  • Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.

    Of the Cursor rule files we read, the 1,533 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository2 other files it gives its agents.

The file

We split this mcp-tools-usage.mdc into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Team/Kind/Status values: Use the display name with emoji, e.g.

    line 47

≈ “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-tools-usage.mdc
---
description: How to use the pro MCP server tools efficiently for operational tasks (issues, sub-issues, boards)
alwaysApply: true
---

# Using the pro MCP tools

This project IS the MCP server. When asked to perform operational tasks (list issues, migrate epics, manage sub-issues, query boards), use the running MCP tools directly via `CallMcpTool` with `server: "user-pro"`. Do NOT read the source code first.

## Workflow for operational tasks

1. **Skip code reading** -- the tools are already running. Don't read `src/lib/mcp/*.js` or `src/lib/rest-api.js` to understand how they work. The MCP tool schemas at `/mcps/user-pro/tools/*.json` have all the info you need, and often you don't even need those.
2. **Start with the board schema** -- call `FetchMcpResource` for `roadmap://schema` or `customer://schema` to discover field names, team names, and valid filter values.
3. **Batch parallel calls** -- when exploring (e.g. checking multiple epics for task lists), call `get_issue_details` on 3-4 candidates in a single parallel batch instead of sequentially.
4. **Act, then verify** -- run the migration/operation first, then verify with `list_sub_issues` or `get_parent_issue`. Don't over-research before acting.

## Key tools

| Tool | Use |
|------|-----|
| `list_issues` | Find issues by team, kind, status, keyword |
| `get_issue_details` | Read issue body, comments, fields (needs project `itemId`) |
| `list_sub_issues` | Verify sub-issue relationships |
| `get_parent_issue` | Check parent from child side |
| `migrate_task_list_to_sub_issues` | Convert task lists to sub-issues. Use `removeTaskList: false` first to evaluate safely |
| `add_sub_issue` / `remove_sub_issue` | Manual sub-issue management |

## `list_issues` usage

Board field filters (Team, Kind, Status, etc.) MUST go in the `filters` map.
The board is specified with the `board` parameter (not `project`).

**Correct:**
```json
{"board": "roadmap", "filters": {"Team": "AI 🤖", "Kind": "Epic 🎯"}}
```

**Wrong** (these top-level params are auto-forwarded with a warning, but prefer the correct form):
```json
{"project": "roadmap", "team": "AI 🤖", "kind": "Epic 🎯"}
```

Other top-level parameters: `repository`, `assignee`, `label`, `state`, `keyword`, `updated`, `reason`, `emptyFields`.

## Common patterns

- **Team/Kind/Status values**: Use the display name with emoji, e.g. `"AI 🤖"`, `"Epic 🎯"`, `"In Progress ⛏️"`
- **Issue refs**: Tools accept URLs (`https://github.com/o/r/issues/N`), short refs (`owner/repo#N`), or explicit `owner`/`repo`/`issue_number`

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.