MCP Tools Overview
dev-agent provides nine tools through the Model Context Protocol (MCP). These tools give AI assistants deep understanding of your codebase.
Available Tools
| Tool | Purpose |
|---|---|
dev_search | Semantic code search with snippets |
dev_refs | Query code relationships (callers/callees) |
dev_map | Codebase structure overview with change frequency |
dev_history | Semantic search over git commits β¨ v0.4 |
dev_plan | Assemble context for GitHub issues |
dev_explore | Explore code patterns and relationships |
dev_gh | Search GitHub issues and PRs |
dev_status | Check repository indexing status |
dev_health | Monitor MCP server health |
New in v0.5.0
- Enhanced indexing β Arrow functions, React hooks, and exported constants now extracted
dev_searchβ Better coverage of modern JavaScript patterns (hooks, utilities, configs)
v0.4.0
dev_historyβ Semantic search over git commit historydev_mapβ Change frequency indicators (π₯ hot, βοΈ active, π recent)dev_planβ Related commits included in context assembly
v0.3.0
dev_refsβ Query what calls what and what is called by whatdev_mapβ Get codebase overview with hot paths and smart depthdev_planβ Refactored to assemble context (no more heuristic task breakdown)
How Tools Are Exposed
Tools are exposed via the Model Context Protocol (MCP), a standard for AI tool integration:
AI Assistant (Cursor/Claude)
β
β MCP Protocol (stdio)
βΌ
dev-agent MCP Server
β
βββ SearchAdapter β dev_search
βββ RefsAdapter β dev_refs
βββ MapAdapter β dev_map
βββ HistoryAdapter β dev_history β¨ v0.4
βββ PlanAdapter β dev_plan
βββ ExploreAdapter β dev_explore
βββ GitHubAdapter β dev_gh
βββ StatusAdapter β dev_status
βββ HealthAdapter β dev_healthTool Response Format
All tools return structured responses with metadata:
{
"success": true,
"data": {
"query": "authentication",
"content": "1. [89%] class: AuthMiddleware..."
},
"metadata": {
"tokens": 245,
"duration_ms": 123,
"results_total": 15,
"results_returned": 10
}
}The metadata field helps AI assistants understand:
- Token cost of the response
- Performance metrics
- Result completeness (truncated or full)
Output Formats
Most tools support two output formats:
compact(default) β Token-efficient, markdown outputverboseβ Full JSON with all details
Next Steps
- dev_search β β Semantic code search
- dev_history β β Git commit search
- dev_refs β β Relationship queries
- dev_map β β Codebase overview
Last updated on