Skip to content

Commit 43566e8

Browse files
authored
[fel] add tools/list in MCP client (#139)
1 parent 11fec72 commit 43566e8

File tree

34 files changed

+1376
-231
lines changed

34 files changed

+1376
-231
lines changed

framework/fel/java/plugins/pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
<module>tool-discoverer</module>
1717
<module>tool-executor</module>
1818
<module>tool-factory-repository</module>
19+
<module>tool-mcp-client</module>
1920
<module>tool-mcp-server</module>
21+
<module>tool-mcp-test</module>
2022
<module>tool-repository-simple</module>
2123
</modules>
2224
</project>

framework/fel/java/plugins/tool-discoverer/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@
5858
<artifactId>fit-build-maven-plugin</artifactId>
5959
<version>${fit.version}</version>
6060
<configuration>
61-
<category>user</category>
62-
<level>2</level>
61+
<category>system</category>
62+
<level>5</level>
6363
</configuration>
6464
<executions>
6565
<execution>
@@ -86,7 +86,7 @@
8686
<configuration>
8787
<target>
8888
<copy file="${project.build.directory}/${project.build.finalName}.jar"
89-
todir="../../../../fit/java/target/plugins"/>
89+
todir="../../../../../build/plugins"/>
9090
</target>
9191
</configuration>
9292
<goals>

framework/fel/java/plugins/tool-executor/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@
5858
<artifactId>fit-build-maven-plugin</artifactId>
5959
<version>${fit.version}</version>
6060
<configuration>
61-
<category>user</category>
62-
<level>2</level>
61+
<category>system</category>
62+
<level>5</level>
6363
</configuration>
6464
<executions>
6565
<execution>
@@ -86,7 +86,7 @@
8686
<configuration>
8787
<target>
8888
<copy file="${project.build.directory}/${project.build.finalName}.jar"
89-
todir="../../../../fit/java/target/plugins"/>
89+
todir="../../../../../build/plugins"/>
9090
</target>
9191
</configuration>
9292
<goals>

framework/fel/java/plugins/tool-factory-repository/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
<artifactId>fit-build-maven-plugin</artifactId>
3737
<version>${fit.version}</version>
3838
<configuration>
39-
<category>user</category>
40-
<level>2</level>
39+
<category>system</category>
40+
<level>5</level>
4141
</configuration>
4242
<executions>
4343
<execution>
@@ -64,7 +64,7 @@
6464
<configuration>
6565
<target>
6666
<copy file="${project.build.directory}/${project.build.finalName}.jar"
67-
todir="../../../../fit/java/target/plugins"/>
67+
todir="../../../../../build/plugins"/>
6868
</target>
6969
</configuration>
7070
<goals>
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
6+
<parent>
7+
<groupId>org.fitframework.fel</groupId>
8+
<artifactId>fel-plugin-parent</artifactId>
9+
<version>3.5.0-SNAPSHOT</version>
10+
</parent>
11+
12+
<artifactId>fel-tool-mcp-client</artifactId>
13+
14+
<dependencies>
15+
<!-- FIT core -->
16+
<dependency>
17+
<groupId>org.fitframework</groupId>
18+
<artifactId>fit-api</artifactId>
19+
</dependency>
20+
<dependency>
21+
<groupId>org.fitframework</groupId>
22+
<artifactId>fit-util</artifactId>
23+
</dependency>
24+
<dependency>
25+
<groupId>org.fitframework</groupId>
26+
<artifactId>fit-reactor</artifactId>
27+
</dependency>
28+
<dependency>
29+
<groupId>org.fitframework.service</groupId>
30+
<artifactId>fit-http-classic</artifactId>
31+
</dependency>
32+
33+
<!-- MCP -->
34+
<dependency>
35+
<groupId>org.fitframework.fel</groupId>
36+
<artifactId>tool-mcp-client-service</artifactId>
37+
</dependency>
38+
39+
<!-- Test -->
40+
<dependency>
41+
<groupId>org.junit.jupiter</groupId>
42+
<artifactId>junit-jupiter</artifactId>
43+
<scope>test</scope>
44+
</dependency>
45+
<dependency>
46+
<groupId>org.mockito</groupId>
47+
<artifactId>mockito-core</artifactId>
48+
<scope>test</scope>
49+
</dependency>
50+
<dependency>
51+
<groupId>org.assertj</groupId>
52+
<artifactId>assertj-core</artifactId>
53+
<scope>test</scope>
54+
</dependency>
55+
</dependencies>
56+
57+
<build>
58+
<plugins>
59+
<plugin>
60+
<groupId>org.fitframework</groupId>
61+
<artifactId>fit-build-maven-plugin</artifactId>
62+
<version>${fit.version}</version>
63+
<configuration>
64+
<category>system</category>
65+
<level>5</level>
66+
</configuration>
67+
<executions>
68+
<execution>
69+
<id>build-plugin</id>
70+
<goals>
71+
<goal>build-plugin</goal>
72+
</goals>
73+
</execution>
74+
<execution>
75+
<id>package-plugin</id>
76+
<goals>
77+
<goal>package-plugin</goal>
78+
</goals>
79+
</execution>
80+
</executions>
81+
</plugin>
82+
<plugin>
83+
<groupId>org.apache.maven.plugins</groupId>
84+
<artifactId>maven-antrun-plugin</artifactId>
85+
<version>${maven.antrun.version}</version>
86+
<executions>
87+
<execution>
88+
<phase>package</phase>
89+
<configuration>
90+
<target>
91+
<copy file="${project.build.directory}/${project.build.finalName}.jar"
92+
todir="../../../../../build/plugins"/>
93+
</target>
94+
</configuration>
95+
<goals>
96+
<goal>run</goal>
97+
</goals>
98+
</execution>
99+
</executions>
100+
</plugin>
101+
</plugins>
102+
</build>
103+
</project>

0 commit comments

Comments
 (0)