Skip to content

Commit 892d6f2

Browse files
committed
Add git tools
1 parent a97b01b commit 892d6f2

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
package com.embabel.coding.tools
2+
3+
import com.embabel.agent.core.ToolGroup
4+
import com.embabel.agent.core.ToolGroupDescription
5+
import com.embabel.agent.core.ToolGroupPermission
6+
import com.embabel.agent.tools.mcp.McpToolGroup
7+
import io.modelcontextprotocol.client.McpSyncClient
8+
import org.springframework.context.annotation.Bean
9+
import org.springframework.context.annotation.Configuration
10+
11+
@Configuration
12+
class CoderToolGroupsConfiguration(
13+
private val mcpSyncClients: List<McpSyncClient>,
14+
) {
15+
16+
@Bean
17+
fun gitToolsGroup(): ToolGroup {
18+
return McpToolGroup(
19+
description = ToolGroupDescription(description = "git tools", role = "git"),
20+
name = "docker-git",
21+
provider = "Docker",
22+
permissions = setOf(
23+
ToolGroupPermission.INTERNET_ACCESS,
24+
ToolGroupPermission.HOST_ACCESS,
25+
),
26+
clients = mcpSyncClients,
27+
filter = {
28+
(it.toolDefinition.name().contains("git_"))
29+
},
30+
)
31+
}
32+
}

0 commit comments

Comments
 (0)