[mcp] Allow search tool to return context around a definition
Problem to Solve
Currently, there is no way to get context on searched code definitions (such as classes, functions, interfaces, etc.) directly through the available tools. Being able to return code snippet alongside the graph is essential to provide relevant context to the graph.
Proposed Solution
Add file context to the output
- The current tool only returns the metadata of the search results (e.g., name, file path, line number). We should enhance it with code snippets around the definition's location (until we have signatures) or it's full body.
- Update the documentation with the new schema.