Skip to content
Discussion options

You must be logged in to vote

@jmartisk I finally get all working

@ApplicationScoped
public class GecMcpToolsProviderSupplier implements Supplier<ToolProvider> {

    private static CopyOnWriteArrayList<McpClient> mcpClients = new CopyOnWriteArrayList<>();

    @Inject
    Vertx vertx;

    @Inject
    MCPConfig mcpConfig;

    @Override
    public ToolProvider get() {
        for (Map.Entry<String, String> entry : mcpConfig.url().entrySet()) {
            String key = entry.getKey();
            String value = entry.getValue();
            QuarkusStreamableHttpMcpTransport t = new QuarkusStreamableHttpMcpTransport.Builder()
                    .url(value)
                    .httpClient(vertx.createHttpClient())
    …

Replies: 5 comments 15 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@jmartisk
Comment options

@KaiSuchomel
Comment options

Comment options

You must be logged in to vote
11 replies
@jmartisk
Comment options

@jmartisk
Comment options

@sberyozkin
Comment options

@KaiSuchomel
Comment options

@KaiSuchomel
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by KaiSuchomel
Comment options

You must be logged in to vote
2 replies
@geoand
Comment options

@geoand
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants