Skip to content

Commit e481523

Browse files
author
Omri Hopson
committed
updated readme and added rule file
1 parent dcd2372 commit e481523

2 files changed

Lines changed: 75 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
description: Use Context-Simplo MCP for code intelligence and analysis
3+
alwaysApply: true
4+
---
5+
6+
# Context-Simplo MCP
7+
8+
MCP server: `user-context-simplo`. Use it **instead of** grep/ripgrep/Glob/SemanticSearch when the codebase is indexed.
9+
10+
## Startup: call `list_repositories` first. If empty, call `index_repository` with path `/workspace`.
11+
12+
## Tool selection
13+
14+
- **Symbol by name** → `find_symbol` (with optional `kind` filter)
15+
- **Who calls X / what does X call** → `find_callers` / `find_callees`
16+
- **Execution path A→B** → `find_path`
17+
- **Conceptual search** ("how do we handle auth?") → `semantic_search`
18+
- **Literal search** (exact name/string) → `exact_search`
19+
- **Unsure** → `hybrid_search`
20+
- **Before any refactor** → `get_impact_radius` (check blast radius first)
21+
- **Code quality** → `find_dead_code`, `find_complex_functions`, `calculate_complexity`
22+
- **Architecture overview** → `explain_architecture`
23+
- **Validate proposed code** → `lint_context`
24+
25+
## Cost-saving rules
26+
27+
- Prefer Context-Simplo over multi-file Read/Grep chains — one MCP call replaces many tool calls
28+
- Use `limit` parameter to cap results (default 10, increase only if needed)
29+
- Pass `repositoryId` to scope queries and avoid full-index scans
30+
- Use `incremental: true` when re-indexing after changes
31+
- Skip Context-Simplo for single-file edits where the file is already open/known

README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,50 @@ When adding repositories via the dashboard or MCP tools, use **paths as they app
373373

374374
The dashboard's **Browse** tab shows the container's filesystem, so you can just click to select. The **Enter Path** tab accepts relative paths within the workspace (e.g., `src`, `backend/api`).
375375

376+
## Automatic AI Agent Usage (Cursor Rules)
377+
378+
Context-Simplo tools are most effective when your AI agent uses them automatically instead of falling back to file-by-file search. You can add a Cursor rule that instructs the agent to prefer Context-Simplo for code intelligence tasks — reducing tool call chains and lowering token costs.
379+
380+
**Create `.cursor/rules/context-simplo-usage.mdc` in your project:**
381+
382+
```markdown
383+
---
384+
description: Use Context-Simplo MCP for code intelligence and analysis
385+
alwaysApply: true
386+
---
387+
388+
# Context-Simplo MCP
389+
390+
MCP server: `user-context-simplo`. Use it **instead of** grep/ripgrep/Glob/SemanticSearch when the codebase is indexed.
391+
392+
## Startup: call `list_repositories` first. If empty, call `index_repository` with path `/workspace`.
393+
394+
## Tool selection
395+
396+
- **Symbol by name**`find_symbol` (with optional `kind` filter)
397+
- **Who calls X / what does X call**`find_callers` / `find_callees`
398+
- **Execution path A→B**`find_path`
399+
- **Conceptual search** ("how do we handle auth?") → `semantic_search`
400+
- **Literal search** (exact name/string) → `exact_search`
401+
- **Unsure**`hybrid_search`
402+
- **Before any refactor**`get_impact_radius` (check blast radius first)
403+
- **Code quality**`find_dead_code`, `find_complex_functions`, `calculate_complexity`
404+
- **Architecture overview**`explain_architecture`
405+
- **Validate proposed code**`lint_context`
406+
407+
## Cost-saving rules
408+
409+
- Prefer Context-Simplo over multi-file Read/Grep chains — one MCP call replaces many tool calls
410+
- Use `limit` parameter to cap results (default 10, increase only if needed)
411+
- Pass `repositoryId` to scope queries and avoid full-index scans
412+
- Use `incremental: true` when re-indexing after changes
413+
- Skip Context-Simplo for single-file edits where the file is already open/known
414+
```
415+
416+
**Why this reduces cost:** Without the rule, AI agents explore codebases by chaining multiple Grep → Read → Grep → Read calls, each consuming tokens. A single Context-Simplo MCP call (e.g., `find_callers` or `get_impact_radius`) replaces entire chains of exploration, returning structured results in one round-trip.
417+
418+
This also works with other MCP-compatible clients (VS Code, Claude Desktop, Claude Code) — adapt the rule format to your IDE's conventions.
419+
376420
## Quickstart (npm/CLI)
377421

378422
```bash

0 commit comments

Comments
 (0)