You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Zineb Bendhiba (Jira)" <ji...@apache.org> on 2025/07/31 11:59:00 UTC

[jira] [Created] (CAMEL-22302) camel-langchain4j-agent : add MCP Tool Pro

Zineb Bendhiba created CAMEL-22302:
--------------------------------------

             Summary: camel-langchain4j-agent : add MCP Tool Pro
                 Key: CAMEL-22302
                 URL: https://issues.apache.org/jira/browse/CAMEL-22302
             Project: Camel
          Issue Type: New Feature
            Reporter: Zineb Bendhiba


The AIService created in the LangChain4j component is missing the MCP client feature.

I propose that we can add that feature.

+Many idea :+

Create a dedicated MCP Tool Provider, based on a given JSON configuration. 

Example of what I imagine as JSON configuration file, presenting both stdio and HTTP transport types :
{code:java}
{    
   "mcpServers": {
        "sqlite": {          
           "type": "stdio",          
           "command": [
                "/usr/bin/npm",            
                "exec",            
                "@modelcontextprotocol/server-everything@0.6.2"
           ],
           "logEvents" : true
        },
        "wanaku": {
           "type": "http",
           "sseUrl": "http://localhost:8080/mcp/sse",
           "logRequests" : true,
           "logResponses" : true
        }
   }
}



{code}
Based on this list, create [McpTransport|https://docs.langchain4j.dev/tutorials/mcp#mcp-transport] beans, that from that a List of [MCP Client|https://docs.langchain4j.dev/tutorials/mcp#mcp-client] beans. 

With the MCP Client List, one can create a ToolProvider that could be used by our AIServiceAgent. See [documentation|https://docs.langchain4j.dev/tutorials/mcp#developing-the-tool-provider].

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)