MCPVault

findReferences

MCP tool from Eclipse Chatgpt Plugin by gradusnikov

All references to a type, method, or field across the workspace

How to use it

findReferences is exposed by the Eclipse Chatgpt Plugin MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the findReferences tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.

FULL ECLIPSE CHATGPT PLUGIN LISTING

Other tools in Eclipse Chatgpt Plugin (39)

applyPatch

Atomically applies a validated unified diff, preserves line endings, supports multi-hunk edits, creates an undo backup, and reveals the first changed line

createDirectories

Creates a directory structure recursively

createFile

Creates a new file, adds it to the project, and opens it in the editor

deleteFile

Deletes a file from a project

deleteLinesInFile

Deletes a range of lines (1-based indexing)

explainTypeResolution

Explain how a type resolves in a specific project's JDT classpath: source/binary origin, root, entry, attachment, class file, and source/decompilation strategy

formatCode

Format code using Eclipse formatter settings

formatFile

Formats a file using its registered Eclipse editor formatter (Java, XML, JSON, HTML, SQL, and other supported editors)

getClassOutline

Compact class outline -- declarations and method signatures (no bodies) with line numbers

getCompilationErrors

Compilation errors from the workspace or a project

getConsoleOutput

Recent Eclipse console output

getCurrentlyOpenedFile

Currently active file in the editor

getEditorSelection

Selected text or lines in the active editor

getFilteredSource

Full source with non-selected methods collapsed to signatures

getImportSuggestions

Import candidates for unresolved types

getJavaDoc

JavaDoc for a compilation unit

getMethodCallHierarchy

Call hierarchy (callers) for a method

getMethodSource

Source of specific methods by name, with overload disambiguation

getProjectLayout

File/folder structure with scopePath and maxDepth support

getProjectProperties

Project properties and configuration

getQuickFixes

Available quick fixes for compilation errors

getSource

Source of a workspace or referenced-library class; prefers attached source JARs and decompiles binaries when source is unavailable

getTypeHierarchy

Type hierarchy (supertypes, interfaces, subtypes)

insertIntoFile

Inserts content at a specific position in an existing file

listMavenProjects

All Maven projects in the workspace

listProjects

All workspace projects with detected natures

moveResource

Moves a file or folder to a different location

organizeImports

Removes unused imports and sorts existing imports; does not add missing imports

organizeImportsInPackage

Removes unused imports and sorts existing imports across a package

readImageResource

Return a workspace image as native MCP ImageContent (PNG, JPEG, GIF, BMP, TIFF, or ICO; maximum 20 MiB)

readProjectResource

Read a text resource, with optional import block collapsing

refactorExtractTypeToNewFile

Extracts a nested Java type to a new top-level Java file using Eclipse's refactoring

refactorMoveJavaType

Moves a Java type to a different package, updating all references

refactorRenameJavaType

Renames a Java type using Eclipse's refactoring, updating all references

refactorRenamePackage

Renames a package, updating all declarations and references

renameFile

Renames a file in a project

replaceFileContent

Replaces the entire content of a file

replaceString

Replaces a specific string in a file, optionally within a line range

undoEdit

Restores a file from its backup (undo last edit)