File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
src/main/kotlin/com/embabel/coding/tools Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments