Skip to content

Commit

Permalink
Merge pull request #129 from maxandersen/simplerproxy
Browse files Browse the repository at this point in the history
feat: have proxy default use quarkus-dev coordinates and otherwise have first argument be uri
  • Loading branch information
mkouba authored Feb 26, 2025
2 parents f721f38 + e4c75a8 commit 4ac4dab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion devtools/stdio-sse-proxy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,13 @@ Usage: stdio-sse-proxy [-hV] [--[no-]reconnect] -e=<sseEndpoint> [-s=<sleep>]
In order to run a proxy server for a `quarkus-mcp-server` application running in the dev mode:
```shell script
java -jar target/quarkus-mcp-stdio-sse-proxy-1.0.0-SNAPSHOT-runner.jar -e http://localhost:8080/mcp/sse
java -jar target/quarkus-mcp-stdio-sse-proxy-1.0.0-SNAPSHOT-runner.jar
```
or if you need a custom endpoint:
```shell script
java -jar target/quarkus-mcp-stdio-sse-proxy-1.0.0-SNAPSHOT-runner.jar http://my.app/mcp
```
> [!IMPORTANT]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import io.quarkus.runtime.Quarkus;
import picocli.CommandLine.Command;
import picocli.CommandLine.Option;
import picocli.CommandLine.Parameters;

/**
* Starts a proxy server between an MCP client using the {@code stdio} transport and an MCP server using the {@code HTTP/SSE}
Expand All @@ -49,7 +50,7 @@ public class StdioSseProxy implements Runnable {

private static final Logger LOG = Logger.getLogger(StdioSseProxy.class);

@Option(names = { "-e", "--endpoint" }, required = true, description = "The URI of the target SSE endpoint")
@Parameters(description = "The URI of the target SSE endpoint", defaultValue = "http://localhost:8080/mcp/sse")
URI sseEndpoint;

@Option(names = { "-t",
Expand Down

0 comments on commit 4ac4dab

Please sign in to comment.