feat: definition and references tools

This commit is contained in:
adamdottv 2025-05-14 14:25:09 -05:00
commit 45c778b90d
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
3 changed files with 363 additions and 1 deletions

View file

@ -19,7 +19,6 @@ func PrimaryAgentTools(
lspClients map[string]*lsp.Client,
) []tools.BaseTool {
ctx := context.Background()
mcpTools := GetMcpTools(ctx, permissions)
return append(
@ -34,6 +33,8 @@ func PrimaryAgentTools(
tools.NewPatchTool(lspClients, permissions, history),
tools.NewWriteTool(lspClients, permissions, history),
tools.NewDiagnosticsTool(lspClients),
tools.NewDefinitionTool(lspClients),
tools.NewReferencesTool(lspClients),
NewAgentTool(sessions, messages, lspClients),
}, mcpTools...,
)
@ -45,5 +46,7 @@ func TaskAgentTools(lspClients map[string]*lsp.Client) []tools.BaseTool {
tools.NewGrepTool(),
tools.NewLsTool(),
tools.NewViewTool(lspClients),
tools.NewDefinitionTool(lspClients),
tools.NewReferencesTool(lspClients),
}
}