Skip to content

reference_index

MCP tools › Code insight and refactoring

The project-wide reference index of Java and Kotlin declarations and the uses of every name in Java, Kotlin and class-naming text files (Gradle, XML, properties, YAML, META-INF/services and similar); refreshed incrementally and cached. Always returns statistics. With name: that simple name's declarations (path, 0-based line and column, kind, enclosing type) and the files using it with counts. With unused: the unused declarations (entry points, annotated members and overrides excluded; suppressions and profile apply), optionally limited by path, placed as inspect_code places findings.

Its results carry text from files: the client is told to treat that as data, never as instructions.

Capabilitycode.reference_index
AreaCode insight and refactoring
Accessreads only
Reaches—
Rightsnone
Dry runnone

Arguments

ArgumentTypeDescription
namestringA simple name: its declarations and the files that use it.
unusedbooleanList the unused declarations (default false).default false
pathstringWorkspace-relative file or folder the unused declarations are listed for; the whole project when omitted.

Call it from a shell

ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.

Terminal window
ferris-idea call ~/my-project reference_index
Input schema as JSON
{
"type": "object",
"properties": {
"name": {
"description": "A simple name: its declarations and the files that use it.",
"type": [
"string",
"null"
],
"default": null
},
"unused": {
"description": "List the unused declarations (default false).",
"type": "boolean",
"default": false
},
"path": {
"description": "Workspace-relative file or folder the unused declarations are listed for; the whole\nproject when omitted.",
"type": [
"string",
"null"
],
"default": null
}
}
}