mcp-code-todo
Enables scanning TODO comments in C++ source files.
Enables scanning TODO comments in CSS source files.
Enables scanning TODO comments in JavaScript source files.
Enables scanning TODO comments in Kotlin source files.
Enables scanning TODO comments in Less source files.
Enables scanning TODO comments in Lua source files.
Enables scanning TODO comments in Perl source files.
Enables scanning TODO comments in PHP source files.
Enables scanning TODO comments in Python source files.
Enables scanning TODO comments in Ruby source files.
Enables scanning TODO comments in Rust source files.
Enables scanning TODO comments in Shell script files.
Enables scanning TODO comments in Swift source files.
Enables scanning TODO comments in TOML configuration files.
Enables scanning TODO comments in TypeScript source files.
Enables scanning TODO comments in YAML configuration files.
Enables scanning TODO comments in Zsh shell script files.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-code-todo show me all high priority TODOs"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP TODO Scanner
A Model Context Protocol (MCP) server that scans codebases for TODO comments and exposes them as structured data to LLMs. This enables AI assistants to inspect outstanding work, propose fixes, prioritize tasks, and generate patches.
Features
Multi-language support: Detects TODOs in 30+ programming languages (JavaScript, TypeScript, Python, Go, Rust, Java, etc.)
Metadata parsing: Supports structured TODOs with owners, priorities, and estimates
Flexible scanning: Include/exclude patterns, custom root directories
Context-aware: Provides surrounding code lines for each TODO
Caching: In-memory caching for performance
Read-only: Safe filesystem access with security boundaries
Related MCP server: modelroute
Usage
As an MCP Server
Add to your MCP client configuration:
{
"mcpServers": {
"code-todo": {
"args": [
"-y",
"mcp-code-todo@latest"
],
"command": "npx"
}
}
}With Explicit Workspace Root
You can optionally specify the workspace root directory via the --workspace-root argument:
{
"mcpServers": {
"code-todo": {
"args": [
"-y",
"mcp-code-todo@latest",
"--workspace-root",
"/path/to/your/project"
],
"command": "npx"
}
}
}This is useful when the workspace cannot be auto-detected from environment variables.
MCP Resources
todo://list
Returns all TODOs in the project with metadata.
{
"todos": [
{
"id": "abc123",
"text": "Implement error handling",
"filePath": "src/utils.ts",
"line": 42,
"language": "typescript",
"meta": {
"owner": "ash",
"priority": "high",
"estimate": "2h"
}
}
],
"meta": {
"scannedAt": "2024-01-17T22:00:00.000Z",
"fileCount": 15
}
}todo://file/{path}
Returns TODOs for a specific file.
MCP Tools
scan_todos
Scan the codebase for TODO comments.
Parameters:
root(string, optional): Root directory to scan (defaults to workspace root)include(string[], optional): Glob patterns for files to includeexclude(string[], optional): Glob patterns for files to exclude
Example:
{
"root": "/path/to/project",
"include": ["*.ts", "*.js"],
"exclude": ["test/**", "node_modules/**"]
}explain_todo
Get more context for a specific TODO item.
Parameters:
id(string): The unique ID of the TODO itemcontextLines(number, optional): Number of context lines (default: 5)
Returns:
{
"todo": { "id": "abc123", "text": "...", ... },
"context": " 39: function example() {\n> 42: // TODO: Implement error handling\n 43: return data;\n 44: }"
}group_todos_by_topic
Group TODOs by various criteria.
Returns:
{
"by-file": {
"src/utils": [todo1, todo2],
"src/components": [todo3]
},
"by-priority": [high_priority_todos],
"with-owner": [assigned_todos],
"unassigned": [unassigned_todos]
}MCP Prompts
find_todos_in_app
A guided workflow to discover and investigate TODOs in the current app.
Parameters:
focus(string, optional): Area to focus on, such asauth,payments,frontend, orsrc/componentsinclude(string[], optional): Glob patterns to narrow the scanexclude(string[], optional): Glob patterns to skip generated or irrelevant paths
Workflow:
Confirms workspace with
get_workspace(sets it withset_workspaceif needed)Runs
scan_todosacross the codebaseApplies any provided
focus,include, orexcludefiltersSummarizes results by count, key files, owners, and priorities
Highlights the most important or risky TODOs first
Uses
explain_todofor deeper inspection when neededOptionally calls
group_todos_by_topicto cluster by file, priority, or ownershipRecommends the next TODOs to tackle and why
Example usage:
{
"focus": "auth",
"include": ["src/**/*.ts"],
"exclude": ["test/**", "generated/**"]
}TODO Syntax
Basic TODOs
// TODO: Implement error handling
# TODO: Add validation
/* TODO: Refactor this function */Structured TODOs
// TODO(ash): Implement error handling
// TODO[@ash][priority=high][est=2h]: Fix performance issue
// TODO(priority=medium): Add unit testsSupported Metadata
owner: Assignee name (TODO(owner)orTODO[@owner])priority: Priority level ([priority=low|medium|high])estimate: Time estimate ([est=2h])
Supported Languages
JavaScript / TypeScript / JSX / TSX
Python
Ruby
Go
Rust
Java / Kotlin
C / C++ / C#
Swift
PHP
HTML / CSS / SCSS / LESS
SQL
Lua
Perl
R
Shell scripts (Bash, Zsh)
Configuration files (YAML, TOML, INI)
And more...
Configuration
Default Exclusions
The scanner automatically excludes:
node_modules,.git,.svn,.hgdist,build,out.next,.nuxt,coverage__pycache__,.pytest_cachevenv,.venv,envvendor,target,bin,objIDE folders (
.idea,.vscode)OS files (
.DS_Store)
File Size Limits
Maximum file size: 1MB
Binary files are automatically skipped
Development
# Install dependencies
pnpm install
# Build the project
pnpm run build
# Run in development
node ./build/index.jsProject Structure
mcp-code-todo/
├── src/
│ ├── index.ts # MCP server entry point
│ ├── scanner.ts # TODO extraction and caching
│ ├── languages.ts # Language comment syntax registry
│ ├── types.ts # TypeScript interfaces
│ └── utils.ts # File system utilities
├── build/ # Compiled JavaScript
├── package.json
├── tsconfig.json
└── README.mdSecurity
Read-only access: No file modification capabilities
Path validation: Root directory must be explicitly provided
Binary file filtering: Automatic skipping of binary files
Size limits: Protection against extremely large files
No network access: Local filesystem only
License
ISC
Contributing
Fork the repository
Create a feature branch
Make your changes
Add tests if applicable
Submit a pull request
Examples
LLM Workflow
LLM calls
scan_todosto get all TODOsMCP returns structured TODO list
LLM groups TODOs by theme or file
LLM calls
explain_todofor context on specific itemsLLM proposes code changes (using separate write-capable MCP)
Sample TODO Detection
// Input file src/utils.ts
export function processData(data: any) {
// TODO(ash)[priority=high][est=1h]: Add input validation
return data.map(item => {
// TODO: Handle null values
return item.value;
});
}// Output from scan_todos
{
"todos": [
{
"id": "abc123",
"text": "Add input validation",
"filePath": "src/utils.ts",
"line": 2,
"language": "typescript",
"meta": {
"owner": "ash",
"priority": "high",
"estimate": "1h"
}
},
{
"id": "def456",
"text": "Handle null values",
"filePath": "src/utils.ts",
"line": 5,
"language": "typescript"
}
]
}Available Tools
5 toolsexplain_todoA
Get more context for a specific TODO item, including surrounding code lines.
Inputs: id (required), contextLines.
get_workspaceA
Get the current workspace root directory that will be used for scanning.
Inputs: no named parameters.
group_todos_by_topicC
Group TODOs by various criteria including file paths, priority, and ownership.
Inputs: no named parameters.
scan_todosA
Scan the codebase for TODO comments. Returns all found TODOs with their locations and metadata.
Inputs: root, exclude, include.
set_workspaceA
Set the workspace root directory for scanning TODOs. Call this first if the default workspace detection doesn't work.
Inputs: root (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool targets a distinct action: workspace retrieval/setting, scanning, grouping, and explaining TODOs. No two tools appear to serve the same purpose.
All tool names follow a consistent verb_noun pattern in snake_case (get_workspace, scan_todos, group_todos_by_topic, explain_todo, set_workspace). This is predictable and clear.
With 5 tools, the set is well-scoped for a TODO scanning and analysis server. Each tool covers a necessary operation without redundancy or bloat.
The surface covers workspace configuration, scanning, grouping, and context explanation—a complete workflow for TODO analysis. No obvious missing operations for the stated purpose.
Maintenance
Related MCP Connectors
Code intelligence for LLMs. Analyze, search, and retrieve code from any public git repository.
AI-powered codebase analysis — call graphs, security, dead code, complexity. 150+ tools.
Codebase intelligence for AI agents — dead code, blast radius, ownership.
Tasks, sprints, releases and docs for engineering teams with AI coding agents.
Related MCP Servers
AlicenseNot gradedqualityDmaintenanceEnables code reviews, implementation planning, and pull request generation for AI agents in IDEs like Cursor and Windsurf.1MIT
modelrouteofficial
FlicenseNot gradedqualityDmaintenanceEnables AI agents to scan code for TODO, FIXME, XXX issues via MCP, providing prioritized findings in table, JSON, or SARIF format.-- FlicenseNot gradedqualityDmaintenanceEnables AI agents to scan codebases for prioritized findings (TODO, FIXME, XXX) and retrieve results in table, JSON, or SARIF format via MCP.-
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to scan codebases for TODO/FIXME/XXX patterns and get prioritized results over MCP, supporting CI gates and multiple output formats.-