trace-mcp

trace-mcp is a skill for Claude Code, Codex from opencue/cuecards. It costs 52 tokens per session (1,267 once invoked), scanned A, a copy of trace-mcp, MIT.

A code-understanding tool that maps how parts of a codebase connect. It can find symbols such as functions, classes, routes, and components across different programming languages.

In plain words
What is it for?
Use it to explore a project, perform impact analysis, trace call paths, inspect architecture, find dead code, and review security-related code.
Why use it?
It helps agents understand unfamiliar code and see what may be affected before making a change. This reduces guesswork when tracing requests, dependencies, or data flow.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; installed under .agents/ (shared by several agents); mentions AGENTS.md.

Good fit Use it to explore a project, perform impact analysis, trace call paths, inspect architecture, find dead code, and review security-related code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/opencue/cuecards/trace-mcp
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.

Any agent
npx skills add opencue/cuecards --skill trace-mcp
Clone the repo
git clone --depth 1 https://github.com/opencue/cuecards

Made for: Claude Code, Codex.

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 trace-mcp

README.md
[![agentmods](https://agentmods.dev/badge/skills/opencue/cuecards/trace-mcp/github.svg)](https://agentmods.dev/skills/opencue/cuecards/trace-mcp)
Your own site
<a href="https://agentmods.dev/skills/opencue/cuecards/trace-mcp"><img src="https://agentmods.dev/badge/skills/opencue/cuecards/trace-mcp/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for trace-mcp

Your own site · 80×15
<a href="https://agentmods.dev/skills/opencue/cuecards/trace-mcp"><img src="https://agentmods.dev/badge/skills/opencue/cuecards/trace-mcp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,267 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 97% copy Near-identical to another mod 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.1 $0.00052 $0.01267
Opus 5.5 $0.00021 $0.00507
Sonnet 5.5 $0.00010 $0.00253
Haiku 4.5 $0.00005 $0.00127

Measured 2mo ago against content hash 6748b4400263, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

trace-mcp 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 2mo 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.

Origin

This is a copy

97% identical to trace-mcp — 86 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/trace-mcp/SKILL.md · 89 lines

How it starts

The opening of the file, as written. The whole thing — 89 lines — stays where its author put it; the contents beside it link to each section on GitHub.

trace-mcp — Code Intelligence Routing

trace-mcp is a framework-aware code intelligence MCP server. It exposes 120+ tools that return semantic, structured results over a cross-language dependency graph. When trace-mcp is available, it is almost always cheaper and more accurate than native file tools.

When to Use

Activate this skill whenever you need to:

  • Find a function, class, method, route, component, or any symbol
  • Understand a file, module, or feature before editing
  • Determine what breaks if you change something
  • Trace a request flow, call graph, or data flow
  • Audit architecture, dead code, tests, or security

Do not use Read, Grep, Glob, or shell ls/find/cat/head/tail for exploring source code (.ts, .js, .py, .php, .go, .rb, .java, etc.). Use trace-mcp tools instead. Native tools stay allowed only for non-code files (.md, .json, .yaml, configs) or immediately before an Edit on a known file.

Start-of-Session Checklist

  1. get_project_map with summary_only=true — orient yourself to the project structure
  2. get_task_context with task: "<natural-language description>" — gather all relevant code in a single call instead of chaining search → get_symbol → Read

Decision Matrix

Task trace-mcp tool Instead of
Find a symbol by name search Grep
Understand a file before editing get_outline Read (full file)
Read one symbol's source get_symbol Read (full file)
Multiple symbols + shared imports get_context_bundle chained get_symbol
What breaks if I change X get_change_impact guessing
Who calls this / what does it call get_call_graph Grep
All usages of a symbol find_usages Grep
Implementations of an interface get_type_hierarchy Grep / ls
Classes implementing X search with implements filter Grep
Tests for a symbol or file get_tests_for Glob + Grep
Project overview get_project_map (summary_only) Bash ls/find
Context for a task get_task_context / get_feature_context reading many files
HTTP request flow get_request_flow reading route + controller files
DB model relationships get_model_context reading model + migrations
Component tree get_component_tree reading component files
Circular dependencies get_circular_imports manual tracing
Dead code / dead exports get_dead_code / get_dead_exports Grep for unused
Project health / coverage gaps self_audit manual inspection
Complexity / hotspots get_complexity_report / get_risk_hotspots guessing

Read the full file on GitHub · 89 lines

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. 2mo ago First seen · 89 lines · 52 tokens per session scan A 6748b4400263

Subscribe to this mod's changes

trace-mcp is a skill published in the GitHub repository opencue/cuecards (10 stars, last pushed yesterday), licensed MIT. It adds 52 tokens to every session and 1,267 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 97% identical to trace-mcp, differing in 86 lines, and is treated as a copy.

Related

trace-mcp compared with skills from other repositories

trace-mcp next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
trace-mcpopencue/cuecardsSkill10yesterdayMITA52Claude Code, Codex
atomic-debugdamusix/atomic-claudeSkill117yesterdayMITA114Claude Code, Codex
sipcode-regressAnuj7411/sipcodeSkill461mo agoMITA105Claude Code
debugSpaceMalamute/ai-rulesSkill29mo agononeA8Claude Code
fix-issueSpaceMalamute/ai-rulesSkill29mo agononeA14Claude Code
stuckQwenLM/qwen-codeSkill31ktodayApache-2.0A57Claude Code
structured-debuggingQwenLM/qwen-codeSkill31ktodayApache-2.0A85Claude Code, Codex