project-structure

project-structure is a cursor rule for Cursor from umijs/umi-mcp. It costs 346 tokens per session, scanned A, original, MIT.

A map of a project’s folders, important files, available tools, and development commands. MCP tools are callable functions that let an agent interact with a project or service.

In plain words
What is it for?
Use it to add a tool, find the command-line entry point, run fixtures and tests, build the project, or locate configuration and generator commands.
Why use it?
It shows where code belongs and how changes become available, tested, and built, so contributors do not have to discover the project structure from scratch.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/umijs/umi-mcp/project-structure
Clone the repo
git clone --depth 1 https://github.com/umijs/umi-mcp

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for project-structure

README.md
[![agentmods](https://agentmods.dev/badge/rules/umijs/umi-mcp/project-structure.svg)](https://agentmods.dev/rules/umijs/umi-mcp/project-structure)
Your own site
<a href="https://agentmods.dev/rules/umijs/umi-mcp/project-structure"><img src="https://agentmods.dev/badge/rules/umijs/umi-mcp/project-structure.svg" alt="Measured on agentmods" height="20"></a>
Per session 346 This file is loaded in full into every session.
When invoked 346 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00346 $0.00346
Opus 5 $0.00173 $0.00173
Sonnet 5 $0.00069 $0.00069
Haiku 4.5 $0.00035 $0.00035

Measured 3d ago against content hash b41e7b8b542e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

project-structure scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/project-structure.mdc · 36 lines

What it actually says

Project Structure Overview

Main Directories

  • src/: Source code for the project
    • src/tools/: Individual MCP tools implementation
    • src/cli.ts: CLI entry point
    • src/index.ts: Library exports
  • fixtures/: Test fixtures for development
  • dist/: Build output
  • .cursor/: Cursor configuration and rules

Key Files

MCP Tools

  • Config tools: umi-config-list, umi-config-get, umi-config-set, umi-config-remove
  • Data tools: umi-route-list, umi-appdata-list, umi-plugin-list, umi-version
  • Generator tools: umi-generate-page and other generators
  • Build tools: umi-build, umi-setup, umi-lint
  • Information tools: umi-help, umi-changelog, umi-deadcode

Development Workflow

  1. Implement a new tool in src/tools/
  2. Export the tool in src/index.ts
  3. Test with pnpm dev or tsx ./src/cli.ts fixtures/normal
  4. Write tests in a matching .test.ts file
  5. Build with pnpm build
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 36 lines · 346 tokens per session scan A b41e7b8b542e

Subscribe to this mod's changes

project-structure is a cursor rule published in the GitHub repository umijs/umi-mcp (21 stars, last pushed 1y ago), licensed MIT. It adds 346 tokens to every session, about $0.0017 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.