You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-7Lines changed: 5 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -140,16 +140,14 @@ This is an [MCP](https://modelcontextprotocol.io/introduction) server that runs
140
140
141
141
## Tools
142
142
143
-
-`read_definition`: Retrieves the complete source code definition of any symbol (function, type, constant, etc.) from your codebase.
144
-
-`find_references`: Locates all usages and references of a symbol throughout the codebase.
145
-
-`get_diagnostics`: Provides diagnostic information for a specific file, including warnings and errors.
146
-
-`get_codelens`: Retrieves code lens hints for additional context and actions on your code.
147
-
-`execute_codelens`: Runs a code lens action.
143
+
-`definition`: Retrieves the complete source code definition of any symbol (function, type, constant, etc.) from your codebase.
144
+
-`references`: Locates all usages and references of a symbol throughout the codebase.
145
+
-`diagnostics`: Provides diagnostic information for a specific file, including warnings and errors.
148
146
-`hover`: Display documentation, type hints, or other hover information for a given location.
149
147
-`rename_symbol`: Rename a symbol across a project.
150
-
-`apply_text_edit`: Allows making multiple text edits to a file programmatically.
148
+
-`edit_file`: Allows making multiple text edits to a file programmatically.
151
149
152
-
Behind the scenes, this MCP server can act on `workspace/applyEdit` requests from the language server.
150
+
The `edit_file` tool is not strictly related to the language server but it provides a more reliable and context economical way to edit files compared to search and replace based edit tools, provided you have line numbers.
mcp.WithDescription("Read the source code definition of a symbol (function, type, constant, etc.) from the codebase. Returns the complete implementation code where the symbol is defined."),
100
100
mcp.WithString("symbolName",
101
101
mcp.Required(),
@@ -119,7 +119,7 @@ func (s *mcpServer) registerTools() error {
119
119
showLineNumbers=showLineNumbersArg
120
120
}
121
121
122
-
coreLogger.Debug("Executing read_definition for symbol: %s", symbolName)
122
+
coreLogger.Debug("Executing definition for symbol: %s", symbolName)
mcp.WithDescription("Find all usages and references of a symbol throughout the codebase. Returns a list of all files and locations where the symbol appears."),
133
133
mcp.WithString("symbolName",
134
134
mcp.Required(),
@@ -152,7 +152,7 @@ func (s *mcpServer) registerTools() error {
152
152
showLineNumbers=showLineNumbersArg
153
153
}
154
154
155
-
coreLogger.Debug("Executing find_references for symbol: %s", symbolName)
155
+
coreLogger.Debug("Executing references for symbol: %s", symbolName)
0 commit comments