Skip to content

MCP Tools

flyto-indexer provides 30 MCP tools organized into 7 categories.

Impact & Dependencies

impact_analysis

Analyze the blast radius of changing a symbol.

ParameterTypeRequiredDescription
symbol_idstringYesSymbol ID (format: project:path:type:name)

Returns: call sites, risk level (safe, low, moderate, high), affected files.

find_references

Find all call sites for a symbol.

ParameterTypeRequiredDescription
symbol_idstringYesSymbol ID to search for

Returns: list of references with file, line number, and confidence.

dependency_graph

Get import and dependent relationships for a file.

ParameterTypeRequiredDefaultDescription
file_pathstringYes-File to analyze
directionstringNobothimports, dependents, or both
max_depthnumberNo2Traversal depth

cross_project_impact

Track API usage across multiple repositories.

ParameterTypeRequiredDescription
symbol_namestringYesSymbol name to search
source_projectstringNoFilter by source project

edit_impact_preview

Preview the impact of a specific edit before making it.

ParameterTypeRequiredDescription
symbol_idstringYesSymbol to change
change_typestringNomodify, rename, delete, signature_change, add_param

impact_from_diff

Analyze impact from git changes.

ParameterTypeRequiredDefaultDescription
modestringNounstagedunstaged, staged, committed, branch
basestringNo-Base branch for comparison
projectstringNo-Project filter

Search & Code Access

search_by_keyword

BM25 semantic search across all indexed symbols.

ParameterTypeRequiredDefaultDescription
querystringYes-Search query
symbol_typestringNo-Filter by type
projectstringNo-Filter by project
max_resultsnumberNo20Max results
include_contentbooleanNofalseInclude source code

get_symbol_content

Get the full source code of a function or class.

ParameterTypeRequiredDescription
symbol_idstringYesSymbol ID

get_file_context

Get complete file context including symbols, dependencies, test file, and related files.

ParameterTypeRequiredDescription
pathstringYesFile path
include_contentbooleanNoInclude source code

get_file_info

Get file metadata (purpose, category, keywords, APIs, dependencies).

ParameterTypeRequiredDescription
pathstringYesFile path

get_file_symbols

List all symbols defined in a file.

ParameterTypeRequiredDescription
pathstringYesFile path

Search through comments, TODOs, and strings.

ParameterTypeRequiredDefaultDescription
querystringYes-Search query
search_typestringNoallall, todo, comment, string
projectstringNo-Project filter
max_resultsnumberNo50Max results

Project Overview

list_projects

List all indexed projects with symbol and file counts by type.

list_categories

List all code categories found during indexing.

list_apis

List API endpoints with cross-language callers (FastAPI decorators + fetch/axios).

Code Quality

find_dead_code

Find unreferenced symbols.

ParameterTypeRequiredDefaultDescription
projectstringNo-Project filter
symbol_typestringNo-Filter by type
min_linesnumberNo5Minimum lines to report

Automatically filters entry points, lifecycle methods, and exports.

find_complex_functions

Find functions with high complexity scores.

ParameterTypeRequiredDefaultDescription
projectstringNo-Project filter
max_resultsnumberNo20Max results
min_scorenumberNo1Minimum complexity score

find_duplicates

Detect copy-pasted code blocks.

ParameterTypeRequiredDefaultDescription
projectstringNo-Project filter
min_linesnumberNo6Minimum duplicate block size
max_resultsnumberNo20Max results

security_scan

Scan for security issues (hardcoded secrets, SQL injection, unsafe functions).

ParameterTypeRequiredDefaultDescription
projectstringNo-Project filter
severitystringNo-Filter by severity
max_resultsnumberNo50Max results

find_stale_files

Find files untouched for a specified period.

ParameterTypeRequiredDefaultDescription
projectstringNo-Project filter
stale_daysnumberNo180Days since last modification
max_resultsnumberNo30Max results

find_todos

Find TODO, FIXME, HACK, and XXX markers.

ParameterTypeRequiredDefaultDescription
projectstringNo-Project filter
prioritystringNo-high, medium, or low
max_resultsnumberNo100Max results

Health & Recommendations

code_health_score

Get a 0-100 health score with A-F grade.

ParameterTypeRequiredDescription
projectstringNoProject filter

Evaluates: complexity, dead code, documentation, modularity.

suggest_refactoring

Get prioritized refactoring suggestions.

ParameterTypeRequiredDefaultDescription
projectstringNo-Project filter
max_resultsnumberNo20Max suggestions

check_and_reindex

Check index freshness and optionally reindex.

ParameterTypeRequiredDefaultDescription
dry_runbooleanNotrueOnly check, don't reindex
projectstringNo-Project filter
auto_reindexbooleanNofalseReindex if stale

Symbol ID Format

All tools use the format: project:path:type:name

Example: flyto-cloud:src/pages/TopUp.vue:component:TopUp

Symbol Types

file, class, function, method, component, composable, store, route, api, variable, type, interface

Released under the Apache 2.0 License.