Skip to content

Commit 66a504f

Browse files
committed
Allow developers without Docker to bring up shell
1 parent 58a26b5 commit 66a504f

File tree

6 files changed

+21
-18
lines changed

6 files changed

+21
-18
lines changed

examples-java/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
</dependencies>
113113
</profile>
114114
<profile>
115-
<id>enable-shell</id>
115+
<id>enable-shell-mcp-client</id>
116116
<activation>
117117
<activeByDefault>true</activeByDefault>
118118
</activation>
@@ -136,7 +136,7 @@
136136
</build>
137137
</profile>
138138
<profile>
139-
<id>enable-shell-mcp-client</id>
139+
<id>enable-shell</id>
140140
<activation>
141141
<activeByDefault>false</activeByDefault>
142142
</activation>
@@ -152,7 +152,7 @@
152152
<groupId>org.springframework.boot</groupId>
153153
<artifactId>spring-boot-maven-plugin</artifactId>
154154
<configuration>
155-
<mainClass>com.embabel.example.JavaAgentShellMcpClientApplication</mainClass>
155+
<mainClass>com.embabel.example.JavaAgentSimpleShellApplication</mainClass>
156156
</configuration>
157157
<version>${spring-boot.version}</version>
158158
</plugin>

examples-java/src/main/java/com/embabel/example/JavaAgentShellApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
}
4343
)
4444
@EnableAgents(
45-
loggingTheme = LoggingThemes.SEVERANCE,
45+
loggingTheme = LoggingThemes.STAR_WARS,
4646
mcpServers = {McpServers.DOCKER_DESKTOP}
4747
)
4848
public class JavaAgentShellApplication {

examples-java/src/main/java/com/embabel/example/JavaAgentShellMcpClientApplication.java renamed to examples-java/src/main/java/com/embabel/example/JavaAgentSimpleShellApplication.java

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,22 @@
1717

1818
import com.embabel.agent.config.annotation.EnableAgents;
1919
import com.embabel.agent.config.annotation.LoggingThemes;
20-
import com.embabel.agent.config.annotation.McpServers;
2120
import org.springframework.boot.SpringApplication;
2221
import org.springframework.boot.autoconfigure.SpringBootApplication;
2322
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
2423

2524
/**
2625
* Spring Boot application that provides an interactive command-line shell for Embabel agents
27-
* with Star Wars themed logging and Docker Desktop integration.
26+
* with Star Wars themed logging.
27+
* <br>
28+
* This is a simple example application demonstrating how to set up an Embabel agent
29+
* environment with a customized logging theme.
30+
* <br>
31+
* Docker Tools are not enabled in this example to keep the setup straightforward,
32+
* but keep in mind that some examples may require Docker Tools for full functionality.
2833
*
2934
* <p>This application runs in interactive shell mode, allowing developers to test and interact
30-
* with agents through a REPL-like interface. It combines the development-friendly shell
31-
* environment with fun Star Wars themed logging messages and Docker container capabilities.
35+
* with agents through a REPL-like interface.
3236
*
3337
* @author Embabel Team
3438
* @see EnableAgents
@@ -41,20 +45,19 @@
4145
}
4246
)
4347
@EnableAgents(
44-
loggingTheme = LoggingThemes.STAR_WARS,
45-
mcpServers = {McpServers.DOCKER_DESKTOP}
48+
loggingTheme = LoggingThemes.SEVERANCE
4649
)
47-
public class JavaAgentShellMcpClientApplication {
50+
public class JavaAgentSimpleShellApplication {
4851

4952
/**
5053
* Application entry point.
5154
*
5255
* <p>Starts the Spring Boot application with an interactive shell interface,
53-
* Star Wars themed logging, and Docker Desktop integration.
56+
* Star Wars themed logging.
5457
*
5558
* @param args command line arguments passed to the application
5659
*/
5760
public static void main(String[] args) {
58-
SpringApplication.run(JavaAgentShellMcpClientApplication.class, args);
61+
SpringApplication.run(JavaAgentSimpleShellApplication.class, args);
5962
}
6063
}

examples-kotlin/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
</dependencies>
100100
</profile>
101101
<profile>
102-
<id>enable-shell</id>
102+
<id>enable-shell-mcp-client</id>
103103
<activation>
104104
<activeByDefault>true</activeByDefault>
105105
</activation>
@@ -123,7 +123,7 @@
123123
</build>
124124
</profile>
125125
<profile>
126-
<id>enable-shell-mcp-client</id>
126+
<id>enable-shell</id>
127127
<activation>
128128
<activeByDefault>false</activeByDefault>
129129
</activation>
@@ -139,7 +139,7 @@
139139
<groupId>org.springframework.boot</groupId>
140140
<artifactId>spring-boot-maven-plugin</artifactId>
141141
<configuration>
142-
<mainClass>com.embabel.example.KotlinAgentShellMcpClientApplicationKt</mainClass>
142+
<mainClass>com.embabel.example.KotlinAgentSimpleShellApplicationKt</mainClass>
143143
</configuration>
144144
<version>${spring-boot.version}</version>
145145
</plugin>

examples-kotlin/src/main/kotlin/com/embabel/example/KotlinAgentShellApplication.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ package com.embabel.example
1717

1818
import com.embabel.agent.config.annotation.EnableAgents
1919
import com.embabel.agent.config.annotation.LoggingThemes
20+
import com.embabel.agent.config.annotation.McpServers
2021
import org.springframework.boot.autoconfigure.SpringBootApplication
2122
import org.springframework.boot.context.properties.ConfigurationPropertiesScan
2223
import org.springframework.boot.runApplication
@@ -43,6 +44,7 @@ import org.springframework.boot.runApplication
4344
)
4445
@EnableAgents(
4546
loggingTheme = LoggingThemes.STAR_WARS,
47+
mcpServers = [McpServers.DOCKER_DESKTOP, McpServers.DOCKER],
4648
)
4749
class KotlinAgentShellApplication
4850

examples-kotlin/src/main/kotlin/com/embabel/example/KotlinAgentShellMcpClientApplication.kt renamed to examples-kotlin/src/main/kotlin/com/embabel/example/KotlinAgentSimpleShellApplication.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ package com.embabel.example
1717

1818
import com.embabel.agent.config.annotation.EnableAgents
1919
import com.embabel.agent.config.annotation.LoggingThemes
20-
import com.embabel.agent.config.annotation.McpServers
2120
import org.springframework.boot.autoconfigure.SpringBootApplication
2221
import org.springframework.boot.context.properties.ConfigurationPropertiesScan
2322
import org.springframework.boot.runApplication
@@ -44,7 +43,6 @@ import org.springframework.boot.runApplication
4443
)
4544
@EnableAgents(
4645
loggingTheme = LoggingThemes.SEVERANCE,
47-
mcpServers = [McpServers.DOCKER_DESKTOP, McpServers.DOCKER],
4846
)
4947
class KotlinAgentShellMcpClientApplication
5048

0 commit comments

Comments
 (0)