feat(extensions): add Java/JDK support for MCP servers (#1816)
This commit is contained in:
@@ -74,6 +74,8 @@ RUN apt-get update && apt-get install -y \
|
||||
# Python
|
||||
python3 \
|
||||
python3-pip \
|
||||
# Java
|
||||
openjdk-17-jdk \
|
||||
# Additional tools
|
||||
tree \
|
||||
tmux \
|
||||
@@ -82,6 +84,9 @@ RUN apt-get update && apt-get install -y \
|
||||
# Install uv using curl
|
||||
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
|
||||
# Install JBang using curl
|
||||
RUN curl -Ls https://sh.jbang.dev | bash -s - app setup
|
||||
|
||||
# Copy the built binaries
|
||||
COPY --from=builder /usr/src/goose/target/release/goose /usr/local/bin/
|
||||
|
||||
@@ -109,3 +114,6 @@ RUN git config --global init.defaultBranch main && \
|
||||
# Add some helpful aliases
|
||||
RUN echo 'alias ll="ls -la"' >> ~/.bashrc && \
|
||||
echo 'alias fd=fdfind' >> ~/.bashrc
|
||||
|
||||
# Add JBang to PATH
|
||||
RUN echo 'export PATH="$HOME/.jbang/bin:$PATH"' >> ~/.bashrc
|
||||
@@ -131,6 +131,8 @@ See available servers in the **[MCP Server Directory](https://www.pulsemcp.com/s
|
||||
|
||||
#### Example of adding the [Knowledge Graph Memory MCP Server](https://github.com/modelcontextprotocol/servers/tree/main/src/memory):
|
||||
|
||||
<Tabs groupId="extensions">
|
||||
<TabItem value="node" label="Node">
|
||||
```
|
||||
┌ goose-configure
|
||||
│
|
||||
@@ -155,6 +157,74 @@ See available servers in the **[MCP Server Directory](https://www.pulsemcp.com/s
|
||||
└ Added Knowledge Graph Memory extension
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
<TabItem value="python" label="Python">
|
||||
|
||||
```
|
||||
┌ goose-configure
|
||||
│
|
||||
◇ What would you like to configure?
|
||||
│ Add Extension
|
||||
│
|
||||
◇ What type of extension would you like to add?
|
||||
│ Command-line Extension
|
||||
│
|
||||
◇ What would you like to call this extension?
|
||||
│ Wikipedia Reader
|
||||
│
|
||||
◇ What command should be run?
|
||||
│ uvx mcp-wiki
|
||||
│
|
||||
◇ Please set the timeout for this tool (in secs):
|
||||
│ 300
|
||||
│
|
||||
◆ Would you like to add environment variables?
|
||||
│ No
|
||||
│
|
||||
└ Added Wikipedia Reader extension
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
<TabItem value="java" label="Java">
|
||||
|
||||
Note: Java and Kotlin extensions are only support on Linux and macOS
|
||||
|
||||
```
|
||||
┌ goose-configure
|
||||
│
|
||||
◇ What would you like to configure?
|
||||
│ Add Extension
|
||||
│
|
||||
◇ What type of extension would you like to add?
|
||||
│ Command-line Extension
|
||||
│
|
||||
◇ What would you like to call this extension?
|
||||
│ Spring Data Explorer
|
||||
│
|
||||
◇ What command should be run?
|
||||
│ jbang -Dspring.profiles.active=dev org.example:spring-data-mcp:1.0.0
|
||||
│
|
||||
◇ Please set the timeout for this tool (in secs):
|
||||
│ 300
|
||||
│
|
||||
◆ Would you like to add environment variables?
|
||||
│ Yes
|
||||
│
|
||||
◇ Environment variable name:
|
||||
│ SPRING_DATASOURCE_URL
|
||||
│
|
||||
◇ Environment variable value:
|
||||
│ jdbc:postgresql://localhost:5432/mydb
|
||||
│
|
||||
◇ Add another environment variable?
|
||||
│ No
|
||||
│
|
||||
└ Added Spring Data Explorer extension
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
</TabItem>
|
||||
<TabItem value="ui" label="Goose Desktop">
|
||||
|
||||
|
||||
@@ -36,6 +36,10 @@ Note that you'll need [Node.js](https://nodejs.org/) installed on your system to
|
||||
Note that you'll need [uv](https://docs.astral.sh/uv/#installation) installed on your system to run this command, as it uses `uvx`.
|
||||
:::
|
||||
|
||||
:::info
|
||||
Note that you'll need [JBang](https://www.jbang.dev/download) installed on your system to run this command, as it uses `jbang`.
|
||||
:::
|
||||
|
||||
<Tabs groupId="interface">
|
||||
<TabItem value="cli" label="Goose CLI" default>
|
||||
1. Run the `configure` command:
|
||||
|
||||
Reference in New Issue
Block a user