The TODO Scanner is a simple yet powerful tool that identifies TODOs in your code repositories. It scans git repositories for common TODO patterns in comments and presents them in a clean interface, helping you track tasks that might otherwise be forgotten as your codebase grows.
Get started with TODO Scanner in just a few steps:
git clone https://github.com/yourusername/repo_scanner.git
cd repo_scanner
pip install -r requirements.txt
Launch the web interface with:
python app.py
Then navigate to http://localhost:5000 in your browser, enter a git repository URL, and the tool will display all TODOs found in that repository.
Share your TODO Scanner instance with others without configuring firewalls or opening ports:
./run_with_cloudflared.sh
This script starts the application and creates a temporary Cloudflare tunnel, providing you with a public URL. The tunnel terminates when the script ends, maintaining your data privacy.
Integrate TODO Scanner into your workflows using its API:
curl -X POST http://localhost:5000/api/mpco/scan_repository \
-H "Content-Type: application/json" \
-d '{"repo_url": "https://github.com/username/repository.git"}'
TODO Scanner implements the Model Context Protocol (MCP) standard, making it compatible with AI assistants and automated tools.
Access the manifest at:
View the OpenAPI specification at:
The API documentation is dynamically generated, ensuring it always matches the implementation.
Here's what a typical response from the API looks like:
{
"repo_url": "https://github.com/username/repository.git",
"repo_name": "repository",
"todo_count": 42,
"todos": [
{
"file_path": "src/main.py",
"line_num": 24,
"todo_text": "# TODO: Fix this hack when we have time",
"next_line": "def temporary_solution():"
}
],
"web_url": "http://localhost:5000/scan/https://github.com/username/repository.git"
}
This output provides the repository details, total count of TODOs found, and a list of each TODO with its location, content, and context.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "repo-scanner" '{"command":"python","args":["app.py"],"displayName":"GitHub TODO Scanner","description":"A tool that scans git repositories for TODO comments and displays them in a clean interface","apiBase":"http://localhost:5000/api/mpco"}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"repo-scanner": {
"command": "python",
"args": [
"app.py"
],
"displayName": "GitHub TODO Scanner",
"description": "A tool that scans git repositories for TODO comments and displays them in a clean interface",
"apiBase": "http://localhost:5000/api/mpco"
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"repo-scanner": {
"command": "python",
"args": [
"app.py"
],
"displayName": "GitHub TODO Scanner",
"description": "A tool that scans git repositories for TODO comments and displays them in a clean interface",
"apiBase": "http://localhost:5000/api/mpco"
}
}
}
3. Restart Claude Desktop for the changes to take effect